body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

.icon {
  display: flex;
  wrap: wrap;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0;
  color: #C21C12;
}

h1 {
  font-size: 42px;
  font-weight: bolder;
  line-height: 48px;
  margin: 10px 0;
  color: #C21C12;
  text-shadow: 2px 2px white;
}

.question-section {
  background-color: #303599;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 5px;
  width: 100%;
}

select {
  display: block;
  border: none;
  font-size: 22px;
  font-family: 'Montserrat';
  color: #303599;
  width: 30%;
  margin: 15px 0;
}

h2 {
  color: #C21C12;
  text-shadow: 1px 1px white;
  margin-top: 20px;
}

.board-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

.game-board {
  max-width: 882px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

/****** CARD ******/
.card {
  width: 135px;
  height: 165px;
  overflow: hidden;
  border-radius: 6px;
  margin: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  background-image: linear-gradient(rgba(60, 125, 209, 0.8), rgba(44, 95, 190, 0.8)),
  url("images/card-background1.png");
}

.card p {
  text-align: center;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 700;
  color: #303599;
}

.card .guess {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #303599;
  text-align: center;
  height: inherit;
}

.card:hover {
  background-color: #FCD300;
  background-image: none;
}

.card:hover img,
.card:hover p {
  display: none;
}

/* The div with the guess class is only shown on hover */
.card:hover .guess {
  display: flex;
}

.guess span {
  font-size: 16px;
  line-height: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  width: 90%;
}

/****** BUTTONS ******/
button {
  border: 4px solid #C21C12;
  border-radius: 50px;
  font-size: 16px;
  font-family: 'Montserrat';
  font-weight: bold;
  padding: 15px 25px;
  cursor: pointer;
  color: #303599;
}

.small {
  padding: 8px 16px;
}

.outlined-button {
  background-color: transparent;
  color: #C21C12;
  align-self: flex-end;
  margin: 15px;
}

.outlined-button:hover {
  background-color: white;
  color: #303599;
}

.filled-button:hover {
  background-color: white;
  border-color: white;
}

/****** WIN OR LOSE SECTION ******/
.win-or-lose-wrapper {
  display: none;
  align-items: center;
  justify-content: center;
  background: #303599;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
}

.win-or-lose {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  text-align: center;
}

.win-or-lose img {
  align-self: flex-start;
  margin-left: 15%;
}

.win-or-lose h1 {
  margin-bottom: 32px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0;
  margin-top: 5px;
  background: white;
}

.contact {
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 6px;
  color: black;
  font-size: 12px;
  font-weight: 600;
}

.logo {
  width: 30px;
}

.logo:hover {
  transform: scale(1.2);
  opacity: .75;
}

@media (max-width: 768px) {
  select {
    width: 70%;
  }

  button {
    padding: 8px 16px;
  }

  h1 {
    font-size: 26px;
    line-height: 30px;
    text-shadow: 1px 1px white;
  }

  h2 {
    text-shadow: none;
    font-size: 18px;
  }

  .board-wrapper {
    width: 99%;
  }

  .game-board {
    width: 99%;
    max-width: 750px;
  }

  .card {
    width: 113px;
    position: relative;
  }

  .card .guess {
    display: flex;
    top: 0;
    position: absolute;
    justify-content: flex-end;
  }

  .card .guess span {
    display: none;
  }

  .card .guess .filled-button {
    padding: 6px 11px;
    margin-bottom: 1px;
    border: none;
  }
}
