:root {
    --main-margin: 20px;
}

svg.definitions-only {
    position: absolute;
    width: 0;
    height: 0;
    z-index: -1;
}

body {
    background-color: black;
    color: white;
}

button {
    width: fit-content;
    pointer-events: auto;
}

.hr {
    background-color: white;
    height: 1px;
    width: 100%;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    /*display: none;*/
}

.modal-content {
    position: relative;
    height: 80%;
    aspect-ratio: 4/3;
    margin: auto;
    top: 5%;
    align-items: center;
    gap: 20px;
}

.main-button {
    width: auto;
    font-size: larger;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-row-rev {
    display: flex;
    flex-direction: row-reverse;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.header {
    font-size:x-large;
    text-align: center;
    display: block;
}

.align-bottom {
    margin-top: auto;
}

.entity-list {
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.party-header {
    /*background-color: orange; /**/
    height: fit-content;
    width: 100%;
    display: grid;
    grid-template-columns: 9.5% 3fr repeat(6, 1fr) 6%;
    text-align: center;
}

.party-line {
    /*background-color: purple; /**/
    height: fit-content;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, auto) 3fr repeat(6, 1fr) auto;
    font-size: large;
    text-align: center;
}

.combat-display {
    display: none;
}

.in-combat .combat-display, .combat-display.in-combat {
    display: initial;
}

#initiative {
    font-size: x-large;
}

.bubble {
    background-color: black;
    height: 20px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    border: 1px solid white;
    margin: 2px auto;
}

.dead .bubble {
    background-color: #666666;
}

.selected {
    background-color: green;
}

.hidden {
    color: #556699;
}

.dead {
    color: #666666;
}

#hp .content {
    display: flex;
    justify-content: space-evenly;
}

.overlay-wrapper {
    position: relative;
    width:100%;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dice::before {
    content: '🎲';
}