html, body {
    height:100%;
}

:root {
    --content: #1a1a1a;
}

@font-face {
	font-family: 'Ostrich Sans';
	src: url('fonts/ostrich-sans-black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans';
	src: url('fonts/ostrich-sans-bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans';
	src: url('fonts/ostrich-sans-regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans';
	src: url('fonts/ostrich-sans-light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans Dashed';
	src: url('fonts/ostrich-sans-dashed.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans Inline';
	src: url('fonts/ostrich-sans-inline-regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Ostrich Sans Inline';
	src: url('fonts/ostrich-sans-inline-italic.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}


@font-face {
	font-family: 'Montserrat';
	src: url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}
@font-face {
	font-family: 'Montserrat';
	src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body {
    margin: 0;
    background-color: #1b1b1b;
    background-image: url('img/kay_looking_up.jpg');
    background-size: contain;
    background-position: bottom -300px right -100px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e0e0e0;
}

* {
    box-sizing: border-box;
}


#container {
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#container a {
    color: #8ab8e0;
    font-weight: bold;
    width: 50%;
}

#header {
    width: 100%;
    background-color: #121212;
    height: 150px;
    background-image: var(--header-image);
    background-size: 100%;
}

#navbar {
    font-family: 'Ostrich Sans';
    font-size: xxx-large;
    background-color: rgba(13, 13, 13, 0.85);
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    color: #8ab8e0;
    text-decoration: none;
}

#navbar li a:hover {
    color: #c0c0c0;
    text-decoration: underline;
}

#flex {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 100vh;
    border-top: 3px solid #252525;
}

aside {
    background-color: #181818;
    width: 200px;
    padding: 20px;
    font-size: smaller;
}

main {
    background-color: rgba(15, 15, 15, 0.75);
    flex: 1;
    padding: 20px;
    order: 2;
    overflow-y: auto;
    position: relative;
}

#fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
    z-index: 100;
}

#fade-overlay.active {
    opacity: 1;
}

#leftSidebar {
    order: 1;
    border-right: 3px solid #252525;
    font-family: 'Montserrat';
    font-weight: initial;
    font-size: large;
}

#rightSidebar {
    order: 3;
}

footer {
    background-color: #0d0d0d;
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
}

h1,
h2,
h3 {
    color: #8ab8e0;
}

h1 {
    font-size: 25px;
}

strong {
    color: #8ab8e0;
}

.box {
    background-color: #0d0d0d;
    border: 1px solid #8ab8e0;
    padding: 10px;
}

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #0d0d0d;
}

@media only screen and (max-width: 100%) {
    #flex {
        flex-wrap: wrap;
    }
    aside {
        width: 100%;
    }
    main {
        order: 1;
    }
    #leftSidebar {
        order: 2;
    }
    #rightSidebar {
        order: 3;
    }
    #navbar ul {
        flex-wrap: wrap;
    }
}

#bots, #creators, #presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bot-card {
    background-color: #1f1f1f;
    margin-bottom: 20px;
    flex-basis: calc(50% - 10px);
    height: 350px;
    display: flex;
    flex-direction: column;
    outline: 2px solid #8ab8e0;
    border-radius: 5px;
}

.card-top {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    border-bottom: 2px solid #8ab8e0;
}

.card-img {
    flex: 1;
    min-height: 0;
}

.card-img img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-right: 2px solid #8ab8e0;
}

.card-desc {
    padding-top:15px;
    margin-left: 15px;
    padding-right: 15px;
    flex: 2;
    overflow-y: auto;
    min-height: 0;
    font-family: 'Montserrat';
    font-weight: initial;
    font-size: large;
}

.card-title {
    background-color: #252525;
    padding: 10px 15px;
    border-bottom: 2px solid #8ab8e0;
}

.card-title h2 {
    font-family: 'Ostrich Sans';
    font-weight: initial;
    font-size: xx-large;
    margin: 0;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    background-color: #252525;
}

.card-bottom a {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-family: 'Ostrich Sans';
    font-weight: initial !important;
    font-size: x-large;
    border-right: 2px solid #8ab8e0;
}

.about-manifesto {
    margin-left: 300px;
    padding: 60px 40px;
    max-width: 600px;
}

.about-greeting {
    font-family: 'Ostrich Sans';
    font-size: 4rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.2em 0;
    letter-spacing: 0.05em;
    margin-bottom:70px;
}

.about-greeting .kaomoji {
    color: #8ab8e0;
}

.about-name {
    font-family: 'Ostrich Sans';
    font-size: 6rem;
    font-weight: 900;
    color: #8ab8e0;
    margin: 0 0 0.3em 0;
    letter-spacing: 0.08em;
    line-height: 1;
}

.about-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8ab8e0, transparent);
    margin: 0 auto 2em auto;
}

.about-tagline {
    font-family: 'Ostrich Sans';
    font-size: 2rem;
    font-weight: 400;
    color: #c0c0c0;
    margin: 0 0 2em 0;
    letter-spacing: 0.02em;
}

.about-body {
    font-family: 'Montserrat';
    font-size: 1.1rem;
    color: #a0a0a0;
    line-height: 1.8;
    text-align: left;
    margin: 0 auto;
}

.about-webring {
    margin-top:50px;
}

.about-body p {
    margin: 0 0 1.2em 0;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-body em {
    color: #8ab8e0;
    font-style: normal;
    font-weight: 600;
}

#starscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--twinkle-duration, 3s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.star.small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.3);
}

.star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px 1px rgba(138, 184, 224, 0.4);
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px 2px rgba(138, 184, 224, 0.5);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(138, 184, 224, 0.8), transparent);
    opacity: 0;
    transform: rotate(-45deg);
    animation: shoot 3s ease-out infinite;
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg);
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 0;
        transform: translateX(300px) translateY(300px) rotate(-45deg);
    }
    100% {
        opacity: 0;
    }
}