html, body {
    width: 100%;
    padding: 0;
    margin: 0;
}

.main-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.main-content > div {
    border: 1px solid #ccc;
}

.main-content__header {
    box-sizing: border-box;
    flex: 0 0 100%;
    margin-bottom: 10px;
    padding: 10px;
}

.main-content__left {
    flex: 1 1 auto;
    margin-right: 10px;

    display: none;
}

.main-content__middle {
    flex: 1 1 auto;
    padding: 10px;
}

.main-content__right {
    flex: 1 1 auto;
    margin-left: 10px;

    display: none;
}

.tab-button {
    padding: 6px 10px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f0f0f0;
    margin-bottom: -1px;
    margin-right: -1px;
}
.tab-button:focus {
    outline: none;
}
.tab-button:hover,
.tab-button_active {
    background: #e0e0e0;
}

.columns {
    display: flex;
}

.column-left, .column-right {
    flex: 1 1 auto;
}

.users {
    box-sizing: border-box;
    border: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    /*width: 450px;*/
}

.user, .user-add {
    border: 1px solid #ccc;
    margin: 5px;
    width: 210px;
    padding: 5px;
    position: relative;
}

.user__cations div {
    display: inline-block;
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 20px;
    color: gray;
    cursor: pointer;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 3px;
    text-align: center;
    vertical-align: middle;
}

.user__remove:hover, .user__edit:hover {
    color: red;
    /*box-shadow: 0 0 10px 0 blue;*/
}

.user__edit {
    left: 3px;
    right: auto;
    font-size: 14px;
    color: gray;
}
.user__duplicate {
    left: 29px;
}
.user h3 {
    text-align: center;
}

.user__name {
    text-align: center;
}

.user__stats, .user__hp {
    font-size: 0.9em
}

.equipment {
    border: 1px solid #cccccc;
    border-radius: 5px;
    margin: 5px 0;
    padding: 0 5px;
    min-height: 10px;
}

.effects {
    margin: 0;
    padding: 0 0 0 15px;
    font-style: italic;
    font-size: 0.8em
}

.number-input {
    display: flex;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.number-input__input {
    min-width: 0;
    flex: 1 0 10px;
}

.number-input__button {
    flex: 0 0 30px;
    padding: 0;
}

.number-input__button + .number-input__input {
    margin-left: -2px;
}

.number-input__input + .number-input__button {
    margin-left: -2px;
}

.name-input {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    min-width: 0;
    width: auto;
}

.user-add {
    text-align: center;
    color: #6bce6b;
    background: white;
    /*font-weight: bold;*/
    font-size: 70px;
    vertical-align: middle;
    cursor: pointer;
    width: 100px;
}

.stats-table {
}

.stats-table td:nth-child(1) {
    max-width: 30px;
    width: 30px;
}

.stats-table td:nth-child(2) {
    max-width: 150px;
}

.competition {
    border-collapse: collapse;
}

.competition tbody tr:hover td:first-child {
    box-shadow: inset 0 0 5px grey;
}
.competition td.competition__all {
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 3px;
}

.competition td {
    border: 1px solid #ccc;
    padding: 0;
}

.competition__attackers {
}

.competition__attackers span {
    display: inline-block;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.competition__attacker, .competition__defender {
    text-align: center;
}
.competition__attacker_stats {
    display: block;
    font-size: 13px;
    color: #848383;
    margin-top: 2px;
    /* font-style: italic;*/
    white-space: nowrap;
    min-width: 90px;
}

.competition__defenders {
    text-align: center;
}

.battle-config__wrapper {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px;
    width: 450px;
}

.battle-config__title {
    text-align: center;
    margin: 0 0 10px 0;
}

.json-toggle {
    position: absolute;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    top: 3px;
    right: 3px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 20px;
}

.json-toggle:before {
    content: '{}';
}

.battle-config {
    border-collapse: collapse;
}

.battle-config td:first-child {
    padding-right: 10px;
    text-align: right;
}

.battle-config_irrelevant {
    /*background: #ccc;*/
    /*color: #ccc;*/
    opacity: 0.2;
}

.bordered {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.battle-log {
    font-size: 12px;
    float: right;
}

.combat {
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    position: relative;
    user-select: none;
    /*display: block;*/
    --combat-height: 40px
}
.combat_spacer {
    height: var(--combat-height);
    line-height: var(--combat-height);
    cursor: default;
}
.combat:hover {
    outline: 1px solid blue;
}
.combat.combat_spacer:hover{
    outline: none;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.combat__progress {
    /*box-shadow: inset 0 0 10px blue;*/
    font-size: 18px;
    text-align: center;
    margin: auto;
    width: 50px;
    height: var(--combat-height);
}
.spinner {
    position: relative;
}
.spinner:before{
    box-sizing: border-box;
    padding: 0;
    content: '⚔️';
    position: absolute;
    animation: spin 2s linear infinite;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    width: 50px;
    height: var(--combat-height);
    margin-left: -25px;
    margin-top: -25px;
    text-align: center;
    line-height: var(--combat-height);
    vertical-align: middle;
    font-size: 24px;
    padding-top: -20px;
}

.combat__percent {
    width: 100%;
    min-width: 70px;
    height: var(--combat-height);
    line-height: var(--combat-height);
    font-size: 18px;
    text-align: center;
    margin: auto;
}

.combat__unknown {
    display: inline-block;
    vertical-align: middle;
    line-height: calc(var(--combat-height) / 3);
    width: 100%;
    min-width: 60px;
    height: var(--combat-height);
    position: relative;
    color: #ccc;
    text-align: center;
    /*padding-top: 3px;*/
    box-sizing: border-box;
}

.combat_vampire_hummer {
    box-shadow: inset 0 0 5px blue;
}
