/* Modern "This or That" App Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

#container {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.optionBox {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.optionBox:first-child {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.optionBox:last-child {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.optionBox:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.optionBox.selected {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 3;
}

.question {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin: 0 2rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.optionBox:hover .question {
    transform: translateY(-5px);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

#nextButton {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#nextButton:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

#nextButton:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.result {
    width: 100%;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    z-index: 1;
    opacity: 0;
}

.result.show {
    opacity: 1;
}

.result span {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultA {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    text-align: center;
}

#resultB {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .question {
        font-size: 1.8rem;
        margin: 0 1rem;
    }
    
    #nextButton {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .result span {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 1.4rem;
        margin: 0 0.5rem;
    }
    
    #nextButton {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .result span {
        font-size: 1.5rem;
    }
}

/* Loading animation for initial load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.optionBox {
    animation: fadeIn 0.8s ease-out;
}

.optionBox:last-child {
    animation-delay: 0.1s;
}

/* Selection animation */
@keyframes pulse {
    0% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    }
    100% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }
}

.optionBox.selected {
    animation: pulse 0.6s ease-in-out;
}
