/* Font imported in HTML */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    /* Midnight Gala Theme: Almost black with a hint of deep navy */
    background: linear-gradient(to bottom, #0f1219 0%, #000000 100%);
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

header {
    margin-bottom: 50px;
    position: relative;
}

header::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    /* Champagne Gold - more subtle */
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
    margin: 25px auto 0;
    opacity: 0.6;
}

h1 {
    font-family: 'Outfit', sans-serif;
    /* Champagne / Muted Gold */
    color: #e6d2b5; 
    margin: 0 0 15px 0;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 4px; /* More spacing for luxury feel */
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    font-weight: 600; /* Thinner font looks more elegant */
}

p {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Grid Layout for Movies */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* Larger gap */
}

.box {
    width: calc(50% - 12.5px); /* 2 columns with 25px gap */
    /* Very dark, almost black background */
    background: #0a0a0a;
    border-radius: 2px; /* Minimalist corners */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Very subtle border */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    /* Subtle champagne glow instead of bright yellow */
    border-color: rgba(197, 160, 89, 0.4);
}

.box.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(100%);
    transform: none;
}

.box img {
    width: 100%;
    height: 320px; /* Taller images */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.box:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 20px 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600; /* Lighter weight for elegance */
    font-size: 0.95rem; /* Slightly smaller */
    color: #e6d2b5; /* Champagne gold */
    /* Subtle gradient, mostly black */
    background: linear-gradient(to top, #050505 0%, rgba(10, 10, 10, 0.95) 100%);
    text-transform: uppercase;
    letter-spacing: 3px; /* Wider spacing */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: none; /* Remove heavy shadow for cleaner look */
}

/* Success Message */
#success-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
    animation: fadeIn 0.5s;
}

.hidden {
    display: none;
}

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

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #0f0f0f; /* Almost black */
    border: 1px solid rgba(230, 210, 181, 0.2); /* Subtle champagne border */
    border-radius: 4px; /* Minimalist */
    padding: 40px 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal h2 {
    color: #e6d2b5;
    margin-top: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.highlight {
    color: #fff;
    font-weight: 400;
    border-bottom: 1px solid #e6d2b5;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: none;
    border-radius: 2px;
}

button:active {
    transform: scale(0.98);
}

.btn-cancel {
    background: transparent;
    color: #888;
    border: 1px solid #333;
}

.btn-cancel:hover {
    background: #111;
    color: #fff;
    border-color: #555;
}

.btn-confirm {
    background: #e6d2b5;
    color: #000;
    border: 1px solid #e6d2b5;
}

.btn-confirm:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(230, 210, 181, 0.3);
}

.btn-reset {
    background: transparent;
    color: #a93226;
    font-size: 0.75rem;
    padding: 10px 20px;
    border: 1px solid #521913;
}

.btn-reset:hover {
    background: #1a0505;
    color: #c0392b;
    border-color: #c0392b;
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 2px;
    color: #e6d2b5;
    font-size: 1.1rem;
    text-align: left; /* Changed from center to left for better typing experience */
    outline: none;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    text-transform: none; /* Ensure no uppercase transformation */
}

.password-input:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: #e6d2b5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
}

/* Results Page Specifics (re-adding them just in case) */
.result-bar-container {
    margin: 20px 0;
    text-align: left;
}

.movie-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #e6d2b5;
    font-size: 0.9rem;
}

.progress-bg {
    background-color: rgba(255,255,255,0.05);
    border-radius: 2px;
    height: 8px; /* Thinner, more elegant */
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #b39b5e, #e6d2b5);
    height: 100%;
    width: 0%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Success Page */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.checkmark-wrapper {
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #e6d2b5;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #e6d2b5;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #e6d2b5;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px transparent;
    }
}

.btn-results {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    background: transparent;
    color: #e6d2b5;
    border: 1px solid #e6d2b5;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-results:hover {
    background: #e6d2b5;
    color: #000;
    box-shadow: 0 0 20px rgba(230, 210, 181, 0.3);
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none; /* Hidden by default, shown via JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    background: linear-gradient(145deg, #1a1d26, #0f1219);
    border: 1px solid #c5a059;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.1);
}

.cookie-modal-content h2 {
    color: #c5a059;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cookie-modal-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-modal-content .small-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 30px;
}

.cookie-modal-content button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: #c5a059;
    color: #000;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-content button:hover {
    background: #e6d2b5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}
