/* Reusable components - buttons, progress bars, error messages */

/* Error messages */
.error {
    margin-left: 2rem;
    margin-right: 2rem;
    background: linear-gradient(to right, #FF8F59, #FF3300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
    text-align: center;
    /* opacity: 0; */
    transition: opacity 0.3s ease;
}

.error.fade-in {
    animation: fadeIn 0.7s ease forwards;
}

.error.fade-out {
    animation: fadeOut 0.7s ease forwards;
}

/* Progress bars (legacy styles removed in favor of nav progress bar) */

/* Buttons */
button {
    border-radius: 8px;
    height: 3rem;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.move-to-exercises {
    background-color: var(--dark-brown-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 200;
}

.move-to-exercises:hover {
    opacity: 0.9;
}

.move-to-exercises:active~.exercises .exercises-navigation-translate {
    opacity: 1;
}

.tanslate-phrase-skip {
    margin-top: 0.5rem;
    margin-right: 20px;
    text-align: right;
}

.tanslate-phrase-skip button {
    color: var(--orange-color);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 300;
    background: none;
    border: none;
    padding: 0;
}

.paraphrase-skip {
    margin-top: 0.5rem;
    margin-right: 20px;
    text-align: right;
}

.paraphrase-skip button {
    color: var(--orange-color);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 300;
    background: none;
    border: none;
    padding: 0;
}

.watch-cards-again-from-exercise {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--orange-color);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 300;
    width: 100%;
    text-align: center;
}

/* Input fields */
.translate-phrase-input {
    font-size: 2rem;
    border: none;
    outline: none;
    text-align: center;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    caret-color: var(--orange-color);
    font-weight: 300;
}

.translate-phrase-input:focus {
    border: none;
    outline: none;
}

.translate-phrase-input::placeholder {
    color: var(--figma-color);
    -webkit-text-fill-color: var(--figma-color);
    font-weight: 200;
    text-decoration: underline;
    text-decoration-thickness: 1.25px;
    text-decoration-color: var(--light-brown-color);
}

.remember-phrases-input {
    font-size: 2rem;
    border: none;
    outline: none;
    text-align: center;
    background: var(--dark-brown-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    caret-color: black;
}

.remember-phrases-input:focus {
    border: none;
    outline: none;
}

.remember-phrases-input::placeholder {
    color: var(--dark-brown-color);
    -webkit-text-fill-color: var(--dark-brown-color);
    font-weight: 300;
}

/* Card Component */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: calc(100% - 2rem); /* Full width minus margins */
    max-width: 600px; /* Maximum width on larger screens */
    position: relative;
    box-sizing: border-box;
}

/* Card responsiveness */
@media screen and (max-width: 480px) {
    .card {
        padding: 1rem;
        margin: 0.75rem auto;
        width: calc(100% - 1.5rem);
    }
}

/* Card content alignment */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card title if needed */
.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-brown-color);
    margin-bottom: 0.5rem;
}

/* Card text */
.card-text {
    color: var(--dark-brown-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* Miscellaneous reusable components */
.remember-phrases-list {
    text-align: right;
    margin-right: 20px;
    font-size: 1.2rem;
}

.remember-phrases-list-item {
    display: none;
    margin: 0.5rem 0;
    font-weight: 500;
    color: black;
}

.remember-phrases-input-container {
    margin-bottom: 2rem;
}

.margin-top-6-rem {
    margin-top: 6rem;
} 