
body{
  font-weight: 600;
  background: url(assets/bg.png) center no-repeat fixed;
  background-size: cover;
  font-family:Arial, Helvetica, sans-serif;
  color: rgb(128, 124, 124);
}

.grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border:4px solid rgb(58, 58, 58);
  border-radius: 10px;
  width:  480px;
  height: 480px;
  z-index: 2;
  background-color: rgb(216, 216, 216);
}

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border: 1px solid rgb(232, 231, 231);
  border-radius: 10px;
  background-color: white;
}

section{
  display: flex;
  align-items: center;
  flex-direction: column;
}

.cell-right {
  border-right: 4px solid rgb(58, 58, 58);
}

.cell-bottom {
  border-bottom: 4px solid rgb(58, 58, 58);
}

.cell-select {
  background-color: rgb(121, 121, 194);
}

.cell-select-row-col {
  background-color: rgb(169, 169, 226);
}
.cell-correct {
  background-color: rgb(121, 125, 194);
}
.cell-incorrect {
  background-color: rgb(194, 121, 144);
  color: rgb(128, 124, 124);
}
.cell-update {
  background-color: rgb(190, 190, 227);
}

input{
  width:40px;
  height: 40px;
  background-color: white;
  border: none;
  text-align: center;
  font-weight: 700;
  border-radius: 10px;
  caret-color: transparent;
}

.victory{
  display: none;
  font-size: 25px;
  color: rgb(121, 125, 194);
}

.victory.active{
  display: flex;
}

.rules{
  width: 480px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.rules_dialog{
  color: rgb(58, 58, 58);
  width: 350px;
  height: 550px;
  font-weight: 600;
  background: linear-gradient(rgb(244, 244, 244), rgb(234, 234, 234)) ;
  border-radius: 15px;
  border : 3px solid rgb(218, 218, 218);
  text-align: center;
}

.rules_boutton{
  width: 200px;
  height: 30px;
  color: rgb(255, 255, 255);
  font-weight: 600;
  background: linear-gradient( rgb(142, 142, 226), rgb(164, 164, 240)) ;
  border-radius: 15px;
  border : 3px solid rgb(218, 218, 218);
}

h1{
  color: rgb(58, 58, 58);

}
.information{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  gap: 10px;
}


.option{
  height: 25px;
  width: 82px;
  font-size: 9px;
  font-weight: 600;
  color:rgb(255, 255, 255);
  background: linear-gradient(rgb(121, 121, 194), rgb(169, 169, 226)) ;
  border-radius: 15px;
  border : 3px solid rgb(218, 218, 218);
}

@media screen and (min-width: 1400px) {
  .information{
    background-color: white;
    width: 225px;
    height: 455px;
    position: absolute;
    top: 167px;
    left: 175px;
    border-radius: 15px;
    border : 4px solid rgb(218, 218, 218);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 25px;
    align-items: center;
    gap: 25px;
  }

  .option{
    height: 40px;
    width: 200px;
    font-size: 20px;
  }
}

@media screen and (max-width: 500px) {

    
  .grid {
    width:  240px;
    height: 240px;
    border: 2px solid black;
    border-radius: 8px;
  }

  .cell {
    width: 23px;
    height: 23px;
    border-radius: 7px;
  }

  
  .cell-right {
    border-right: 3px solid rgb(58, 58, 58);
  }

  .cell-bottom {
    border-bottom: 3px solid rgb(58, 58, 58);
  }

  input{
    width:15px;
    height: 15px;
  }
  .rules{
    width: 240px;
  }

}

.confetti {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
}

.confetti.active {
  display: flex;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 18px;
  opacity: 0.7;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  from {
    transform: translateY(-20px) rotate(0deg);
  }
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}