body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #000;
    color: #f0f0f0;
    overflow: hidden;
}

.flashcard-front img {
    max-width: 100%;
    max-height: 100%;
}

h1 {
    color: white;
}

.flashcard-container {
    perspective: 1000px;
}

.flashcard {
    width: 900px;
    height: 533px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
}

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

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 24px;
    color: rgb(0, 0, 0);
}

.flashcard-back {
    transform: rotateY(180deg);
    background-color: #f9f9f9;
    color: black;
}

.navigation {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
}

button:hover {
    background-color: #0056b3;
}

.answer-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#answer-input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#result {
    margin-left: 10px;
    font-size: 24px;
}

#card-counter {
    margin-top: 10px;
    font-size: 18px;
}

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

.menu-item {
    width: 300px;
    height: 200px;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.scotus-back {
    text-align: left;
    list-style-type: none;
    padding: 0;
    font-size: 28px;
}
