* {
    font-family: 'Titan One', cursive;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body {
    background: black;
    width: 550px;
    margin: 0 auto;
    display: flex;
    height: 100vh;
    position: relative;
}

i,
#dialogue-box-wrapper * {
    pointer-events: none;
}

#game-wrapper {
    align-self: center;
    margin: 0 auto;
}

#background {
    background-size: cover;
    background-repeat: no-repeat;
    position:relative;
    width: 550px;
    height: 314px;
    overflow: hidden;
}

.background-1 { background-image: url('../images_schoolfight/background1.jpg'); }
.background-2 { background-image: url('../images_schoolfight/background2.jpg'); }
.background-3 { background-image: url('../images_schoolfight/background3.jpg'); }
.background-4 { background-image: url('../images_schoolfight/background4.jpg'); }

#money {
    color: white;
    font-size:24px;
    border:none;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#money.animated-text {
    color: green;
}

.hidden,
.locked {
    display: none!important;
}

#title {
    position: absolute;
    text-align: center;
    top: 10%;
    width: 100%;
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
    color: white;
}

.tutorial-page {
    height: 244px;
}

.tutorial-page img {
    width: 100%;
    border-radius: 8px;
}

#tutorial-screen {
    background: rgb(0, 0, 0, .5);
    padding: 8px 8px 20px;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    width: 80%;
    height: 274px;
    margin: 8px auto;
    border-radius: 12px;
}

#tutorial-screen h2 {
    text-align: center;
    margin-top: 2px;
}

#tutorial-screen i {
    color: orange;
}

#tutorial-screen p {
    font-size: 11px;
    color: white;
    padding: 0 16px;
}

#select-screen,
#select-screen2,
#select-screen3 {
    position: absolute;
    top: 40px;
    left: 38px;
    display: grid;
    grid-template-columns: 146px 146px 146px;
    grid-template-rows: 100px 140px;
    gap: 10px;
    background: rgb(0, 0, 0, .5);
    padding: 8px 8px 2px;
    color: white;
    border-radius: 12px;
}

#unlockables-message {
    position: absolute;
    top: 28%;
    text-align: center;
    font-size: 24px;
    width: 100%;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#unlockables-message .fas {
    color: orange;
    font-size: 36px;
}

.tutorial-info {
    position: absolute;
    width: 130px;
    height: 50px;
    padding-top: 60px;
    opacity: 0;
    border: 4px solid orange;
    border-radius: 8px;
    animation: toggleTutorialSteps 12s infinite;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px, rgba(0, 0, 0, 0.24) 0 1px 2px;
}

.tutorial-info div {
    padding: 4px;
}

.desc-box {
    font-size: .9em;
    line-height: 1.4em;
    color: white;
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
    text-align: center;
}

#title-select,
#communication-container {
    z-index: 9;
    position: absolute;
    top: -10px;
    color: white;
    font-weight: 400;
    width: 100%;
    text-align: center;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    margin: 16px auto;
    font-size: 24px;
}

#money-placeholder {
    font-size: 16px;
    color: limegreen;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

#battle-ticker,
#dialogue-box-wrapper {
    display: block;
    transition: .5s;
    position: absolute;
    top: 10px;
    width: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(0, 0, 0, .5);
    backdrop-filter: blur(1px);
    min-height: 10%;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: .8rem;
    z-index: 11;
}

#battle-ticker {
    min-width: 45%;
    border: 2px solid white;
}

.damage-text {
    color: red;
}

#battle-ticker * {
    text-shadow: 1px 1px 1px black;
}

#battle-ticker #battle-messages {
    display: flex;
    flex-direction: column-reverse;
}

#dialogue-box-wrapper {
    background: white;
    color: black;
    position: relative;
    top: 20%;
    padding-bottom: 24px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 54px 55px, rgba(0, 0, 0, 0.12) 0 -12px 30px, rgba(0, 0, 0, 0.12) 0 4px 6px, rgba(0, 0, 0, 0.17) 0 12px 13px, rgba(0, 0, 0, 0.09) 0 -3px 5px;
}

#dialogue-box {
    position: relative;
    z-index: 11;
}

#dialogue-box-triangle {
    position: absolute;
    bottom: -30px;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid white;
    transform: rotate(-20deg);
}

#dialogue-animation {
    position: absolute;
    bottom: 5%;
    right: 45%;
    font-size: 20px;
    animation: dialogue-animation 1s infinite;
    z-index: 1;
}

.text-enemy {
    color: orange;
}

.text-player {
    color: lightskyblue;
}

@media screen and (min-width: 1024px){
    #game-wrapper {
        transform: scale(1.6);
    }
}
