@import url('https://fonts.googleapis.com/css2?family=Grape+Nuts&display=swap');

header,
h1,
h2,
h3,
p,
span,
button {
    font-family: 'Grape Nuts', cursive;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white;

}

canvas {
    padding: 0;
    margin: auto;
    display: block;
    width: 800px;
}

#covercanvas{
    margin-bottom: 5px;
}

.charselection,
#startpage {
    width: 800px;
    height: 450px;
    padding: 0;
    margin: auto;
    display: block;
    background-image: url("../images/Battleground21066x600.png");
}

#startpage header {
    height: 40px;
    text-align: center;
    font-size: 80px;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-weight: 700;
    padding-bottom: 100;
}

 #gameheader{
    height: 100px;
    text-align: center;
    font-size: 80px;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-weight: 700;
    padding-bottom: 100;
    display: none;
} 

#story {
    border: 1px solid white;
    border-radius: 50px;
    background-color: rgba(57, 55, 55, 0.777);
    width: 225px;
    height: 280px;
}

#story p {
    color: white;
    font-size: 21.5px;
    padding: 0 15px;
    text-align: center;
    margin-top: 8px;

}

#instructionsbox {
    border: 1px solid white;
    border-radius: 50px;
    text-align: center;
    background-color: rgba(57, 55, 55, 0.777);
}

#instructionsbox h3 {
    padding: 0 50px;
}

#instructionsbox p,
span {
    margin: 0px;
    font-size: 20px;
    padding-right: 10px;
}


#wasd {
    width: 120px;
    margin: 0px;
}

#spacebar {
    width: 200px;
    margin-top: 30px;
}

.endbox {
    padding-bottom: 10px;
}

#elementsstart {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    height: 300px;
    padding: 10px 35px;
}

#instructionsbox p {
    color: white;

}

#startgamebtn {
    text-align: center;
    font-family: 'Grape Nuts', cursive;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white;
    border: 1px solid black;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(to bottom, black, grey);
    text-decoration: none;
    font-size: 30px;
}

#startgamebtn:hover {
    background: linear-gradient(to bottom, rgba(31, 129, 228, 0.637), grey);
}

.charselection header {
    text-align: center;
    font-size: 50px;
    font-weight: 700;

}

#characters {
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 75px;
}

#characters h2 {
    font-weight: 700;
}

.charbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid white;
    border-radius: 50px;
    background-color: rgba(239, 202, 109, 0.599);
    /* background-color: rgba(57, 55, 55, 0.777);
     */
}

.selected {
    background-color: rgba(0, 0, 255, 0.401);
}

.charbox img {
    margin-bottom: 10px;
    ;
}

.charbox h2 {
    text-align: center;
    margin-top: 5px;
}

.abilities {
    padding: 1px 35px 10px 35px;
    margin-bottom: 1px;
}

.abilities progress {
    width: 85px;
}

.abilities p {
    font-size: 20px;
    font-weight: 700;
    margin: 0px 1px;
}

.abilities span {
    font-weight: 700;
    padding-left: 5px;
}

#submitchar {
    text-align: center;
    font-family: 'Grape Nuts', cursive;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white;
    border: 1px solid black;
    border-radius: 20px;
    padding:12px;
    background: linear-gradient(to bottom, black, grey);
    text-decoration: none;
    font-size: 30px;
}

#submitchar:hover {
    background: linear-gradient(to bottom, rgba(31, 129, 228, 0.637), grey);
}

#submitcharbox {
    text-align: center;
    margin: 25px 0px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }

  .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;
  }

  .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: #2196F3;
  }

  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  footer{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 0;
      margin: auto;
      width: 800px;
      background-color: rgba(57, 55, 55, 0.777);
      border: 1px solid white;
      border-bottom-left-radius: 25px;
      border-bottom-right-radius: 25px;
  }


  .social{
      width: 50px;
  }

  #musictoogle{
      display: flex;
      align-items: center;
  }

  #musictoogle span{

      margin-top: 0px;
      margin-bottom: 0px;
      font-size: 20px;
  }

  body{
      background-image: url("../images/sky.png");
  }

  .by{
      font-size: 25x;
      margin: 0px;
      padding-left: 10px;
  }

 .socialbox{
     padding-right: 10px;
 }