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

html, body {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

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

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

.content-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding-left: 20px;
}

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

.niraya-logo {
    max-width: 38vw;
    max-height: 38vh;
    margin-top: 15px;
    animation: swing 20s infinite ease-in-out;
}

h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: white;
    text-align: center;
    margin-top: -20px;
}

.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: 90px;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    transition: transform 0.3s;
    text-align: center;
}

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

.logo-box p {
    font-size: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: white;
    text-align: center;
}

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

.logo-box:hover {
    transform: scale(1.05);
}

.niraya-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
    transform: scale(1.1);
}

.niraya-icon img {
    width: 70px;
    height: auto;
    margin-bottom: 5px;
}

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

.niraya-icon p {
    font-size: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: white;
    text-align: center;
}

.hide-icons {
    display: none;
}

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

#Modal_new-icon {
    display: none;
}

#introModal {
    display: flex;
}

.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-video {
    border-radius: 10px;
    max-height: 400px;
    object-fit: cover;
}

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

.modal-text-title {
    color: white;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-top: 30px;
}

.modal-text-subtitle {
    color: white;
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin-top: 30px;
}

.modal-text-subtitle-2 {
    color: white;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    margin-top: 20px;
}

.close {
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    font-size: 24px;
    font-weight: lighter;
    cursor: pointer;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

.close:hover {
    color: #ccc;
}

.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.7);
    z-index: 9999;
}

.intro-content {
    position: relative;
    text-align: center;
    padding: 0;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.intro-content h1 {
    font-size: 32px;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    margin-bottom: 40px;
}

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

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

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

.three-column-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.three-column-grid div {
    flex: 1;
    text-align: center;
}

.three-column-grid b {
    font-size: 18px;
    color: white;
}


.telegram-button {
    display: inline-block;
    background-color: white;
    color: black;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 25px;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.telegram-button:hover {
    background-color: rgb(218, 127, 17);
    color: white;
}

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

.x-button {
    display: inline-block;
    text-align: center;
    background-color: white;
    color: black;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 25px;
    margin-top: 5px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.x-button:hover {
    background-color: rgb(218, 127, 17);
    color: white;
}

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

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

.form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: transparent;
    max-width: 700px;
    padding-top: 40px;
    margin: 0 auto;
    color: white;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container .form-group {
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    padding: 10px 15px;
    font-size: 16px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: rgb(218, 127, 17);
    color: white;
}

@media (max-width: 900px) {
    
    body {
        background-image: url('images/bg_mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .niraya-logo {
        max-width: 220px;
        width: 100%;
        height: auto;
    }

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

    .logo-box {
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-box img {
        width: auto;
        height: 30px;
    }

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

    .niraya-icon p {
        font-size: 9px; 
    }

    .content-middle {
        justify-content: center;
        height: 100%;
        width: 100%;
        padding-left: 10px;
    }

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

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

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

    .left-icons {
        padding-left: 20px;
    }

    .left-icons img {
        width: 50px;
        height: auto;
    }

    .left-icons p {
        font-size: 12px;
    }

    .footer-icons img {
        width: 40px;
        height: auto;
    }

    .footer-icons p {
        font-size: 8px;
    }
}
