/* 🔹 Fixed Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

/* 🔹 Left Side: Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
    margin-left: 30px;
}

.anniversary-logo {
    height: 40px;
}

/* 🔹 Right Side: Register | Login Button */
.nav {
    display: flex;
    align-items: center;
}

.login-button {
    margin-right: 60px;
    background: #0C0C54;
    color: white;
    padding: 10px 35px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.login-button:hover {
    background: #09093D;
}

.login-button:focus,
.close-button:focus,
.claim-button:focus {
    outline: 2px solid #0C0C54;
    outline-offset: 2px;
}

.translate-text {
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
    color: #555;
    cursor: pointer;
    margin-right: 10px;
}

.translate-text:hover {
    color: #333;
    text-decoration: underline;
}

/* 🔹 Adjust body to prevent overlap with the fixed header */
body {
    background: linear-gradient(to right, #ffffff, #d4dee9);
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    padding-top: 80px;
    display: flex;
    justify-content: center;
}

/* 🔹 Main Content Styling */
.container {
    max-width: 1000px;
    width: 90%;
    text-align: center;
}

/* 🔹 Banner Container */
.banner-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* 🔹 Header Image */
.header-banner {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 🔹 Search Bar */
.search-box {
    position: absolute;
    bottom: 48%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px;
    width: 80%;
    max-width: 280px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    flex: 1;
    border-radius: 40px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
}

.search-box button img {
    width: 30px;
}

/* 🔹 Prize Scrolling Section */
.prize-list-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    margin: 50px auto;
    position: relative;
    white-space: nowrap;
}

.prize-list {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    animation: slideAnimation 60s linear infinite;
}

.prize-item {
    width: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* 🔹 Scrolling Animation */
@keyframes slideAnimation {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* 🔹 Centered & Bigger Logo */
.logo2 {
    display: block;
    margin: 30px auto;
    width: 90%;
    max-width: 200px;
    height: auto;
}

/* 🔹 Step Section */
.step-container {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-banner {
    width: 90%;
    max-width: 350px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.step-image {
    width: 90%;
    max-width: 300px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* 🔹 Background Overlay (for dimming effect) */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
}

/* Prize Modal */
.prize-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    color: #222;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-width: 350px;
    width: 90%;
}

/* Show Prize Modal */
.show-modal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    display: block;
}

/* Prize Image Centering */
#prizeImage {
    width: 100%;
    max-width: 250px;
    margin-top: 15px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Ensure image is centered */
}

/* Prize Message */
#prizeMessage {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    color: #1a1a40;
}

/* 🔹 Close Button (X) */
/* Close Button Style */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
}

.close-button:hover {
    color: #ff4c4c;
}

/* 🔹 Claim Button (立即领取) */
.claim-button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1a1a40;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

.claim-button:hover {
    background: #1a1a40;
}

/* 🔹 Loading Animation */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d4dee9;
    color: #1a1a40;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    z-index: 1002;
}

.loading::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    margin: 10px auto 0;
    border: 4px solid #eee;
    border-top: 4px solid #1a1a40;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 🔹 Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .logo {
        height: 35px;
    }

    .anniversary-logo {
        height: 35px;
    }

    .login-button {
        margin-right: 30px;
        padding: 8px 25px;
        font-size: 14px;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    .banner-container {
        max-width: 100%;
    }

    .header-banner {
        max-width: 100%;
        
        margin-bottom: -10px;
    }

    .search-box {
        width: 90%;
        max-width: 280px;
        bottom: 45%;
    }
    
    .prize-item {
        width: 200px;
    }

    .prizes-image {
        max-width: 100%;
    }
    
    .step-banner {
        max-width: 90%;
    }

    .step-image {
        max-width: 100%;
    }
    
    .prize-container {
        max-height: 90vh;
        overflow-y: auto;
    }

    .claim-button {
        width: 80%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prize-list {
        animation: none;
    }
    .loading::after {
        animation: none;
    }
}

.unlock-notice {
    margin-top: 20px;
    font-size: 16px;
    color: #1a1a40;
    background-color: #ffeeba;
    padding: 10px 20px;
    border-radius: 10px;
    display: none; /* will be toggled with JS */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: bold;
}