/* BODY */

@keyframes bodyLoad{
    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}



body {
    animation: bodyLoad 2s .2s forwards ease-in;
    background-image: url('img/Art\ Wtf\ GIF\ by\ Kenaim.gif');
    background-size: cover;
    margin: 0;
    font-size: 42px;
    color: #e2e2e2;
    text-shadow: 1px 1px 3px #000;
    /* background: linear-gradient(135deg, #1a1a2e, #3a0ca3); */
    color: #ddd; /* світлий текст */
    font-family: 'Cinzel', serif;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100%;
    max-height: 100%;
}


/* container styles */

.chooseCharText {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 350px;
}

.chooseCharacter img {
    width: 300px;
    height: 400px;
    border-radius: 30px;
    border: 1px solid black;
    margin: 15px;
}

.chooseCharacter button {
    font-family: 'MedievalSharp', cursive;
    font-size: 42px;
    color: #e2e2e2;
    text-shadow: 1px 1px 3px #000;
    border: 2px solid hsl(265, 61%, 62%);
    border-radius: 15px;
    margin: 40px;
    background-color: hsl(265, 61%, 52%);
    width: 150px;
    height: 50px;
    font-size: 25px;
    position: relative;
    left: 55px;
    cursor: pointer;
}
.container_magician {
    display: flex;
    flex-direction: column;
}

/* @keyframes animDef {
    50% {
        transform: scale (1)
    }
    100% {
        transform: scale(1.1);
    }
} */

@keyframes anim {
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes animOut {
    50% {
        transform: scale(1);
    }
}

.container_magician img:hover,
.container_knight img:hover {
    animation-name: anim;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.container_knight {
    display: flex;
    flex-direction: column;
}

.chooseCharacter {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 74.5vh;
}

.chooseCharText {
    display: inline-block;
}

/* Animation */

.animatedTypeWriter {
    font-size: 2em;
    letter-spacing: 10px;
    /* border-right: 5px solid; */
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    overflow: hidden;
    animation:
    typing 5s steps(35) infinite,
    cursor .4s step-end infinite alternate;
}

.animatedTypeWriterClicked {
    font-size: 1em;
    letter-spacing: 5px;
    /* border-right: 5px solid; */
    /* width: 100%; */
    white-space: nowrap;
    overflow: hidden;
    overflow: hidden;
    animation:
    typing 5s steps(35) infinite,
    cursor .4s step-end infinite alternate;
    font-family: 'Cinzel', serif;
}

@keyframes cursor {
    50% { border-color: transparent;}
}

@keyframes typing {
     0%, 40% { width: 0; }
    40%, 100% { width: 100%; }
}



.container_magician button:hover,
.container_knight button:hover {
    transform: scaleX(1.2);
    transition: 1s;
}

.container_magicianMouseOut,
.container_knightMouseOut {
    transform: scaleX(1);
    transition: 1s;
}

.svgHome {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
}

.svgHome:hover {
    transform: scale(1.1);
    transition: 1s;
}

.svgHomeMouseOut {
    transform: scale(1);
    transition: 1s;
}

.buttonReady {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#startButton {
    display: none;
    padding: 14px 30px;
    background: linear-gradient(to bottom, #2e2a36, #1b181f);
    border: 2px solid #5e4b7a;
    border-radius: 10px;
    color: #e5d9ff;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 1.2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow:
    inset 0 0 10px rgba(94, 75, 122, 0.4),
    0 0 12px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes secondBodyStart {
    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}


.timer321 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.battleField {
    display: flex;
    justify-content: left;
    align-items: center;
}

.characterFunctional {
    display: none;
    height: 630px;
    width: 100%;
}

.characterFunctional img {
    position: absolute;
    left: 450px;
    top: 400px;
    transition: top 0.1s ease;
    transition: left 0.1s ease;
}

.characterHP {
    position: absolute;
    top: 215px;
    border: 3px solid black;
    height: 50px;
    width: 200px;
    background-color: lightgreen;
    border-radius: 10px;
}

.enemyHP {
    background-color: hsl(40, 16%, 4%);
    position: absolute;
    top: 215px;
    left: 1713px;
    border: 3px solid black;
    height: 50px;
    width: 200px;
    border-radius: 10px;
}

.enemyHPDamaged {
    height: 50px;
    width: 180px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged2 {
    height: 50px;
    width: 160px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged3 {
    height: 50px;
    width: 140px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged4 {
    height: 50px;
    width: 120px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged5 {
    height: 50px;
    width: 100px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged6 {
    height: 50px;
    width: 80px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged7 {
    height: 50px;
    width: 60px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged8 {
    height: 50px;
    width: 40px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamaged9 {
    height: 50px;
    width: 20px;
    background-color: hsl(40, 16%, 4%);
}

.enemyHPDamagedDefeated {
    height: 50px;
    width: 200px;
    background-color: transparent;
}

.rowSection {
    display: flex;
    flex-direction: row;
}

@keyframes animationBullet {
    0% {
        border-radius: 30%;
        width: 90px;
        height: 90px;
        transform: scale(1.1);
        transform: rotateY(200deg);
        transition: 2s;
    }
    30% {
        border-radius: 50%;
        width: 90px;
        height: 90px;
        transition: 2s;
        transform: scale(1.2);
        transform: rotateX(260deg);
    }
    100% {
        border-radius: 60%;
        width: 90px;
        height: 90px;
        transform:  translateX(2000px);
        transition: 2s;
    }
}

.skills {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffcc00, #ff3300, #990000);
    border-radius: 50%;
    box-shadow: 
    0 0 20px #ff6600, 
    0 0 40px #ff3300, 
    0 0 60px #ff0000,
    0 0 80px #cc0000;
    animation-name: animationBullet;
    animation-duration: 2s;
}

#skill {
    position: absolute;
    left: 650px;
    top: 550px;
}

.emptyskill {
    color: none;
    width: 0px;
    border-top: 0px solid hsl(270, 67%, 38%);
    border-radius: 0%;
    transform: translateX(0px);
    transition: 0s;
}

.enemy img {
    position: absolute;
    width: 400px;
    height: 500px;
    left: 1400px;
    top: 300px;
}

.enemy  {
    width: 500px;
    height: 500px;
}

@keyframes dieAnimation {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

@keyframes recoverAnimation {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0.3;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.enemyDie {
    animation: dieAnimation 2s .2s forwards;
}

.enemyRelived {
    animation: recoverAnimation 2s .2s forwards;
}

@keyframes coinChangeRemove {
    0% {
        opacity: 1;
    }
    
    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

@keyframes coinChangeAdd {
    0% {
        opacity: 0;
    }
    
    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.coin {
    position: absolute;
    transform: translateX(200px);
    transition: 1s;
}

.coinChanged {
    position: absolute;
    transform: translateX(200px);
    transition: 1s;
    animation: coinChangeRemove 2s .2s forwards ease;
}

.coinChangeAdd {
    position: absolute;
    transform: translateX(200px);
    transition: 1s;
    animation: coinChangeAdd 2s .2s forwards ease;
}



/* .svgEnter {
    width: 100px;
    height: 100px;
} */

.svgEnterContainer img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.svgEnterContainer {
    position: absolute;
    top: 200px;
    color: white;
    opacity: 0;
}

.divFlex {
    display: flex;
    flex-direction: row;
}



.coinChange {
    animation: coinChangeAdd 1s .1s forwards ease;
}