* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: Chicle;
  font-weight: 400;
  font-style: normal;
  src: url(./chicle/chicle_400/Chicle-Regular.ttf);
}

@font-face {
  font-family: Shojumaru;
  font-weight: 400;
  font-style: normal;
  src: url(./shojumaru/Shojumaru-Regular.ttf);
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: lightgrey;
  overflow: hidden;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
  margin: auto auto;

  width: 100vw;
  min-width: 1058px;
  max-width: 1058px;
  padding: 20px;
}

#container {
  display: flex;
  flex-grow: 0;
  min-width: 95vw;
  width: 100%;
  position: relative;
}

#statsDiv {
  position: absolute;
  display: flex;
  align-items: center;
  width: 100%;
  height: min-content;
  padding: 20px;
}

#canvas {
  width: 100%;
  max-width: 100%;
}

.healthContainer {
  width: 100%;
  height: 30px;
  background-color: rgb(118, 136, 118);
  overflow: hidden;
  border: 2px solid white;
}

.healthContainer.player_1 {
  margin-right: 20px;
  /* border-radius: 15px 0 0 15px; */
}

.healthContainer.player_2 {
  margin-left: 20px;
  /* border-radius: 0 15px 15px 0; */
}

#playerHealth_1,
#playerHealth_2 {
  background-color: yellow;
  height: 100%;
  width: 100%;
  border: 2px solid rgb(118, 136, 118);
  transition: .3s;
}

#playerHealth_1 {
  position: relative;
  float: right;
}

#timer {
  position: relative;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 100px;
  background-color: white;
  flex-shrink: 0;
  font-size: 38px;
  letter-spacing: 4px;
  /* padding-left: 4px; */
  box-shadow: 0 0 10px 10px white;
  font-family: Chicle;
  /* font-family: Shojumaru; */
}

.timerBoarder {
  position: relative;
  top: -3px;
  left: 4px;
  width: 140px;
  height: auto;
  margin-right: 8px
}

#timerSeconds {
  display: flex;
  position: absolute;
  top: 52%;
  left: 51%;
  transform: translate(-50%, -50%);
  margin-left: -1px;
}

#timerSeconds div {
  text-align: center;
  width: 20px;
}


#timerSeconds div:last-of-type {
  text-align: right;
}

#messageDiv {
  --blur-color: gold;
  position: absolute;
  color: white;
  width: 600px;
  text-align: center;
  top: 30%;
  left: 0;
  right: 0;
  margin: auto;
  transform: scale(0);
  font-size: 60px;
  transition: transform .3s ease-in;
  letter-spacing: 1px;
  white-space: nowrap;
  font-family: Shojumaru;
}

.blurBorder {
  animation: blurBorder 1s;
}

.continual {
  animation-iteration-count: infinite;
  /* animation-delay: .5s; */
}

@keyframes blurBorder {
  0% {
    text-shadow: 0 0 0px var(--blur-color);
  }

  50% {
    text-shadow: 0 0 30px var(--blur-color);
  }

  100% {
    text-shadow: 0 0 0px var(--blur-color);
  }
}

#pauseBtn,
#restartBtn {
  display: none;
}

#continueBtn,
#startBtn,
#pauseBtn,
#restartBtn {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%);
  font-family: sans-serif;
  padding: 5px 10px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: bold;
  background-color: #96550077;
  border: double 5px #fff7;
  color: #fffb;
  width: 110px;
  white-space: nowrap;
  cursor: pointer;
}

#restartBtn {
  width: 150px;
}

button,
h1,
h2,
h3 {
  font-family: Shojumaru;
  margin: 0 auto;
  color: hsl(34, 100%, 80%);
  letter-spacing: 2px;
}

h3 {
  font-size: 15px;
}


#introPage {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #444e;
  color: hsl(34, 100%, 89%);
  padding: 20px;
  z-index: 10;
}

#introPage h1 {
  margin-top: 20px;
  text-align: center;
  font-size: 45px;
}

#introPage h2 {
  margin: 0;
}

#introPage h2 {
  text-align: center;
  margin-bottom: 30px
}

#introPage p {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 10px;
  letter-spacing: .7px;
  text-indent: 10px;
}

#introPage p:last-of-type {
  text-align: center;
}

#continueBtn,
#startBtn {
  width: fit-content;
}

#chooseFighterPage {
  --choice-size: 135px;
  position: absolute;
  /* top: 0;
    left: 0;
    bottom: 0;
    right: 0; */
  width: 100%;
  height: 100%;
  background-color: #444e;
  visibility: hidden;
  z-index: 10;
}

img {
  width: 100%;
}

.player2_choices img,
#player2_choice img {
  transform: rotateY(180deg)
}

.notCaseSensitive {
  position: absolute;
  top: 355px;
  left: 155px;
  color: hsl(34, 100%, 80%);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}

#instructions2,
#instructions3,
#instructions4 {
  position: absolute;
  color: hsl(34, 100%, 89%);
  letter-spacing: 1px;
}

#instructions2 {
  width: 450px;
  top: 88px;
  left: 0;
  right: 0;
  font-family: Arial, Helvetica, sans-serif;
  margin: auto;
  text-indent: 10px;
  font-size: 16px;
}

#instructions3,
#instructions4 {
  width: 420px;
  top: 370px;
  font-family: Shojumaru;
  color: hsl(34, 100%, 80%);
  text-align: right;
}

#instructions3 {
  left: 30px;
}

#instructions4 {
  right: 45px
}

#instructions3 div,
#instructions4 div {
  display: inline-block;
  margin: 10px;
}

#instructions3 div:last-of-type,
#instructions4 div:last-of-type {
  width: 150px;
  left: 0;
  right: 0;
  top: 100px;
  position: absolute;
  margin: auto;
}

#instructions3 span,
#instructions4 span {
  display: inline-block;
  min-width: 30px;
  background-color: white;
  color: black;
  font-weight: 800;
  text-align: center;
  padding: 3px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 5px 10px;
  border-radius: 5px;
}

.name input {
  font-family: Shojumaru;
  text-align: center;
  color: hsl(34, 100%, 80%);
  background-color: transparent;
  border: none;
  /*outline: none; */
  font-size: 32px;
  width: 330px;
  padding: 5px 0;
  letter-spacing: 2px;
  cursor: pointer;
}

.player_one,
.player_two {
  position: absolute;
  top: 20px;
  width: fit-content;
  letter-spacing: 2px;
  font-size: 20px;
  color: hsl(34, 100%, 89%);
}

#chooseFighterPage .player_one {
  left: 35px;
}

.player_two {
  right: 35px;
}

#player1_choice,
#player2_choice {
  position: absolute;
  width: var(--choice-size);
  height: var(--choice-size);
  background-color: white;
  top: 90px;
  background: black;
  width: var(--choice-size);
  height: var(--choice-size);
  border: 3px black solid;
}

#player1_choice>*,
#player2_choice>* {
  width: 100%;
  height: 100%
}

#player1_choice {
  left: 100px
}

#player2_choice {
  right: 100px;
}

.player1_choices,
.player2_choices {
  --scale: .7;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  position: absolute;
  width: calc(var(--choice-size) * var(--scale) * 4);
  height: calc(var(--choice-size) * var(--scale));
  border: 3px double black;
  top: 250px;
  gap: 3px;
  background: black
}

.player1_choices {
  left: 60px;
}

.player2_choices {
  right: 60px;
}

.draggable {
  width: 100%;
  height: 100%;
  position: absolute;
}

.choices>* {
  position: relative;
  cursor: move;
}

.Mack {
  background: hsla(0, 100%, 70%, .7);
}

.Larry {
  background: hsla(120, 100%, 35%, .7);

}

.Curly {
  background: hsla(240, 100%, 70%, .7);

}

.Mo {
  background: grey;
}

.Chemp {
  background: hsla(350, 100%, 88%, .7);
}

.playerWinsDiv {
  position: absolute;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  top: 15px;
}

.player1NumOfWins {
  left: 30px;
}

.player2NumOfWins {
  right: 30px;
}

#player1NumOfWins span,
#player2NumOfWins span {
  display: inline-block;
  width: 55px;
  text-align: center;
}




























#bothVolumes {
  --volumeContainer-height: 30px;
  --volumeContainer-width: 200px;
  --thumb-width: 30px;
  --volume-setting: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: fit-content;
  width: 90%;
  margin: 0 auto;
}

.volumeMarkers {
  /* background: yellow; */
  height: 12px;
  width: 200px;
  margin-left: 107px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.volumeMarkers .long {
  width: 3px;
  height: 100%;
  background-color: hsl(34, 100%, 80%);
}

.volumeMarkers .short {
  width: 2px;
  height: 50%;
  background-color: hsl(34, 100%, 80%);
}

.volumeSliderContainer {
  display: flex;
  align-items: center;
  /* position: relative; */
  height: var(--volumeContainer-height);
  width: calc(var(--volumeContainer-width) + var(--thumb-width) + var(--volumeContainer-height) + 75px);
  opacity: 1;
  box-sizing: content-box;
  z-index: 20;
}

.volumeSliderContainer span {
  display: inline-block;
  color: hsl(34, 100%, 40%);
  width: 80px;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 2px;
  text-align: right;
  margin-right: 10px;
}

.volumeSliderContainer:last-of-type {
  margin-top: 5px;
}

.volumeSliderContainer.bright span {
  color: hsl(34, 100%, 80%)
}

.volumeIconContainer {
  display: flex;
  align-items: center;
  width: calc(var(--volumeContainer-height));
  height: 100%;
  margin-right: 20px;
}

.volumeIcon {
  height: 75%;
  cursor: pointer;
}

.bright .volumeIcon.notActive {
  display: none;
}

.volumeIcon.active {
  display: none;
}

.bright .volumeIcon.active {
  display: inline-block
}



/*  Track  */
.trackContainer {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
}

.track {
  position: relative;
  width: calc(100% - var(--thumb-width));
  height: 10px;
  border-radius: 3px;
  background-color: hsl(34, 100%, 30%);
  top: 10px;
  left: calc(var(--thumb-width) / 2);
  cursor: pointer;
}


.bright .track {
  background-color: hsl(34, 100%, 85%);
}

.thumb {
  --thumb-height: 16px;
  position: absolute;
  width: 30px;
  height: var(--thumb-height);
  font-weight: 700;
  background-color: black;
  padding: 3px 5px 4px;
  top: 7px;
  font-size: 6px;
  border-radius: 5px;
  white-space: nowrap;
  left: 5px;
  border: 1px hsl(34, 100%, 40%) solid;
  color: hsl(34, 100%, 70%);
  cursor: grab;
  box-sizing: border-box;
}

.thumb:focus-within {
  cursor: grabbing;
}

.thumb img {
  /* width: 100%; */
  position: relative;
  height: 10px;
  width: 120%;
  bottom: 1px;
  left: -2px;
  opacity: .7;
}

.bright .thumb img {
  opacity: 1;
}















#musicSelection-container {
  display: flex;
  bottom: 17px;
  right: 20px;
  width: 350px;
  margin: 0 auto;
  height: fit-content;
  flex-flow: column;
  color: hsl(34, 100%, 80%);
  z-index: 20;
}

#musicSelection-container p {
  font-family: Shojumaru;
  text-align: center;
  /* text-decoration: underline; */
}

#musicSelection-container>*:first-child {
  text-decoration: underline;
  margin-bottom: 10px;
}

.musicChoices {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  /* flex-flow: column; */
  font-size: 13px;
  color: hsl(34, 100%, 40%);
  height: 70px;
  margin-left: 10px;
}

.musicChoices input {
  display: none;
}

.musicChoices label {
  font-family: Shojumaru;
  width: fit-content;
  margin-top: 7px;
  /* background-color: red; */
}

.musicChoices label p {
  width: min-content;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}


.musicChoices label p:hover {
  color: hsl(34, 100%, 60%);
}

input[type="radio"]:checked+label p {
  color: hsl(34, 100%, 80%);
}










.userName {
  text-align: center;
  color: hsl(34, 100%, 40%);
}

.userName span {
  color: hsl(34, 100%, 80%);
}






#audioSettings {
  color: white;
}








#dropDownContainer {
  display: flex;
  flex-flow: column;
  justify-content: space-evenly;
  position: absolute;
  background-color: #333;
  border: 2px solid hsl(34, 100%, 40%);
  height: 400px;
  width: 400px;
  top: 0px;
  opacity: 0;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: -50;
  border-radius: 20px;
  transition: transform .25s linear, opacity .25s linear, z-index 1s;
}

#dropDownContainer.active {
  /* top: 70px; */
  opacity: 1;
  transform: translate(-50%, 80px);
  z-index: 50;
  /* transition: .5s; */
  transition: transform .25s linear, opacity .25s linear, z-index 0s;
}

.exitSettings {
  color: hsl(34, 100%, 40%);
  font-family: Shojumaru;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
}

.exitSettings:hover {
  color: hsl(34, 100%, 80%);
  cursor: pointer;
}

#showSettingsBtn {
  position: absolute;
  width: 30px;
  z-index: 50;
  top: 530px;
}