body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* Orientation Warning */
.orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-align: center;
    z-index: 1000;
}

/* Show warning only on mobile devices in portrait mode */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    .orientation-warning {
        display: flex;
    }
    .theater {
        display: none;
    }
}

.speaker-hotspot {
    position: absolute;
    width: 100px; /* Increased width */
    height: 300px; /* Increased height */
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.speaker-hotspot:active {
    background-color: rgba(255, 255, 255, 0.6);
}

.splash-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    opacity: 0;
    animation: splash-animation 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes splash-animation {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.hotspot {
    position: absolute;
    width: 47px;  /* Increased size */
    height: 165px; /* Increased size */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: transparent;
}

.left-speaker {
    top: 35%;
    left: 45%;
}

.right-speaker {
    top: 44%;
    right: 1%;
}

.hotspot:hover::after {
    content: '';
    display: block;
    width: 120px; /* Larger hover area */
    height: 120px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
    animation: splash 0.4s ease-out;
}

@keyframes splash {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.theater-button {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 153, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 153, 0, 1); }
}

button {
    background-color: #008CBA;
    color: white;
    padding: 15px 32px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #005f73;
    transform: scale(1.1);
}

.theater {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('hometheatre.png') no-repeat center center;
    background-size: cover;
}

.screen-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screen-content {
    position: absolute;
    top: 13.8%;
    left: 55%;
    width: 39%;
    height: 44%;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(5deg);
    clip-path: polygon(0.5% 10%, 100% 0%, 100% 100%, .5% 90%);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}
