@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Baloo+Bhaina+2:wght@400..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav {
  background-color: rgb(95, 22, 22);
  color: aliceblue;
  height: 65px;
  font-size: 24px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: "Outfit", sans-serif;
}

nav ul {
  list-style-type: none;
}

.gameContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
  gap: 40px;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 10vw);
  grid-template-rows: repeat(3, 10vw);
  font-family: "Outfit", sans-serif;
  position: relative;
}

.box {
  border: 2px solid black;
  font-size: 8vw;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}
.box:hover {
  background-color: rgb(237, 204, 204);
}

.info {
  font-size: 22px;
}

.gameInfo {
  font-family: "Baloo Bhaina 2", sans-serif;
}
.gameInfo h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.imagebox img {
  width: 0;
  transition: width 0.8s ease-in-out;
}

/* Borders to avoid double lines */
.br-0 { border-right: 0; }
.bl-0 { border-left: 0; }
.bt-0 { border-top: 0; }
.bb-0 { border-bottom: 0; }

/* Winning line */
.line {
  position: absolute;
  height: 5px;
  background: rgb(232, 160, 160);
  border-radius: 5px;
  transform-origin: left center;
  display: none;
  transition: width 0.3s ease; /* smooth grow effect */
}


#reset {
  margin: 10px 0;
  padding: 5px 18px;
  background-color: rgb(211, 144, 211);
  border-radius: 6px;
  cursor: pointer;
  font-family: "Baloo Bhaina 2", sans-serif;
  font-size: 15px;
  font-weight: bolder;
}

@media screen and (max-width: 950px) {
  .gameContainer {
    flex-wrap: wrap;
    gap: 20px;
  }
  .container {
    grid-template-columns: repeat(3, 20vw);
    grid-template-rows: repeat(3, 20vw);
  }
  .gameInfo h1 {
    font-size: 1.5rem;
  }
}
