* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    color: white;
}


.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-middle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    text-align: left;
    margin-left: 20px;
}

.niraya-logo {
    max-width: 700px;
    height: auto;
    margin: 0;
    margin-top: 15px;
    animation: swing 2s infinite ease-in-out;
}

@keyframes swing {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-20px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(20px);
    }
    100% {
        transform: translateX(0);
    }
}

.niraya-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.niraya-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.niraya-icon img {
    width: 50px;
    height: auto;
}

.niraya-icon:hover {
    transform: scale(1.1);
}

.niraya-icon p {
    font-size: 10px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    text-align: center;
    margin-top: 5px;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    overflow-y: hidden;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    background: rgb(252,127,213);
    background: linear-gradient(0deg, rgba(252,127,213,0.5) 0%, rgba(190,174,247,0.5) 35%, rgba(85,233,232,0.5) 100%);
    border-radius: 10px;
    transition: transform 0.3s;
    text-align: center;
}

.logo-box img {
    width: 45px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.logo-box p {
    font-size: 9px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    text-align: center;
}

.logo-box a {
    text-decoration: none;
    color: inherit;
}

.logo-box:hover {
    transform: scale(1.05);
    background: rgb(252,127,213);
    background: linear-gradient(0deg, rgba(252,127,213,0.8 ) 0%, rgba(190,174,247,0.8) 35%, rgba(85,233,232,0.8) 100%);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-banner {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-text {
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 14px;
    margin-top: 30px;
}

.modal-text-title {
    color: white;
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 22px;
    margin-top: 30px;
}

.close {
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgb(252,127,213);
    font-size: 26px;
    font-weight: lighter;
    cursor: pointer;
    padding: 7px;
    border-radius: 50%;
}

.close:hover {
    color: white;
}

/* Intro Modal */
.intro-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.intro-content {
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
}

.intro-content h1 {
    font-size: 32px;
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.intro-content p {
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    margin-bottom: 30px;
}

.intro-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Handjet", sans-serif;
    font-weight: 700;
    border: none;
    background-color: white;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.intro-btn:hover {
    background-color: #606060;
}

#sound-control img {
    width: 30px;
    height: 30px;
    margin: 20px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

#sound-control:hover img {
    filter: brightness(1);
}


@media (max-width: 900px) {

    body {
        background-image: url('images/bg_mobile.jpg');
        background-size: cover;
        background-position: center;
    }


    .logo-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        justify-items: center;
        padding: 10px;
    }

    .logo-box {
        width: 70px;
        height: 70px;
    }

    .logo-box img {
        width: 35px;
    }

    .content-middle {
        justify-content: center;
        height: 100%;
    }
    
    .niraya-logo {
        max-width: 250px;
    }

    .niraya-icon img {
        width: 40px;
    }
    
    .niraya-icon p {
        font-size: 8px;
    }

    .modal-text {
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}