:root {
  --primary: #E4167B;
  --secondary: #FF9F1C;
  --accent: #2B7DE9;
  --background: #f0f0f0;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff, var(--background));
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}

.container11 {
  max-width: 800px;
  margin: 0 auto;
}

.header11 {
  text-align: center;
  margin-bottom: 20px;
}

.logo11 {
  font-size: 2.5em;
  font-weight: bold;
}

.logo11 span:first-child {
  color: var(--primary);
}

.logo11 span:last-child {
  color: var(--secondary);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  gap: 10px;
}

.stat-box {
  background: white;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

select, button {
  padding: 10px 15px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: white;
  color: var(--accent);
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

button {
  background: var(--primary);
  color: white;
  border: none;
}

button:hover {
  background: var(--secondary);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
}

.card-front {
  background: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front img {
  max-width: 70%;
  max-height: 70%;
}

.card-back {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.instructions {
  background: white;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.instructions h2 {
  color: var(--primary);
  margin-top: 0;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 10px;
}

.instructions li::before {
  content: "•";
  color: var(--accent);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
