/* Base Styles */
body {
    background: url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
    color: #000000;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout */
.container-fluid {
    padding: 0;
}

.hero-section {
    min-height: auto;  /* Changed from 100vh to remove extra space */
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;  /* Reduced from 1rem */
    padding-top: 0.5rem;  /* Added small top padding */
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 0.5rem;  /* Reduced from 1rem */
}

.logo-image {
    width: 320px;
    height: auto;
    margin-bottom: 2rem;  /* Increased from 0.75rem */
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    color: #ffffff;
}

.lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    color: #ffffff;
}

.prize-amount-text {
    color: #eb2027;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 110%;
}

/* Game Container */
.game-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;  /* Removed gap completely */
}

/* Button Container */
.button-container {
    margin-bottom: 0;
    z-index: 100;
}

/* Spin Button */
.spin-button {
    background: #5bb450;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    animation: buttonAttention 2s infinite;
    width: 100%;
}

.spin-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px #ffffff,
                0 0 30px #5bb450;
    background: #52a447;
}

.spin-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 114, 255, 0.4);
}

.spin-button::before {
    content: '👇';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

.claim-button {
    background: #5bb450;  /* Using the same gold color as prize amount */
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 1.5rem;
    animation: nudgeButton 2s infinite;
}

.claim-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #eb2027;  /* Slightly lighter on hover */
}

.claim-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes nudgeButton {
    0%, 100% {
        transform: translateX(0);
    }
    5%, 15% {
        transform: translateX(-5px);
    }
    10%, 20% {
        transform: translateX(5px);
    }
    25% {
        transform: translateX(0);
    }
}
/* Wheel Container */
.wheel-container {
    width: min(200vh, 200vw);
    height: min(200vh, 200vw);
    max-width: 750px;
    max-height: 750px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0rem;  /* Increased negative margin to pull wheel up more */
}

.wheel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: slowRotate 20s linear infinite;
}

.wheel-pointer {
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
    z-index: 20;
    animation: pointerPulse 1.5s ease-in-out infinite;  /* Added animation */
    transform-origin: bottom;  /* Make it pulse from the bottom point */
}

/* Modal Styles */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: #333;
}

/* Confetti Canvas Styles */
canvas#confetti-canvas {
    position: fixed !important;
    z-index: 10000 !important;  /* Higher than modal and backdrop */
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure modal is below confetti */
.modal {
    z-index: 1050;
}
.modal-backdrop {
    z-index: 1040;
}

.modal-logo {
    width: 200px;
    margin-bottom: 1rem;
}

.congratulations {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.prize-box {
    background: #000000;
    padding: 2rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.2);
}

.prize-amount {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #eb2027;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-text {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-content {
    position: relative;
    overflow: hidden;  /* Add this to contain confetti */
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.modal-body {
    position: relative;
    z-index: 2;
}

.confetti {
    position: absolute;
    top: -10px;
    will-change: transform;
    opacity: 0;  /* Start invisible */
}

@keyframes confettiFall {
    0% {
        top: -10px;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiSway {
    0% {
        margin-left: -15px;
    }
    50% {
        margin-left: 15px;
    }
    100% {
        margin-left: -15px;
    }
}

.confetti.animate {
    animation: 
        confettiFall var(--fall-duration, 1.5s) linear forwards,
        confettiSway var(--sway-duration, 0.5s) ease-in-out infinite;
    animation-delay: var(--fall-delay, 0s);
}

/* Animations */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes buttonAttention {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pointerPulse {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);  /* Enlarge by 20% */
    }
    100% {
        transform: translateX(-50%) scale(1);
    }

}

/* Social Footer */
.social-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-footer {
    display: inline-flex;
}

.social-icon {
    width: 50px;
    height: 50px;
}

.social-link {
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.contact {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0;
    padding: 0
}

.contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
}

.contact a:hover {
    color: #007bff;
}

/* Features Container */
.features-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 300px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: 250px;
    height: 100px;
}

.feature-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.feature-text {
    color: black;
    flex: 1;
    min-width: 0;
}

.feature-text h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #eb2027;
    font-weight: bold;
}

.feature-text p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Responsive Design  - Desktop Screen */
@media(min-width: 1255px) {
    .logo-image {
        width: 480px;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .lead {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .game-container {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .features-container {
        order: 2;
        padding-left: 2rem;
    }

    .wheel-container {
        order: 1;
        width: min(440vh, 440vw);
        height: min(440vh, 440vw);
        max-width: 720px;
        max-height: 720px;
        margin-top: 0rem;
    }

    .wheel-pointer {
        width: 80px;
        animation: pointerPulseMobile 1.5s ease-in-out infinite;
    }

    .button-container {
        width: 100%;
        max-width: 300px;
    }

    .spin-button {
        padding: 12px 30px;
        font-size: 1.3rem;
    }

    .header-section {
        margin-bottom: 0.5rem;
    }

    .claim-button {
        padding: 12px 30px;
        font-size: 1.3rem;
        margin-top: 1rem;
    }
    
    .prize-amount {
        font-size: 2.8rem;
    }
    
    .prize-text {
        font-size: 1.1rem;
    }

    #spinButton2 {
        display: none;
    }

}


/* Responsive Design  - Tablet Screen */
@media(max-width: 1255px) {
    .features-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }

    #spinButton {
        display: none;
    }

/* Responsive Design - Mobile */
@media (max-width: 800px) {

    .features-container {
        display: none;
    }

    #spinButton2 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .container-fluid {
        padding: 0;
        overflow-x: hidden;
    }

    .hero-section {
        padding: 0.25rem;
    }

    .content-wrapper {
        padding: 0.25rem;
    }

    .logo-image {
        width: 90vw;
        max-width: 320px;
    }

    .wheel-container {
        width: 300vw;
        height: 300vw;
        max-width: 400px;
        max-height: 400px;
    }

    .wheel-pointer {
        width: 30px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }
}

}