body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#vocab-input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#add-vocab {
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.card-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 90vw;
    max-height: 400px;
    perspective: 1000px;
    margin: 0 auto;
}

.card {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    transform-style: preserve-3d;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    touch-action: none;
}

.emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.word {
    font-size: 2rem;
    font-weight: bold;
}

.translation {
    font-size: 1.2rem;
    color: #666;
}

.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#swipe-left,
#swipe-right {
    padding: 15px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#swipe-left {
    color: #ff4d4d;
}

#swipe-right {
    color: #4caf50;
}

.feedback {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 10rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback.correct {
    background-color: #89ffbc;
}

.feedback.incorrect {
    background-color: #edbbd2;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 211, 211, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 3rem;
    color: #333;
    display: none; /* Initially hidden */
}
