body {
    background-color: black;
    color: white;
    font-family: monospace;
}

#tic-tac-toe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 60vw;
  height: 60vw;
  margin: 20px auto;
  border: 1px solid #ccc;
  max-height: 900px;
  max-width: 900px;
  position: sticky;
  margin-top: 240px;
}

#tic-tac-toe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 75vh;
}

.grid-item {
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 250px;
  transition: 1s;
  filter: drop-shadow(2px 4px 6px #0044ff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item:hover {
    background-color: #0044ff28;
    cursor: pointer;
    color: black;
    transition: 0s;
}

#winnerbar {
    text-align: center;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: rgba(22, 22, 22, 0.925);
    font-size: 50px;
    transition: 2s;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
}

#restartbutton {
    position: absolute;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: rgb(0, 0, 0);
    font-size: 20px;
    transition: 1s;
    border-radius: 15px;
    z-index: 1;
    opacity: 0;

    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 30%;
    margin-top: 40px;
    min-width: 100px;
    max-width: 200px;
}

#restartbutton:hover {
    background-color: rgb(99, 99, 99);
    cursor: pointer;
}





/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #769bff57;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #0030b6;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #0044ff28;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }





@media only screen and (max-width: 1500px) {
  .grid-item {
    font-size: 16.667vw;
  }
}

@media only screen and (max-width: 1000px) {
  #winnerbar {
    font-size: 5vw;
  }
}


#pvp {
  color: black;
  top: 440px;
  position: absolute;
  font-size: 30px;
  font-weight: 600;
  margin: auto;
  z-index: 10;
  text-align: center;
  display: none;
  left: 50%;
  transform: translate(-50%, -50%);
}

.settings-container {
  position: relative;
}

.settings-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 30px;
}

.settings-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 40px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 5;
  box-shadow: 0px 0px 50px 50px #000000e3;
}

.settings-popup-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  pointer-events: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  top: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0e41c9;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0e41c9;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}