/****** global styles over all ******/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #fff;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #120606;
}

a, a:active, a:focus, a:visited, a:hover {
  text-decoration: none;
}

button {
  color: #000;
}

/****** index.html ******/
header,
main,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  height: 15vh;
  height: 15dvh;
  border-bottom: solid 1px #555;
  text-align: center;
}

header h1 {
  font-size: 1.5rem;
}

main {
  height: 80vh;
  height: 80dvh;
  flex-direction: column;
  font-size: 1.5rem;
}

main div {
  width: 70%;
}

hr {
  margin: 2px 0;
  width: 70%;
  border-top: dashed 1px #fff;
  border-bottom: none;
}

main label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5vh 0;
  margin: 1.5dvh 0;
}

main input  {
  height: 2.0rem;
  width: 50%;
  font-size: 1.25rem;
  background-color: #ccc;
  color: #000;
  border-radius: 5px;
}

main input[type=color] {
  width: 50%;
}

#breakSelection {
  margin: 2vh;
  margin: 2dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

#breakSelection span {
  width: 90%;
}

#breakSelection label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

input[type="radio"] {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #aaa;
  border-radius: 50%;
  outline: none;
  background-color: #aaa; 
  cursor: pointer;
}

input[type="radio"]:checked {
  background-color: #c00;
  border: solid 1px #fff;
}

#breakSelection label {
  margin: 0.5vh;
  margin: 0.5dvh;
}

div#sendData label {
  display: flex;
  justify-content: center;
  align-items: center;
}

div#sendData label button {
  width: 100%;
  height: 2.5rem !important;
  font-size: 1.25rem !important;
}

footer {
  height: 5vh;
  height: 5dvh;
  border-top: solid 2px #555;
  font-size: 0.8rem;
}

/****** scoring.html ******/
/***** head info area *****/
div#timeCounter {
  width: 100vw;
  width: 100dvw;
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 0 12.5vw;
  padding: 0 12.5dvw;
}

#timeCounter div,
#timeCounter span {
  color: #fff;
  font-size: 0.75rem;
}

#timeCounter button {
  font-size: 0.75rem;
  min-height: 1.5vh;
  min-height: 1.5dvh;
  min-width: 15vw;
  min-width: 15dvw;
  padding: 0 1vw;
  padding: 0 1dvw;
  margin: 0 0 0 0.5vw;
  margin: 0 0 0 0.5dvw;
}

#stopWatch {
  display: none;
}

#matchTime {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#overview {
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #000;
  color: #ff0 !important;
  font-size: 1.1rem;
  border-bottom: solid 2px #555;
}

#overview div {
  color: #ff0;
  text-align: center;
}

/***** score info area *****/
div.scoringArea {
  width: 100vw;
  width: 100dvw;
  height: 80vh;
  height: 80dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.playerArea {
  width: 50%;
  height: 80vh;
  height: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.playersHeader {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  height: 10dvh;
}

.playerName {
  font-size: 6.5vh;
  font-size: 6.5dvh;
  text-align: center;
  word-wrap: break-word;
}

.playerAction {
  width: 100%;
  height: 12vh;
  height: 12dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#breakP1,
#breakP2 {
  width: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.actualBreak {
  width: 100%;
  height: 8vh;
  height: 8dvh;
  font-size: 2.5vh;
  font-size: 2.5dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 1px #fff;
  border-radius: 5px;
}

.showScore {
  width: 100%;
  height: 58vh;
  height: 58dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.setsScore {
  width: 100%;
  font-size: 35vh;
  font-size: 35dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breakingPlayer {
  z-index: 100;
  height: 8vh;
  height: 8dvh;
  width: 50%;
  font-size: 2.5vh;
  font-size: 2.5dvh;
  border: solid 2px #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  background-color: #ddd;
}

div.plusMinus {
  width: 8vw;
  width: 8vw;
  height: 58vh;
  height: 58dvh;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4vw;
  font-size: 4dvw;
  background-color: #0000;
  color: #555;
}


/***** game footer buttons *****/
div#gamesMenu {
  height: 10vh;
  height: 10dvh;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: solid 2px #555;
  padding: 0 12.5vw;
}

div#gamesMenu button {
  height: 5vh;
  height: 5dvh;
  width: 15vw;
  width: 15dvw;
}

div#games1 {
  width: 50%;
  padding-right: 1vw;
  padding-right: 1dvw;
  text-align: right;
}

div#games2 {
  width: 50%;
  padding-left: 1vw;
  padding-left: 1dvw;
  text-align: left;
}

button#fullScreenOff {
  display: none;
}

/***** result page after game *****/
#result {
  height: 100vh;
  height: 100dvh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #c00;
}

#result p {
  text-align: center;
}

#winnersName {
  font-size: 5vh;
  font-size: 5dvh;
}

#result button {
  height: 5vh;
  height: 5dvh;
  width: 15vw;
  width: 15dvw;
  min-width: 130px;
  margin: 20px;
}

/********* media queries ********/
/***** orientation portrait *****/
@media (orientation: portrait) {

  div.setsScore {
    font-size: 25vw;
    font-size: 25dvw;
  }

  .playerName {
    font-size: 6.5vw;
    font-size: 6.5dvw;
  }

}

/******* max-width: 500px *******/
@media (max-width: 500px) {

  div.setsScore {
    font-size: 12.5vw;
    font-size: 12.5dvw;
  }

  div#actualTime {
    display: none;
  }

}

/******* max-width: 400px *******/
@media (max-width: 400px) {

  div#overview {
    font-size: 0.85rem;
  }

}

/******* max-width: 300px *******/
@media (max-width: 300px) {

  div.setsScore {
    font-size: 10vw;
    font-size: 10dvw;
  }

  div#overview {
    font-size: 0.8rem;
  }

}

/******* max-width: 250px *******/
@media (max-width: 280px) {

  div#overview {
    font-size: 0.65rem;
  }

}