/* Spin Wheel Marketing Landing Page - Styles */

* {
    box-sizing: border-box;
}

body{
    background: #000000 url('/bg.png') no-repeat center center fixed;
    background-size: cover;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

canvas{
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 0;
}

#kidImage {
    position: fixed;
    left: 8vw;
    bottom: 0;
    width: clamp(220px, 30vw, 515px);
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

@media (orientation: portrait) {
    #kidImage {
        left: calc(-8vw);
        bottom: 4vh;
    }
}

/* Loading State */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #fff;
}

#loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loading p {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

/* Promo Modal - inherits from .modal base styles */

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #26724E;
    animation: modalSlideIn 0.3s ease-out;
}

.prize-modal {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 380px;
    width: 100%;
    box-shadow: none;
}

.prize-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.prize-hero {
    background: radial-gradient(circle at top, #2b1b30, #0a0a10 70%);
    padding: 48px 24px 32px;
    text-align: center;
}

.prize-amount {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #f4dac2;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.prize-body {
    background: #0c0c11;
    text-align: center;
    padding: 32px 28px 36px;
}

.prize-eyebrow {
    color: #c4c7d4;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.prize-description {
    color: #ffe079;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 28px;
}

.prize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 0;
    border-radius: 999px;
    background: linear-gradient(120deg, #f2c269, #c37b2f);
    color: #1b1304;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(242, 194, 105, 0.4);
}

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

.modal-content h2 {
    color: #26724E;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.modal-content p {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 25px 0;
}

.promo-code-box {
    background: #000;
    border: 2px dashed #26724E;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.promo-code {
    font-size: 32px;
    font-weight: 700;
    color: #26724E;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px 5px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #26724E 0%, #1a5038 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(38, 114, 78, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #444;
}

.btn-secondary:hover {
    border-color: #26724E;
    color: #26724E;
}

/* Legal Modals */
.modal-legal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 114, 78, 0.3) transparent;
}

/* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
.modal-legal::-webkit-scrollbar {
    width: 8px;
}

.modal-legal::-webkit-scrollbar-track {
    background: transparent;
}

.modal-legal::-webkit-scrollbar-thumb {
    background: rgba(38, 114, 78, 0.3);
    border-radius: 4px;
}

.modal-legal::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 114, 78, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.modal-close:hover {
    color: #26724E;
}

.modal-body {
    color: #ccc;
}

.modal-body h3 {
    color: #26724E;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    margin: 10px 0;
    line-height: 1.6;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body ul li {
    margin: 5px 0;
    line-height: 1.6;
}

.modal-body ol li {
    margin: 12px 0;
    line-height: 1.6;
}

.modal-body .last-updated {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.help-box {
    background: rgba(38, 114, 78, 0.1);
    border-left: 4px solid #26724E;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.help-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    z-index: 100;
}

footer a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 15px #722626;
    margin: 0 15px;
    font-size: 12px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #26724E;
}

footer .age-warning {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
}

/* Error State */
#errorMessage {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    display: none;
    z-index: 10001;
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.4);
}

#errorMessage.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
    .modal-content h2 {
        font-size: 24px;
    }
    .promo-code {
        font-size: 24px;
    }
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    footer {
        padding: 10px;
    }
    footer a {
        margin: 5px;
    }
    .modal-legal {
        max-height: 90vh;
        padding: 40px 20px;
    }
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}
