html, body, blockquote, code, h1, h2, h3, h4, h5, h6, p, pre {
    margin: 0;
    padding: 0;
}
html {
    max-width: 100vw;
    overflow-x: hidden;
    height: 100%;
}
.screen-a-lil-small {
    display: none
  }

body {
    box-sizing: border-box;
    background-image: url('./img/cherry_background.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.game {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
body canvas {
    border: solid 1px white;
}
.top-bar {
    position: relative;
    top: 15px;
    margin-left: 20px;
    margin-right: 20px;
}
.in-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
}
.player-health {
    height: 30px;
    width: 100%;
    background-color: rgb(255, 168, 168);
    border-radius: 5px 0px 0px 5px;
    border-width: 2px 0px 2px 2px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.61);
    z-index: 0;
}
.player-parent {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.player-fixer {
    position: absolute;
    background-color: rgb(117, 129, 247);
    border-radius: 5px 0px 0px 5px;
    border-width: 3px 0px 3px 3px;
    top: 0;
    right: 0;
    bottom: 0;
    width: 99.5%;
}
.timer {
    width: 10%;
    height: 45px;
    background-color: rgb(0, 0, 0);
    border-radius: 5px 5px 5px 5px;
    border-width: 2px 2px 2px 2px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.479);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: white;
}
.enemy-parent {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
}
.enemy-health {
    height: 30px;
    width: 100%;
    background-color: rgb(255, 168, 168);
    border-radius: 0px 5px 5px 0px;
    border-width: 2px 2px 2px 0px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.61);
    z-index: 0;
}
.enemy-fixer {
    position: absolute;
    background-color: rgb(117, 130, 247);
    border-radius: 0px 5px 5px 0px;
    top: 0;
    bottom: 0;
    left: 0;
    width: 99.5%;
}
.winning-screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 30px;
    display: none;
    align-items: center;
    justify-content: center;
}
.winning-button {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.671);
    background-color: rgba(151, 107, 255, 0.527);
    border-radius: 5px 5px 5px 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}
.instructions {
    display: none;
}
.screen-a-lil-small {
    display: flex;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 22px;
    position: absolute;
    left: 50%;
	color: black;
    bottom: 50%;
    transform: translate(-50%, -50%);
	padding: 5px;
	z-index: 1000;
}

@media (min-width: 950px){
	.screen-a-lil-small {
		display: none
	}
}
@media (min-width: 1310px){

    .instructions {
        display: flex;
        justify-content: space-between;
        padding-top: 120px;
    }
    .player1-instr {
        display: grid;
        grid-template-columns: 1fr;
        padding-left: 20px;
        gap: 5px;
        grid-template-areas: 
        "w"
        "a"
        "s"
        "d"
        "spacebar"
        "f";
    }
    .w { grid-area: w; justify-self: center; }
    .a { grid-area: a; justify-self: center;}
    .s { grid-area: s; justify-self: center;}
    .d { grid-area: d; justify-self: center;}
    .spacebar { grid-area: spacebar; justify-self: center; }
    .f { grid-area: f; justify-self: center;}
    .text {
        display:none;
    }
    .player2-instr {
        display: grid;
        grid-template-columns: 1fr;
        padding-right: 20px;
        gap: 5px;
        grid-template-areas: 
        "arrow-up"
        "arrow-left"
        "arrow-down"
        "arrow-right"
        "o"
        "p";
    }
    .arrow-up { grid-area: arrow-up; justify-self: center; }
    .arrow-left { grid-area: arrow-left; justify-self: center; }
    .arrow-down { grid-area: arrow-down; justify-self: center; }
    .arrow-right { grid-area: arrow-right; justify-self: center; }
    .o { grid-area: o; justify-self: center; }
    .p { grid-area: p; justify-self: center; }
}
@media (min-height: 1080px) {
    .instructions {
        display: flex;
        justify-content: center;
        gap: 200px;
        padding-top: 5px;
    }
    .player1-instr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 5px;
        grid-template-areas: 
        "w w w"
        "a s d"
        "spacebar spacebar f";
    }
    .w { grid-area: w; justify-self: center; }
    .a { grid-area: a; }
    .s { grid-area: s; }
    .d { grid-area: d; }
    .spacebar { grid-area: spacebar; }
    .f { grid-area: f; }
    .text {
        font-family: 'Courier New', Courier, monospace;
        font-weight: bold;
        font-size: 18px;
        align-self: end;
        display:flex;
        flex-direction: column;
        gap: 60px;
        flex-wrap: wrap;
        align-items:center;
        justify-content: center;
    }
    .text > p { padding-bottom: 25px; }
    .text > h1 {
        font-family: 'Courier New', Courier, monospace;
        font-weight: bold;
        font-size: 18px;
    }
    .player2-instr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 5px;
        grid-template-areas: 
        "arrow-up arrow-up arrow-up"
        "arrow-left arrow-down arrow-right"
        "o o p";
    }
    .arrow-up { grid-area: arrow-up; justify-self: center; }
    .arrow-left { grid-area: arrow-left; }
    .arrow-down { grid-area: arrow-down; }
    .arrow-right { grid-area: arrow-right; }
    .o { grid-area: o; justify-self: start; }
    .p { grid-area: p; }

}
.misc {
    position: relative;
    font-family:'Courier New', Courier, monospace;
    margin: 10px;
}
.misc > a {
    position: relative;
}
.misc > p {
    color: white;
    background-color: #000000a9;
    border-radius: 5px 0px 0px 0px;
    text-align: center;
    margin: auto;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 10px;
}
.misc > a > button {
    position: relative;
    background: rgba(255, 255, 255, 0.911);
    font-size: 15px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    /* button can't be highlighted */
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}