html {
    background: #e1e1e1;
    caret-color: transparent;
}

html, body {
    margin: 0;
    font-size: 16px;
    font-family: Tahoma, Arial, sans-serif;
}

body {
    background: #eeeeee;
    max-width: 960px;
    margin: 0 auto;
    visibility: visible;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ccc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

input {
    caret-color: #404040;
}

.body-container {
    padding: 1rem;
    max-width: 960px;
}

.internal-navbar {
    background: #e0e0e0;
    max-height: 5rem;
    padding: 0 1rem;
    margin: 0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    outline: none;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #a0a0a0,
        inset -2px -2px 0px #a0a0a0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge legacy */
    user-select: none;
}

.internal-navbar .logo div{
    display: inline-flex;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    align-items: center;
    justify-content: center;
}

.internal-navbar .logo a {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.internal-navbar .logo img {
    background: #ffffff;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    width: 48px;
    height: 48px;
    margin: 0.5rem;
    display: block;
    padding: 2px;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #a0a0a0,
        inset -2px -2px 0px #a0a0a0;
    cursor: pointer;
}

.internal-navbar .logo img:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    box-shadow: 
        inset -1px -1px 0px #ffffff,
        inset -2px -2px 0px #dfdfdf,
        inset 1px 1px 0px #808080,
        inset 2px 2px 0px #808080;
    transform: translate(1px, 1px);
}

.internal-navbar .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 0 1rem;
    width: 100%;
    padding: 0 1rem;
    margin: 0;
}

.internal-navbar .nav-button {
    display: flex;
    max-width: 8rem;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    text-decoration: none;
    background: linear-gradient(135deg, #eeeeee 0%, #dfdfdf 50%, #c0c0c0 100%);
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    outline: none;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #a0a0a0,
        inset -2px -2px 0px #a0a0a0;
    cursor: pointer;
}

.internal-navbar .nav-button a {
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.internal-navbar .nav-button p {
    font-size: 1rem;
    font-weight: bold;
    max-height: 1.2rem;
    margin: 0.75rem 0.5rem;
    padding: 0;
    text-decoration: none;
}

.internal-navbar .nav-button:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #b0b0b0 100%);
}

.internal-navbar .nav-button:active {
    background: linear-gradient(135deg, #fff 0%, #eee 50%, #ddd 100%);
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    box-shadow: 
        inset -1px -1px 0px #ffffff,
        inset -2px -2px 0px #dfdfdf,
        inset 1px 1px 0px #808080,
        inset 2px 2px 0px #808080;
    transform: translate(1px, 1px);
}

.internal-navbar .logged-in {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-right: 1rem;
    font-size: 1rem;
}

.internal-navbar .logged-in p {
    font-weight: normal;
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
}

.internal-navbar .logged-in a {
    text-decoration: none;
    width: auto;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
}

footer {
    background-color: #ddd;
    margin-top: auto;
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: row;
    flex: 1;
    max-width: 960px;
    max-height: 160px;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    outline: none;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #a0a0a0,
        inset -2px -2px 0px #a0a0a0;
}

.footer-content {
    padding: 1rem;
    margin-bottom: auto;
}

.loader {
    margin: 1rem auto;
    display: flex;
    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#484848 90%,#48484800);
    background: 
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
    }
    @keyframes l3 {
        20%{background-position:0%   0%, 50%  50%,100%  50%}
        40%{background-position:0% 100%, 50%   0%,100%  50%}
        60%{background-position:0%  50%, 50% 100%,100%   0%}
        80%{background-position:0%  50%, 50%  50%,100% 100%}
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 3rem;
}

th, td {
    border: 1px solid #484848;
    padding: 8px;
}

tr:nth-child(even) {background-color: #ffffff;}
tr {
    background-color: #f0f0f0;
    color: #333;   
}

a {
    text-decoration: none;
    color: #484848;
}

.link-text {
    display: flex;
    color: #484848;
    background-color: transparent;
    transition: all .3s ease;
    cursor: pointer;
    align-items: center;
}

.link-text > .link-span {
    height: .5rem;
    width: .5rem;
    border-right: .125rem solid #484848;
    border-bottom: .125rem solid #484848;
    position: relative;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transition: all .3s ease;
}

.link-text > .link-span::before {
    display: block;
    background-color: #484848;
    width: .1875rem;
    transform-origin: bottom right;
    height: .125rem;
    position: absolute;
    opacity: 0;
    bottom: calc(-.125rem / 2);
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: all .3s ease;
    content: '';
    right: 0;
}

.link-text:hover > .link-span {
    transform: rotate(-45deg) translate(.25rem, .25rem);
    -webkit-transform: rotate(-45deg) translate(.25rem, .25rem);
    border-color: #484848;
}

.link-text:hover > .link-span::before {
    opacity: 1;
    width: .5rem;
}

.action-btn {
    padding: 3px 6px;
    background: linear-gradient(135deg, #dfdfdf 0%, #c0c0c0 50%, #a0a0a0 100%);
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    outline: none;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #808080,
        inset -2px -2px 0px #808080;
    text-shadow: none;
    cursor: pointer;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge legacy */
    user-select: none;
}

.action-btn:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #b0b0b0 100%);
}

.action-btn:active {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #b0b0b0 100%);
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    box-shadow: 
        inset -1px -1px 0px #ffffff,
        inset -2px -2px 0px #dfdfdf,
        inset 1px 1px 0px #808080,
        inset 2px 2px 0px #808080;
    transform: translate(1px, 1px);
}

.action-btn:disabled {
    background-color: #c0c0c0;
    color: #808080;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset -1px -1px 0px #808080;
    cursor: not-allowed;
    text-shadow: 1px 1px 0px #ffffff;
}

.input-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.input-modal-container {
    background-color: #e8e8e8;
    margin: 20% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.input-modal-content {
    margin: auto;
    max-width: 350px;
    text-align: center;
}

.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}


.confirmation-modal-container {
    background-color: #e8e8e8;
    margin: 20% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.confirmation-modal-content {
    margin: auto;
    max-width: 350px;
    text-align: center;
}

.confirmation-modal-message {
    text-align: center !important;
    margin: 0 !important;
    margin-bottom: 8px !important;
}

.confirmation-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.close {
    color: #aaa;
    background-color: #f0f0f0;
    width: 36px;
    height: 32px;
    text-align: center;
    padding-bottom: 4px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    outline: none;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset 2px 2px 0px #dfdfdf,
        inset -1px -1px 0px #808080,
        inset -2px -2px 0px #808080;
    text-shadow: none;
    cursor: pointer;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge legacy */
    user-select: none;
    caret-color: transparent;
}
.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #b0b0b0 100%);
}

.close:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    box-shadow: 
        inset -1px -1px 0px #ffffff,
        inset -2px -2px 0px #dfdfdf,
        inset 1px 1px 0px #808080,
        inset 2px 2px 0px #808080;
    transform: translate(1px, 1px);
}