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

.title {
    margin-bottom: 20px; /* Space between title and flashcard */
    font-size: 28px;
    color: #333;
    text-align: center; /* Center the text */
}

.flashcard {
    width: 90vw;  /* Responsive width */
    max-width: 300px;  /* Maximum width */
    height: 150px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.front {
    background-color: #4CAF50;
    color: white;
}

.back {
    background-color: #FF5722;
    color: white;
    transform: rotateY(180deg);
}

@media (max-width: 600px) {
    .front, .back {
        font-size: 20px;  /* Adjust font size for smaller screens */
    }
}
#restart-btn {
    margin-top: 20px; /* Space between the flashcard and the button */
    padding: 10px 20px; /* Padding for the button */
    font-size: 18px; /* Font size */
    color: white; /* Text color */
    background-color: #007BFF; /* Blue background */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

#restart-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

#restart-btn:active {
    background-color: #004085; /* Even darker blue on click */
}