* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

h1 {
  font-family: "Kirang Haerang", system-ui;
  font-size: clamp(44px, 6vw, 80px);
  color: black;
  /* Define the linear gradient background */
  background-image: linear-gradient(to right, #4f46e5, #9333ea, #ec4899); /* Example: purple to pink */
  /* Clip the background to the text content */
  -webkit-background-clip: text; /* For WebKit browsers (Chrome, Safari) */
  background-clip: text;
  /* Make the text color transparent so the background shows through */
  -webkit-text-fill-color: transparent; /* For WebKit browsers */
  color: transparent; /* Fallback for other browsers, though background-clip: text needs webkit prefix usually */
  text-align: left;
}

.h1-container {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 1rem;
}

.brain-img {
  max-width: 60px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #bdd3f9;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sound {
  font-size: 1.5rem;
  color: red;
  cursor: pointer;
  align-self: flex-end;
  border: 3px solid red;
  border-radius: 50%;
  padding: 5px;

  &:hover {
    background-color: red;
    color: #fff;
  }
}

.container {
  width: 80%;
  max-width: 1200px;
  height: 100vh;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 767px) {
  .container {
    width: 100%;
  }
}

select:required:invalid {
  color: gray;
}
option[value=""][disabled] {
  display: none;
}
option {
  color: black;
}

.difficulty-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.2rem;
}

.difficulty-menu label {
  font-size: 18px;
}

.difficulty-menu select {
  width: 150px;
  min-height: 30px;
  font-size: 16px;
  display: block;
}

.top-header {
  width: 100%;
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.restart {
  font-size: 1.1rem;
  height: fit-content;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards {
  display: grid;
  justify-content: center;
  align-content: flex-start;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.flippig-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  cursor: pointer;
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  overflow: hidden;
}

.front {
  background-color: #f6f6e7;
  position: relative;
}

.front-img {
  width: 50%;
  max-width: 60px;
  display: block;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.back {
  background-color: #fff;
  transform: rotateY(180deg);

  .emoji {
    color: red;
    font-size: 2rem;
  }
}

.photo {
  max-width: 50%;
  /* border-radius: 50%; */
  /* max-height: 80%; */
  display: block;
}

.flip {
  transform: rotateY(180deg);
  pointer-events: none;
}

.matched {
  pointer-events: none;
}

.bg-attr {
  color: #fff;
  font-size: 0.7rem;
  margin-left: auto;
  font-style: italic;
  position: absolute;
  bottom: 10px;
  right: 10px;

  a {
    color: #fff;
  }
}

footer {
  color: rgba(0, 0, 0, 0.5);
  padding-bottom: 32px;
  text-align: center;
  font-size: 14px;
}
