.add-btn { background: #4285F4; color: #fff; }
.add-btn:hover { background: #3367D6; }
.clear-btn { background: #EA4335; color: #fff; }
.clear-btn:hover { background: #C5221F; }


/* Header Colorful Buttons */
.header-btn {
    font-size: 16px;
    font-weight: bold;
    border: none;
    background: #FBBC05;
    border-radius: 6px;
    padding: 10px 22px;
    margin: 0 8px;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}
.header-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Google Colors for Header Buttons using nth-child */
/* Cycle 5 Google colors for all header buttons */
.header-menu .header-btn:nth-child(5n+1) { background: #4285F4; }    /* Google Blue */
.header-menu .header-btn:nth-child(5n+2) { background: #EA4335; }    /* Google Red */
.header-menu .header-btn:nth-child(5n+3) { background: #FBBC05; }    /* Google Yellow */
.header-menu .header-btn:nth-child(5n+4) { background: #34A853; }    /* Google Green */
.header-menu .header-btn:nth-child(5n)   { background: #A142F4; }    /* Google Purple */

/* Header Menu Styles */
.header-menu {
    width: 100%;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 8px 10px;
    min-height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .header-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6px 4px;
        min-height: 40px;
        position: static;
    }
    .header-btn {
        margin: 4px 4px;
        min-width: 100px;
        font-size: 15px;
        padding: 8px 10px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('back.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.container {
    display: flex;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 40px);
    padding-top: 30px;
}

.wheel-section {
    flex: 4; /* This gives approximately 80% of the space (4/5 = 0.8) */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#wheel {
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
    border: 4px solid #fff;
    cursor: pointer;
}

#wheel:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.result {
    font-size: 28px;
    font-weight: bold;
    color: #34A853;
    min-height: 40px;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    min-width: 300px;
    text-align: center;
}

.options-section {
    flex: 1; /* This gives approximately 20% of the space (1/5 = 0.2) */
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: flex-start;
    padding-top: 20px;
}

.options-section h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-area label {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

#optionsInput {
    width: 80%;
    height: 280px;
    padding: 20px;
    border: 3px solid #000000;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#optionsInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-controls {
    display: flex;
    gap: 15px;
}

.add-btn, .clear-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-btn {
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    margin: 0 8px;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}


.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 118, 117, 0.4);
}

.credit {
    text-align: center;
    font-size: 16px;
    color: #000000;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* Beautiful Result Popup Modal */
.result-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    min-width: 450px;
    max-width: 550px;
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
}

.popup-header {
    background: #4285F4;
    color: white;
    padding: 30px 35px 25px;
    text-align: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-body {
    padding: 40px 35px 30px;
    text-align: center;
    background: white;
}

.selected-option {
    margin-bottom: 25px;
}

#popupSelectedOption {
    font-size: 48px;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    display: block;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 3px solid #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-subtitle {
    margin: 0;
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 20px;
    padding: 0 35px 35px;
    justify-content: center;
}

.popup-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.popup-remove {
    background: #EA4335;
    color: white;
}

.popup-remove:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.popup-keep {
    background: #34A853; 
    color: white;
}

.popup-keep:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.5);
}

/* Popup Animation */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confettiFall 3s linear forwards;
    z-index: 1001;
}

.confetti:nth-child(odd) {
    background: #4ecdc4;
    animation-delay: 0.1s;
}

.confetti:nth-child(3n) {
    background: #45b7d1;
    animation-delay: 0.2s;
}

.confetti:nth-child(4n) {
    background: #f9ca24;
    animation-delay: 0.3s;
}

.confetti:nth-child(5n) {
    background: #6c5ce7;
    animation-delay: 0.4s;
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-content {
        min-width: 350px;
        margin: 20px;
    }
    
    .popup-header {
        padding: 25px 30px 20px;
    }
    
    .popup-header h2 {
        font-size: 24px;
    }
    
    .popup-body {
        padding: 30px 30px 25px;
    }
    
    #popupSelectedOption {
        font-size: 36px;
        padding: 15px;
    }
    
    .popup-subtitle {
        font-size: 16px;
    }
    
    .popup-actions {
        padding: 0 30px 30px;
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
        padding: 20px 40px;
    }
}

/* Responsive design for tab viewing */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
        min-height: auto;
    }
    
    .wheel-section, .options-section {
        justify-content: flex-start;
        flex: 1;
    }
    
    #wheel {
        width: 540px;
        height: 540px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    #wheel {
        width: 360px;
        height: 360px;
    }
    
    .options-section h2 {
        font-size: 24px;
    }
    
    .input-controls {
        flex-direction: column;
    }
} 