/* Mode selection styles */
#mode-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#mode-select label {
  font-size: 1.2rem;
  color: #222;
  font-weight: 500;
}

#mode {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #b0413e;
  font-size: 1rem;
  background: #ffffc7;
  color: #b0413e;
  outline: none;
  transition: border 0.2s;
}

#mode:focus {
  border: 2px solid #548687;
}

h1 {
  font-size: 2.5rem;
  color: #191913;
  letter-spacing: 2px;
}

#reset-btn, #new-btn {
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#reset-btn:hover, #new-btn:hover {
  background: #548687;
  color: #ffffc7;
}
* {
  margin: 0;
  padding: 0;
}


body {
  background: linear-gradient(135deg, #548687 0%, #b0413e 100%);
  min-height: 100vh;
  text-align: center;
  transition: background 0.5s;
}


.container {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game {
  height: 60vmin;
  width: 60vmin;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  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: 8vmin;
  color: #b0413e;
  background-color: #ffffc7;
  transition: background 0.2s, transform 0.1s;
}

.box:not(:disabled):hover {
  background: #ffe082;
  transform: scale(1.05);
  cursor: pointer;
}

#reset-btn {
  padding: 1rem;
  font-size: 1.25rem;
  background-color: #191913;
  color: #fff;
  border-radius: 1rem;
  border: none;
}

#new-btn {
  padding: 1rem;
  font-size: 1.25rem;
  background-color: #191913;
  color: #fff;
  border-radius: 1rem;
  border: none;
}

#msg {
  color: #ffffc7;
  font-size: 5vmin;
  animation: pop-in 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes pop-in {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.msg-container {
  height: 100vmin;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4rem;
}

.hide {
  display: none;
}

.swamini{
  padding-right: 5px;
   justify-content:end;
   text-align:right;
   font-style: oblique;
   margin-bottom:10px;
}