/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #333;
}

header {
  background: #00796b;
  color: white;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 5px 0 0;
  font-size: 1.2rem;
}

#game-container {
  max-width: 900px;
  margin: 20px auto;
}

/* Buttons for Menu, Instructions, Game, and Result Areas */
#menu button,
#instructions-area button,
#game-area button,
#result-area button {
  padding: 10px 20px;
  font-size: 1.2rem;
  margin: 10px;
  background: #4db6ac;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#menu button:hover,
#instructions-area button:hover,
#game-area button:hover,
#result-area button:hover {
  background: #00796b;
}

/* Hide sections with .hidden */
.hidden {
  display: none;
}

#instructions-area,
#game-area,
#result-area {
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Shapes Container */
#shapes-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Enlarged Shapes */
.shape {
  width: 80px;  /* Enlarged from 50px */
  height: 80px;
  cursor: grab;
  transition: transform 0.3s;
}

/* Specific Shape Styles */
.circle {
  border-radius: 50%;
  background-color: #ff7043;
}

.square {
  background-color: #29b6f6;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;  /* Increased to enlarge */
  border-right: 40px solid transparent;
  border-bottom: 80px solid #66bb6a;
}

/* Categories Container */
#categories-container {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.category {
  width: 150px;
  height: 100px;
  background-color: #eeeeee;
  border: 2px dashed #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #666666;
}

/* --- Gamification Animations --- */

/* Pop Animation for Correct Sorting */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.pop {
  animation: pop 0.5s ease-out;
}

/* Shake Animation for Incorrect Sorting */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.3s ease;
}
