html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: url(../backgorund-img/background.jpeg);
  background-size: cover;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 9px;
}
body {
  color: #333;
  line-height: 1;
  font-weight: 400;
  overflow-x: hidden;
}

.header {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.logo {
  width: 20rem;
  pointer-events: none;
}

.container {
  position: relative;
  max-width: 120rem;
  margin: 0 auto;
  height: 100vh;
}
.game-grid {
  max-width: 120rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 0.8rem;
  justify-content: center;
  align-items: center;
  padding: 2.4rem 3.2rem;
}
.dino {
  object-fit: contain;
  display: block;
  width: 18rem;
  height: 18rem;
}
.card {
  height: 18rem;
  width: 18rem;
  border: 1px solid #fff;
  box-shadow: 0 1.2rem 2, 4rem rgba(50, 50, 50, 0.25);
  position: relative;
  transition: all 0.7s;

  transform-style: preserve-3d;
}
.card:hover {
  cursor: pointer;
}
.card-side--front,
.card-side--back {
  height: 100%;
  width: 100%;
  position: absolute;
  backface-visibility: hidden;
}
.card-side--front {
  background: #ede655;
  background: linear-gradient(
    90deg,
    rgba(237, 230, 85, 1) 0%,
    rgba(245, 186, 186, 1) 50%,
    rgba(255, 166, 233, 1) 100%
  );
}
.card-side--back {
  background-color: rgba(255, 255, 255, 0.5);
  transform: rotateY(180deg);
}
.target {
  transform: rotateY(180deg);
}
.found {
  transform: scale(0.001);
  pointer-events: none;
}
.row {
  display: flex;
  text-align: center;
  margin-left: 3.2rem;
  margin-right: 3.2rem;
  gap: 6.4rem;
}
.new-game-btn {
  background: linear-gradient(
    16deg,
    rgba(218, 230, 220, 0.9) 50%,
    rgba(249, 243, 181, 0.9) 100%
  );
  display: flex;
  border: none;
  align-items: center;
  gap: 1.2rem;
  height: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  padding: 1.8rem 2.4rem;
  transition: all 0.2s;
  color: #333;
  align-self: end;
}
.new-game-btn ion-icon {
  font-size: 3rem;
}
.new-game-btn:hover,
.new-game-btn:active {
  background: #ede655;
  background: linear-gradient(
    90deg,
    rgba(237, 230, 85, 1) 0%,
    rgba(245, 186, 186, 1) 50%,
    rgba(255, 166, 233, 1) 100%
  );
  transform: scale(1.05);
  color: #fff;
}
.timer {
  background: #ede655;
  background: linear-gradient(
    90deg,
    rgba(237, 230, 85, 1) 0%,
    rgba(245, 186, 186, 1) 50%,
    rgba(255, 166, 233, 1) 100%
  );
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 3px;
  cursor: pointer;
  padding: 1.2rem 2rem;
  letter-spacing: 5px;
  color: #333;
  font-family: 'Work Sans', sans-serif;
  align-self: end;
  width: 15rem;
}
.timer ion-icon {
  font-size: 2.4rem;
}
.game-over-screen {
  background: linear-gradient(
    16deg,
    rgba(218, 230, 220, 0.9) 50%,
    rgba(249, 243, 181, 0.9) 100%
  );
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  margin-left: auto;
  margin-right: auto;
  max-width: 50rem;
  padding: 2.4rem;
  line-height: 1.5;
  backface-visibility: visible;
  z-index: 999;
  opacity: 0;
  transition: all 0.2s;
  pointer-events: none;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.25);
}
.game-over-text {
  font-weight: 700;
  font-size: 3rem;
  font-family: 'Work Sans', sans-serif;
}
.mute {
  background: linear-gradient(
    16deg,
    rgba(218, 230, 220, 0.9) 50%,
    rgba(249, 243, 181, 0.9) 100%
  );
  align-self: end;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.speaker-icon-on,
.speaker-icon-off {
  stroke: #333;
  width: 2rem;
  height: 2rem;
}
.mute:hover {
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.25);
}
.visible {
  opacity: 100%;
}
.display {
  display: none;
}
.background-img {
  background-image: url(../backgorund-img/game-over.jpeg);
  background-size: 100%;
  background-position-y: 14%;
}
