.game-ui-box .ui-text {
    font-family: sans-serif;
    font-size: 4vh;
}

.glass {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.score-box {
    display: flex;
    color: rgb(255, 205, 0);
    width: 90%;
    height: 60%;
    padding: 0.6%;
    padding-left: 3%;
    padding-right: 3%;
    margin: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.score-box-score {
    display: flex;
    flex: 1;
    align-items: center;
    height: 100%;
    width: 100%;    
}

.score-box-text {
    flex: 1;
}

.health-box {
    display: flex;
    width: 50%;
    height: 60%;
    padding: 0.6%;
    padding-left: 3%;
    padding-right: 3%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.health-box-blink {
    animation: health-blinker linear 0.25s;
}

@keyframes health-blinker {
    50% {
        background-color: rgba(255, 0, 0, 0.5);
    }
}

.star {
    background-image: url('../assets/ui/star-plain.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: 55%;
    width: 55%;
    flex: 0.2;
}

.star-blink {
    animation: star-blinker linear 0.25s;
}

@keyframes star-blinker {
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.heart {
    background-image: url('../assets/ui/heart.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: 90%;
    width: 23%;
    display: inline-block;
    margin-right: 1%;
    animation: shrink linear 0.5s reverse forwards;
}

.heart-shrink {
    animation: shrink linear 0.5s forwards;
}

@keyframes shrink {
    25% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(0);
    }
}

.modal {
    position: absolute;
    top: 50%;
    right: 50%;
    max-width: 20rem;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.5rem 0.25rem hsl(0 0% 0% / 10%);
    text-align: center;
}

.modal-reset-btn {
    font-size: .75em;
}

button {
    padding: 0.5em;
    font: inherit;
    line-height: 1;
}

button {
    cursor: pointer;
}

.modal::backdrop {
    background: hsl(0 0% 0% / 50%);
}

.volume-control {
    width: 80%;
    height: 60%;
    padding: 0.6%;
    padding-left: 3%;
    padding-right: 3%;
    display: flex;
    text-align: center;
    align-items: center;
    margin: auto;
}

.volume-control-icon {
    background: url('../assets/ui/volume-up.svg');
    background-repeat: no-repeat;
    background-size: contain;
    height: 60%;
    width: 60%;
    flex: 0.2;
}

.volume-control-slider {
    width: 90%;
    height: 100%;
    flex: 1;
}
