@font-face {
  font-family: "Aadhunik";
  src: url("./fonts/Aadhunik.ttf") format("truetype");
}
@font-face {
  font-family: "Coves Light";
  src: url("./fonts/Coves Light.otf") format("opentype");
}

button:focus {
  outline: none;
  box-shadow: none;
}

#start-button-container {
  width: 90%;
  /* width: var(--full-screen-width);
  height: var(--quarter-screen-height); */
  position: fixed;
  /* left: var(--start-button-container-offset-left);
  top: var(--start-button-container-offset-top); */
  /* line-height: var(--quarter-screen-height); */
  text-align: center;
  vertical-align: middle;  
  /* padding-top: 25%;
  padding-bottom: 25%; */
  top: calc(50% - 1.5rem);
}

#start-button {
  display: inline-block;
  font-family: "Coves Light";
  font-size: 3rem;
  /* font-size: var(--font-size-3); */
  /* font-weight: 900;
  padding-top: var(--font-size-1);
  padding-left: var(--font-size-3);
  padding-bottom: var(--font-size-1);
  padding-right: var(--font-size-3); */
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
  animation-duration: 5s;
  animation-name: flux-start-button;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

/* #high-scores-title {
  animation-duration: 5s;
  animation-name: flux-start-button;
  animation-direction: alternate;
  animation-iteration-count: infinite;
} */

@keyframes flux-start-button {
  0%, 100% { 
    opacity: 1;
    letter-spacing: 3px;
    /* font-weight: 700; */
  }
  50% {
    opacity: .3;
    letter-spacing: 7px;
    /* font-weight: 900; */
  }

}

#level-select-title {
  color: #ffffff;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 1px 6px;
}

#sounds {
  /* position: fixed;
  left: 0;
  top: var(--sounds-offset-top);
  width: var(--full-screen-width);
  border: 0;
  border-radius: 5px;
  opacity: 1; */
  background-color: rgba(0, 0, 0, 0);
}
#sound-menu {
  /* margin-top:  var(--font-size-1); */
  margin-left: auto;
  margin-right: auto;
}
.sound-menu-button.sound-menu-left-td {
  margin-right: 2rem;
  /* margin-right: var(--font-size-3); */
}
.sound-menu-right-td {
  /* width: var(--font-size-5); */
}
#report {
  /* position: fixed;
  left: 0;
  top: var(--report-offset-top);
  width: var(--full-screen-width);
  border: 0;
  border-radius: 5px;
  opacity: 1; */
  background-color: rgba(0, 0, 0, 0);
}
#report-options, #report-result-table, #high-scores-table, #high-scores-title {
  margin-left: auto;
  margin-right: auto;
}

#report-options {
  position: absolute;
  bottom: 5%;
  width: 90%;
}

.report-options-button {
  font-family: "Coves Light";
  /* font-size: var(--font-size-1); */
  font-weight: 900;
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
}
.font-a {
  font-weight: 100;
  font-family: "Coves Light";
  font-size: var(--font-size-2);
  color: #ffffff;
  text-transform: uppercase;
}
.font-b {
  font-weight: 900;
  font-family: "Coves Light";
  font-size: var(--font-size-2);
  color: #ffffff;
}
.font-c {
  font-weight: 100;
  font-family: "Coves Light";
  font-size: var(--font-size-1);
  color: #ffffff;
  text-transform: uppercase;
}
.font-d {
  font-family: "Aadhunik";
  font-size: 1.5rem;
  font-size: var(--font-size-2);
  color: #ffffff;
}
.font-e {
  font-weight: 100;
  font-family: "Coves Light";
  font-size: var(--font-size-2);
  color: #ffffff;
  text-transform: uppercase;
  animation-duration: 5s;
  animation-name: flux-start-button;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

#report td.result-key {
  width: 6rem;
  /* width: var(--font-size-14); */
  font-size: 1.5rem;
}
#report td.result-value {
  width: fit-content;
  font-size: 1.5rem;
}
#report td.high-score-ordinal {
  /* width: var(--font-size-4); */
  width: 2rem;
  font-size: 1.5rem;
}
#report td.high-score-score {
  /* width: var(--font-size-16); */
  width: 7rem;
  font-size: 1.5rem;
}
#report td.high-score-sec {
  font-size: 1.5rem;
  width: fit-content;
  font-style: italic;
  font-weight: 100 !important;
}
#high-scores-title {
  width: fit-content;
  font-size: 2rem;
}
#pause-menu {
  /* padding-top: 30%; */
  /* position: absolute; */
  /* left: var(--pause-menu-offset-left);
  top: var(--pause-menu-offset-top); */
  /* top: 30%; */
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
}

.spacer {
  height: 30%;
  display: inline-block;
  /* position: relative; */
}
/* #credits {
  position: fixed;
  left: 0;
  top: var(--credits-offset-top);
  border: 0;
  width: var(--full-screen-width);
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
} */
.credits-role {
  width: fit-content;
  /* line-height: var(--font-size-2); */
  color: #ffffff;
  margin: 0 auto;
  /* margin-top:  var(--font-size-1); */
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-size: 2rem;
}
.credits-name {
  width: fit-content;
  /* line-height: var(--font-size-2); */
  color: #ffffff;
  margin: 0 auto;
  /* margin-top:  var(--font-size-1); */
  font-size: 2rem;

}
/* #credits-menu {
  margin-top:  var(--font-size-1);
  margin-bottom:  var(--font-size-1);
} */
#level-select {
  /* position: fixed;
  left: 0;
  top: var(--level-select-offset-top);
  border: 0;
  border-radius: 5px;
  opacity: 1; */
  background-color: rgba(0, 0, 0, 0);
  /* width: var(--full-screen-width); */
}
#start-menu {
  font-family: "Coves Light";
  position: absolute;
  /* left: var(--start-menu-offset-left);
  top: var(--start-menu-offset-top); */
  border: 0;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0);
  opacity: 1;
  width: 90%;
  bottom: 5%;
}
.start-menu-button {
  width: max-content;
  margin: 0 auto;
  margin-top: 10px;
  display: block;
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
}
.sound-menu-button {
  width: max-content;
  margin: 0 auto;
  display: block;
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 2rem;
}
.sound-menu-key {
  
  width: max-content;
  margin: 0 auto;
  display: block;
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 2rem;
}
.sound-menu-values-container {
  width: 100%;
}
.sound-menu-value-half {
  width: 49%;
  display: inline-block;
  text-align: center;
}
.sound-menu-value-third {
  width: 32%;
  display: inline-block;
  text-align: center;
}

.menu-title-text {
  font-family: "Coves Light";
  /* font-size: var(--font-size-2); */
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 auto;
  animation-duration: 5s;
  animation-name: flux-start-button;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  text-align: center;
  display: block;
  padding-top: 5%;
  padding-bottom: 5%;
}

#back-button {
  font-family: "Coves Light";
  /* font-size: var(--font-size-2); */
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  /* margin: 0 auto; */
  text-align: center;
  display: block;
  padding-top: 5%;
  padding-bottom: 5%;
  position: absolute;
  bottom: 0;
  width: 90%;
  margin-right: auto;
  margin-left: auto;
}

.level-select-menu-container {
  /* margin-top:  var(--font-size-1); */
}
#pause-button, #play-button {
  /* height: var(--font-size-5);
  width: var(--font-size-5); */
  position: fixed;
  bottom: 0;
  left: 0;
  /* padding-bottom: var(--font-size-0);
  padding-left: var(--font-size-0); */
  border: 0;
  opacity: 1;
  max-width: 75px;
  max-height: 75px;
}
.hide {
  display: none;
  visibility: hidden;
}

#game-scoreboard {
  font-size: 2rem;
  position: fixed;
  top: 0;
  right: 0;
  padding-top: 3%;
  padding-right: 3%;
  /* padding-top: var(--font-size-0);
  padding-right: var(--font-size-0); */
}
#timer,
#score {
  text-align: right;
}
#timer,
#score {
  font-family: "Coves Light";
  /* font-size: var(--font-size-3); */
  font-weight: 900;
  color: #ffffff;
}
.level-select-button {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 5px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
  font-size: 2rem;
  /* margin-top: var(--font-size-1); */
  padding: 1px 6px;
}

/* #level-select .start-menu-button {
  padding-top: 15%;
} */

#curtain {
  transition: all 2000ms;
  pointer-events: none;
  background-color: white;
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

#tinted-overlay {
  background-color: #000000;
  position:absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: .3;
}

@keyframes flux-tint {
  0%, 100% { 
    opacity: .3;
  }
  50% {
    opacity: .4;
  }

}
.opacity-0 {
  opacity: 0 !important;
}

.opacity-1 {
  opacity: 1 !important;
}
.margin-bottom-1 {
  margin-bottom: 1vh;
}
.margin-bottom-2 {
  margin-bottom: 4vh;
}
.margin-bottom-3 {
  margin-bottom: 6vh;
}
.margin-top-1 {
  margin-top: 1vh;
}
.margin-top-2 {
  margin-top: 4vh;
}
.margin-top-3 {
  margin-top: 6vh;
}
.table-margin-1 {
  border-collapse:separate; 
  border-spacing: 0 .5vh;
}
.table-margin-2 {
  border-collapse:separate; 
  border-spacing: 0 4vh;
}
.table-margin-3 {
  border-collapse:separate; 
  border-spacing: 0 6vh;
}


.debug, .debug-timers {
  width: 40%;
  height: 40%;
  top: 5%;
  left: 5%;
  background-color: white;
  z-index: 10;
  position: absolute;
  display: inline-block;
  padding: 1%;
  overflow-y: scroll;
  max-width: 300px;
  opacity: .75;
}

.debug-timers {
  left: 50% !important;
}

.debug .debug-item {
  padding: 1%;
  border: 1px solid lightgray;
  display: block;
  position: relative;
  margin-bottom: 4px;
}

.debug .debug-item .name {
  border: none;
  font-weight: bold;
}

.debug .debug-item .remove {
  position: absolute;
  right: 1%;
  top: 1%;
}

.coor {
  max-width: 30px;
}

.p-coors, .r-coors {
  display: block;
}

.c-data {
  padding-top: 1%;
}

.bg-gray {
  background-color: #ececec;
}
#stage-name-container, #stage-countdown-3-container, #stage-countdown-2-container, #stage-countdown-1-container, #stage-countdown-start-container {
 
  /* width: 90%; */
  /* width: var(--full-screen-width);
  height: var(--quarter-screen-height); */
  position: fixed;
  /* left: var(--start-button-container-offset-left);
  top: var(--start-button-container-offset-top); */
  /* line-height: var(--quarter-screen-height); */
  /* text-align: center; */
  vertical-align: middle;  
  /* padding-top: 25%;
  padding-bottom: 25%; */
}
#stage-name, #stage-countdown-3, #stage-countdown-2, #stage-countdown-1, #stage-countdown-start {
  display: inline-block;
  font-family: "Coves Light";
  position: fixed;
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  /* top: calc(50% - 1.5rem); */
  text-align: center;
  vertical-align: middle;  
  top: calc(50% - 1.5rem);
  width: 90%;
}

#stage-name {
  /* left: var(--stage-name-offset-left);
  top: var(--stage-name-offset-top); */
  z-index: 5;
}

#stage-countdown-3 {
}

#stage-countdown-2 {
  /* left: var(--stage-countdown-2-offset-left);
  top: var(--stage-countdown-2-offset-top); */
}

#stage-countdown-1 {
  /* left: var(--stage-countdown-1-offset-left);
  top: var(--stage-countdown-1-offset-top); */
}

#stage-countdown-start {
  /* left: var(--stage-countdown-start-offset-left);
  top: var(--stage-countdown-start-offset-top); */
  /* width: 300px;
  text-align: center; */
}

/* #instructions {
  left: var(--instructions-offset-left);
  top: var(--instructions-offset-top);
  position: absolute;
  text-align: center;
} */

#instructions-list img {
  width: 49%;
  max-height: 200px;
  display: inline-block;
  padding: 3% 0;
}

#instructions-list {
  text-align:center;
}

#stage-number {
  font-family: "Coves Light";
  text-align: center;
  display: block;
  font-size: 3rem !important;
  z-index: 5;
  width: 90%;
  color: white;
  /* padding: var(--font-size-4); */
  letter-spacing: 30px;
  margin: 0 auto;
}

#instructions-title {
  text-align: center;
  vertical-align: middle;  
  width:100%;
}

.menu-container {
  width: 100%;
  height: 100%;
  padding: 5%;
  position: absolute;
  left: 0px;
  top: 0px;
  background: rgba(125, 125, 125, .25);
  z-index: 1000;
  box-sizing: border-box;
  display: inline-block;
}

.scrolling-section {
  display: block;
  position: relative;
  height: 75%;
  overflow-y: scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

.title {
  text-align: center;
  display: block;
  padding-top: 5%;
  padding-bottom: 5%;
  font-size: 4rem;
  font-family: "Aadhunik";
  font-weight: 900;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0);
  color: #ffffff;
}

@media only screen and (max-width: 500px) {
  #instructions-list img {
    width: 75% !important;
  }
}
@media (min-aspect-ratio: 10/9) and  (max-height: 700px), (max-height: 500px){
/* @media only screen and (max-height: 500px) { */

  #high-scores-title {
    padding-top: 5%;
  }

  #report-options {
    /* right: 5%;
    top: 33%;
    position: absolute; */
    
    right: 5%;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
  }

  .results-left, #report-options, #sound-left, #sound-right {
    width: 49%;
    display: inline-block;
  }

  .spacer {
    visibility: hidden;
    display: none;
  }

  #pause-menu {
    padding-top: 13% !important;
  }

  #credits-item {
    width: 49%;
    display: inline-block;
    min-height: 30%;
    vertical-align: top;
  }

  #credits-item {
    width: 49%;
    display: inline-block;
  }

  #instructions-list img {
    width: 32% !important;
  }
  .level-select-button {
    width: 49% !important;
    display: inline-block !important;
  }

  #start-menu button {
    width: 49% !important;
    display: inline-block !important;
  }

  .margin-top-1 {
    margin-top: 1%;
  }
  .margin-top-2 {
    margin-top: 2%;
  }
  .margin-top-3 {
    margin-top: 3%;
  } 
  
  .margin-bottom-1 {
    margin-bottom: 1%;
  }
  .margin-bottom-2 {
    margin-bottom: 2%;
  }
  .margin-bottom-3 {
    margin-bottom: 3%;
  }
  .table-margin-1 {
    border-collapse:separate; 
    border-spacing: 0 2px;
  }
  .table-margin-2 {
    border-collapse:separate; 
    border-spacing: 0 2px;
  }
  .table-margin-3 {
    border-collapse:separate; 
    border-spacing: 0 2px;
  }
  .title {
    padding-top:2%;
    padding-bottom: 2%;
  }
  .menu-title-text {
    padding-top:1%;
    padding-bottom: 1%;
  }
  .menu-container {
    padding-top:2%;
    padding-bottom: 2%;
  }
  #back-button {
    padding-top:2%;
    padding-bottom: 2%;
  }
  .start-menu-button {
    margin-top: 0;
  }
  .scrolling-section {
    height: 79%;
  }
  .scrolling-section#report-scrolling-section, .scrolling-section#sound-scrolling-section {
    height: 79%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);}

}

.credits-role, .credits-name, .level-select-button, .sound-menu-button {
  font-size: 1.5rem;
}
#start-menu .start-menu-button, #report-options, #pause-menu .start-menu-button {
  font-size: 2rem;
}
.gray {
  opacity: .5;
}