@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    font-family: 'Press Start 2P', cursive;
    background-repeat: no-repeat;
    background-color: black;
}

h1 {
    text-align: center;
    font-size: 30px;
    line-height: 50px;
    color: red;
    margin: 10px 0;
    -webkit-text-stroke: 1px black;
    position: relative;
    width: 500px;
    right: 50px;
}

h3 {
    text-align: center;
    font-size: 18px;
    line-height: 30px;
    position: relative;
    z-index: 1;
    color: yellow;
    margin: 10px 0;
    -webkit-text-stroke: 1px black;
    right: 50px
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 400px 200px;
    justify-items: center;
}

#game {
    background-image: url('./images/fantasy-forest.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 1200px;
    height: 800px;
    border: 10px solid black;
}

#cont, #start, #replay {
    font-family: 'Press Start 2P', cursive;
    font-size: 25px;
    display: block;
    margin: auto;
    padding: 5px 10px;
    z-index: 2;
    position: relative;
    border: 7px outset gold;
    background-color: black;
    color: red;
    right: 50px;
}

#knight-hp {
    color: white;
    font-size: 50px;
    text-align: center;
    position: relative;
    top: 50px;
    -webkit-text-stroke: 1px black;
}

#knight-hp-div {
    background-image: url('./images/hp-heart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 150px;
    height: 200px;
    opacity: 0.9;
    position: relative;
    left: 100px;
}

#dragon-hp {
    color: white;
    text-align: center;
    position: relative;
    font-size: 50px;
    position: relative;
    top: 50px;
    -webkit-text-stroke: 1px black;
}

#dragon-hp-div {
    background-image: url('./images/hp-heart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 150px;
    height: 200px;
    opacity: 0.9;
    position: relative;
}

#knight-sprite-div {
    align-self: end;
}

#k-sprite {
    height: 90%;
    width: 90%;
    transform: scaleX(-1);
    position: relative;
    top: 425px;
    right: 825px;
    z-index: 1;
}

#dragon-sprite {
    grid-column: span 2;
}

#drg-sprite {
    width: 110%;
    position: relative;
    left: 50px;
    z-index: 0;
    top: 30px;
}

#player-actions {
    grid-column: span 4;
}

.player-action {
    width: 125px;
    height: 125px;
    margin: 20px 40px 20px 40px;
    z-index: 1;
}

#sword {
    background-image: url('./images/sword-button.png');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    border: 10px outset maroon;
    color: transparent;
    background-color: red;
    position: relative;
    top: 10px;
}

#shield {
    background-image: url('./images/shield-button.png');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    border: 10px outset goldenrod;
    color: transparent;
    background-color: black; 
    position: relative;
    top: 10px;
}

#bow {
    background-image: url('./images/bow-button.png');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    border: 10px outset navy;
    background-color: rgb(58, 58, 130);
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: yellow;
    position: relative;
    -webkit-text-stroke: 1px black;
    top: 25px;
}

#potion {
    background-image: url('./images/potion-button.png');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    border: 10px outset darkgreen;
    background-color: rgb(48, 181, 181);
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    position: relative;
    text-align: bottom;
    -webkit-text-stroke: 1px black;
    top: 25px;
}

#action-sprites {
    align-self: end;
}

#fire-sprite {
    width: 300px;
    position: relative;
    top: 1050px;
    left: 400px;
    z-index: -1;
}

#claws-sprite {
    width: 100px;
    opacity: 0.75;
    transform: scaleX(-1);
    top: 950px;
    left: 225px;
}

#bite-sprite {
    width: 125px;
    opacity: 0.75;
    transform: scaleX(-1);
    top: 925px;
    left: 100px;
}

#wind-sprite {
    width: 300px;
    transform: scaleX(-1);
    opacity: 0.5;
    left: 700px;
    top: 600px;
}

#sword-sprite {
    width: 400px;
    transform: scaleX(-1) rotate(60deg);
    left: 600px;
    top: 325px;
}

#arrow-sprite {
    width: 100px;
    transform: rotate(137deg);
    left: 500px;
    top: 150px;
}

#shield-sprite {
    width: 100px;
    opacity: 0.75;
    top: 210px;
    left: 100px;
}

#potion-sprite {
    width: 200px;
    opacity: 0.9;
    transform: rotate(270deg) scaleX(-1);
    top: 100px;
    left: 175px;
}

#potion-sprite, #shield-sprite, #bite-sprite, #claws-sprite, #arrow-sprite, #sword-sprite, #wind-sprite, #tombstone-d, #tombstone-k {
    position: relative;
    z-index: -1;
}



#tombstone-k {
    width: 100px;

    top: 125px;
}

#tombstone-d {
    width: 100px;
    left: 850px;
}

#potion-text, #bow-text, #shield-text, #sword-text, #knight-text, #dead-dragon-text, #dead-knight-text {
    position: relative;
    padding: 10px;
    border: 3px solid black;
    border-radius: 20px;
    text-align: center;
    font-size: 10px;
    line-height: 15px;
    z-index: -1;
}

#potion-text {
    background-color: rgb(48, 181, 181);
    right: 485px;
    bottom: 150px;
    width: 155px;
}

#bow-text {
    color: white;
    background-color: rgb(58, 58, 130);
    bottom: 355px;
    right: 150px;
    width: 175px;
}

#shield-text {
    color: goldenrod;
    background-color: black;
    left: 150px;
    bottom: 460px;
    width: 175px;
}

#sword-text {
    color: white;
    background-color: maroon;
    bottom: 450px;
    left: 500px;
    width: 145px;
}
