@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.translate-card {
    background: white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 20px;
    width: 50vw;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flag-box {
    background: #F3F4F6;
    border-radius: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    gap: 15px;
}

.flag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.flag-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3), inset 0px -4px 6px rgba(255, 255, 255, 0.5);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent);
}

.translate-text {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin: 0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.translate-text+.translate-text {
    margin-top: -20px;
}

.input-text {
    font-size: 1.5rem;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
}

.answer-text {
    font-size: 1.75rem;
    font-weight: bold;
}

.copy-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.copy-button svg {
    width: 24px;
    height: 24px;
    fill: #555;
}

.copy-button:hover {
    transform: scale(1.1);
}
 