body {
    background-color: #f4f6f8;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    margin-top: 80px;
}

h1 {
    color: #1a1a1a;
    font-size: 48px;
}

p {
    font-size: 22px;
    color: #444444;
}

button {
    background-color: #cc6333;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background-color: #b8c0cc;
    color: #56585e;
}
.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 350px;
    margin: 40px auto;
}

#cardImage {

    width: 300px;

    border-radius: 12px;

    margin-bottom: 25px;

}
/* ============================
   Flashcard
   ============================ */

.flashcard-container {
    perspective: 1000px;
    width: 350px;
    height: 450px;
    margin: 40px auto 20px;
}

.flashcard {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.flashcard.fade-change {
    opacity: 0;
}

.flashcard.fade-change .flashcard-inner {
    transition: none;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;

    transition: transform 0.6s;

    transform-style: preserve-3d;
}

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

.flashcard-front,
.flashcard-back {
    position: absolute;

    width: 100%;
    height: 100%;

    backface-visibility: hidden;

    z-index: 1;

    background-color: white;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    border: 3px solid #333333;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 20px;

    box-sizing: border-box;
}

.flashcard-back {
    transform: rotateY(180deg);
}

#cardImage {
    width: 300px;
    max-height: 300px;
    object-fit: contain;

    border-radius: 10px;

    margin-bottom: 20px;
}

.flashcard-front h2 {
    font-size: 24px;
}

.flashcard-back h2 {
    font-size: 36px;
    color: #8B0000;
}


/* ============================
   Card Controls
   ============================ */

.card-controls {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 20px auto;
}

.card-controls button {
    font-size: 16px;

    padding: 10px 15px;
}

#cardCounter {
    font-size: 18px;

    color: #555;

    margin-bottom: 20px;
}

/* ============================
   Mobile Layout
   ============================ */

#answerImage {
    width: 200px;
    max-width: 70%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {

    body {
        margin-top: 30px;
        padding: 0 15px;
    }

    h1 {
        font-size: 32px;
    }

    p {
        font-size: 18px;
    }

    .flashcard-container {
        width: 90vw;
        max-width: 350px;
        height: 430px;
        margin: 25px auto 20px;
    }

    .card-controls {
        gap: 6px;
    }

    .card-controls button {
        font-size: 14px;
        padding: 10px 12px;
    }

    #cardCounter {
        font-size: 16px;
    }

}

/* Note Values card layout */

#questionName,
#questionDuration {
    font-size: 20px;
    margin: 7px 0;
    text-align: center;
}

#answerName,
#answerDuration {
    font-size: 28px;
    margin: 4px 0;
}

#questionName,
#questionDuration {
    position: relative;
    top: -40px;
}