/* Colors */
/* BREAKPOINTS */
@font-face {
  font-family: "Metropolis";
  src: url("fonts/Metropolis-Regular.woff2") format("woff2"), url("fonts/Metropolis-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("fonts/Metropolis-SemiBold.woff2") format("woff2"), url("fonts/Metropolis-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("fonts/Metropolis-Bold.woff2") format("woff2"), url("fonts/Metropolis-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --hue-neutral: 200;
  --hue-wrong: 0;
  --hue-correct: 145;
}

body {
  --hue: var(--hue-neutral);
  font-family: "Metropolis", "Helvetica", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0;
  padding-bottom: 6rem;
  margin: 0;
  justify-content: center;
  align-items: center;
  background: #b9e9fc url("images/journey-bg.png") no-repeat center bottom;
  background-attachment: fixed;
  background-size: cover;
  color: #333333;
}

img {
  max-width: 100%;
  height: auto;
}

/*
  TYPO
*/
p {
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
}

/*
  Layout
*/
.site-logo-wrapper {
  width: 90%;
  max-width: 30rem;
  text-align: center;
  margin: 2rem auto;
}

.site-logo {
  max-width: 10rem;
  margin-bottom: 2rem;
}
@media (orientation: landscape) {
  .site-logo {
    filter: drop-shadow(0 0 3px #00000064);
  }
}

@media (max-width: 630px) {
  .bingo-heading {
    margin: 0;
  }
}

.bingo-heading-image {
  max-width: 80%;
}
@media (max-width: 630px) {
  .bingo-heading-image {
    margin-bottom: 0;
  }
}

.container {
  width: 95%;
  max-width: 30rem;
  margin: 5rem auto 2rem;
  border-radius: 1.8rem;
  text-align: center;
}
@media (max-width: 900px) {
  .container {
    margin-top: 2rem;
  }
}
@media (max-width: 630px) {
  .container {
    margin-top: 0;
  }
}

.container-large {
  max-width: 70rem;
}

.question-inner-container, .description {
  margin-bottom: 1rem;
}

.shadow {
  border-radius: 2.5rem;
  padding: 2rem;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.3);
  background-color: white;
}

.start-image {
  width: 40%;
  max-width: 13rem;
  margin-top: -6rem;
}

.question-image img {
  max-height: 300px;
  margin-bottom: 1rem;
}
@media (max-width: 630px) {
  .question-image img {
    max-height: 200px;
  }
}

.results {
  font-size: 1.3em;
  position: relative;
}

.result-count {
  font-size: 6rem;
  line-height: 1;
}

.good-results .result-count {
  color: #1cd074;
}

.bad-results .result-count {
  color: #e50e36;
}

.completed .question-image, .completed .question {
  display: none;
}
.completed .results {
  display: block;
}
.completed .start-image {
  display: inline-block;
}

/*
  Bingo
*/
.bingo-fieldset {
  border: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: min(3vw, 2rem);
  padding: 1rem 0;
}
@media (max-width: 900px) {
  .bingo-fieldset {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 630px) {
  .bingo-fieldset {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bingo-label {
  transition: transform 0.5s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  width: 100%;
}
.bingo-label input {
  display: none;
}
.bingo-label:hover {
  transform: scale(1.1);
}
.bingo-label::after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.bingo-label.is-flipped {
  transform: rotateY(180deg);
}

.card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card__face--back {
  background: #ccf9ac;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-image {
  height: 100%;
  width: 100%;
}

/*
 Buttons
*/
.btn-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-grid .btn {
  width: 100%;
}
.btn-grid .btn-boolean {
  width: calc(50% - 0.5rem);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.btn-grid .btn-boolean:first-child {
  margin-left: 0;
}
.btn-grid .btn-boolean:last-child {
  margin-right: 0;
}

.btn-options .btn::before {
  content: "";
  height: 4rem;
  width: 4rem;
  background-color: #2096CD;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 1rem;
}
.btn-options .btn:nth-child(2)::before {
  background-color: #FA6EB0;
}
.btn-options .btn:nth-child(3)::before {
  background-color: #34EBC0;
}
.btn-options .btn-boolean::before {
  display: none;
}

.result-buttons {
  flex-direction: column;
}
.result-buttons .btn {
  justify-content: center;
  width: max-content;
  font-size: 1rem;
}

.btn {
  font-family: "Metropolis", "Helvetica", sans-serif;
  position: relative;
  --hue: var(--hue-neutral);
  background-color: white;
  border-radius: 1.3rem;
  padding: 1.1rem 1.2rem;
  border: none;
  color: #333333;
  text-decoration: none;
  font-size: 1em;
  line-height: 1.3;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.btn-large {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: bold;
  padding: 2.1rem 1.2rem;
  text-align: center;
  justify-content: center;
}

.btn-red {
  background-color: #f8d8df;
}

.btn-green {
  background-color: #ccf9ac;
}

.btn-yellow {
  background-color: #fbefa9;
}

.btn-boolean {
  padding: 3rem 1rem;
  justify-content: center;
  font-size: 2rem;
}

.btn.correct {
  background-color: #1cd074;
  color: black;
}

.btn.wrong {
  background-color: #e50e36;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hide {
  display: none;
}
