* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

#location-section {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

#wheel-container {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto 2rem;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
}

#spin-button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
}

#spin-button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 87, 34, 0.4);
}

#spin-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: none;
}

#result-section {
    text-align: center;
}

#prize-result {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

#prize-result.hidden {
    display: none;
}

#prize-text {
    font-size: 1.3rem;
    margin: 1rem 0 2rem;
}

#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#claim-button, #spin-again {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    margin: 0 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#claim-button {
    background-color: #4caf50;
    color: white;
}

#spin-again {
    background-color: #f0f0f0;
    color: #333;
}

#claim-button:hover {
    background-color: #388e3c;
}

#spin-again:hover {
    background-color: #e0e0e0;
}

#deals-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#deals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.deal-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.deal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.deal-content {
    padding: 1.2rem;
}

.deal-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.deal-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.deal-location {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.deal-button {
    display: inline-block;
    background-color: #6e48aa;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.deal-button:hover {
    background-color: #5a3a8a;
}

footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ddd;
    margin: 0 1rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    #wheel-container {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 600px) {
    #wheel-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    #wheel-container {
        width: 320px;
        height: 320px;
    }
    
    #wheel-marker {
        width: 35px;
        height: 60px;
    }
    
    #wheel-marker::after {
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 12px solid #ff3d00;
    }
}

/* Enhance the wheel marker for better visibility */
#wheel-marker {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: linear-gradient(90deg, rgba(255,87,34,0.8) 0%, #ff5722 100%);
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 2px solid white;
    border-right: none;
    animation: pulse-marker 1.5s infinite alternate;
}

#wheel-marker::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 20px solid #ff5722;
}

/* Add a pulsing animation for the marker */
@keyframes pulse-marker {
    0% { box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: -3px 0 20px rgba(255, 87, 34, 0.8); }
}

/* Add dotted line indicator */
#wheel-marker::before {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    width: 120px;
    height: 4px;
    background-image: linear-gradient(90deg, #ff5722 50%, transparent 50%);
    background-size: 15px 4px;
    transform: translateY(-50%);
}

.return-message {
    margin-top: 1.5rem;
    color: #666;
    font-style: italic;
}

/* Style for disabled wheel */
.wheel-disabled {
    opacity: 0.7;
    filter: grayscale(40%);
    cursor: not-allowed !important;
}

/* Countdown timer styling */
#countdown-timer {
    font-size: 1.1rem;
    color: #ff5722;
    margin: 0.5rem 0;
    font-weight: bold;
}

/* Alternative wheels section styling */
#alternative-wheels-section {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#alternative-wheels-section.hidden {
    display: none;
}

.alt-wheels-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.alt-wheels-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.alt-wheel-card {
    width: 250px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.alt-wheel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.alt-wheel-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
}

.horoscope-icon {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
}

.food-icon {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
}

.premium-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.alt-wheel-card h3 {
    margin-bottom: 0.8rem;
    color: #333;
}

.alt-wheel-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alt-wheel-button {
    padding: 0.6rem 1.2rem;
    background-color: #6e48aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.alt-wheel-button:hover {
    background-color: #5a3a8a;
}

.premium-button {
    background-color: #FFD700;
    color: #333;
}

.premium-button:hover {
    background-color: #FFC107;
}

@media (max-width: 768px) {
    .alt-wheels-container {
        flex-direction: column;
        align-items: center;
    }
    
    .alt-wheel-card {
        width: 90%;
        max-width: 300px;
    }
}

/* Styling for the sponsored deals section */
#sponsored-deals-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff9f5;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#sponsored-deals-section h2 {
    color: #ff5722;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

#sponsored-deals-section h2::after {
    content: 'AD';
    font-size: 0.6rem;
    background-color: #ff5722;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    position: absolute;
    top: -5px;
    right: -25px;
}

.sponsored-tagline {
    color: #777;
    margin-bottom: 1.5rem;
    font-style: italic;
}

#sponsored-deals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sponsored-deal-card {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff5722;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsored-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sponsored-badge {
    background-color: #ff5722;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

/* For transitions */
#deals-section {
    transition: opacity 0.5s ease, max-height 0.5s ease;
    overflow: hidden;
}

#deals-section.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
} 