:root {
    /* colors */
    --white: hsl(0, 0%, 100%);
    --grey: hsl(233, 8%, 79%);
    --red: hsl(5, 85%, 63%);
    --orange: hsl(35, 77%, 62%);
    --dark-grey: hsl(236, 13%, 42%);
    --dark-blue: hsl(240, 100%, 5%);
    --dark-blue-65: hsla(240, 100%, 5%, 0.65);

    /* noctuastrali colors */
    --purple: rgba(120, 66, 143);
    --purple-35: rgba(120, 66, 143, 0.35);

    /* font-family */
    --ff-primary: "Courier New", Courier, monospace;

    /* font-sizes */
    --fs-300: 0.875rem;
    /* 14px */
    --fs-400: clamp(1rem, 3vw, 1.125rem);
    --fs-500: clamp(1.125rem, 3vw, 1.25rem);
    --fs-600: clamp(1.25rem, 3vw, 1.5rem);
    --fs-700: clamp(2.5rem, 5vw, 4rem);

    /* font-weights */
    --fw-300: 300;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-800: 800;
    --fw-900: 900;
}


/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: HappyTime;
    src: url(fonts/happy_time/HappyTime.otf);
    font-weight: bold;
}

body {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 17px;
    color: white;
}

h1,
h2 {
    font-family: "HappyTime";
}

#myVideo {
    position: fixed;
    /*  was fixed */
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    backdrop-filter: blur(11.9px);
    -webkit-backdrop-filter: blur(11.9px);
    z-index: -2;
}

/* My navbar */
/* .navbar {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 7vh; TO COMMENT
    background: rgba(120, 66, 143, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(11.9px);
} */

/* My site-title */
/* .site-title {
    padding-left: 5vw;
    margin-top: 10;

    h1 {
        margin-top: 0;
        margin-bottom: 0;
    }
} */


/* .content {
    position: fixed;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 100%;
    padding: 20px;
    } */

.content {
    /* position: fixed; */
    /* display: flex;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; */

    display: block;

    margin-top: 130px;
    margin-bottom: auto;
    margin-right: auto;
    margin-left: auto;

    /* height: 80vh; */
    width: 90vw;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;

    padding: 20px;

    text-align: center;
    z-index: 10;

    a {
        color: #fff;
    }


    
}

.button {
    border-radius: 25px;
}




.wrap {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    height: 100%;
    width: 100%;
    align-items: center;
    background: rgba(120, 66, 143, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(11.9px);
    z-index: -1;
}

#myBtn {
    width: 200px;
    font-size: 18px;
    padding: 10px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
}

#myBtn:hover {
    background: #ddd;
    color: black;
}


/* After this tag, css from the video https://www.youtube.com/watch?v=NkxXterRidg */


/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* General Styles */
.primary-header {
    background-color: rgba(120, 66, 143, 0.35);
    
    position: fixed;
    top: 0;
    margin-bottom: 1vh;
    height: 100px;
    /* padding-block: 2rem; */
    display: grid;
    grid-template-columns:
        minmax(5vw, 1fr) minmax(0, 40vw) minmax(0, 50vw) minmax(5vw, 1fr);
    z-index: 10;

    button {
        background: none;
        border: none;
        padding: 0;
        font-family: "Courier New", Courier, monospace;
    }

    .logo {

        grid-column: 2 / 3;

        a {
            color: white;
            text-decoration: none;

        }

        a:hover, a:focus-visible {
            /* text-decoration: underline; */
            outline: solid 2px var(--white);
            outline-offset: 10px;
        }

        
    }

    .nav-open {
        justify-self: end;
        translate: 0;
        transition: translate 250ms ease-in;

    }

    .nav-open[aria-expanded="true"] {

        translate: 300% 0;
        transition: translate 250ms ease-out;

        +.primary-navigation {
            translate: 0;
            transition: translate 250ms ease-in;
            background-color: var(--dark-blue-65);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(11.9px);

            a {
                font-weight: var(--fw-800);
                font-size: var(--fs-600);
            }
        }

    }



}

.primary-navigation {
    position: fixed;
    inset: 0;
    /* background-color: var(--dark-blue-65); */
    translate: 100% 0;
    transition: translate 250ms ease-out;

    .nav-close {
        margin-inline-start: auto;
    }

    .nav-menu {

        /* background-color: transparent; */


        position: absolute;
        inset: 0 0 0 35%;

        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 6rem;

        .nav-list {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        a {
            font-weight: var(--fw-500);
            padding: .5em 1em;
            color: var(--white);
        }

        a:hover {
            color: var(--white);
            outline: solid 2px var(--white);
        }

        a:focus-visible {
            color: var(--white);
            outline: solid 2px var(--white);
        }
    }

}

.content-img {
    width: 300px;
    /* m: 300px; */
    
}

@media (width > 48em) {
    .primary-header {

        button {
            display: none;
        }

        .primary-navigation {
            position: initial;
            grid-column: 3 / 4;
            align-self: center;
            translate: 0 0;
            transition: none;

            .nav-menu {
                position: initial;
                padding: 0;

                .nav-list {
                    flex-direction: row;
                    justify-content: end;
                }
            }
        }
    }

    .content-img{
        /* width: 35em; */
        /* width: 100%; */
        width: 600px;
    }
}



/* =========== Make transition to Youtube video =========== */

.overlay {
    position: relative;

}

.yt-video {
    display: flex;
    /* was block */
    justify-content: center;


}

.yt-video {
    display: none;
    /* z-index: 10; */

}

iframe {
    aspect-ratio: 16 / 9 ;
    width: 100% !important;
    max-height: 60vh;
}




/* =========== Make transitions =========== */

/* @keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(5rem)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes slide-down {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(5rem)
    }
}

::view-transition-new(yt-video) {
    animation: 600ms ease 500ms both fade-in,
        600ms ease 50ms both slide-up;
}

::view-transition-old(yt-video) {
    animation: 600ms ease 500ms both fade-out,
        600ms ease 50ms both slide-down;
} */