/* Base styles for all devices */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Fallback background */
}

.video-background video {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Changed from 'cover' to 'contain' to show full video */
    object-position: center;
}

/* Hide vertical video by default on larger screens */
.vertical-video {
    display: none;
}

/* For mobile and tablets (portrait) - show vertical video */
@media (max-width: 1024px) and (orientation: portrait) {
    .horizontal-video {
        display: none;
    }
    
    .vertical-video {
        display: block;
    }
    
    .video-background video {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
}

/* Unmute Button */
.unmute-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    backdrop-filter: blur(5px);
}

.unmute-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.unmute-button:active {
    transform: scale(0.95);
}

.unmute-button svg {
    width: 24px;
    height: 24px;
}

/* Play Overlay */
.play-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.play-overlay.hidden {
    display: none;
}

.play-button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    outline: none;
}

.play-button:active {
    transform: scale(0.95);
}

.play-button svg {
    margin-left: 5px; /* Offset the play icon slightly to the right */
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .horizontal-video {
        display: none;
    }
    
    .vertical-video {
        display: block;
    }
    
    .video-background video {
        width: 100%;
        height: 100vh;
        max-height: 100%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
}
