body {
  background-color: rgb(11, 128, 116);
  background-image: linear-gradient(135deg, #078684, rgb(15, 160, 90));
  font-family: 'Arial', sans-serif;
  color: rgb(0, 0, 0);
  margin: 0;
  padding: 0;
}
#header {
  text-align: center;
  font-size: 2rem;
  padding: 15px;
  color: #fff;
}
.box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: center;
  margin: 40px auto;
  width: 90vw;            
  max-width: 450px;       
  aspect-ratio: 1/1; 
}
.content {
  font-size: 2rem;
  color: #050303;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #00bcd4;
  border-radius: 10px;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.content:hover:not(.inactive):not(:disabled) {
  background-color: #0288d1;
  transform: scale(0.9);
  box-shadow: 2px 7px 30px rgba(186, 23, 195, 1);
}
.content:disabled {
  background-color: #00bcd4;
  cursor: not-allowed;
  box-shadow: none;       
}

.content:disabled:hover {
background-color: #00bcd4;
}

#reset {
  display: block;
  background-color: #9b1a56;
  padding: 12px 24px;
  border-radius: 20px;
  border: 2px solid #fff;
  cursor: pointer;
  margin: 20px auto;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#reset:hover {
  background-color: #c2185b;
  transform: scale(1.05);
}

.msgB {
  background-color: #00e676;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 300px;
  margin: 20px auto;
  border-radius: 20px;
  border: 2px solid #fff;
  height: auto;
  min-height: 60px;
  font-size: 1rem;
  color: #000;
  padding: 10px;
  text-align: center;
}

.hide {
  display: none;
}

.inactive {
  pointer-events: none;
  transform: none;
  box-shadow: none;
  cursor: default;
}
@media (max-width: 600px) {
  #header {
    font-size: 1.5rem;
  }

  .content {
    font-size: 1.5rem;
  }

  #reset {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .msgB {
    font-size: 0.9rem;
    min-height: 50px;
  }
}
