html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center; /* horizontal centering, optional */
  min-height: 100vh; /* ensures it fills the viewport */
  font-family: "Lato", sans-serif;
  background-image: url(../img/blackBGTile.svg);
  background-size: 40%;
  background-color: #312e2b;
  margin: 0px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

a,
#closebtn {
  color: white;
  cursor: pointer;
}

.sidenav {
  height: 100%;
  width: 80px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #262421;
  overflow-x: hidden;
  transition: 0.5s;
}

.sidenav a,
.sidenav p {
  padding: 15px;
  margin: 0px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover,
.sidenav p:hover {
  box-shadow: -5px 0px 6px rgba(0, 0, 0, 0.4), 5px 0px 6px rgba(0, 0, 0, 0.4);
  background-color: #171614;
  cursor: pointer;
}

#logo {
  height: 50px;
}
#logo p {
  padding: 15px 15px 10px 15px;
}

#logIn {
  height: 50px;
  position: absolute;
  bottom: 0px;
  padding: 15px;
  border-radius: 50%;
}

#manageSubscription {
  position: absolute;
  bottom: 75px;
}

#checkOut {
  position: absolute;
  bottom: 75px;
  display: none;
}

#basic {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

#basicStrategy {
  width: 890px;
  height: 150px;
  border-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #262421;
  border-radius: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 45px;
  font-weight: bold;
}

.settings{
  width: 30px;
    display: inline-block;
    position: absolute;
    top: 15px;
    left: 15px;
}

.info{
    width: 36px;
    display: inline-block;
    position: absolute;
    top: 50px;
    left: 12px;
}

#basicStrategy .settings{
    top: 15px;
    left: 50px;
}

#basicStrategy .info{
    top: 50px;
    left: 47px;
}

.spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 10px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top-color: #027339;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

#allGamesContainer {
  display: flex;
  justify-content: center;
  margin-left: 175px;
}

#quickModes {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

#quickModes #quickCount {
  position: relative;
  width: 410px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #262421;
  border-radius: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 40px;
  font-weight: bold;
}

#quickModes #deviations {
  position: relative;
  width: 410px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #262421;
  border-radius: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 40px;
  font-weight: bold;
}
#quickModes {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

#modes {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.modeA {
  margin: 35px 35px 0 35px;
}

#play {
  position: relative;
  text-align: center;
  width: 410px;
  height: 575px;
  background-color: #262421;
  border-radius: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
}
#play #playimg {
  position: relative;
  width: 410px;
  border-radius: 1.5rem 1.5rem 0 0;
}
#play p {
  display: inline-block;
  font-size: 90px;
  font-weight: bold;
  margin-top: 33.5px;
}
#play p img {
  vertical-align: middle;
  display: inline-block;
  margin-left: 5px;
  height: 40px;
  width: 40px;
  cursor: pointer;
}

#learn {
  position: relative;
  text-align: center;
  width: 410px;
  height: 575px;
  background-color: #262421;
  border-radius: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
}

#learn #learnimg {
  position: relative;
  width: 410px;
  border-radius: 1.5rem 1.5rem 0 0;
}
#learn p {
  display: inline-block;
  font-size: 90px;
  font-weight: bold;
  margin-top: 33.5px;
}

#learn:hover,
#play:hover,
#basicStrategy:hover,
#quickCount:hover,
#deviations:hover {
  box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.4);
  background-color: #171614;
  outline: solid #027339;
}

.membership {
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 15px;
}

#optionsPanelContainer,
#infoScreenContainer {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

#optionsPanel {
  display: none;
  position: fixed;
  height: 90%;
  width: 50%;
  z-index: 1;
  font-size: 20px;
  text-align: center;
  top: 50px;
  margin-left: 175px;
  overflow-x: hidden;
  background-color: #322e2b;
  border-radius: 1.5rem;
  color: white;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}
#infoScreen {
  display: none;
  height: 90%;
  width: 60%;
  position: fixed;
  z-index: 1;
  font-size: 16px;
  text-align: center;
  top: 50px;
  margin-left: 175px;
  overflow-x: hidden;
  background-color: #322e2b;
  border-radius: 1.5rem;
  color: white;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

#infoScreen h1 {
  margin: 20px;
}
#infoScreen h2 {
  margin: 18px;
}

#infoScreen > p {
  padding: 5px 25px;
  margin: 0px;
}

#infoScreen ul {
  text-align: center;
}

#infoScreen #closeInfo,
#closeOptions {
  cursor: pointer;
  position: absolute;
  padding: 0px;
  margin: 0px;
  left: 30px;
  top: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 20px;
}

/* 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: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #027339;
}

input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#maxSplits3,
#maxSplits2,
#maxSplits1 {
  accent-color: #027339;
}

#closebtn {
  font-size: 30px;
  text-align: right;

  margin-right: 30px;
}

@media only screen and (max-width: 600px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: scroll;
  }

  #allGamesContainer {
    margin-left: 100px;
  }

  #basicStrategy {
    width: 280px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1.5rem;
  }

  #learn,
  #play {
    width: 280px;
    height: 295px;
  }
  #learn #learnimg,
  #play #playimg {
    width: 235px;
  }

  #basic,
  #modes {
    width: fit-content;
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
  }

  #basicContainer {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #basic {
    width: auto;
    height: 80px;
    padding: 10px;
  }

  #basicStrategy {
    font-size: 30px;
  }

  #quickModes #quickCount {
    position: relative;
    width: 280px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #262421;
    border-radius: 1.5rem;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
  }

  #quickModes #deviations {
    position: relative;
    width: 280px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #262421;
    border-radius: 1.5rem;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
  }

  #quickModes {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
  }

  #learn P,
  #play P {
    font-size: 80px;
    margin-top: -40px;
  }

  .modeA {
    margin: 10px;
  }

  .sidenav {
    height: 100%;
    width: 100px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #262421;
    overflow-x: hidden;
    transition: 0.5s;
  }

  .membership {
    height: 15px;
  }

  #optionsPanel,
  #infoScreen {
    width: 300px;
    font-size: 16px;
  }

  #infoScreen h1 {
    font-size: 18px;
    margin: 10px;
  }
  #infoScreen h2 {
    font-size: 18px;
    margin: 10px;
  }

  #infoScreen > p {
    padding: 5px 25px;
    margin: 0px;
  }

  #infoScreen ul {
    text-align: center;
  }

  .sidenav a,
  .sidenav p {
    font-size: 17px;
  }
}
