body {
    font-family: 'Red Hat Display';
    /* overflow: hidden important; */
    overflow-y: hidden; /* Hide vertical scrollbar */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    text-align: center;
    background-color:#1A2A33;

    /*** #F2B137  **/
  }
  html, body{
    height:100vh;
    width: 100vw;
    margin:0;
    padding:0;
    overflow-x: hidden;
    position: relative;
  }
  
  *,
  *::after,
  *::before {
    box-sizing: border-box;
  }

  #homePage{
    width: 28rem;
    /* height:50vh; */
    /* margin-left: auto;
    margin-right: auto;
    margin-top: 25vh; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* COMMENT THE DISPLAY WHEN DONE WITH THE RECTANGLE */
  }

  .second-div{
    background-color: #1F3641;
    box-shadow: inset 0px -8px 0px #10212A;
    border-radius: 15px;
    margin-bottom: 40px;
  }
  .pick-player{
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #A8BFC9;
    padding-top: 10px;

  }
  
  .greyer{
    color: #A8A8A8;
  }
  .oval{
    margin-top: 12px;
  }
  .xtimes{
    margin-top: 12px;
  }

  .vs-cpu{
    background: #F2B137;
    box-shadow: inset 0px -8px 0px #CC8B13;
    border-radius: 15px;
    height: 65px;
    margin-bottom: 1rem;
    line-height: 4;
    cursor: pointer;

  }
  .vs-cpu:hover{
    background-color: #FFC860; 
  }


  .vs-player{
    background: #31C3BD;
    box-shadow: inset 0px -8px 0px #118C87;
    border-radius: 15px;
    height: 65px;
    line-height: 4;
    cursor: pointer;
  }

  .vs-player:hover{
    background-color: #65E9E4;
    
  }
  .use-player{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A8BFC9;

  }
  .use-first-effects{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: none;
  }
  

  .new-game{
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: 1.25px;  
    color: #1A2A33;
  }
.player-xo{
    /* width: 400px; */
    height: 70px;
    background-color: #1A2A33;
    border-radius: 10px;
    margin-left: 20px;
    margin-right: 20px;
    align-items: center;
   justify-content: space-evenly;
    display: flex;   
}

.first-x{
    width:45%;
    height: 80%;
    cursor: pointer;
    border-radius: 10px;
}
.first-x:hover{
  background-color: #1F3641;
}
.first-o{
    width:45%;
    height: 80%;
    border-radius: 10px;  
    line-height: 1;
    cursor: pointer;

} 
.first-o:hover{
  background-color: #1F3641;
}
.rememberX{
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  letter-spacing: 0.875px;
  color: #A8BFC9;
  opacity: 0.5;
  padding-bottom: 10px;
}

/* BOARD FORMATTING */
#table {
  border-spacing: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  display: none;
}
.reset-table{
  position :absolute;
  opacity : 0.1;
}
.cell {
    border: 10px;
    height: 150px;
    width: 150px;
    text-align: center;
    background-color: #1F3641;
    box-shadow: inset 0px -8px 0px #10212a;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 20px;
    /* font-size: 80px; */
    font-weight: 900;
    color: #31C3BD;
}

.cell2{
  border: 10px;
  width: 140px;
  height: 72px;
  border-radius: 15px;
  cursor: pointer;
 
}

.cgreen{
  background-color:#31C3BD ;
}

.cgrey{
  background-color:#A8BFC9 ;
}

.corange{
  background-color: #F2B137;
}


.first-row2{
  height: 52px;
  background-color: #1F3641;
  box-shadow: inset 0px -4px 0px #10212A;
  border-radius: 10px;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #A8BFC9;
  display: flex;
  justify-content: space-evenly;
  align-items: center
}
.first-row3{
  width: 52px;
  height: 52px;
  background-color: #A8BFC9;
  box-shadow: inset 0px -4px 0px #6B8997;
  border-radius: 10px;
  margin-left: 50%;
  cursor: pointer;
}
.first-row3:hover{
  background-color: #DBE8ED;
}

.redo{
  margin: 0 auto;
  position: relative;
  top: 15px;
}
.winnerX{
  background-color: #31C3BD; 
}
.winnerO{
  background-color: #F2B137;  
}

.xPlay{
  color: #31C3BD;
}
.oPlay{
  color: #F2B137;
}

.numbers{
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;  
  letter-spacing: 1.5px;
  color: #1A2A33;
}
.score-write{
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.875px;
  color: #1A2A33;

}

/* CSS FOR THE RECTANGLE */
.rectangle{
  width: 100%;
  height: 17rem;
  background-color: #1F3641;
  margin-top: 30vh;
  display: none;
}

.group-10{
  padding-top: 2rem;
  
}
.winnerP{
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A8BFC9;

}
.takes{
  font-family: 'Outfit',sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: "#A8BFC9";
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 1.5rem;

}
.takes-winnerO{
 color: #F2B137;
}
.takes-winnerX{
 color: #31C3BD;
}
.pl-image{
  margin-left: 5px;

}
.quit{
  height: 56px;
  width: 72px;
  background-color: #A8BFC9;
  box-shadow: inset 0px -4px 0px #6B8997;
  border-radius: 10px;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  color: #1A2A33;
  margin-right: 1rem;
  cursor: pointer;
  
}
.quit:hover{
  background-color: #DBE8ED;
}
.next-round{
  height: 56px;
  width: 146px;
  background-color: #F2B137;
  box-shadow: inset 0px -4px 0px #CC8B13;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  letter-spacing: 1px;
  color: #1A2A33;
  cursor: pointer;
}
.next-round:hover{
  background-color: #FFC860;
}
/* RESTART RECTANGLE */
.rectangle1{
  width: 100%;
  height: 17rem;
  background-color: #1F3641;
  
  margin-top: 30vh;
  display: none;
}
.restart-gameP{
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  text-align: center;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A8BFC9;
  
}
.group-11{
  padding-top: 30px;
  padding-bottom: 50px;
}
.cancel{
  height: 50px;
  width: 150px;
  background-color: #A8BFC9;
  box-shadow: inset 0px -4px 0px #6B8997;
  border-radius: 10px;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  letter-spacing: 1px;
  color: #1A2A33;
  margin-right: 16px;
  cursor: pointer;

}
.cancel:hover{
  background-color: #DBE8ED;
}
.handle-reset{
  position: absolute;
  display: inline-block;
  top: 0;
  left: 0;
  z-index: 1;

}
.hide{
  display: none;
}
.restart{
  width: 150px;
  height: 50px;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  color: #1A2A33;
  background-color: #F2B137;
  box-shadow: inset 0px -4px 0px #CC8B13;
  border-radius: 10px;
  cursor: pointer;
}
.restart:hover{
  background-color: #FFC860;
}
.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
/* ADDED CSS CLASSES USING JAVASCRIPT */
.board-visible {
  display: inline-block;
  position: absolute;
  opacity: 1;
}


@media (max-width: 1100px){
  
  .rectangle{
    height: 25vh;
  }
  .cell{
    height: 140px;
    width: 140px;
  }
}

@media (max-width: 700px){
  /* img{
    
    display: flex;
    justify-content: center;
    align-items: center;
    
  } */
 
  .score-write{
    font-size: 12px;
  }
  .make-cell{
    width: 80px;
  }
  .numbers{
    font-size: 20px;
  }
  .first-row2{
    width: 84px;
  }
  
  .xo-logo{
    width: 80px;
  }
  #homePage {
    width: 20rem;
  }
  .player-xo{
    position: relative;
  }
  
  .group-4{
    width: 40%;
   }
   .group-4-copy{
    width: 0%;
   }
  .cell{
    width: 96px;
    height: 96px;
  }
  .takes{
    font-size: 1.8rem;
  }
  #x-img{
    width: 40px;
   
  }
  #o-img{
    width: 40px;
   
  }
  .rectangle{
    height: 30vh;
  }

  @media (max-width: 400px){
    #xwin-img, #xwin1-img, #owin-img, #owin1-img{
      width: 40px;
      height: 40px;

    }
   
    .center{
      text-align: center;
      margin: 0 auto;
    }
    .rectangle{
      height: 35vh;
    }
    .takes{
      font-size: 1.7rem;
    }
    .first-row2{
      font-size: 12px;
    }
    .cell{
      border-radius: 10px;
      width: 96px;
      height: 96px;
    }
    .game-title-bar{
      border-bottom: 20px;
    }
    .first-row1{
      width: 72px;
      height: 32px;
    }
    /* Okay */
  }
  @media (max-width: 300px){
    #homePage {
      width: 13rem;
    }
  }
}
