body {
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background:#292F36;
  margin: 25px;
  color: white;


}

.menu{
  margin-top: 25px;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items:center;
  margin-right: 25px;


}

.menu-buttons{
  justify-content: center;
}

button{
  color: white;
  border: 3px solid rgb(177, 127, 0);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  background-color:transparent;
  padding: 10px;
  margin: 5px;
  outline: none;
  border-radius: 4px;
  font-size: 17px;
  transition: all 0.5s ease;
  margin-bottom: 15px;
}

button:hover{
  color: white;
  background-color: rgb(177, 127, 0);
  cursor: pointer;
}

.active {
  color: white;
  background-color: rgb(177, 127, 0);
}

.page-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.logo {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: .25em;
  font-weight: 900;
  font-style: normal;
}

.gameInstructions{
  padding: 10px;
  margin: 10px;
  font-size: 24px;
}

.scores{
  border: 2px solid  rgb(177, 127, 0);
  display: flex;
  flex-direction: row;
  justify-content: center;
  border-radius: 25px;
}

.guess-count,
.bestscore-count{
  margin: 10px;
  text-transform: uppercase;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
}


/* Game */

.game-container{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px;

}

#game {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  border-color:  rgb(105, 89, 1);
  border-radius: 25px;
  border-style: solid;
  box-shadow: 5px 3px 3px rgb(58, 45, 45);
  background-color: rgb(177, 127, 0);

}

#game div * {
  border: 4px solid black;
  width: 100px;
  height: 150px;
  margin: 20px;
}

.unflipped {
  background: url(https://www.deckofcardsapi.com/static/img/back.png);
  background-size: cover;
  background-position: center;
}

#game div *:hover {
  border: 4px solid rgb(4, 61, 233);
  cursor: pointer;
}

.flipstyle {
  background: var(--imgurl);
  background-size: cover;
  background-position: center;
}


.flipped,
.pauseClicking {
  pointer-events: none;
}

.gameOverModal{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  z-index: 9999;
  color: white;
  background-color: rgb(0, 35, 141);
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  width: 500px;
  max-width: 80%;
}

.gameOverModal.active{
  transform: translate(-50%, -50%) scale(1);
}


.playAgainButton,
.gameOverLogo{
margin: 25px;
}

#overlay{
  position: fixed;
  transition: 200ms ease-in-out;
  opacity: 0;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#overlay.active{
  opacity: 1;
  pointer-events: all;
}


/* Footer */
.footer {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #4f5255;
}

.footer-links{
  display: flex;
  flex-direction: row;

}
.footer-links li a{
  color: #FCFAFA;
  padding: 25px;

}
.footer-links li:hover a{
  color:#FFAD05;
  cursor: pointer;
}

a,
a:visited {
    text-decoration: none;
    color: #292F36;
}

ul {
    list-style: none;
}


.close-button{
  position: absolute;
  top: 5%;
  right: 5%;
  font-size: 2rem;
  border-color: transparent;
  background-color: transparent;
}

.close-button:hover{
  background-color: transparent;
  color: #a5a6a8;
}