/* Overlay Styling */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #021F65; /* Static blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease; /* Smooth transition for fade-out */
}

.overlay-content h1 {
    font-size: 50px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    opacity: 0;
    animation: slideInDown 1s ease-in-out forwards;
    animation-delay: 0.2s;
}

.overlay-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay-content p {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.3s;
}

.play-icon {
    width: 300px;
    height: 300px;
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 1s ease-in-out forwards, pulse 2s infinite ease-in-out;
    animation-delay: 0.4s, 1.4s;
}

#overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}