/* ======================================================================================== */
/* ================ css file for 14/1 Straight Pool index, © jh-concepts.at =============== */
/* ======================================================================================== */
/* ===================================== global styles ==================================== */
/* ======================================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #fff;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #160109;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ======================================================================================== */
/* ======================================= index.html ===================================== */
/* ======================================================================================== */
/* ===================================== header styles ==================================== */
/* ======================================================================================== */
header {
  height: 15vh;
  height: 15dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff1;
  width: 100vw;
  width: 100dvw;
  border-bottom: solid 2px #555;
}

header a {
  width: 10vw;
  width: 10dvw;
  height: 15vh;
  height: 15dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

header > a > img {
  height: 3vh;
  height: 3dvh;
}

header h1 {
  font-size: 4vh;
  font-size: 4dvh;
}

/* ======================================================================================== */
/* ====================================== main styles ===================================== */
/* ======================================================================================== */
main {
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vw;
  padding: 1dvw;
  background-color: #0003;
  width: 100vw;
  width: 100dvw;
}

/* ======================================================================================== */
/* ===================================== footer styles ==================================== */
/* ======================================================================================== */
footer {
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff1;
  font-size: 1.8vh;
  font-size: 1.8dvh;
  color: #fff;
  width: 100vw;
  width: 100dvw;
  border-top: solid 2px #555;
}

footer a:any-link {
  text-decoration: none;
  color: #fff;
}

/* ======================================================================================== */
/* ==================================== elements styles =================================== */
/* ======================================================================================== */
div {
  border-radius: 3px;
}

hr {
  margin: 10px 0;
  border: 0;
  height: 0;
}

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

main input  {
  height: 4.5vh;
  height: 4.5dvh;
  width: 50%;
  font-size: 3vh;
  font-size: 3dvh;
  background-color: #ccc;
  color: #000;
  border-radius: 5px;
}

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

button {
    width: 100%;
    height: 4vh !important;
    height: 4dvh !important;
    font-size: 2.5vh !important;
    font-size: 2.5dvh !important;
    color: #555;
}

.playerSelection {
  width: 80vw;
  width: 80dvw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  width: 95%;
  display: flex;
  justify-content: space-between;
  margin: 2vh 0;
  margin: 2dvh 0;
}

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

/* ======================================================================================== */
/* ======================================= help area ====================================== */
/* ======================================================================================== */
#helpArea {
  display: none;
  width: 100vw;
  width: 100dvw;
  height: 80vh;
  height: 80dvh;
  top: 15vh;
  top: 15dvh;
  left: 0;
}

#helpArea h2 {
  font-size: 3.2vh;
  font-size: 3.2dvh;
  margin: 2vh 0 0 0;
  margin: 2dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
  text-align: center;
}

#helpArea h3 {
  font-size: 2.75vh;
  font-size: 2.75dvh;
  margin: 2vh 0 0 0;
  margin: 2dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
}

#helpArea p {
  font-size: 2.0vh;
  font-size: 2.0dvh;
  margin: 1.5vh 0 0 0;
  margin: 1.5dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
}

#helpLine {
  width: 96vw;
  width: 96dvw;
  text-align: center;
  margin: 2vw;
  margin: 2dvw;
} 

#exitHelpArea {
  width: 34vw;
  width: 34dvw;
  margin: 5vh 33vw;
  margin: 5dvh 33dvw;
  text-align: center;
}

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

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

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

  header h1 {
    text-align: center;
    font-size: 4vw;
    font-size: 4dvw;
  }

  main label {
    margin: 1.5vw 0;
    margin: 1.5dvw 0;
    font-size: 3vw;
    font-size: 3dvw;
  }
  
  main input  {
    height: 3.5vw;
    height: 3.5dvw;
    font-size: 2vw;
    font-size: 2dvw;
  }
  
  header > a > img {
    width: 80%;
    height: auto;
  }

  input[type="radio"] {
    width: 2.5vw;
    width: 2.5dvw;
    height: 2.5vw;
    height: 2.5dvw;
  }

  div#sendData label button {
    width: 100%;
    height: 4vw !important;
    height: 4dvw !important;
    font-size: 2.5vw !important;
    font-size: 2.5dvw !important;
  }  

  footer {
    font-size: 1.5vh;
    font-size: 1.5dvh;
  }  

  #helpArea h2 {
    font-size: 3.2vw;
    font-size: 3.2dvw;
    margin: 2vw 0 0 0;
    margin: 2dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
    text-align: center;
  }
  
  #helpArea h3 {
    font-size: 2.75vw;
    font-size: 2.75dvw;
    margin: 2.0vw 0 0 0;
    margin: 2.0dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
  }
  
  #helpArea p {
    font-size: 2.0vw;
    font-size: 2.0dvw;
    margin: 1.5vw 0 0 0;
    margin: 1.5dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
  }
  
  #helpLine {
    margin: 2vh;
    margin: 2dvh;
  } 
  
}