:root {
    --primary-color: #8c5920;
    --secondary-color: #6d461a;
    --accent-color: #a97a3f;
    --text-color: #2d3748;
    --light-text: #718096;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
}

/* Banner background */
.banner-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url('images/banner-1.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner-background::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Overlap slightly to avoid rendering gaps */
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(140, 89, 32, 0), #8c5920);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #8c5920;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    position: relative;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.main-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 190px; /* Adjusted down by 40px */
}

.language-selector {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 3;
}

.language-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #856a4f;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #856a4f;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ticket-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px; /* Reduced from 100px since we added margin to main-container */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

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

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 40px; /* Final adjustment */
}

.subtitle {
    font-size: 1.2rem;
    color: #856a4f;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

.qr-container {
    text-align: center;
    margin: 30px 0 8px 0;
    position: relative;
}

.qr-inner {
    position: relative;
    display: inline-block;
    height: 100%;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(140, 89, 32, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

/* Matrix-style digital waterfall */
.matrix-waterfall {
    position: absolute;
    top: 5%;
    left: 100%;
    width: 40px;
    height: 90%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: flex-start;
}

.matrix-column {
    position: absolute;
    left: 0;
    width: 100%;
    color: #856a4f;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-shadow: none;
    white-space: pre;
    line-height: 1.1;
    display: block;
    top: 0;
    animation: matrix-vertical-loop 12s linear infinite;
}

@keyframes matrix-vertical-loop {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

.ticket-code {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 8px 0 20px 0;
    box-shadow: 0 8px 25px rgba(169, 122, 63, 0.3);
}

.description {
    background: rgba(140, 89, 32, 0.1);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin-top: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    min-width: 150px;
    z-index: 1001;
}

.language-dropdown.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 10px;
    margin: 5px;
}

.language-option:hover {
    background: rgba(140, 89, 32, 0.1);
}

.ticket-status {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    border: none;
    color: white;
}

.ticket-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ticket-status-success {
    background: #ffffff;
    color: #16a34a;
    border: 1px solid #16a34a;
}

.ticket-status-warning {
    background: #d97706;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.screenshot-tip {
    font-size: 12px;
    color: #856a4f;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

@media (max-width: 576px) {
    .title {
        font-size: 2rem;
    }
    
    .ticket-card {
        padding: 20px;
        margin-top: 80px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ticket-status {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
} 