/* Tech Stack Match Game Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.instructions {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

.creator {
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

.creator a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.creator a:hover {
  text-decoration: underline;
}

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

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 90px);
  grid-gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.card {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 5px 7px 15px rgba(0,0,0,0.2);
}

.card.flipped {
  background: linear-gradient(145deg, #4f46e5, #3730a3);
  color: white;
  transform: rotateY(180deg);
  border-color: #ffd700;
}

.card.matched {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  cursor: default;
  animation: matchPulse 0.6s ease-in-out;
}

@keyframes matchPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.game-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  font-weight: bold;
}

#message {
  margin: 20px 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #1f2937;
  min-height: 30px;
}

.success-message {
  color: #059669 !important;
  animation: celebrationBounce 0.8s ease-in-out;
}

@keyframes celebrationBounce {
  0%, 20%, 60%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  80% { transform: translateY(-5px); }
}

#restart-btn {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  color: white;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .game-board {
    grid-template-columns: repeat(3, 80px);
    grid-gap: 10px;
  }
  
  .card {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }
  
  .game-container {
    padding: 20px;
  }
}
