.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar ul{
  list-style-type: none;
  background-color: black;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.navbar a{
  color: white;
  font: italic;
  font-size: 20px;
  text-decoration: none;
  padding: 15px;
  display: block;
  margin-left: 30px;
  margin-top: 10px;
  user-select: none;
}


.navbar a:hover{
  background-color: aliceblue;
  opacity: 0.4;
  border-radius: 40px;
}

.navbar-right li{
  float:left;
  margin-left: 30px;
}

.navbar h1{
  color: white;
  padding-left: 20px;
  margin-bottom: 10px;
  user-select: none;
}



.game-container {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
}

h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 2rem;
}

.score-board {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 10px;
}

.card {
  aspect-ratio: 1;
  border: 0.2px solid gray;
  border-radius: 0%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: white;
  min-height: 60px;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

.card.flipped {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.card.matched {
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  opacity: 0.7;
}

.card.disabled {
  pointer-events: none;
}

.reset-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.reset-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .game-grid {
    gap: 4px;
    padding: 10px;
  }

  .card {
    min-height: 40px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .score-board {
    font-size: 1rem;
    gap: 20px;
  }
