* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0b0f1a;
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}
  
.h1 {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #00ffcc, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  letter-spacing: 1.5px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-box {
  height: 75vmin;
  width: 75vmin;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5vmin;
}

.box {
  background-color: #161b27;
  color: #00ffc6;
  font-size: 6rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 23vmin;
  width: 23vmin;
  line-height: 1;
  border: 2.5px solid #2a2f3d;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  padding: 0;
}

.box:hover {
  background-color: #1f2533;
}

.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

#reset,
#newbtn {
  padding: 14px 30px;
  background: linear-gradient(90deg, #007bff, #00ffc6);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#reset:hover,
#newbtn:hover {
  background: linear-gradient(90deg, #00ffc6, #007bff);
}

.msg-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #161b27;
  padding: 30px 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 255, 198, 0.3);
  z-index: 999;
  width: 320px;
}

#msg {
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #00ffc6;
  font-weight: 700;
}

.hide {
  display: none;
}
