@import url(/main_theme.css);
@import url(/generic_border.css);

body {
    display: flex;
    background-color: transparent;
    border: none;
    flex-wrap: wrap;
    color: var(--text-muted);
}

body.loading > * {
    display: none;
}
body.loading .loading {
    width: 100%;
    display: block !important;
    text-align: center;
    font-size: 70px;
}
body:not(.loading) .loading {
    display: none;
}

@keyframes enter {
    0% {
        margin-top: 15px;
        opacity: 0;
        zoom: 0.9;
    }
    100% {
        opacity: 1;
        margin-top: 0;
    }
}
.panel {
    background-color: var(--bg-light);
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    flex: 1;
    margin: 10px;
    min-width: 300px;
    min-height: max-content;
    flex-direction: column;
}

.left {
    flex: 3;
}
.middle {
    display: flex;
    flex-direction: column; 
    flex: 3;
}
.right {
    display: flex;
    flex-direction: column; 
    flex: 4;
}

.armor {
    flex: 4;
}
.utilities {
    flex: 3;
}
.saved {
    flex: 3;
}

h1 {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 40px;
    color: var(--text);
    flex: 0;
    min-height: max-content;
    margin-bottom: 0;
}

.content {
    border-radius: 15px;
    border: 1px solid var(--border-muted);
    padding: 15px;
    background-color: var(--bg);
    margin: 25px;
    display: block;
    flex: 1;
    overflow-y: scroll;
}

.topthing {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    top: 5px;
}

.entry {
    background-color: var(--bg-light);
    width: auto;
    display: block;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    user-select: none;
    margin-bottom: 5px;
    position: relative;
    min-height: 20px;
}
.entry:not(.button) {
    animation: enter 0.25s;
}
.generated .content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.notice {
    text-align: center;
}

.button {
    transition: color 0.25s,background-color 0.25s,border-color 0.25s;
    cursor: pointer;
}

.button:hover {
    color: var(--info);
    background-color: var(--bg);
    border-color: var(--highlight);
}

.golden {
    background-color: #3B3000;
    color: #FFE08B;
    border-color: #AA8C09;
}

.golden::after {
    content: " (Gamepass)"
}

.golden.button:hover {
    background-color: #CBA626;
    color: #160E00;
    border-color: #3B3000;
}

.toggle, .save, .import {
    cursor: pointer;
    border: none;
    background-color: var(--success);
    color: var(--bg);
    transition: background-color 0.25s;
}

.import {
    background-color: var(--info);
}
.import:hover {
    background-color: var(--secondary);
}

.toggle.off {
    background-color: var(--danger);
}

.toggle:hover, .save:hover {
    background-color: var(--primary);
}

.toggle.off:hover {
    background-color: var(--warning);
}

.attachments {
    margin-left: 30px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.add::before {
    content: "+ ";
}

.buttons {
    display: block;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    position: absolute;
    height: 30px;
    width: max-content;
}

.edit {
    background-image: url(edit.svg);
}
.delete {
    background-image: url(delete.svg);
}
.att-add {
    background-image: url(add.svg);
}
.load {
    background-image: url(load.svg);
}
.share {
    background-image: url(share.svg);
}

.buttons span {
    display: inline-block;
    background-position: center;
    height: 30px;
    width: 30px;

    background-size: contain;
    transition: background-color 0.25s;
    border-radius: 5px;
    cursor: pointer;
}
.buttons span:hover {
    background-color: rgba(255,255,255,0.1);
}

@keyframes fadein {
    0% {
        background-color: transparent;
    }
    100% {
        background-color: rgba(0,0,0,0.65);
    }
}

.overlay {
    background-color: rgba(0,0,0,0.65);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: background-color 0.25s;
}
.overlay:not(.hidden) {
    animation: fadein 0.25s;
}

.overlay:not(.hidden) .modal {
    animation: enter 0.25s;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    
    border-radius: 15px;
    border: 1px solid var(--border);
    min-width: 400px;
    width: max-content;
    
    height: max-content;

    background-color: var(--bg-light);
    display: block;
}

.modal .content {
    max-height: 50vh;
    overflow-y: scroll;
}