body {
  display: block;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #3d3d3d;
  color: #fff;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 0;
}
header {
  display: flex;
  width: 50%;
  height: 5%;
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 10px;
  padding-top: 5px;
  box-sizing: border-box;
  z-index: 2;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#scoreDIV {
  width: 100%;
  height: calc(100% - 80px);
  align-content: center;
  flex-direction: row;
  display: inline-block;
  font-size: 0;
}
#scoreDIV > div {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  vertical-align: top;
}
#scoreDIV li:nth-child(1) {
  color: var(--blue);
}
#scoreDIV li:nth-child(2) {
  color: var(--red);
}
#teamsDIV {
  padding-left: 15px;
  width: 80%;
  font-size: 1.4rem;
  line-height: 2rem;
}
#servesDIV {
  width: 20%;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 2rem;
}
#servesDIV li {
  position: relative;
}
#servesDIV li span {
  position: absolute;
  top: -5px;
  right: -12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2rem;
  text-align: center;
  display: none;
}
#servesDIV li:nth-child(1) span {
  background-color: var(--blue);
}
#servesDIV li:nth-child(2) span {
  background-color: var(--red);
}
.gameInfo {
  text-align: center;
  display: flex;
  position: relative;
  justify-content: center;
}
.gameInfo > p {
  font-size: 1rem;
  font-weight: bold;
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  text-align: center;
}
.gameInfo ul {
  font-size: 2.4rem;
  line-height: 6.5rem;
}
#setsDIV,
#gamesDIV,
#pointsDIV {
  height: 60%;
}
#setsDIV,
#gamesDIV {
  width: 25%;
}
#setsDIV {
  background-color: rgba(255, 255, 255, 0.02);
}
#gamesDIV {
  background-color: rgba(255, 255, 255, 0.009);
}
#pointsDIV {
  width: 50%;
}
#pointsDIV ul {
  font-size: 5rem;
  line-height: 6rem;
  font-weight: bold;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}
#pointsDIV li {
  color: #fff !important;
  padding: 0 20px;
  background-color: black;
  margin-bottom: 10px;
  border-radius: 20px;
}
#pointsDIV li:nth-child(1) {
  background-color: var(--blue);
}
#pointsDIV li:nth-child(2) {
  background-color: var(--red);
}
#bottomDIV {
  width: 100%;
  height: 80px;
  font-size: 0;
}
#bottomDIV > div {
  display: inline-flex;
  height: 40px;
  vertical-align: top;
}
#bottomDIV ul {
  display: flex;
  width: 100%;
  justify-content: right;
}
#bottomDIV li {
  width: 80px;
  height: 40px;
  align-content: center;
  text-align: center;
}
#googleADS {
  width: 100%;
}
#optionsDIV {
  width: 100%;
  height: 40px;
  font-size: 1.2rem;
}

#announceDIV,
#adsDIV,
#historyDIV,
#contactDIV {
  background-color: rgba(0, 0, 0, 0.65);
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  top: 0;
  left: 0;
}

#announceDIV div,
#adsDIV div {
  color: #fff;
  font-size: 3rem;
  display: flex;
  text-shadow: 3px 3px 3px #000;
  text-align: center;
}

#adsDIV {
  background-image: url("https://palabanda-web.s3.us-west-1.amazonaws.com/_padelit/tera1.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#historyDIV {
  flex-direction: column;
  overflow: scroll;
  font-size: 3.5vw;
}
#historyDIV > div {
  width: 100%;
  height: 25%;
}
#historyDIV ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#historyDIV > div {
  display: flex;
  vertical-align: middle;
}
#historyDIV > div > p {
  width: 10%;
  font-size: 2em;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  margin: 0;
  padding: 0;
  align-content: center;
  text-align: center;
}
#historyDIV > div > p span {
  display: block;
}
#historyDIV > div > p span:nth-child(1) {
  color: var(--blue);
}
#historyDIV > div > p span:nth-child(2) {
  color: var(--red);
}
#historyDIV > div > ul {
  width: 90%;
  display: flex;
  font-size: 1em;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}
#historyDIV > div > ul li {
  align-content: center;
  padding: 0 4px;
}
#historyDIV > div > ul p {
  margin: 0;
  padding: 5px 10px;
  text-align: center;
  border-radius: 10px;
}
#historyDIV > div > ul p.wonBlue {
  background-color: var(--blue);
}
#historyDIV > div > ul p.wonRed {
  background-color: var(--red);
}

#historyDIV > a,
#contactDIV > a {
  color: #fff;
  font-size: 1.5rem;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#contactDIV > div {
  font-size: 1.5rem;
  text-align: center;
}
#contactDIV img {
  width: 80px;
  height: 80px;
}

@media screen and (orientation: portrait) {
}

@media screen and (orientation: landscape) {
  header {
    height: 10%;
  }
  #scoreDIV {
    height: calc(100% - 40px);
  }
  #scoreDIV > div {
    height: 100%;
  }
  #teamsDIV {
    width: 45%;
    font-size: 1.6rem;
    line-height: 2.5rem;
  }
  #servesDIV {
    width: 10%;
    font-size: 1.6rem;
    line-height: 3.5rem;
  }
  #servesDIV li span {
    top: 5px;
    right: -8px;
  }
  #setsDIV {
    width: 10%;
  }
  #gamesDIV {
    width: 10%;
  }
  #bottomDIV {
    height: 40px;
  }
  #pointsDIV {
    width: 25%;
  }
  #googleADS {
    width: 64%;
  }
  #optionsDIV {
    width: 35%;
    height: 40px;
    font-size: 1.2rem;
  }
  .gameInfo > p {
    top: 0;
  }
  #historyDIV > div > p {
    font-size: 1.2em;
  }
}
/* 
#rotateDIV {
  text-align: center;
  vertical-align: center;
  align-items: center;
  justify-content: center;
  align-content: center;
}
#rotateDIV img {
  width: 35%;
}
#mainDIV, #rotateDIV {
  width: 100vw;
  height: 100vh;
  display: none;
}

@media screen and (orientation:portrait) {
  #rotateDIV {
    display: flex;
  }
  #mainDIV {
    display: none
  }
}
@media screen and (orientation:landscape) {
  #mainDIV {
    display: flex;
  }

  #rotateDIV {
    display: none;
  }
} 
*/
