﻿/* 1. This styles the background of the whole website */
body {
    background-color: #9370DB; /* Purple background */
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Centering the card vertically on the screen */
    margin: 0;
}

/* 2. This styles the actual "Flashcard" box */
.card {
    background-color: white;
    /* Use 'max-width' so it doesn't get too big on PC, 
       but '90%' so it doesn't hit the edges on a phone */
    width: 90%;
    max-width: 400px;
    min-height: 250px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    /* 3. The "Lift" effect when you hover over the card */
    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

/* 4. The Question/Answer text */
#display {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 5. Making the button look nice */
button {
    background-color: #9370DB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}
/* If the screen is 600px wide or less (like a phone) */
@media screen and (max-width: 600px) {
    #display {
        font-size: 18px; /* Make text smaller so it fits */
    }

    .card {
        padding: 15px;
        min-height: 200px; /* Shrink the card height for small screens */
    }

    button {
        width: 100%; /* Make the button full-width so it's easier to tap with a thumb */
        padding: 15px;
    }
}