body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;

  background-color: #89A6B4;

  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
}

h1 {
    font-family: "Homemade Apple", cursive;
    font-weight: 400;
    font-style: normal;
    color: #f7f1de;
    text-align: center;
}

h2 {
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    text-align: center;
}

.instructions {
    background-color: #f7f1de;
    border: 1px solid #000;
    border-radius: 1rem;
    padding: 15px 20px;
    margin-top: -1.5rem;

    font-size: 0.8rem;

    width: 100%;
    max-width: 520px;
    min-width: 250px;
    box-sizing: border-box;
}

.question {
    font-weight: bold;
}

.answer {
    margin-top: 10px;
}

.headline p {
    font-size: 0.75rem;
}

.table {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem;
}

.cardContainer {
    width: clamp(140px, 40vw, 250px);
    aspect-ratio: 5 /8;
    position: relative;
}

.cardFront,
.cardBack {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #41234F;
    border-radius: 8px;
    box-sizing: border-box;

    /* Hide flipped side */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cardFront {
    background-color: #4c56b3;
}

.cardBack {
    background-color: #f5f5f5;
    padding: 4% 6%;
}

.cardDetails {
    height: 100%;
    border: 2px solid #706D77;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.cardDetails h1 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.cardDetails p {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

@media (max-width: 400px) {
    .table {
        transform: scale(0.9);
    }

    .heading {
        width: 100%;
    }
}