* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(
    45deg,
    #ff9a9e,
    #1ba902,
    #fbc2eb,
    #130439,
    #2b0c03,
    #170552,
    #ff9a9e
  );
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  font-family: Arial, sans-serif;
  color: #fff;
  text-align: center;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1 {
  background: linear-gradient(135deg, #5175fd, #e91e63);
}

#a {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 1rem 2rem;
  margin: 2vh auto;
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
}

.container {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2vh;
}

.game {
  height: 60vmin;
  width: 60vmin;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5vmin;
}

.box {
  height: 18vmin;
  width: 18vmin;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  font-size: 7vmin;
  font-weight: bold;
  color: rgb(97, 218, 23);
  background-color: #064e13;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#reset-btn,
#new-btn {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  margin: 1rem auto;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
}

#reset-btn {
  background-color: rgb(31, 5, 38);
  color: #fff;
}

#reset-btn:hover {
  background-color: green;
}

#new-btn {
  background-color: rgb(18, 24, 211);
  color: #fff;
}

#new-btn:hover {
  background-color: green;
}

#msg {
  color: #d4f820;
  font-size: 3rem;
  background-color: rgb(126, 15, 230);
  border-radius: 1rem;
  padding: 2rem;
}

.msg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
}

.hide {
  display: none;
}
