body {
    font-family: sans-serif;
}

:root {
    --thegrey: #D9D9D9;
    --thepurple: #8000ff;
    --theblue: #43BBFF;
    --profilepicsize: 80px;
    --stdborderrad: 6px;
    --stdpadding: 6px;
    --acinitheight: 25px;
}

.flexcol {
    display: flex;
    flex-direction: column;
}

.w33 {
    width: 33%;
}

.header {
    display: flex;
    width: 100%;
    height: fit-content;
    gap: 10px;
    padding: var(--stdpadding);
}

.profile {
    height: calc(var(--profilepicsize) + var(--acinitheight));
}

.profilepic {
    height: var(--profilepicsize);
    width: var(--profilepicsize);
    border-radius: 50%;
    background-color: var(--thepurple);
}

.acinit {
    background-color: var(--thegrey);
    width: var(--profilepicsize);
    height: calc(var(--profilepicsize) + var(--acinitheight));
    position: relative;
    bottom: var(--profilepicsize);
    z-index: -1;
    border-radius: 50% 50% var(--stdborderrad) var(--stdborderrad);
}

.acinitline {
    background-color: var(--thegrey);
    width: 5px;
    height: var(--acinitheight);
    position: absolute;
    top: var(--profilepicsize);
    left: calc(var(--profilepicsize) / 2 - 2.5px);
    box-shadow: inset 0px 4px 4px 0px rgba(0,0,0,0.25) ;
}

.acinitcontainer {
    width: 100%;
    height: calc(var(--acinitheight) + 5px);
    position: relative;
    top: calc(var(--profilepicsize) - 5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acinitcontainer > p {
    margin: 0px auto;
    font-size: 0.6em;
}

.savecontainer {
    display: flex;
    gap: 5px;
}

.save {
    height: 15px;
    width: 15px;
    background-color: var(--thegrey);
    border-radius: 50%;
}

.name {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hpnrest {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.hp {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.rest {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.shortrest {
    padding: 5px 8px;
    background-color: var(--theblue);
    border-radius: var(--stdborderrad);
    border-style: none;
}

.longrest {
    padding: 5px 8px;
    background-color: var(--theblue);
    border-radius: var(--stdborderrad);
    border-style: none;
}

.abilities {
    width: 100%;
    height: fit-content;
    padding: var(--stdpadding);
    display: flex;
    gap: 6px;
}

.ability {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    gap: 5px;
    padding: 3px 3px 6px 3px;
}

.abilitytop {
    background-color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 99%;
    height: 30px;
    border-radius: 3px;
    position: relative;
}

.str {
    width: 100%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.dex {
    width: 33%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.con {
    width: 100%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.int {
    width: 33%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.wis {
    width: 33%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.cha {
    width: 100%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
}

.spelldc {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
    margin-top: var(--stdpadding);
    text-align: center;
}

.spelldc > div {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: var(--stdborderrad);
    height: 70%;
    aspect-ratio: 1 / 1;
    padding: auto;
    font-size: 1.5em;
}

.resistances {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;

    background-color: var(--thegrey);
    border-radius: var(--stdborderrad);
    margin-top: var(--stdpadding);
    text-align: center;
    padding: var(--stdpadding);
}

.resistances > div {
    font-size: 0.8em;
}