@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    /* outline: solid 1px limegreen; */
}

:root {
    --primary: #FFD372;
    --primary-dark: #565334;
    --primary-light: #D6BD9E;
    --secondary: hsl(12, 53%, 44%);
    --white: #FCFCFC;
    --black: #080705;
    --background: var(--black);
}

.text-secondary {
    color: var(--secondary) !important;
}

html {
    font-size: 62.5%;
    font-family: "Helvetica";
}

img, picture, svg, video, iframe {
    display: inline-block;
    max-width: 100%;
}

body {
    --background-img: url("../img/background_sm.png");
    --background-size: contain;
    padding: 0;
    margin: 0;
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
    background-image: var(--background-img);
    background-size: var(--background-size);
    background-position: top center;
    background-repeat: no-repeat;
    --text-color: var(--white);
    background-color: var(--background);
    color: var(--text-color);
}

@media only screen and (min-width: 576px) {
    body {
        --background-img: url("../img/background.png");
        --background-size: cover;
    }
}
@media only screen and (min-width: 768px) {
    body {
        background-position: top;
        position: relative;
    }
}
main {
    display: grid;
    height: 100vh;
    height: 100dvh; 
}

section {
    margin-inline: 2rem;
    margin: auto 2rem;
    text-align: center;
}

h1.animated-title {
    font-size: 3.5rem;
    filter: drop-shadow(4px 4px 2px var(--black));
    color: var(--white);
    transform: scale(0.94);
    animation: scale 3s forwards cubic-bezier(0.5, 1, 0.89, 1);
    margin-inline: 1rem;
}
@keyframes scale {
    100% {
        transform: scale(1);
    }
}

.animated-title > span {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
}

.animated-title > span:nth-child(1) {
    animation: fade-in 0.8s 0.4s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

.animated-title > span:nth-child(2) {
    animation: fade-in 0.8s 0.8s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

.animated-title > span:nth-child(3) {
    animation: fade-in 0.8s 1.2s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(4) {
    animation: fade-in 0.8s 1.6s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(5) {
    animation: fade-in 0.8s 2s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(6) {
    animation: fade-in 0.8s 2.4s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(7) {
    animation: fade-in 0.8s 2.8s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(8) {
    animation: fade-in 0.8s 3.2s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(9) {
    animation: fade-in 0.8s 3.6s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(10) {
    animation: fade-in 0.8s 4s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
.animated-title > span:nth-child(11) {
    animation: fade-in 0.8s 4.4s forwards cubic-bezier(0.11, 0, 0.5, 0);
}


@keyframes fade-in {
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

section .content {
    display: block;
}


@media only screen and (min-width: 768px) {
    section .content {
        display: flex;
        flex-wrap: wrap;
    }
    #youtube-video {
        flex-grow: 1;
        display: grid;
        place-content: center;
    }
}

section header {
    margin: 15rem auto 5rem;
}
.social-menu {
    display: flex;
    justify-content: space-around;
}

.social-menu a {
    color: var(--background);
    border-radius: 50%;
    font-size: 5rem;
    width: 8rem;
    height: 8rem;
    aspect-ratio: 1;
    place-content: center;
    border: 2px solid var(--background);
    background-color: var(--primary);
    transition: all 0.4s ease-in-out;
    display: grid;
    z-index:2;
}

.social-menu a:hover {
    color: var(--white);
    background-color: #c1564b;
}

@media only screen and (min-width: 768px) {
    section header {
        margin: auto;
    }
    .social-menu {
        flex-shrink: 0;
        display: grid;
        place-content: center;
        gap: 3rem;
        margin-inline: 2rem;
    }
    .social-menu a {
        font-size: 7rem;
        width: 10rem;
        height: 10rem;
    }
}

.logo-container {
    --top: 6rem;
    position: relative;
}

@media only screen and (min-width: 768px) {
    .logo-container {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 1rem;
    }
}
.logo-container div {
    content: "";
}

.top-frame {
    display: grid;
    position: relative;
    z-index: 1;
}
.top-frame::before {
    content: "";
    position: absolute;
    top: var(--top);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    z-index: -1;
}
.top-frame .logo {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}
.lines {
    position: absolute;
    top: var(--top);
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.line {
    background-color: var(--primary-dark);
    height: 2px;
    width: 50%;
}
.line.end {
    position: absolute;
    right: 0;
    top: 2rem;
}
.line.start {
    bottom: 1.5rem;
    position: absolute;
}
.white-line {
    height: 4px;
    background-color: var(--white);
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

/* iPhone 6/7/8 compatibility */
@media only screen
    and (max-width: 375px) 
    and (max-height: 667px) {

}