body {
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-family: 'MedievalSharp', cursive;
    background-image: url("./images/medieval-battle-background-128371-863657-6199739.jpg");
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: .5rem;
}

@media(min-width:760px) {
    main {
        flex-direction: row;
        margin: 6vh 5vw;
        justify-content: center;
        width: 90%;
        gap: 2rem;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-card {
    height: 14rem;
    margin-top: .5rem;
    width: 300px;
    height: 450px;
    padding: .5em;
    font-size: 1.6rem;
    color: white;
    border-radius: 14px;
    position: relative;
    background: #231d24;
    text-align: center;
    border: 0.08rem solid #000721;
    box-shadow: inset 0px 0px 6px 2px rgba(100, 100, 100, 0.2), 0px 0px 10px rgba(117, 182, 214, 0.2);
}

@media(min-width:760px) {
    .character-card {
        border: 0.2rem solid #000721;
    }
}

.name {
    width: 100%;
    letter-spacing: 0.08em;
    font-size: 2rem;
    margin: .5em 0;
}

.avatar {
    width: 200px;
    border: 2px solid #000721;
    max-width: 250px;
    opacity: 0.8;
    border-radius: .5em;
    background-color: rgba(0, 7, 33, 0.8);
}

.health {
    font-size: 1.1rem;
    font-weight: normal;
    width: 90%;
    text-align: left;
    margin: .75em;
    color: #ccc;
    letter-spacing: 0.03em
}

.health b {
    font-weight: bold;
    color: #fff;
}

.health-bar-outer {
    background: #171217;
    height: 8px;
    width: 90%;
    margin: .5em;
    border-radius: 2px;
}

.health-bar-outer .health-bar-inner {
    background: #466d34;
    height: 100%;
    border-radius: 2px;
}

.health-bar-outer .health-bar-inner.danger {
    background: #d1435f;
}

.dice-container {
    width: 100%;
    height: 20%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000721;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: .5rem;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.dice,
.placeholder-dice {
    height: 55px;
    width: 55px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #666;
    color: #000721;
    text-align: center;
    line-height: 2.2em;
}

.dice-container .placeholder-dice {
    background-color: transparent;
}

button {
    font-family: 'MedievalSharp', cursive;
    background-color: #fcc02a;
    border: 2px solid #963404;
    outline: none;
    padding-left: 1.5em;
    padding-right: 1.5em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    color: #963404;
    height: 2.5em;
    box-shadow: 0px 6px 10px -4px rgba(0, 0, 0, 0.4);

}

button:focus {
    outline: 0
}

.end-game {
    margin-top: 5%;
    text-align: center;
    color: #404040;
}

.end-game h2,
.end-game h3 {
    background-color: white;
    border-radius: 5px;
}

.end-emoji {
    font-size: 80px;
}

.new-game-q {
    background-color: white;
    border-radius: 5px;
}