/* add font */
@import url("https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@700&display=swap");
* {
  padding: 0;
  margin: 0;
  font-family: "Fuzzy Bubbles", cursive;
}
html {
  background-image: url(./images/bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}
/* header */
.logo h1 {
  color: #ea5455;
  text-align: center;
  padding-top: 7px;
  font-size: 80px;
  text-shadow: 1px 0px 1px #cccccc, 0px 1px 1px #eeeeee, 2px 1px 1px #cccccc,
    1px 2px 1px #eeeeee, 3px 2px 1px #cccccc, 2px 3px 1px #eeeeee,
    4px 3px 1px #cccccc, 3px 4px 1px #eeeeee, 5px 4px 1px #cccccc,
    4px 5px 1px #eeeeee, 6px 5px 1px #cccccc, 5px 6px 1px #eeeeee,
    7px 6px 1px #cccccc, 2px 2px 2px rgba(206, 89, 55, 0);
}

/* game arya */
.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 0 23%;
}

/* timer and move info */
.gameInfo {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
/*timer style*/
.timer {
  font-size: 30px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 25px;
  border-radius: 50%;
}
/*move style*/
.move {
  font-size: 30px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 25px;
}
.move span {
  color: #000000;
}

.game {
  margin-top: 20px;
  padding: 20px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 15px;
}

/* card style  */
.game-cards {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  border-radius: 15px;
}

.card {
  width: 22%;
  height: 130px;
  margin: 10px;
  background-image: url(./images/back-card.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: none;
  cursor: pointer;
  border-radius: 15px;
}
/*show card*/
img {
  width: 100%;
  height: 100%;
  display: none;
}
.show {
  display: block;
}

/*result win/loss */
.over {
  color: limegreen;
  text-align: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10%;
  display: none;
  font-size: 50px;
}
/*footer end*/
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  color: crimson;
  text-align: center;
  font-style: italic;
}

/*start button*/
.start {
  position: relative;

  left: 25%;
  height: 200px;
  width: 50%;
  font-size: 50px;

  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: #89d8d3;
  background-image: linear-gradient(315deg, #89d8d3 0%, #03c8a8 74%);
  color: #fff;
  overflow: hidden;
}
/*hover */
.start:hover {
  text-decoration: none;
  color: #fff;
}
.start:before {
  position: absolute;
  content: "";
  display: inline-block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #fff;
  animation: shiny-btn1 3s infinite;
}
.start:hover {
  opacity: 0.7;
}

/*keyframes for animation*/
@keyframes shiny-btn1 {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

.play-again-button {
  background-color: chartreuse;
  border-radius: 25px;
  padding: 15px 25px;
  color: #fff;
  border: 0;
  font-size: 25px;
  cursor: pointer;
}
.play-again-button:hover {
  background-color: #70d808;
}

/* responsive */

@media only screen and (max-width: 768px) {
  html {
    height: auto;
  }
  .container {
    padding: 0 3%;
  }
  .card {
    height: 83px;
    margin: 4px;
  }
}
