@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

*{
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  padding: 10px;
}


/* background */
#bg {
  background: linear-gradient( rgb(37, 106, 216), rgb(11, 176, 241));
  z-index: -2;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}



/* Start game buttons and stuff */
#start_game_label {
  font-size: 32px;
  text-align: center;
  width: 100%;
  grid-column-start: 1;
  grid-column-end: 6;
  cursor: pointer;
}

#start_game_label:hover {
  color: rgb(88, 88, 88);
}

#start_game_bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: pointer;
}



/* Memory board and memory cards */
#memory {
  display: grid;
  grid-template-columns: 64px 64px 64px 64px 64px;
  grid-gap: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 40px;
  width: fit-content;
  width: -webikt-fit-content;
  width: -moz-fit-content;
  width: intrinsic;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}

.card {
  cursor: pointer;
  width: 64px;
  height: 64px;
}

.img-card {
  display: none;
  border: 2px solid darkgray;
}

.placeholder {
  display: block;
  border: 2px solid darkgray;
  width: 64px;
  height: 64px;
  background-color: whitesmoke;
}

.img-back {
  display: block;
}

.img-back-hover{
  display: none;
}



/* Points display and stuff */
#points {
  background-color: rgba(255, 255, 255, 0.7);
  width: 460px;
  margin: 10px auto;
  padding: 20px;
  border-radius: 20px;
  display: none;
}

#points > span {
  font-size: 18px;
  line-height: 160%;
}

#points > .label{
  font-weight: 700;
}

#playAgain{
  width: 90%;
  background-color: teal;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px;
  font-size: 18px;
  margin: 20px auto 0 auto;
  cursor: pointer;
  display: block;
}

#playAgain:hover{
  background-color: lightseagreen;
}

#win_label{
  font-size: 28px !important;
  display: block;
  padding: 10px;
  width: 100%;
  text-align: center;
}

/* Other stuff */
#back{
  color: whitesmoke;
  text-decoration: none;
  font-weight: 700;
}

#back:hover{
  color: wheat;
}