@import '/UI/Style.scss';

PlayerInfo {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate( -50% ) rotateZ( -8 ) scale( 0.75 );
    opacity: 0;
    font-family: $font-main;
    font-size: 28px;
    transition: all 0.1s ease-out;
    align-items: center;

    &.visible {
        opacity: 1;
        transform: translate( -50% ) rotateZ( -1.5 ) scale( 1 );
    }

    p {
        background-color: $gray-darker;
        align-items: center;
        color: $white;
        padding: 10 35;
    }

    img {
        position: relative;
        z-index: 10;
        width: 70px;
        aspect-ratio: 1;
        border: 7px solid $gray-darker;
    }

    .health {
        z-index: 20;
        position: absolute;
        background: $gray-darker;
        align-items: center;
        color: $white-dark;
        top: 60px;
        left: 110px;
        font-size: 24px;
        padding-left: 50px;
        padding-right: 10px;
    }

    .health img {
        position: absolute;
        left: 0px;
        width: 36px;
        border: none;
        margin-right: 10px;
        aspect-ratio: 1;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}