:root {
    --bg-color-main: #f0f8ff;
    --card-bg: #ffffff;
    --primary-color: #ff6b6b;
    --primary-hover: #ff4757;
    --secondary-color: #4facfe;
    --secondary-hover: #00f2fe;
    --text-main: #2f3542;
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --font-en: 'Nunito', sans-serif;
    --font-ta: 'Baloo 2', sans-serif;
}

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

body {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    font-family: var(--font-en);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 900;
}

.lang-toggle {
    display: flex;
    gap: 8px;
    background: #f1f2f6;
    padding: 5px;
    border-radius: 30px;
}

.lang-toggle button {
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
    color: #57606f;
}

.lang-toggle button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.riddle-card {
    background: var(--card-bg);
    width: 100%;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-main);
    transition: transform 0.3s ease;
}

.clue-text {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
    font-weight: 800;
    color: #2f3542;
}

/* Button Styles */
button {
    font-family: inherit;
}

.primary-btn, .secondary-btn {
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
    color: white;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.secondary-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-hover));
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.primary-btn:active, .secondary-btn:active {
    transform: translateY(1px);
}

.hidden {
    display: none !important;
}

.image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #f1f2f6;
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.answer-text {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    animation: slideUp 0.5s ease;
    font-weight: 900;
}

footer {
    text-align: center;
    padding: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive adjustments for phones */
@media (max-width: 480px) {
    .header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .brand {
        justify-content: center;
        width: 100%;
    }

    .lang-toggle {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .clue-text {
        font-size: 1.4rem;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .answer-text {
        font-size: 1.8rem;
    }
}
