/* Set: Header */

.cardHeader {
    background: rgba(255,255,255,0.3);
    padding-top: 10px;
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-left: 10px;
    flex-wrap: wrap;
}

.site-logo {
    width: min(100%, auto);
    height: auto;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 10px;
}

.site-logo svg {
    display: block;
    filter: drop-shadow(3px 3px 4px rgba(0,0,0,.75));
}

svg path {
    fill: rgba(255,255,255,0.15) !important;
}

.logo-MenuContainer {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: max(100%, 100%);
    background: rgba(255,255,255,0.15) !important;
    margin-bottom: 10px;
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 4px;
}

.header-link {
    color: #FF0;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 2px;
    margin-top: 6px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
    text-shadow: 1px 1px 2px #000;
    transform: translate(0px,-2px);
    margin-left: 8px;
}

.header-link:hover {
    color: rgba(255, 255, 255, 1.00);
    transform: translate(-2px, 0px);
}

/* Set: Footer */

.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    background-color: rgba(126, 126, 126, 1.00);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.00),rgba(0, 0, 0, 0.40));
    box-shadow: 0px -8px 12px rgba(0, 0, 0, 0.5);
    height: 25px;
    max-width: 1160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footerText {
    color: #FFF;
    font-size: 12px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: cemter;
    width: 100%;
}

/* Set: Content */

#mainbody {
    font-family: Arial, sans-serif;
    background-color: rgba(21, 21, 21, 1.00);
    margin-top: 0px;
}

.container {
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 66px - 24px);
}

.card-container {
    max-width: 1200px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
    height: calc(100vh - 26px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Set: Image Grid */

.cardImages {
    background: rgba(255, 255, 255, 0.30);
    margin-bottom: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #000;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) rgba(0,0,0,.20);
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image_container {
    width: 220px;
    border-radius: 8px;
    background: rgb(225, 225, 225, 1.0);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

.imageIO_cb {
    margin-bottom: 10px;
}

.thumb {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border-top: 2px solid rgba(0,0,0,0.5);
    border-left: 2px solid rgba(0,0,0,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    border-right: 2px solid rgba(255,255,255,0.5);
}

.cardImages::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.cardImages::-webkit-scrollbar-track {
    background: rgba(0,0,0,.20);
    border-radius: 10px;
}

.cardImages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.35);
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,.15);
}

.cardImages::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.55);
}

.cardImages::-webkit-scrollbar-thumb:active {
    background: rgba(255,255,255,.75);
}

.cardImages::-webkit-scrollbar-corner {
    background: transparent;
}

/* Set: Modal Popup Windows */

.modal-content {
    background-color: #444;
    padding: 20px;
    margin: 15% auto;
    width: 300px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: relative;
}

#editModal .modal-content {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    margin: 5vh auto;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#editModal .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-editor {
    padding: 10px;
    border-top: 1px solid #ccc;
    background: rgba(225, 225, 225, 1.0);
    border-radius: 10px;
    box-shadow: 0px 6px 4px rgba(0,0,0,0.3);
}

.modal-editor table {
    width: 95%;
    border-collapse: collapse;
    border: none;
    margin: 0 auto;
}

.modal-editor table tr td:first-child {
    text-align: left;
    width: 33%;
}

.modal-editor table tr td:last-child {
    text-align: right;
    width: 33%;
}

.modal-editor table tr td[colspan="3"] {
    text-align: center;
}

.modal-buttons {
    text-align: center;
    margin-top: 10px;
}

.modal-buttons button {
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

.modal-buttons button:hover {
    background: #0056b3;
}

#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
}

.close-modal {
    position: absolute;
    background: none;
    border: 1px solid #F00;
    cursor: pointer;
    font-size: 20px;
    bottom: 25px;
    right: 25px;
    border-radius: 3px;
    color: #F00;
}

#modalTitle {
    display: none;
}

.modal-image {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px;
    margin-bottom: 15px;
    box-shadow: 0px 6px 4px rgba(0,0,0,0.3);
    background: rgba(225, 225, 225, 1.0);
    border-radius: 10px;
}

.image-bevel {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    width: fit-content;
    height: fit-content;
    overflow: hidden;
}

#modalImage {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 260px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-top: 4px solid rgba(0,0,0,0.5);
    border-left: 4px solid rgba(0,0,0,0.5);
    border-right: 4px solid rgba(255,255,255,0.5);
    border-bottom: 4px solid rgba(255,255,255,0.5);
}

/* Set: Generic Modal */

.generic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.70);
    z-index: 11000;
}

.generic-modal-content {
    position: relative;
    width: 420px;
    max-width: 95%;
    margin: 120px auto;
    background: rgb(68,68,68);
    border-radius: 8px;
    box-shadow: 0px 6px 12px rgba(0,0,0,.50);
    overflow: hidden;
}

.generic-modal-header {
    padding: 12px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: white;
    background: linear-gradient(
        to bottom,
        rgba(110,110,110,1),
        rgba(60,60,60,1)
    );
}

.generic-modal-body {
    padding: 20px;
}

.generic-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.generic-modal-close:hover {
    color: yellow;
}

/* Set: Login Modal */

.login-row {
    margin-bottom: 18px;
}

.login-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #FFFFFF;
}

.login-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(120,120,120,1);
    background: rgba(240,240,240,1);
    color: #000000;
    font-size: 14px;
}

.login-row input:focus {
    outline: none;
    border: 1px solid rgba(255,255,0,1);
    box-shadow: 0px 0px 6px rgba(255,255,0,.40);
}

.login-message {
    min-height: 22px;
    text-align: center;
    font-weight: bold;
    color: #FF7070;
    margin-bottom: 15px;
}

.login-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.loginButton,
.cancelButton {
    min-width: 120px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0,0,0,.40);
}

.loginButton {
    background: rgba(70,140,255,1);
    color: white;
}

.loginButton:hover {
    background: rgba(45,110,220,1);
}

.cancelButton {
    background: rgba(120,120,120,1);
    color: white;
}

.cancelButton:hover {
    background: rgba(90,90,90,1);
}

/* Set: Admin Editor Modal Windows */

#webEditorModal,
#cssEditorModal {
    display: none;
    position: fixed;
    z-index: 12000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-webeditor-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-webeditor-window iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-csseditor-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    height: 88%;
    width: 100%;
}

.modal-csseditor-window iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Set: Stream Window */

#streamWindow {
    aspect-ratio: 16 / 9;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 8px;
    max-height: 180px;
    max-width: 320px;
}

.stream-homepage {
    height: 180px;
    width: 320px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px 8px 8px 8px;
}

