@font-face {
    font-family: "KraiLesa";
    src: url("assets/KraiLesa.otf");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "KraiLesa", sans-serif;
    background-color: black;
    color: white;
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: linear-gradient(to bottom, black, 70%, #000000bb), center/50% url("assets/pattern_glow.png"), #0e141c;
    background-position: bottom;
}

main, header {
    display: block;
    margin: 0 auto;
    max-width: 1000px;
    width: 80%;
}

header {
    font-family: "KraiLesa", sans-serif;
    font-size: 1.6em;
    text-transform: uppercase;
}

header h1 {
    background-image: url("assets/hd/logo-subtitled.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    font-size: 2.5em;
    color: transparent;
    transition: transform 200ms;
    overflow: hidden;
    margin: 32px auto;
    max-width: 80%;
}

header h1 a {
    display: block;
    font-size: inherit;
    color: inherit;
}

header h1:hover {
    transform: scale(1.1);
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style: none;
}

header nav ul li a {
    padding: 6px;
}

header nav ul li a:hover {
    color: black;
    background-color: white;
}

header nav ul li:last-child a {
    color: black;
    background-color: white;
    transition: color 200ms;
    transition: background-color 200ms;
    transition: transform 200ms;
}

header nav ul li:last-child a:hover, .special-button:hover {
    color: black; 
    background-color: #59ddfc;
    transform: scale(1.1);
}

header nav a {
    font-weight: bold;
    text-decoration: none;
    color: white;
}

h2 {
    padding-left: 12px;
    padding-right: 12px;
    background-color: #070a0f;
    text-transform: uppercase;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    font-size: 1.8em;
    line-height: 1.5;
}

main p, main ul, main ol {
    background-color: #070a0f;
    border: 2px dashed #555;
    padding: 24px;
    max-width: 60ch;
}

footer {
    display: flex;
    flex-direction: column;
    background: linear-gradient(transparent, #0e141c);
    padding-top: 30px;
}

footer > * {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 10px;
    font-family: "KraiLesa", sans-serif;
}

footer > div > * {
    margin: auto 1em;
    background-color: #070a0f;
    border: 2px dashed #555;
    padding: 6px;
}

footer a {
    color: inherit;
}

footer ul {
    list-style: none;
}

footer li {
    display: inline;
}

main img {
    display: block;
    margin: 0 auto;
    text-align: center;
}

#banner img {
    max-width: 80%;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

figure > * {
    max-width: 100%;
}

figcaption {
    margin-top: 12px;
    max-width: 80%;
    font-size: 0.7em;
}

.special-button {
    font-weight: bold;
    text-decoration: none;
    background-color: white;
    color: black;
    text-transform: uppercase;
    font-family: "KraiLesa", sans-serif;
    font-size: 1.4em;
    text-align: center;
    margin-top: 24px;
    padding: 8px;
    transition: color 200ms;
    transition: background-color 200ms;
    transition: transform 200ms;
}

#banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

#banner img:first-child {
    grid-area: 1 / 1 / 2 / 2;
    animation: 3s ease-in-out floatA infinite;
    animation-delay: -0.5s;
}

#banner img:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
    animation: 3s ease-in-out floatB infinite;
}

#banner img:last-child {
    grid-area: 1 / 1 / 2 / 2;
    animation: 3s ease-in-out floatA infinite;
    animation-delay: -0.5s;
}

@keyframes floatA {
    0% {
        transform: translate(70px, 7px);
    }
    50% {
        transform: translate(70px, -7px);
    }
    100% {
        transform: translate(70px, 7px);
    }
}

@keyframes floatB {
    0% {
        transform: translate(-70px, 7px);
    }
    50% {
        transform: translate(-70px, -7px);
    }
    100% {
        transform: translate(-70px, 7px);
    }
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 10px;
}

.socials img {
    max-width: 100px;
    transition: transform 40ms;
}

.socials img:hover {
    transform: rotate(16deg);
}

.gallery {
    display: flex;
    flex-direction: row;
    overflow: auto;
    width: 100%;
    gap: 16px;
}

.gallery img {
    max-height: 400px;
    object-fit: cover;
    margin: 0;
    padding: 0;
}
