/* General layout */
body {
  background-color: cadetblue;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 5%;
  width: 100%;
  box-sizing: border-box;
}

.gameName {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: bold;
}

#timer {
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: #000;
}

.headerBtn {
  display: flex;
  gap: 1rem;
  padding: 10px 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px auto;
}

.game {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 500px; /* Limits size on desktop */
  aspect-ratio: 1 / 1; /* Keeps it square */
}

.box {
  border: none;
  border-radius: 1rem;
  box-shadow: 3px 15px 19px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.5rem, 8vw, 3rem);
  color: maroon;
  font-weight: bold;
  background-color: #fff;
  cursor: pointer;
}

/* --- RESULT BOARD: EXACTLY YOUR ORIGINAL STYLE --- */

.result-board {
  position: fixed;
  background-color: #fff;
  height: 100%;
  width: 100%;
  top: 0;
  justify-content: center;
  align-items: center;
}

.result-board header {
  height: 80px;
  background: cadetblue;
  color: #fff;
}

.result-board header h1 {
  font-size: 5vmin;
  color: white;
  font-weight: 600;
  font-family: 'Times New Roman', Times, serif;
}

.board-container {
  background-color: red;
  width: 70vh;
  height: 80vh;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  border-radius: 12px;
  border: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo img {
  width: 100%;
  height: 150px;
  border: none;
  border-radius: 12px;
}

#msg {
  font-size: 5vmin;
  color: #fff;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 50px;
}

#para {
  font-size: 7vmin;
  color: #fff;
  font-weight: 600;
  line-height: 30px;
}

#newGame, #reset, #undoBtn, #playAgain {
  padding: 12px 20px;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  box-shadow: 3px 15px 19px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

 #reset i, #undoBtn i{
display: none;
 }

#newGame:hover, #reset:hover, #undoBtn:hover, #playAgain:hover {
  background-color: #f0f0f0; 
  transform: translateY(-2px); 
  box-shadow: 3px 18px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.hide {
  display: none !important;
}

/* --- MOBILE ADJUSTMENTS FOR HEADER ONLY --- */

@media (max-width: 480px) {
  #reset span {
    display: none;
  }
  #reset i {
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
    /* margin: 0 10px; */
    padding: 3px;
  }

  #undoBtn span {
    display: none;
  }
  #undoBtn i {
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
    padding: 3px;
  }
  #undoBtn i{
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
    padding: 3px;
  }

  .container{
    width: 100%;
    margin: 0;
    height: auto;
    justify-content: start;
    align-items: center;
  }

  
.result-board {
  position: fixed;
  background-color: #fff;
  height: 100%;
  width: 100%;
  top: 0;
  justify-content: center;
  align-items: center;
}

.result-board header {
  height: 80px;
  background: cadetblue;
  color: #fff;
}

.result-board header h1 {
  font-size: 5vmin;
  color: white;
  font-weight: 600;
  font-family: 'Times New Roman', Times, serif;
}

.board-container {
  background-color: red;
  width: 50vh;
  height: 60vh;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  border-radius: 12px;
  border: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo img {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 12px;
}

#msg {
  font-size: 5vmin;
  color: #fff;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 50px;
}

#para {
  font-size: 7vmin;
  color: #fff;
  font-weight: 600;
  line-height: 30px;
}


}