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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.wheel-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: conic-gradient(
        #FF6B6B 0deg 60deg,
        #4ECDC4 60deg 120deg,
        #45B7D1 120deg 180deg,
        #96CEB4 180deg 240deg,
        #FFEAA7 240deg 300deg,
        #DDA0DD 300deg 360deg
    );
}

.wheel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.text-label {
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    white-space: nowrap;
}

.food-icon {
    font-size: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.wheel-text-1 {
    transform: translate(-50%, -50%) rotate(30deg) translateY(-85px) rotate(0deg);
}

.wheel-text-2 {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-85px) rotate(0deg);
}

.wheel-text-3 {
    transform: translate(-50%, -50%) rotate(150deg) translateY(-85px) rotate(0deg);
}

.wheel-text-4 {
    transform: translate(-50%, -50%) rotate(210deg) translateY(-85px) rotate(0deg);
}

.wheel-text-5 {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-85px) rotate(0deg);
}

.wheel-text-6 {
    transform: translate(-50%, -50%) rotate(330deg) translateY(-85px) rotate(0deg);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #fff;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.controls {
    margin-bottom: 30px;
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.spin-btn:active {
    transform: translateY(0);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.option-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.option-btn i {
    margin-right: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.choice-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.choice-input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.choice-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.save-btn, .reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.reset-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
        border-width: 6px;
    }
    
    .wheel-section span {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .options {
        flex-direction: column;
        align-items: center;
    }
    
    .choice-inputs {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wheel {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }
    .wheel-text {
        font-size: 12px;
    }
    .wheel-text .food-icon {
        display: none;
    }
    .wheel-text .text-label {
        font-size: 14px;
    }
    /* Lower the position of wheel texts on small devices */
    .wheel-text-1 {
        transform: translate(-50%, -50%) rotate(30deg) translateY(-65px) rotate(0deg);
    }
    .wheel-text-2 {
        transform: translate(-50%, -50%) rotate(90deg) translateY(-65px) rotate(0deg);
    }
    .wheel-text-3 {
        transform: translate(-50%, -50%) rotate(150deg) translateY(-65px) rotate(0deg);
    }
    .wheel-text-4 {
        transform: translate(-50%, -50%) rotate(210deg) translateY(-65px) rotate(0deg);
    }
    .wheel-text-5 {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-65px) rotate(0deg);
    }
    .wheel-text-6 {
        transform: translate(-50%, -50%) rotate(330deg) translateY(-65px) rotate(0deg);
    }
    .spin-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Spinning Animation */
.wheel.spinning {
    animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(var(--spin-degrees));
    }
}

/* Result Animation */
.result.show {
    animation: resultPop 0.5s ease;
}

@keyframes resultPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 