body {
    background-image: url('../img/gubatfront.png');
    background-size: 100% 100%; /* Ensures the image covers the entire page */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    height: 100vh; 
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%; 
    width: 100%; 
}

#HOME {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    position: relative; /* Ensure the content is centered */
}

/* Video modal styles */
#videoModal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Container */
.modal-content {
    width: 90%;
    max-width: 1200px;
    height: auto;
    position: relative;
}

/* Video inside modal */
iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    background: red;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease, background 0.2s ease;
}

.close:hover {
    background: darkred;
    transform: scale(1.1);
}

/* Prevent body scrolling when modal is open */
.modal-open {
    overflow: hidden;
}

/* Center the "Open Video" Button */
button {
    padding: 22px 34px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 58px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: 10% center; /* Center the background image */
    }

    .modal-content {
        width: 95%;
    }

    .close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        line-height: 40px;
    }

    button {
        font-size: 36px;
        padding: 10px 20px;
    }

    .LOGO {
        width: 120px;
        height: 80px;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .modal-content {
        width: 80%;
    }
}
