/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

.welcome-page {
    height: 100vh; /* Ensure the welcome page fills the viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.welcome-page video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.welcome-page .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 83, 70, 0.5); /* Adjust opacity for a softer look */
    z-index: -1;
}

.welcome-page .modal {
    background-color: rgba(255, 255, 255, 0.1); /* More transparent, modern glass-like effect */
    padding: 2em 3em;
    border-radius: 15px;
    backdrop-filter: blur(10px); /* Apply blur effect for modern look */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    z-index: 1;
}

.welcome-page h1 {
    font-size: 1.7em;
    margin: 0.2em 0;
    font-weight: 300;
}

.welcome-page h2 {
    font-size: 3em;
    font-weight: bold;
    margin: 0.2em 0;
}

.welcome-page p {
    font-size: 1.3em;
    margin: 1em 0;
    font-weight: 300;
}

.welcome-page .buttons {
    margin-top: 1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em; /* Adds space between the buttons */
}

.welcome-page .btn {
    text-decoration: none;
    color: white; /* Ensure the text is white */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.6em 1.5em;
    border-radius: 30px;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
    min-width: 120px; /* Ensures the buttons don't become too small */
    text-align: center;
    flex: 1 1 auto; /* Allows buttons to be flexible in width */
}

/* Additional states to fix the hover issue */
.welcome-page .btn:hover,
.welcome-page .btn:focus,
.welcome-page .btn:active {
    color: white; /* Ensure text remains white */
    background-color: rgba(0, 0, 0, 0.7); /* Optional: slightly darker background on hover */
    outline: none; /* Removes default browser focus outline */
    text-decoration: none; /* Ensures no underline */
}

@media (max-width: 480px) {
    .welcome-page .buttons {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 0.5em; /* Adjust gap between buttons on small screens */
    }

    .welcome-page .btn {
        width: 89%; /* Full width for buttons on small screens */
    }
}
