body {
  background-color: #faf8d4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Righteous", cursive;
  color: #130303;
}

header {
  font-size: 2rem;
  padding: 0;
  font-family: "Bungee Shade", cursive;
}

/* Hides the highlight of the img */
img::selection {
  background: transparent;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1rem;
}

.scoreArea {
  display: inline-block;
  margin: 0.5rem;
}

button {
  background-color: #faf8d4;
  color: #130303;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

button#playAgain {
  font-size: 1.5rem;
  font-family: "Righteous", cursive;
}

.deck {
  background-color: #130303;
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-content: space-around;
  flex-wrap: wrap;
  border-radius: 5px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-content: space-around; */
}

.hide-cookie {
  display: none;
}

.card {
  height: 10rem;
  width: 10rem;
  font-size: 0;
  margin: 1rem 1rem;
  list-style: none;
  display: flex;
  border-radius: 5px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23130303' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
}

.card:hover {
  animation: pulse 2s infinite;
  cursor: pointer;
}

.card.green {
  background-color: #c4f1be;
  font-size: 7rem;
  animation: none;
  background-image: none;
}

.card.orange {
  background-color: #faa275;
  font-size: 7rem;
  animation: none;
  background-image: none;
}

.card.selected {
  user-select: none;
  cursor: none;
}

.card.matched {
  user-select: none;
  cursor: none;
}

#winnerPop {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
#winnerPopContent {
  text-align: center;
  font-size: 2rem;
  background-color: #faf8d4;
  color: #130303;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  width: 50%; /* Could be more or less, depending on screen size */
  height: auto;
  border-radius: 5px;
}

#close {
  color: #25283d;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#close:hover,
#close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    -moz-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media only screen and (max-width: 600px) {
  header {
    text-align: center;
  }

  img {
    height: 50%;
  }

  .deck {
    height: 95%;
    width: 95%;
  }

  .card {
    height: 4rem;
    width: 4rem;
    margin: 0.5rem 0.5rem;
  }

  .card:hover {
    animation: none;
  }

  .card.green {
    font-size: 2rem;
  }
  .card.orange {
    font-size: 2rem;
  }
}
