@font-face {
    font-family: 'Mortal Kombat 3';
    src: url('./assets/fonts/MortalKombat3-Regular.eot');
    src: url('./assets/fonts/MortalKombat3-Regular.eot?#iefix') format('embedded-opentype'),
    url('./assets/fonts/MortalKombat3-Regular.woff2') format('woff2'),
    url('./assets/fonts/MortalKombat3-Regular.woff') format('woff'),
    url('./assets/fonts/MortalKombat3-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    background-color: #424542;
    margin: 0;
    padding: 0;
}

.root {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #424466;
}

.wall-left {
    position: absolute;
    width: 87px;
    background-image: url(assets/wall-left.png);
    min-height: 100vh;
    background-size: contain;
    background-repeat: repeat-y;
    top: 0;
    z-index: 100;
    left: 50%;
    transform: translate(-450px, 0px);
    height: 100%;
}

.wall-right {
    position: absolute;
    width: 87px;
    background-image: url(./assets/wall-right.png);
    min-height: 100vh;
    background-size: contain;
    background-repeat: repeat-y;
    top: 0;
    z-index: 100;
    right: 50%;
    transform: translate(450px, 0px);
    height: 100%;
}

.arenas {
    width: 786px;
    height: 578px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
}

.arenas.arena1 {
    background-image: url(./assets/scorpions-lair-arenas.png);
}

.arenas.arena2 {
    background-image: url(./assets/the-cave.png);
}

.arenas.arena3 {
    background-image: url(./assets/jade-s-desert.png);
}

.arenas.arena4 {
    background-image: url(./assets/scislac-busorez.png);
}

.arenas.arena5 {
    background-image: url(./assets/waterfront.png);
}

.player1,
.player2 {
    width: 50%;
    position: relative;
}

.progressbar {
    width: 295px;
    border: 4px solid #f5d100;
    position: absolute;
    top: 59px;
    height: 28px;
    background-color: #cd0e03;
    display: flex;
}

.player1 .progressbar {
    left: 38px;
}

.player2 .progressbar {
    right: 38px;
    flex-direction: row-reverse;
}

.extralife {
    width: 90px;
    border: 2px solid #f5d100;
    position: absolute;
    top: 85px;
    height: 12px;
    background-color: #cd0e03;
    display: flex;
}

.player1 .extralife {
    left: 38px;
}

.player2 .extralife {
    right: 38px;
    flex-direction: row-reverse;
}

.extralife .life {
    background: #00d600;
}

.life {
    background-color: #0431f9;
    height: 100%;
    width: 90%;
}

.name {
    position: absolute;
    font-family: 'Mortal Kombat 3';
    font-size: 26px;
    line-height: 20px;
    letter-spacing: 2px;
    color: #efefef;
    top: 0;
    text-transform: uppercase;
}

.player1 .name {
    left: 5px;
}

.player2 .name {
    right: 5px;
}

.chat {
    width: 786px;
    height: 30vh;
    background-image: url(./assets/versus.png);
    background-size: cover;
    background-position: center;
    border-top: 4px solid #f5d100;
    padding: 6px 40px;
    overflow: scroll;
    color: white;
    font-family: Arial;
}

.character {
    position: absolute;
    bottom: 20px;
    width: 150px;
    height: 268px;
}

.player1 .character {
    left: 60px;
}

.player2 .character {
    right: 60px;
}

.player2 .character img {
    transform: scaleX(-1) translate(50%, 0);
}

.character img {
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.fight {
    position: absolute;
    z-index: 100;
    top: 30%;
    width: 300px;
    left: 50%;
    transform: translate(-50%, 0%);
}

.fight img {
    width: 100%;
}

.button {
    display: block;
    position: relative;
    padding: 0 16px;
    height: 36px;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    background-color: #f5d100;
    border: none;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: "Mortal Kombat 3";
    outline: none;
}
.button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 4px;
    left: 0;
    background-color: #cd0e03;
    border-radius: 4px;
    z-index: -1;
}
.button:hover {
    background-color: #f5d100;
}
.button:active {
    top: 2px;
}
.button:active::after {
    top: 1px;
}

.button:disabled {
    opacity: .9;
    cursor: not-allowed;
}

.button:disabled:after {
    opacity: .1;
}

.button:disabled:active {
    top: 0px;
}

.button:disabled:active::after {
    top: 4px;
}

.loseTitle {
    position: absolute;
    top: 22%;
    left: 50%;
    font-size: 36px;
    transform: translate(-50%, 0%);
    text-transform: uppercase;
    z-index: 1000;
    color: white;
    font-family: "Mortal Kombat 3";
    text-shadow: 2px 2px 2px #cd0e03;
}

.reloadWrap {
    position: absolute;
    top: 54px;
    z-index: 1000;
    left: 50%;
    transform: translate(-50%, 0%);
}

.reloadWrap .button {
    margin-top: 0;
}

form:invalid button[class=button] {
    opacity: .9;
    cursor: not-allowed;
}

form:invalid button[class=button]:after {
    opacity: .1;
}

form:invalid button[class=button]:active {
    top: 0px;
}

form:invalid button[class=button]:active::after {
    top: 4px;
}

.control {
    position: absolute;
    width: 200px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.inputWrap {
    position: relative;
    width: 280px;
    margin-bottom: 24px;
}

.buttonWrap {
    margin-top: 12px;
}

.inputWrap h2 {
    text-align: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-family: 'Mortal Kombat 3';
    color: #efefef;
    text-transform: uppercase;
}

.ul {
    border: solid 3px #cd0e03;
    height: 50px;
    padding: 0 12px;
    font-family: 'Mortal Kombat 3';
    display: flex;
    justify-content: space-between;
    color: #efefef;
}
.ul label {
    cursor: pointer;
}
.ul label:nth-of-type(2) {
    margin: 0 -4.5px;
}
.ul label span {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 50px;
    line-height: 50px;
    transition: 0.3s;
    text-align: center;
    margin-top: -3px;
}
.ul label span::before {
    position: relative;
    display: block;
    width: 80px;
    height: 50px;
    content: "";
    transform: scaleY(1.2);
    z-index: -1;
    margin-bottom: -50px;
    transition: 0.3s;
}
.ul label span:hover {
    background-color: rgba(107, 185, 240, 0.2);
}

input {
    display: none;
}
input[type=radio]:checked + label > span {
    color: #fff;
    font-weight: 700;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}
input[type=radio]:checked + label > span::before {
    background: #f5d100;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
}
input[type=radio]:checked + label > span:hover {
    background: none;
}