:root {
    --main-bkgclr: #596DA2;

    --clr-primary-400: hsl(0, 0%, 0%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 0.1rem);
}

body {
    background-color: var(--main-bkgclr);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    /* text-align: center; */
    line-height: 1.6;
    margin: 0 auto;
    padding: 0;
    text-rendering: optimizeSpeed;
}

.primary-navigation {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    font-size: 0.1rem;
    /* background: var(--clr-primary-400); */
    background: rgba(0, 0, 0, 0.7);
    overflow-x: auto;
    white-space: nowrap;
    /* text-align: left; */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-list {
    display: flex;
    /* justify-content: center; */
    gap: 1.5rem;
    list-style: none;
}

.nav-list a {
    position: relative;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-list a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: .2s ease-in;
}

.nav-list a:hover:before {
    width: 100%;
    left: 0;
}

/* .nav-list a:hover,
.nav-list a:focus {
    color: #ebbb1d;
} */

/* Hamburger Icon */
.nav-icon {
    position: relative;
    /* z-index: 1001; */
    width: 26px;
    height: 21px;
    cursor: pointer;
}

.nav-icon span {
    position: absolute;
    width: 50%;
    height: 3px;
    background: #2a1929;
    transition: all 0.2s ease-in-out;
}

.nav-icon span {
    background: #fff;
}

.nav-icon span:nth-child(odd) {
    /* 1, 3, 5 */
    left: 0;
    border-radius: 5px 0 0 5px;
}

.nav-icon span:nth-child(even) {
    /* 2, 4, 6 */
    left: 50%;
    border-radius: 0 5px 5px 0;
}

.nav-icon span:nth-child(1),
.nav-icon span:nth-child(2) {
    top: 0;
}

.nav-icon span:nth-child(3),
.nav-icon span:nth-child(4) {
    top: 9px;
}

.nav-icon span:nth-child(5),
.nav-icon span:nth-child(6) {
    top: 18px;
}

.nav-open .nav-icon span:nth-child(1),
.nav-open .nav-icon span:nth-child(6) {
    transform: rotate(45deg);
}

.nav-open .nav-icon span:nth-child(2),
.nav-open .nav-icon span:nth-child(5) {
    transform: rotate(-45deg);
}

.nav-open .nav-icon span:nth-child(1) {
    top: 5px;
    left: 2px;
}

.nav-open .nav-icon span:nth-child(2) {
    top: 5px;
    left: calc(50% - 2px);
}

.nav-open .nav-icon span:nth-child(3) {
    left: -100%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(4) {
    left: 150%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(5) {
    top: 14px;
    left: 2px;
}

.nav-open .nav-icon span:nth-child(6) {
    top: 14px;
    left: calc(50% - 2px);
}

section {
    padding: 1.25rem;
    /* animation: fade linear both;
    animation-timeline: view();
    animation-range: entry 50% cover 50%; */
}

/* @keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
} */

section:first-child {
    padding-top: 2rem;
}

section:nth-child(even) {
    background-image:
        linear-gradient(45deg,
            #1a1d25,
            #333d58,
            #465375)
}

section a,
section a:visited {
    color: #FFDD00;
    text-shadow: 0px 0px 1px #000;
    text-decoration: none;
    /* font-size: larger; */
    font-weight: 900;
}

article {
    margin-inline: auto;
    max-width: 960px;

}

section h1 {
    font-size: 1.6em;
    line-height: 1.2em;
    text-align: center;
}

section h1.title {
    font-size: clamp(1.5em, 5vw, 2.5em);
    width: fit-content;
    line-height: 1.2;
    /* color: #333d58; */
}

section h2 {
    font-size: 1.4em;
    line-height: 1.2em;
    text-align: center;
}

img,
picture {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

.grid {
    --column-count: 1;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(var(--column-count), 1fr);
}

.card {
    text-align: center;
    border: #000 solid 0px;
    border-radius: 0.7rem;
    background-color: #1a2543;
    overflow: hidden;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    /* animation: auto linear reveal both;
    animation-timeline: view();
    animation-range: entry 15% cover 30%; */
    box-shadow:
        0 1px 1px hsl(0deg 0% 0% / 0.075),
        0 2px 2px hsl(0deg 0% 0% / 0.075),
        0 4px 4px hsl(0deg 0% 0% / 0.075),
        0 8px 8px hsl(0deg 0% 0% / 0.075),
        0 16px 16px hsl(0deg 0% 0% / 0.075);

}

/* @keyframes reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
} */

.card>img {
    z-index: 1;
    height: 260px;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    opacity: 0.6;
    transition: transform .2s ease-out;
    /* Animation */
}

.card>p {
    z-index: 2;
    margin: 0.5rem 1rem;
    text-align: center;
}

.card:hover {
    background-color: #000;
    cursor: pointer;
}

.card:hover>img {
    opacity: 1;
    transform: scale(0.85);
}

.card:hover>p {
    color: #FFDD00;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 48px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: .3s ease;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 20px;
    border: 1px solid #FFDD00;
    border-radius: 0.5rem;
    width: 95%;
    height: 80vh;
    text-align: center;
    overflow: hidden;
}

.modal-content>p {
    text-shadow: 3px 3px 9px #000;
}

/* The Close Button */

.close {
    position: absolute;
    background-color: #000;
    right: 0px;
    top: 0px;
    width: 32px;
    height: 32px;
    /* opacity: 0.3; */
}

.close:hover {
    background-color: rgb(200, 0, 0);
}

.close:hover::before,
.close:hover::after {
    /* opacity: 1; */
    background-color: #fff;
}

.close:before,
.close:after {
    position: absolute;
    top: 7px;
    left: 15px;
    content: ' ';
    height: 16px;
    width: 2px;
    background-color: #FFDD00;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

/* .close {
    position: absolute;
    top: 0;
    right: 0;
    color: #FFF;
    
    font-size: 2rem;
    font-weight: bold;
    background-color: #000;
    padding: 0.02rem 1.2rem;
    text-align: center;
    vertical-align: middle;
    opacity: 0.8;
}

.close:hover,
.close:focus {
    color: #ebbb1d;
    background-color: rgb(100, 10, 10);
    text-decoration: none;
    cursor: pointer;
} */

iframe {
    width: 90%;
    aspect-ratio: 16 / 9;
}

@media screen and (width > 600px) {
    .grid {
        --column-count: 2;
    }

}

@media screen and (width > 960px) {
    body {
        font-size: 1.5rem;
    }

    .nav-list {
        gap: 3rem;
        justify-content: center;
    }

    iframe {
        width: 640px;
        height: 360px;
    }

    .grid {
        --column-count: 3;
    }

    .modal-content {
        width: 80%;
    }

}