@font-face {
    font-family: pixel-font;
    src: url(assets/pixel-font.ttf);
}

body {
    color-scheme: dark;
    background-color: black;
    color: white;
    font-family: pixel-font;
    user-select: none;
}

p {
    font-size: 25px;
}

.thx-for-playing {
    z-index: -1;
    font-size: 50px;
    top: 45%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

#title {
    font-size: 30px;
    text-decoration: underline;
    margin: 0;
    position: absolute;
}

#dlg-text {
    text-align: left;
    font-size: 40px;
    white-space: break-spaces;
}

.box {
    border-width: 5px;
    border-style: solid;
    border-color: white;
    background-color: black;
    padding: 20px;
    padding-left: 50px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 50%;
    transform: translate(-50%, -50%);
}

#bubble {
    width: 70%;
    height: 50%;
}

#fight {
    visibility: hidden;
    width: 35%;
    height: 70%;
    text-align: center;
    display: inline-block;
}

#enemy-texture {
    width: 256px;
    height: 256px;
    border-width: 5px;
    border-style: solid;
    border-color: white;
}

#enemy-name {
    font-size: 40px;
    transform: translate(0, -40px);
}

#enemy-health {
    font-size: 30px;
    transform: translate(0, -80px);
}

#weapon {
    text-align: left;
}

#health {
    text-align: right;
}

#triangle {
    fill: #fff;
    position: absolute;
    right: 17%;
    bottom: 27%;
    animation: float 1.5s ease-in-out infinite;
}

#answer-box {
    border-style: solid;
    border-width: 5px;
    border-color: white;
    background-color: black;
    width: 15%;
    padding-inline: 20px;
    position: absolute;
    right: 12%;
    bottom: 68%;
}

.answer {
    text-decoration: underline;
    font-size: 30px;
}


@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-20px);
    }

    100% {
        transform: translatey(0px);
    }
}