/* quiz-flashcards.css */

/* General Wrapper */
.flashcards-wrapper {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background-color: #327f00;
    width: 0%;
    transition: width 0.3s ease;
}

/* Flashcard */
.flashcard {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.flashcard .front,
.flashcard .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 69, 79, 0.2);
    color: #fff;
    transition: transform 0.6s;
    padding: 1rem;
    text-align: center;
}

.flashcard .front {
    background: #00454f;
}

.flashcard .back {
    transform: rotateY(180deg);
    background: #7a0035;
}

.flashcard:hover .front {
    box-shadow: 0 6px 12px rgba(0, 69, 79, 0.3);
    background-color: #006276;
}

.flashcard:hover .back {
    box-shadow: 0 6px 12px rgba(0, 69, 79, 0.3);
    background-color: #96003f;
}

.flashcard.flipped .front {
    transform: rotateY(180deg);
}

.flashcard.flipped .back {
    transform: rotateY(0);
}

/* Action Buttons */
.action-button {
    padding: 0.5rem 1rem;
    background: #00454f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background: #006276;
}

/* Vote Buttons */
.vote-button {
    padding: 0.5rem 1rem;
    background: #00454f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vote-button:hover {
    background: #006276;
}

/* General button styling */
.flash-button,
.restart-button {
    background-color: #00454f;
    color: #fff;
    border: 2px solid #00454f;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.flash-button:hover,
.restart-button:hover {
    background-color: transparent;
    color: #00454f;
}

.flash-button:active,
.restart-button:active {
    transform: scale(0.98);
    background-color: #ccdee1;
    border-color: #00454f;
    color: #00454f;
}

.flash-button.active {
    background-color: #fff;
    color: #00454f;
}

/* End Game Screen */
.end-game-screen {
    text-align: center;
    padding: 2rem;
}

.end-game-screen h2 {
    color: #00454f;
    margin-bottom: 2rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .flashcards-wrapper {
        padding: 1rem;
        margin-bottom: 200px !important;
    }

    .flashcard {
        width: 75%;
        height: 100px;
    }

    .flashcard .front,
    .flashcard .back {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .action-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .restart-button,
    .flash-button {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        max-width: 280px;
    }

    .end-game-screen {
        padding: 1rem;
    }

    .end-game-screen h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}