/* Define the custom font */
@font-face {
    font-family: 'RetroComputer';
    src: url('fonts/retro_computer_personal_use.ttf') format('truetype');
}

/* Global styles */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'RetroComputer', sans-serif; /* Apply the custom font here */
}

.main-container {
    position: relative;
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: black;
    z-index: 1;
}

/* Birthday message container */
.birthday-message {
    position: absolute;
    z-index: 2;
    width: 70%; /* Percentage of container width instead of fixed pixels */
    height: 25%; /* Percentage of container height */
    max-width: 100%;
    max-height: 50%;
    bottom: 2%; /* Percentage instead of fixed pixels */
    left: 2%;
    color: white;
    text-align: left;
    border-radius: 10px;
    font-size: 1.9vw; /* Viewport-width-based font size instead of fixed pixels */
    font-family: 'RetroComputer', sans-serif;
    visibility: hidden;
    overflow-y: hidden;
    line-height: 2.0;
    background-color: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    padding: 1.5%; /* Percentage-based padding */
    filter: blur(0.7px); /* Add a slight blur effect */
    text-shadow:
        2px 5px 3px rgb(33, 97, 79)
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Low opacity black cast */
    z-index: 3; /* Ensure it covers everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: black;
    z-index: 1;
    object-fit: cover; /* Make sure the video covers the whole screen */
}

/* Freeze the video when paused */
#background-video.paused {
    animation-play-state: paused;
}

/* Ensure the play button is above the overlay */
.play-button {
    z-index: 4; /* Higher z-index to be above the overlay */
    position: absolute;
    font-size: 3.7vw; /* Viewport-width-based font size */
    color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 50%;
    width: 4%; /* Percentage of container width */
    height: 0; /* Set to 0 */
    padding-bottom: 4%; /* Make it square */
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 13%;
    right: 18%;
    transition: transform 0.3s ease; /* Smooth transition effect */
}

/* Remove the ::before pseudo-element */
.play-button::before {
    content: ""; /* Remove any content */
}

.play-button:hover {
    transform: scale(1.1); /* Enlarge the button by 10% */
}

.play-button.shine {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1))
                drop-shadow(0 0 30px rgba(255, 255, 255, 1))
                drop-shadow(0 0 40px rgba(255, 255, 255, 1));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
}