* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scrollbar-color: #666 #e2e2e2;
    scrollbar-width: thin;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    background: url(/assets/images/background.webp) #40403f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(2px);
}

p,
h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h1+p {
    margin-top: -1.4rem;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
    font-size: 16px;
}

.discord_logo {
    margin: auto;
    display: block;
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 0;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.button {
    display: block;
    text-align: center;
    padding: 1.25rem;
    background: #4d63b3;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.button.inline {
    padding: 0;
    background: transparent;
    color: #000;
    width: max-content;
    max-width: 100%;
    margin: auto;
    margin-top: 20px;
}

.form-group {
    display: flex;
    margin-bottom: 0.25rem;
    font-size: 16px;
    align-items: center;
    background: #7289da;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    padding: 6px 8px;
    width: 64px;
}

.form-group input {
    background: #4d63b3;
    color: inherit;
    border: none;
    font-size: inherit;
    width: 100%;
    outline: none;
    font-style: italic;
    padding: 6px 8px;
}

#home,
#back {
    position: absolute;
    top: 5px;
    padding: 0.5rem 0.75rem;
}

#home {
    left: 5px;
}

#back {
    right: 5px;
}

.user,
.server {
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    padding: 4px 8px;
    background: #4d63b3;
    color: #fff;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.server.hidden {
    opacity: 0.7;
}

.server .cluster,
.server .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 8px;
    margin: -4px -8px;
    transition: 250ms;
}

.server .name {
    width: 100%;
    background: #4d63b3;
}

.server .cluster {
    background: #7289da;
    font-weight: 600;
    margin-right: 0;
    width: 64px;
    flex-shrink: 0;
}

.server .attr {
    width: 100%;
    font-size: 12px;
    font-style: italic;
    margin-top: 2px;
}

.server.unavailable {
    background-color: #b34d4d;
    cursor: not-allowed;
    opacity: 0.75;
}

.server.unavailable .cluster {
    background: #da7272;
}

.user {
    gap: 4px;
    flex-direction: column;
}

.user .name {
    background: #7289da;
    font-weight: 600;
    padding: 4px 8px;
    margin: -4px -8px;
    margin-bottom: 0;
}

.user .license {
    font-size: 12px;
}

.server .cluster:hover,
.server .cluster:focus,
.server .name:hover,
.server .name:focus,
a.user:hover,
a.user:focus {
    filter: brightness(1.24);
}

.discord {
    background: rgb(108, 130, 206);
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card {
    backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.6);
    padding: 3.2rem 3.5rem;
    max-height: 90%;
    height: max-content;
    overflow-y: auto;
}

.card.no-overflow {
    overflow-y: hidden;
}

.w-full {
    width: 100%;
}

.min-w-normal {
    min-width: 14rem;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.flex.no-wrap {
    flex-wrap: nowrap;
}

#tax_result {
    margin-top: 0.5rem;
    text-align: center;
    width: max-content;
    max-width: 100%;
}

b {
    font-weight: 600;
}

.grid {
    display: grid;
    justify-content: center;
}

.grid-2 {
    grid-template-columns: 50% 50%;
    gap: 0.5rem;
}

.grid-3 {
    grid-template-columns: 33.3% 33.3% 33.3%;
    gap: 0.25rem;
}

.italic {
    font-style: italic;
}

.m0 {
    margin: 0;
}

.mt {
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.character {
    background: #4d63b3;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    min-width: min-content;
    position: relative;
    max-width: 450px;
}

.character .header {
    display: grid;
    justify-content: space-between;
    gap: .75rem;
    grid-template-columns: 145px 1fr;
}

.character .details {
    padding: 4px 8px;
}

.character .body {
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.character .mugshot {
    font-size: 0;
    background-color: #7289da;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

.character .mugshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character h2 {
    font-size: 19px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px dashed #fff;
    line-height: 29px;
    margin-bottom: 8px;
}

.character tr {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.character tr:first-child {
    border-top: none;
}

.character th,
.character td {
    padding: 4px 3px;
    font-size: 13px;
    text-align: left;
}

.character th {
    font-weight: 600;
}

.character td {
    font-style: italic;
}

.character .title {
    font-weight: 600;
}

.character .money:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.separator {
    margin: 8px -16px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.character .backstory {
    text-align: justify;
    font-style: italic;
}

.character .id {
    position: absolute;
    top: 0.1rem;
    left: 0.2rem;
    font-size: 13px;
}

.character .blood {
    position: absolute;
    top: 0.1rem;
    right: calc(100% - (145px - 0.2rem));
    font-size: 13px;
}

.card.wide {
    max-width: 95%;
}

.entry {
    font-size: 0.9rem;
    line-height: 1rem;
    text-align: center;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.logout {
    position: absolute;
    top: 0.1rem;
    right: 0.35rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.logout:hover {
    text-decoration: underline;
}

.input {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 1rem;
    outline: none;
    color: #fff;
}