:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f7f7f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.category-selector {
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: var(--secondary-color);
    color: white;
}

.category-btn:hover {
    transform: translateY(-3px);
}

.category-btn.active {
    background-color: var(--primary-color);
}

.wheel-container {
    margin: 2rem auto;
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1;
}

#wheel {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
}

.wheel-pointer {
    display: none;
}

#spin-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: #ffd700; /* Yellow background */
    color: #000000; /* Black text */
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#spin-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    color: #666666;
}

#spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: #ffe44d; /* Lighter yellow on hover */
}

.result-container {
    margin: 2rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 50px;
}

.cta-section {
    display: none;
}

.feedback-section {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feedback-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

.feedback-section p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #444;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
}

.feedback-form button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.feedback-form button:hover {
    background: #ff5252;
}

.feedback-form button:active {
    transform: translateY(1px);
}

/* Ad Spaces */
.ad-space {
    display: none; /* Hide ad spaces */
}

.ad-placeholder {
    color: #999;
    font-style: italic;
}

.top-ad, .bottom-ad {
    width: 100%;
    height: 90px;
}

.side-ad-left, .side-ad-right {
    width: 160px;
    height: 600px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.side-ad-left {
    left: -180px;
}

.side-ad-right {
    right: -180px;
}

/* Result Animation */
.result-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.result-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #1a237e; /* Deep blue background */
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease-out;
    z-index: 100;
    min-width: 300px;
}

.result-popup h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result-popup .result-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.result-popup.show {
    transform: translate(-50%, -50%) scale(1);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .wheel-container {
        max-width: 90vw;
        margin: 1rem auto;
    }
    
    .side-ad-left, .side-ad-right {
        display: none; /* Hide side ads on mobile */
    }
}
