@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
}

body {
  line-height: 1.5;
  color: #000;
  background-color: #f1f1f1;
}

.game-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0.7rem;
}

.info-item {
  font-size: 18px;
  font-weight: bold;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.cardGrid {
  background-color: transparent;
  border-radius: 0.5rem;
  box-shadow: none;
  margin-bottom: 1rem;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  font-family: "Oswald", sans-serif;
  color: #000;
}

.card-content {
  padding: 1rem;
  text-align: center;
}
.header-button {
  display: flex;
  justify-content: space-between;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 20px;
}
.card {
  width: 100%;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}
.card-front {
  background-color: #c80036;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}
.card-back {
  background-color: #fff;
  transform: rotateY(180deg);
}
.card.flipped {
  transform: rotateY(180deg);
}
select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.9rem;
  font-size: 0.7rem;
  background-color: #fff;
  appearance: none;
  transition: all 0.4s ease-in-out;
}
select:focus {
  outline: none;
  border-color: #c80036;
  box-shadow: 0 0 0 3px rgba(200, 0, 54, 0.1);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: transparent;
  margin: 15% auto;
  backdrop-filter: blur(10px);
  padding: 20px;
  color: #fff;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}
.modal-button {
  background-color: #0c1844;
  color: #fff;
  border: none;
  padding: 0.5rem;
  margin-top: 20px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}
.close-button {
  background-color: #c80036;
  color: #fff;
}
#final-score {
  font-size: 1.3rem;
  font-weight: 700;
}
.info-item {
  color: #000;
}
.control-buttons {
  margin-bottom: 20px;
}
.control-button {
  width: 100%;
  text-align: center;
  background-color: #c80036;
  color: #fff;
  padding: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.control-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  transition: color 0.3s;
}

.input-with-icon {
  padding-left: 35px;
}
button i {
  vertical-align: middle;
  margin-inline: 4px;
}

a {
  text-decoration: none;
  color: #000;
  text-align: center;
}
@keyframes scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.scale {
  animation: scale 0.5s ease-in-out;
}
@media (max-width: 768px) {
  .control-button {
    font-size: 0.7rem;
  }
}
