/*Body-----------------------------------------------------------*/

:root {
  font-size: 1px;
}

@media screen and (min-height: 750px) {
  :root {
    font-size: 1.5px;
  }
}

body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  touch-action: manipulation;
}

h1#title {
  font-size: 32rem;
  border-bottom: 3rem solid black;
  margin: 5rem;
  text-align: center;
}

div#info {
  width: 350rem;
  height: 20rem;
  margin: auto;
  position: relative;
}

div#info > p {
  font-size: 16rem;
  position: absolute;
  margin: 0;
}

p#speed {left: 0;}

p#angle {
  width: 95rem;
  left: 127.5rem;
}

p#score {right: 0;}

/*Game Field-----------------------------------------------------*/

div#gamefield {
  position: relative;
  width: 200rem;
  height: 325rem;
  margin: auto;
  background-color: skyblue;
}

div#left, div#right {
  width: 70rem;
  height: 325rem;
  position: absolute;
  display: inline-block;
  text-align: center;
  background-color: lightgrey;
  touch-action: manipulation;
}

div#left {left: -75rem;}
div#right {left: 205rem;}

div#left > span, div#right > span {
  position: relative;
  top: 160.5rem;
  font-size: 16rem;
}

/*End Game-------------------------------------------------------*/

div.endGame {
  position: absolute;
  width: 150rem;
  height: 200rem;
  border: 2rem solid white;
  border-radius: 10rem;
  left: 25rem;
  top: 30rem;
  background-color: rgb(50,100,250);
  opacity: 0%;
  transition: all 0.5s;
}

div.endGameOpen {
  top: 50rem;
  opacity: 100%;
}

div.endGame > * {
  font-size: 16rem;
  width: 100rem;
  margin-top: 10rem;
  margin-left: 23rem;
  border-radius: 10rem;
}

div#endScores {
  height: 50rem;
  position: relative;
}

div#endScore, div#endBestScore {
  width: 45rem;
  border: 0.5rem solid white;
  border-radius: 10rem;
  text-align: center;
  position: absolute;
}

div#endScore {left: 0;}
div#endBestScore {right: 0;}

div#endScores p, div#endScores h2 {margin: 0;}

div.settingsDiv {
  width: 150rem;
  height: 100rem;
  border: 1rem solid white;
  margin-left: -1rem;
  text-align: center;
  position: absolute;
  background-color: skyblue;
  display: none;
}

div.settingsDivOpen {
  display: block;
}

div.settingsDiv > p {
  font-size: 16rem;
  margin: 0;
}

div.settingsDiv > button {
  width: 70rem;
  height: 15rem;
  font-size: 8rem;
  border-radius: 4rem;
}

button.selected {
  background-color: blue;
  color: white;
}

button#setAngle {margin-top: 10rem;}

button#play {
  height: 60rem;
  border: 2rem solid lightgrey;
}

/*Other----------------------------------------------------------*/

div.circles {
  width: 45rem;
  height: 45rem;
  border-radius: 50%;
  position: absolute;
}

div#circle {
  bottom: 0;
  left: 75rem;
  background-color: darkblue;
}

div#faller {
  background-color: grey;
}

div#ground {
  width: 100%;
  height: 75rem;
  position: relative;
  top: 100%;
  margin: auto;
  background-color: darkgreen;
}