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

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

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);


  padding: 20px;
  gap: 10px;
  text-align: center;
  overflow-x: hidden;
}

h1,
#status,
label,
#timer {
  color: white;
}

select {
  background-color: #333;
  color: white;
  border: 1px solid #888;
  padding: 5px;
  border-radius: 5px;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

#game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 25px;
  justify-content: center;
  margin: 20px 0;
  max-width: 600px;
  width: 100%;
}

.card {
  width: 100px;
  height: 100px;
  cursor: pointer;
  perspective: 1000px;
  border: 2px solid white;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); 
  transition: transform 0.2s, box-shadow 0.3s;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0);
  transition: transform 0.6s;
}

.card.flip .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.card-front {
  background-color: rgba(0, 0, 0, 0.2); 
}

.card-back {
  background-color: white;
  color: black;
  transform: rotateY(180deg);
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: rgb(249, 163, 131);
  background-color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: rgb(233, 110, 110);
  color: white;
}

.card:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

#start-btn {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 20px;
}
