/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #e0f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  min-height: 100vh;
}

/* Heading */
h1 {
  padding: 1rem;
}

/* Game Layout */
.container {
  height: 60vh;
  width: 70vh;
}

.game {
  height: 60vmin;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Game Boxes */
.box {
  height: 18vmin;
  width: 18vmin;
  border-radius: 1rem;
  border: none;
  background-color: #adcde2;
  cursor: pointer;
  font-size: 50px;
  color: #ff0800;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, transform 0.3s;
}

.box:hover {
  background-color: bisque;
}

/* Buttons */
button {
  padding: 10px;
  border-radius: 12px;
  font-size: 1.25rem;
}

button:hover {
  background-color: #adcde2;
  border: 2px solid red;
  cursor: pointer;
}

#reset-btn {
  margin-top: 1rem;
}

#new_game {
  margin-top: 1rem;
}

/* Message Styling */
#msg {
  margin-top: 0.5rem;
  background-color: rgb(0, 195, 255);
  padding: 12px;
  font-size: 1.7rem;
  border-radius: 12px;
  font-weight: 600;
}

.hide {
  display: none;
}

.hideResetBtn {
  display: none;
}

/* ⭐ Draw Animation */
.draw-animation {
  animation: fadeShrink 0.6s ease forwards;
}

/* Animation Keyframes */
@keyframes fadeShrink {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}
