/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
@import url('https://fonts.cdnfonts.com/css/futura');

.loadRing
{
  display: none;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:150px;
  height:150px;
  background:transparent;
  border:3px solid #3c3c3c;
  border-radius:50%;
  text-align:center;
  line-height:150px;
  font-family:sans-serif;
  font-size:20px;
  color:cyan;
  letter-spacing:4px;
  text-transform:uppercase;
  text-shadow:0 0 10px cyan;
  box-shadow:0 0 20px rgba(0,0,0,.5);
}
.loadRing:before
{
  content:'';
  position:absolute;
  top:-3px;
  left:-3px;
  width:104%;
  height:104%;
  border:3px solid transparent;
  border-top:3px solid cyan;
  border-right:3px solid cyan;
  border-radius:50%;
  animation:animateC 2s linear infinite;
}
#loadBall
{
  display:block;
  position:absolute;
  top:calc(50% - 2px);
  left:50%;
  width:50%;
  height:4px;
  background:transparent;
  transform-origin:left;
  animation:animate 2s linear infinite;
}
#loadBall:before
{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  border-radius:50%;
  background:cyan;
  top:-6px;
  right:-8px;
  box-shadow:0 0 20px cyan;
}
@keyframes animateC
{
  0%
  {
    transform:rotate(0deg);
  }
  100%
  {
    transform:rotate(360deg);
  }
}
@keyframes animate
{
  0%
  {
    transform:rotate(45deg);
  }
  100%
  {
    transform:rotate(405deg);
  }
}

:focus-visible {
  outline: #00bb00 auto 1px;
}

button:focus {
  outline: 0px auto white;
}

html,body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  overflow-x: hidden; 
}

body {
  margin: 0;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  font-family: 'Futura';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: black;
}

#finalizeBtn, #guessBtn {
  transition: all .25s;
}

#kennedyLogo {
  vertical-align: middle;
  border-style: none;
  max-width:40%;
  object-fit:contain;
}

#container {
  height: 50%;
  width: 50%;
  display: block;
}

#fullName {
  text-align: center;
  color: steelblue;
  margin-bottom: 5%;
}

#map {
  height: 100%;
  left: 50%;
  top: 50%;
  display: none;
}

#score {
  display: flex;
  position: fixed;
  flex-direction: column;
  bottom: 40%;
  background: rgba(266, 266, 266, 1);
  color: #f1f1f1;
  width: 75%;
  left: 12.5%;
  padding: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: none;
  border-radius: 20px;
}

#introScreen {
  height: 100%;
  width: 100%;
  top: 0;
  background-color: white;
  position: absolute;
  font-size: 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.numScore {
  color: steelblue;
}

#allScoreLocations {
  display: flex;
  flex-direction: horizontal;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.individualScore {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid gray;
  padding-right: 5px;
  padding-left: 5px;
}

#myVideo {
  min-height: 50%;
  min-width: 50%;
  position: absolute;
  margin: auto;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
}

#content {
  display:flex;
  position: fixed;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

#bottomMap {
  pointer-events: none;
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 25%;
  left:25%;
  width: 50%;
  padding: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#topMap {
  pointer-events: none;
  position: fixed;
  top: 0;
  padding: 50px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#guessBtn {
  display: inline-block;
  display: block;
  height: 50%;
  font-size: 2em;
  border-radius: 20px;
  color: white;
  padding-right: 20px;
  padding-left: 20px;
  font-weight: bold;
}

#finalizeBtn {
  background-color: #00bb00;
  height: 50%;
  display: block;
  font-size: 1em;
  padding-right: 5%;
  padding-left: 5%;
  border-radius: 20px;
  font-weight: bold;
  color: white;
}

#distanceText {
  border-radius: 30px;
  display: none;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  width: 50%;
  color: white;
  background-color: steelblue;
  padding-right: 20px;
  padding-left: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
}

#creditText {
  pointer-events: none;
  display: none;
  font-size: 2em;
  font-weight: normal;
  color: black;
  -webkit-user-select: none;
  -moz-user-select: none;
}

#titleText {
  font-size: 1.25em;
  font-weight: bold;
  color: steelblue;
}

#introText {
  font-size: .75em;
  font-weight: normal;
  color: steelblue;
}

/*
 * Optional: Makes the sample page fill the window.
 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
h1, h3 {
  color: gray;
}

@media only screen and (max-width: 1000px) {

  #fullName {
    margin-bottom: 30%;
  }

  #kennedyLogo {
    vertical-align: middle;
    border-style: none;
    width: 82%;
    max-width: 100%;
    height: 8%;
  }

  #myVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }

  #content {
    display:flex;
    position: fixed;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 100%;
    padding: 5%;
    align-items: center;
    justify-content: center;
    height: 12%;
  }

  #guessBtn {
    display: inline-block;
    height: 100%;
    font-size: 1em;
    border-radius: 20px;
    color: white;
    padding-right: 20px;
    padding-left: 20px;
    font-weight: bold;
  }

  #map {
    height: 118%;
    left: 0;
    top: 24%;
    display: none;
  }

  #introScreen {
    height: 100%;
    width: 100%;
    left: 0px;
    top: 0%;
    background-color: white;
    position: absolute;
    font-size: 1.1em;
    text-align: center;
    display: flex;
  }

  #container {
    height: 50%;
    width: 100%;
    display: block;
  }

  #finalizeBtn {
    background-color: #00bb00;
    height: 50%;
    display: block;
    font-size: 1.5em;
    padding-right: 5%;
    padding-left: 5%;
    border-radius: 20px;
    font-weight: bold;
    color: white;
  }

  #distanceText {
    display: inline;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: unset;
    width: 100%;
    border-radius: 0;
    padding-right: 0;
    margin: auto;
    padding-left: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
  }

  #creditText {
    display: none;
    font-size: 1em;
    font-weight: normal;
    color: white;
    margin: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
  }

  #titleText {
    padding-bottom: 0px;
    font-size: 2.5em;
    color: steelblue;
    font-weight: bold;
  }

  #introText {
    font-size: 1.5em;
    font-weight: normal;
    color: steelblue;
    padding-bottom: 20px;
  }

  #bottomMap {
    pointer-events: none;
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 12%;
    left: 0;
    width: 100%;
    height: 17%;
    padding: 5px;
    text-align: center;
    background-color: steelblue;
    align-items: center;
    justify-content: center;
  }

  #topMap {
    pointer-events: none;
    position: fixed;
    top: 0;
    padding: 5px;
    display: none;
    background-color: steelblue;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 12%;
  }

  #score {
    display: flex;
    position: fixed;
    flex-direction: column;
    bottom: 40%;
    background: rgba(266, 266, 266, 1);
    color: #f1f1f1;
    width: 100%;
    left: 0%;
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: none;
  }

  #allScoreLocations {
    flex-wrap: wrap;
    justify-content: center;
  }

  .individualScore {
    width: 80px;
    height: 80px;
  }

  h3 {
    font-size: 1em;
  }
}
