/* Load Fonts */
@font-face {
    font-family: 'Cako';
    font-weight: bold;
    src: url('../typeface/Cako-Black.otf') format('opentype');
}

@font-face {
    font-family: 'Cako';
    font-weight: normal;
    src: url('../typeface/Cako-Regular.otf') format('opentype');
}

:root {
    --primary-font-color: hsl(159, 91%, 46%); /* Define a root variable for primary color */
  }


body {
    background: hsl(159, 88%, 13%);
    display: grid;
    grid-template-rows: auto auto auto auto;
}

#bgVid {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

#logo {
    grid-column-start: 1;
    grid-row-start: 1;
    margin-left: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

#title {
    grid-column-start: 1;
    grid-row-start: 1;
    font-family: Cako;
    font-weight: bold;
    color: var(--primary-font-color);
    font-size: 60px;
    margin-top: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#subtitle {
    grid-column-start: 1;
    grid-row-start: 1;
    font-family: Cako;
    color: var(--primary-font-color);
    font-size: 30px;
    text-align: center;
    margin-top: 330px;
}

#subtitle:nth-of-type(2) {
    margin-top: 280px;
}


#vid {
    grid-column-start: 1;
    grid-row-start: 2;
    margin: 60px auto;
    width: 100%;
    max-width: 950px;
}

#vid iframe {
    width: 100%;
    height: 500px;
}

#text {
    grid-column-start: 1;
    grid-row-start: 3;
    font-family: Cako;
    color: var(--primary-font-color);
    font-size: 25px;
    width: 100%;
    max-width: 950px;
    margin: 20px auto;
}


.image-gallery {
    grid-column-start: 1;
    grid-row-start: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gallery-image {
    max-width: 80%;
    height: auto;
    margin: 10px;
    cursor: pointer;
}


.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.modal-content {
    position: relative;
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.modal-title {
    position: relative;
    color: var(--primary-font-color);
    font-family: 'Cako', sans-serif;
    text-align: left;
    width: 100%;
    margin-top: 20px;
}




.modal-title p {
    margin: 2px 0;
    padding: 0;
}









.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: var(--primary-font-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -50px;
    color: var(--primary-font-color);
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.close:hover, .prev:hover, .next:hover {
    color: #bbb;
}

.gallery-image {
    cursor: pointer;
}



@media only screen and (max-width: 800px) {
    body {
        background: hsl(159, 88%, 6%);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        transform: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #bgVid {
        display: none;
    }

    #logo {
        width: auto;
        margin: 20px 0;
        position: static;
        align-self: center;
    }

    #title {
        font-size: 36px;
        margin-top: 10px;
    }
    
    #subtitle {
        font-size: 20px;
        margin-top: 10px;
    }
    
    #subtitle:nth-of-type(2) {
        margin-top: 10px;
    }

    #vid {
        position: relative;
        width: calc(100% - 40px);
        max-width: 100%;
        margin: 30px 20px;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    }
    
    #vid iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    iframe {
        width: 100%;
        max-width: 100%;
    }

    #text {
        width: 90%;
        margin: 20px 0;
        padding: 0 20px;
    }

    .image-gallery {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .gallery-image {
        width: 90%;
    }
}



