/*******************
universal styles
*******************/
@font-face {
    font-family: marvel;
    src: url('./masked_marvel/mask.ttf');
}
* {
  box-sizing: border-box;
}
body {
  margin: 10px;
  font-family: marvel;
  font-size: 22px;
  background: url('./images/marvel-bg.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;

}
.black {
  background: black;
  overflow-x: hidden;
}
.black-border-fifty {
  border:3px solid black;
  border-radius: 50%;
}
.black-border {
  border: 3px solid black;
  border-radius: 4px;
}
button {
  cursor: pointer;
}

/*******************
choose character page
*******************/
.video-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@media (min-aspect-ratio: 16/9) {
  .video {
    height: 300%;
    top: -100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video {
    width: 300%;
    left: -100%;
  }
}

.white-large {
  color: white;
  font-size: 60px;
  text-align: center;
}
.choose-char-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.char-container {
  width: calc(20% - 20px);
  border: 4px solid black;
  border-radius: 2px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  background: #c42727;
  padding: 10px 5px;

}
.char-button {
  all: unset;
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid black;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  cursor: pointer;
}
.char-button {
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0);
  text-shadow: none;
  transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

.char-button:hover {
  box-shadow: inset 0 0 50px rgba(255, 255, 255, .8), 0 0 20px rgba(255, 255, 255, .8);
}

.char-info {
  display: flex;
  flex-direction: column;
}
.name {
  margin: 10px 0px 4px;
  text-align: center;
  font-size: 24px;
  overflow-wrap: anywhere;
}
.stats {
  margin: 0px 10px;
  font-size: 20px;
  white-space: nowrap;
}

/*******************
battle page
*******************/

.battle-main {
  margin-top: 5%;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 28px;
}
.wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: .5%;
  padding-top: 20px;
}
.right-align {
  text-align: right;
  margin-right: .5%;
}
.cpuProg,
.cpuSpecialBar {
  margin-left: auto;
}
.special-text {
  margin-top: 20px;
  margin-bottom: 7px;
}
.button-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}
.hit, .kick, .special {
  font-family: marvel;
  font-size: 35px;
  border-radius: 50%;
  margin: 30px;
  padding: 30px;
  width: 125px;
  height: 125px;
  background:radial-gradient(ellipse at center, rgba(255,0,0,1) 0%, rgba(100,0,0,1) 100%);
  border: none;
  color: black;
  text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -18px 18px #f20;
  outline:none;
}
.special {
  padding: 0px;
}

.player, .cpu {
  margin-top: 20%;
}

.player-info, .cpu-info, .text-fire {
  color: #000;

  text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -12px 10px #f80, 2px -14px 14px #f20; 
}

.progress, .special-wrapper {
  flex-shrink: 0;
  height: 14px;
  width: 250px;
  max-width: 100%;
  background-color: #ccc;
  border-radius: 7px;
  border: 2px solid black;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  box-shadow: 0 2px 5px #000;
}
.special-wrapper {
  width: 175px;
  max-width: 100%;
}
.progress-bar {
    border-radius: 4px;
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #1dbf0b;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}

.health-warning {
  background-color: #f0ad4e;
}

.health-danger {
  background-color: #c40c09;
}

.special-bar-color {
  background-color: rgba(100,0,0,1)
}
#stopButton, #stopButton2 {
  all: unset;
  background:radial-gradient(ellipse at center, rgba(255,0,0,1) 0%, rgba(100,0,0,1) 100%);
  border-radius: 4px;
  font-family: marvel;
  font-size: 26px;
  padding: 5px 10px;
  position: absolute;
  top: -50px;
}

.banner{
  height: 100px;
  width: 25%;
  position: absolute;
  font-size: 80px;
  text-align: center;
}
.stage {
    position: absolute;
    top: 3%;
    left: 45%;
    font-size: 54px;
}
.previous, .next, .next-thumb {
  position: absolute;
  right: 25px;
  font-size: 25px;
}
.previous {
  top: -40px;
}
.next {
  bottom: 115px;
}
.next-thumb {
  height: 100px;
  width: 100px;
  bottom: 10px; 
  right: 50px;
  border-radius: 50%;
  background-size: contain;
}
.tally-win, .tally-lose {
  font-size: 32px;
  position: absolute;
  left: 25px;
}

.tally-lose {
  bottom: 40px;
}
.tally-win {
  bottom: 100px;
}
@-moz-keyframes partial-spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(30deg); }
}
@-webkit-keyframes partial-spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(30deg); }
}
@keyframes partial-spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(30deg);}
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}
.spin {
   animation: spin 1000ms linear infinite;
}
.char-button:hover {
  animation: partial-spin .25s linear;
  -webkit-animation-fill-mode: forwards; /* Safari 4.0 - 8.0 */
  animation-fill-mode: forwards;
}

.glow {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
   box-shadow: -5px -3px 9px rgba(100,0,0,1) ; 
  -webkit-animation: glow .25s alternate infinite;
  animation: glow .25s alternate infinite;
}
@-webkit-keyframes glow {
  0% {
    -webkit-filter: brightness(1);
    filter: brightness(1);
  }
  100% {
    -webkit-filter: brightness(3);
    filter: brightness(3);
  }
}
@keyframes glow {
  0% {
    -webkit-filter: brightness(1);
    filter: brightness(1);
  }
  100% {
    -webkit-filter: brightness(3);
    filter: brightness(3);
  }
}
@-webkit-keyframes victory {
  0% {
  -webkit-transform: translate(-1000px, -100px);
  transform: translate(-1000px, -100px);
  }

  50% {
  -webkit-transform: translateY(300px);
  transform: translateY(300px);
  }

  100% {
    -webkit-transform: translate(1000px, -100px);
    transform: translate(1000px, -100px);
  }
}

@keyframes victory {
  0% {
  -webkit-transform: translate(-1000px, -100px);
  transform: translate(-1000px, -100px);
  }

  50% {
  -webkit-transform: translateY(300px);
  transform: translateY(300px);
  }

  100% {
    -webkit-transform: translate(1000px, -100px);
    transform: translate(1000px, -100px);
  }
}

@-webkit-keyframes swing {
    15% {
    -webkit-transform: translateX(350%);
    transform: translateX(350%);
  }
    100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes swing {
    15% {
    -webkit-transform: translateX(350%);
    transform: translateX(350%);
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes r-swing {
    15% {
    -webkit-transform: translateX(-350%);
    transform: translateX(-350%);
  }
    100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes r-swing {
    15% {
    -webkit-transform: translateX(-350%);
    transform: translateX(-350%);
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
.victory {
  -webkit-animation: victory 5s;
  animation: victory 5s;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
.swing {
  -webkit-animation: swing .5s ease-in;
  animation: swing .5s ease-in;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
.r-swing {
  -webkit-animation: r-swing .5s ease-in;
  animation: r-swing .5s ease-in;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.kick:hover, .hit:hover, .special:hover{
  box-shadow: inset 0 0 0 5px rgba(90,0,0,1);
}
 #stopButton:hover, #stopButton2:hover {
     box-shadow: inset 0 0 0 2px rgba(90,0,0,1);
 }

.stage1 {
  background: url('./images/stage1.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage2 {
  background: url('./images/stage2.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage3 {
  background: url('./images/stage3.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage4 {
  background: url('./images/stage4.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage5 {
  background: url('./images/stage5.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage6 {
  background: url('./images/stage6.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage7 {
  background: url('./images/stage7.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.stage8 {
  background: url('./images/stage8.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage9 {
  background: url('./images/stage9.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage10 {
  background: url('./images/stage10.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.stage11 {
  background: url('./images/stage11.gif') no-repeat center center ;
  height: 500px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.skip-intro,
.start-intro {
  all: unset;
  cursor: pointer;
  font-family: marvel;
  color: #fff;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255,0,0,1) 0%, rgba(100,0,0,1) 100%);
  border: 3px solid black;
  border-radius: 4px;
}

.skip-intro {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  font-size: 26px;
  padding: 6px 18px;
}

.start-intro {
  font-size: 46px;
  letter-spacing: 0.06em;
  padding: 14px 46px;
}

.skip-intro:hover,
.start-intro:hover {
  box-shadow: inset 0 0 0 2px rgba(90,0,0,1);
}

.intro-start {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.player-img img,
.cpu-img img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
}
