body {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(30,30,30,0.5)),
                url('../photos/cinema_bg.png');
}

#mainbox {
    background: rgba(20,20,20,0.75);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,215,0,0.25);
    border-left: 6px solid #630d0d;
    border-radius: 12px;
    padding: 50px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: fadeUp 1.2s ease forwards;
    text-align: center;
}

#mainbox h1 {
    font-size: 32px;
    margin-top: -20px;
    margin-bottom: 40px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
    position: relative;
}

#odp {
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
}

.task {
    background: #E5E5E5;
    color: #2c2c2c;
    padding: 12px;
    margin: 8px auto;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: fadeUp 0.5s ease;
}

.row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

#movie {
    width: 60%;
    height: 45px;
    border-radius: 8px;
    padding-left: 12px;
    font-size: 16px;
    background: #f5f5f5;
    color: #2c2c2c;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
    border: none;
    outline: none;
}

#guess {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #2c2c2c;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

#guess:hover {
    background: #ffe45c;
    transform: translateY(-3px);
}

#win {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2b2b2b;
    border-left: 6px solid #630d0d;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    width: 90%;
    max-width: 450px;
    text-align: center;
    color: #FFD700;
    animation: fadeZoom 0.6s ease;
    z-index: 1000;
}

#win .info {
    font-size: 20px;
    margin-bottom: 20px;
}

#close, #again {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    border: none;
    padding: 10px 20px;
    margin: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #2c2c2c;
    transition: 0.3s ease;
}

#close:hover, #again:hover {
    background: #ffe45c;
    transform: translateY(-3px);
}

.hidden {
    display: none !important;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 500px) {
    .row {
        flex-direction: column;
    }
    
    #guess {
        width: 100%;
        padding: 12px;
    }
}
