@import "nav.css";

::-webkit-scrollbar {
  display: none;
}
* {
  -webkit-overflow-scrolling: touch;
}

body{
  text-size-adjust: none !important;
  width:100%;
  height:100%;
  background-color:var(--backColor);
  margin-left:0;
  margin-top:0;
  margin-right:0;
  margin-bottom:0;
  font-family: "Open-Sans","arial";
  color:var(--textColor);
  display: flex;
  flex-direction: column;
  font-size:20px;
}
@media(orientation:portrait){
  body{
    font-size:20px;
  }
}
#buttons{
  font-size:20px;
}
div#bodyDiv{
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
div#mayakHeader,div#commonHeader{
  background-color: white;
  width: 100%;
  height: 12vw;
  text-align: center;
  display: flex;
  flex-direction: row;
}
div#commonHeader{
  background-color: var(--backColor);
}
div#mayakHeader .central-image{
  flex-shrink: 1;
  flex-grow: 1;
}
div#mayakHeader .central-image img{
  max-width: unset;
}
div#mayakHeader a,div#commonHeader a{
  margin: 0.25em 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
div#mayakHeader img,div#commonHeader img{
  max-height: 12vw;
  position: relative;
  margin:0 0;
  max-width: 12em;
}
div#buttons{
  width: 100%;
  text-align: center;
  padding-bottom:0.5em;
  overflow-y: scroll;
}
div.buttonContainer{
  margin: 0 auto;
  margin-top: 0.5em;
  /*border-radius: 1vw;*/
  display: inline-block;
  white-space: nowrap;
  background-color: var(--brandColor);
  color:var(--textOnBrandColor);
}
a.buttonLink{
  color: inherit;
  max-width: 16em;
  width: 16em;
  height:2.5em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow:0.1em 0.1em 0.4em var(--textShadowColor);
}

div#links{
/*  background-color: white;*/ 
  display: block;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}
div#innerlinks{
  display: flex;
  justify-content: space-around;
}
div.bottomLinkItem{
  flex-grow: 1;
  margin: 8px 0;
}
div.bottomLinkItem a{
    display:flex;
    align-items:center;
    justify-content: center;
    color:inherit;
    text-decoration: none;
}
div.bottomLinkItem svg{
    max-height:3em;
}
div#links div img{
  height:12vw;
}
div#mobileAndDesktopContent{
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  position: relative;
  overflow: scroll;
}
div#buttonsAndLinks{
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow:1;
}
div#buttons{
  flex-grow: 1;
}
iframe#desktopContent{
  display: none;
  border: none;
}




div.archiveData{
  display: table;
  width: 100%;

}
div.archiveDateHeader{
  color: var(--brandColor);
  display: table-row;
  font-weight: bold;
}
div.archiveDataRow{
  display: flex;
  flex-direction: row;
  padding:0 0.25em;
}
div.archiveDataRow a{
  text-decoration: none;
  color:inherit;
  display: inline-flex;
  flex-grow: 1;
}
div.archiveDataRow a:hover{
  background-color: var(--hoveredColor);
}
div.archiveItemCell{
  margin:auto 0;
}
div#videoLink{
  background-image: url("/Images/icons/video.svg");
  background-size: auto 100%;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  width:3em;
  max-width: 3em;
  cursor: pointer;
}
div#videoLinkEmpty{
  width:3em;
}
div#archiveRunName{
  overflow: hidden;
  flex-grow:1;
}
div#archiveContainer{
  flex-grow: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  overflow-y: scroll;
}
div#archiveRunStart{
  width:4em;
}
div#archiveRunRacersCount{
  width:3em;
}

@media(min-aspect-ratio:12/10)
{
  body{
    text-align: center;
    /*font-size:2.5vh;*/
  }
  div#mayakHeader img,div#commonHeader img{
    max-height: 10vh;
  }


  div#mobileAndDesktopContent{
    display: inline-flex;
  }
  iframe#desktopContent{
    display: block;
    flex-grow: 1;
    padding:0;
    margin:0;
    padding: 0 0 0 1em;
  }
  div#buttonsAndLinks{
    width: auto;
    position: unset;
    align-items: center;
    flex-grow: 0;
  }
  div#bodyDiv{
    /*max-width: 150vh;*/
    margin: 0 auto;
    display: inline-flex;
  }
  div#logosHeader{
    display: flex;
    flex-direction: row;
    height: 10vh;
    position:relative;
  }
  div#logosHeader div{
    height: 100%;
    max-height: 100%;
  }
  div#buttons{
    width: 16em;
    flex-grow: 0;
    text-align: left;
  }
  div#buttons div.buttonContainer{
    margin-left:0em;
    /*border-radius: 0.5vh;*/
  }

  div#mayakHeader,div#commonHeader{
    flex-grow:  1;
    padding:0 0.5em;
  }

  div#links{
    width: 16em;
    padding:0;
    background: transparent;
  }
  div#links div img{
    height: 5vh;
  }

  div#logosHeader  div#mayakHeader,div#logosHeader div#commonHeader{
    order:1;
  }
  div.archiveData{
    text-align: left;
  }

  div.archiveData{
    max-width: 100vh;
  }
}

body.iframe div#logosHeader{
  display: none;
}
body.iframe div.desktop{
  display: block;
}
div.btn{
  width: 100%;
  display: inline-block;
  text-align: center;
}
a.btnLink{
  background-color: var(--brandColor);
  width: 16em;
  text-align: center;
  padding: 0.75em 0;
  text-decoration: none;
  color:var(--textColor);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:0 auto;
}
.verifyCell,.clientName{
  color:var(--nameColor);
}

.clientName{
  text-align: center;
  padding-bottom: 0.5em;
}

.trackConfigName{
  color:var(--trackConfigNameColor);
  font-size:0.6em;
}

#videoPlayer{
  position: fixed;
  width: 100%;
  height: 100%;
  left:0;
  right:0;
  top:0;
  bottom:0;
  display: none;
  background-color: var(--backColor);
}
#videoPlayer #videoblock{
  width:1280px;
  max-width: 100%;
  margin:auto auto;
}
#videoblock #popupHeader{
  background-color: var(--backColor);
  width: 100%;
  float: right;
}
#videoPlayer div#closeIcon{
  cursor:pointer;
  height:1em;
  width: 1em;
  background-repeat: no-repeat;
  background: url("/Images/icons/close.svg");
  background-size: 100% 100%;
  float:right;
}

a#editLink{
  background-image: url("/Images/icons/edit.svg");
  background-size: 1em 100%;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  width:2em;
  max-width: 2em;
  cursor: pointer;
  display: block;
}

div.separator{
  flex-grow:1;
}
.fil0{
   fill:var(--brandColor);
}
