*,
*::before,
*::after {
    box-sizing: border-box
}

/* Variable Declarations */
:root {
    --ff-primary: 'Marcellus', serif;
    --ff-secondary: 'Kalam', cursive;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: white;
    --clr-dark: #000;

    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
}

@media (min-width: 600px){
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }
}

/* General Styles */

html {scroll-behavior: smooth}

body {
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-weight: var(--fw-reg);
    font-size: var(--fs-body);
    line-height: 1.6;
}


section {
    padding: 1em 2em;
    position: relative;
}

img {
    display:block;
    max-width: 100%;
    max-height: 100%;
}

:focus {
    outline: 3px solid var(--clr-dark);
    outline-offset: 2px;
}

a {text-decoration: none}

/* Typeography */

h1, h2, h3 {
    line-height: 1;
    margin: 0; 
}

h1 {font-size: var(--fs-h1)}
h2 {font-size: var(--fs-h2)}
h3 {font-size: var(--fs-h3)}

p {
    text-align: center; 
    margin: 0;
    font-size: 1rem;
}

 /* navigation window */

.nav {
    position: fixed;
    background: linear-gradient(140deg, #045de9 23%, #09c6f9 84%);
    color: white;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;


    transform: translateY(-100%);
    transition: transform 1s ease-in-out;
}

.nav__top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav__img {
    height: 80px;
    width: 80px;
    margin: 15px 0;

    border-radius: 50%;
    align-items: center;
    background-image: url(Kicks\ with\ Frank\ Logo.png);
    background-size: 90px;
    background-position: center;
}

.nav__subtitle {margin-bottom: 10px}

.nav__items {
    height: 100%;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav__link {
    margin: 5px 0;
    padding: 15px 0;
    border: solid white 1px;
    width: 100%;
    max-width: 700px;
    cursor: pointer;
    color: white;

    transition-property: transform, opacity, background-color, color;
    transition-duration: 1.5s, 1.5s, 200ms, 200ms;
    transition-timing-function: ease-in-out;
}

.nav__link:hover {
    background-color: white;
    color: #045de9;
    scale: 1.1;
}

.nav-open .nav {transform: translateY(0)}

.nav-toggle {
    border-radius: 50%;
    background-color: rgba(40, 40, 40, .80);
    color: var(--clr-light);
    font-family: var(--ff-secondary);
    border: dotted var(--clr-light) 1px;
    cursor: pointer;
    position: fixed;
    height: 75px;
    width: 75px;
    top: 4vw;
    right: 4vw;
    z-index: 1001;

    transition: all 500ms ease-in-out;
}

.nav-toggle:hover {
    transform: scale(1.1);
    background-color: var(--clr-light);
    color: var(--clr-dark);
}

.nav-left, .nav-right {opacity: 0}
.nav-left {transform: translateX(-100%)}
.nav-right {transform: translateX(100%)}

.nav-toggle__content {margin: 0 auto}

/* introduction */

.background {
    position: absolute;
    width: 100%;
    height: 275%;
    background-color: black;
    z-index: -1000;
}

.background-cover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: linear-gradient(transparent, #939ef050, transparent);
}

.intro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(-25deg);
    color: white;
}

.intro__text {
    width: max-content;
    margin: 5px 0;
    border: solid white;
    border-width: 2px 0px 2px 0px;
    text-overflow: clip;
    transition: 250ms ease-out;
}

.intro__text--part {
    font-size: calc((15vw + 15vh) / 2);
    margin: 0 calc((6vw + 5vh) / 2);
}

.intro__smaller-text {font-size: 5vw}

.intro__text--part {display: inline}

/* statistics section */

.transparent-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.content-up,
.content-down {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: dotted black 1px;
    background-color: var(--clr-light);
    margin: 2em;
    cursor: pointer;
    transition: ease-in-out 200ms;
}

.up-arrow,
.down-arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    padding: 2px;
    display: inline-block; 
}
.up-arrow {transform: rotate(-135deg)}
.down-arrow {transform: rotate(45deg)}

@media (max-width: 900px) {
    .up-arrow {transform: rotate(135deg)}
    .down-arrow {transform: rotate(-45deg)}
}

.content-up:hover,
.content-down:hover {
    transform: scale(1.15);
}

.platform-logo__wrapper {
    position: relative;
    display: normal;
    height: 20vh;
    width: 30vw;
    align-self: center;
}
.platform-logo {
    position: absolute;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
    z-index: 0;

    transition: all 500ms ease-in-out;
}
.platform-logo--youtube {
    opacity: 1;
    z-index: 1;
}

.section__statistics {
    padding: 0;
    background-color: rgb(170, 30, 30);
    color: var(--clr-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: -100;
    opacity: 0;
    transition: 1000ms ease-in-out;
}

.statistics {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;

    transition: ease-in-out .5s;
    opacity: 0;
    z-index: 0;
}

.statistics__content {margin: 1vh auto}

.statistics__youtube {
    opacity: 1;
    z-index: 1;
}
.statistics__instagram,
.statistics__tiktok {
    z-index: -1;
}

@media (max-width: 900px) {

    .statistics__grid--left {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        position: absolute;
        width: 100%;
        margin-bottom: 1vh;
        bottom: 0;
        z-index: 2;
    }
    .statistics__grid--right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .statistics {
        top: calc(80px + 4vw);
        bottom: 30vh;
    }

    .tiktok-embed {
        max-height: 20vh;
    }
}


@media (min-width: 900px) {

    .statistics__grid {
        display: grid;
        grid-template-columns: .15fr .85fr;
        grid-template-rows: 100vh;
        grid-template-areas:
            "left right";
        column-gap: 1vw;
    }

    .statistics__grid--left,
    .statistics__grid--right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .statistics__grid--left {
        grid-area: left;
        gap: 3em;
        margin-left: 2vw;
        z-index: 2;
    }

    .statistics__grid--right {
        grid-area: right;
        width: 60vw;
    }
}

/* youtube media  */

.youtube-videos {
    display: flex;
    justify-content: center;
    column-gap: calc(15px + 3vw);
    margin: 20px 5vw;
}

.youtube-video--link {
    transition: 250ms ease-in-out;
    border: solid var(--clr-dark) 6px;
    background: var(--clr-dark);
}

.youtube-video--link:hover {
    opacity: .9;
    transform: scale(1.1);
}

.youtube-thumbnail {
    margin-right: 0px;
    width: 200px;
}

/* instgram media  */

.instagram-carousel {
    display: flex;
    margin-top: 20px;
    height: 200px;
    justify-content: center;
}

.instagram-img {
    position: absolute;
    max-width: 200px;
}

@media (max-width: 600px) {
    .instagram-img {max-width: 150px}
    .instagram-carousel {height: 150px}
}

.instagram-img {
    transition: 600ms ease-in-out;
    border: solid black 6px;
}

.instagram-img--one {transform: translateX(-60px) scale(.8)}
.instagram-img--two {transform: translateX(-30px) scale(.9)}
.instagram-img--three {transform: translateX(0px) scale(1)}
.instagram-img--four {
    transform: translateX(30px) scale(.9);
    z-index: -1;
}
.instagram-img--five {
    transform: translateX(60px) scale(.8);
    z-index: -2;
}

/* button links */

.statistics__btn {
    transition: all 250ms ease-in-out;
    background-color: transparent;
    color: var(--clr-light);
    border: solid var(--clr-light) 2px;
    padding: 0 1em;
    margin-top: 3em;
    cursor: pointer;
}

.statistics__btn p {
    font-family: var(--ff-primary);
    font-weight: var(--fw-bold);
    margin: 10px;
}

.statistics__btn:hover {
    background: var(--clr-light);
    color: var(--clr-dark);
    transform: scale(1.1);
}

@keyframes youtube-animation {
    0% {box-shadow: 0 0 10px 8px rgb(210, 0,0)}
    50% {box-shadow: 0 0 20px 20px rgb(245, 0,0)}
    100% {box-shadow: 0 0 10px 8px rgb(200, 0,0)}
}

.statistics__btn--youtube {animation: youtube-animation 10s ease-in-out infinite}

.statistics__btn--tiktok {
    box-shadow: -3px -3px 0 0 rgb(37, 244, 238), 3px 3px 0 0 rgb(254, 44, 85);
    margin: 40px 20px 0;
}

@keyframes instagram-animation {
    0% {box-shadow: 0 0 20px 10px rgb(70, 70, 200)}
    12.5% {box-shadow: 0 0 20px 9px rgb(188, 42, 141)}
    25% {box-shadow: 0 0 20px 10px rgb(138, 58, 185),}
    37.5% {box-shadow: 0 0 20px 12px rgb(253, 89, 73)}
    50% {box-shadow: 0 0 20px 13px rgb(190, 150, 115)}
    62.5% {box-shadow: 0 0 20px 12px rgb(253, 89, 73)}
    75% {box-shadow: 0 0 20px 10px rgb(138, 58, 185),}
    87.5% {box-shadow: 0 0 20px 9px rgb(188, 42, 141)}
    100% {box-shadow: 0 0 20px 10px rgb(70, 70, 200)}
}

.statistics__btn--instagram {
    animation: instagram-animation 10s ease-in-out infinite;
}

.statistics__btn--tiktok:hover {box-shadow: 0 0 3px 5px rgba(37, 244, 238, .50), 0 0 3px 5px rgba(254, 44, 85, .50)}

.tiktok-video-links {display: flex}






