:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD166;
    --background-color: #F7F7F7;
    --text-color: #333;
    --error-color: #ff4444;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 20%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
}

.translator-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.translator-section:hover {
    transform: translateY(-5px);
}

.input-area {
    margin-bottom: 2rem;
}

.sound-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.sound-btn {
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    background-color: #ffc233;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.error-message {
    position: absolute;
    top: -25px;
    left: 0;
    color: var(--error-color);
    font-size: 0.9rem;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(255, 68, 68, 0.2);
    animation: slideIn 0.3s ease;
}

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

input, select {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    background-color: white;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    outline: none;
}

input.error {
    border-color: var(--error-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

button {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
}

#translateBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    display: block;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
}

#translateBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#translateBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Remove pulse animation */
.pulse {
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.result-area {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--secondary-color);
    transition: all 0.3s ease;
}

.result-area:hover {
    border-style: solid;
    background-color: #f0f8ff;
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#translationResult {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: white;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .translator-section {
        padding: 1.5rem;
    }
    
    .sound-buttons {
        gap: 10px;
        padding: 0 10px;
    }
    
    .sound-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 80px;
    }
    
    #translateBtn {
        padding: 10px 20px;
        font-size: 1.1rem;
        max-width: 300px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    input, select, button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .sound-buttons {
        gap: 8px;
        padding: 0 5px;
    }
    
    .sound-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    #translateBtn {
        padding: 8px 16px;
        font-size: 1rem;
        max-width: 250px;
        min-width: 160px;
        margin: 15px auto;
    }
}

/* Modal Window Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: var(--card-shadow);
    animation: slideIn 0.3s ease-in-out;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#stayBtn {
    background-color: var(--primary-color);
    color: white;
}

#stayBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

#leaveBtn {
    background-color: #f0f0f0;
    color: var(--text-color);
}

#leaveBtn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.description-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.description-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .description-section h2 {
        font-size: 1.5rem;
    }
    
    .description-content p {
        font-size: 1rem;
    }
}

.popular-sounds h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
} 