﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    /*padding-top: 10px;*/
    padding-bottom: 20px;
    background-color: #e8e8e8;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}


/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
        background-color: #2a2d32;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .body-content {
        padding: 0;
    }
}




/*---MENU---*/
nav.primary-navigation {
    margin: 0 auto;
    display: block;
    padding: 10px 0 0 0;
    text-align: left;
    font-size: 16px;
    position: relative;
    z-index: 9999;
    transform: translateZ(0);
}

    nav.primary-navigation ul li {
        list-style: none;
        margin: 0 auto;
        border-left: 1px solid #9a9ca2;
        display: inline-block;
        padding: 0 22px; /*MENU WIDTH*/
        position: relative;
        text-decoration: none;
        text-align: center;
        font-family: Arial;
    }

    nav.primary-navigation li a {
        color: black;
    }

        nav.primary-navigation li a:hover {
            color: #711414;
        }

    nav.primary-navigation li:hover {
        cursor: pointer;
    }

    nav.primary-navigation ul li ul {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        padding-left: 0;
        left: 0;
        display: none;
        background: white;
    }

        nav.primary-navigation ul li:hover > ul,
        nav.primary-navigation ul li ul:hover {
            visibility: visible;
            opacity: 1;
            display: block;
            min-width: 250px;
            text-align: left;
            padding-top: 20px;
            box-shadow: 0px 3px 5px -1px #ccc;
        }

        nav.primary-navigation ul li ul li {
            clear: both;
            width: 100%;
            text-align: left;
            margin-bottom: 20px;
            border-style: none;
        }

            nav.primary-navigation ul li ul li a:hover {
                padding-left: 10px;
                border-left: 2px solid #9a9ca2;
                transition: all 0.3s ease;
            }

a {
    text-decoration: none;
}

    a:hover {
        color: #711414;
    }

ul li ul li a {
    transition: all 0.5s ease;
}
/*---/MENU---*/


/*---Start---*/
.startMainDiv {
    border-radius: 5px;
    padding: 10px;
    background-color: #ccc;
    margin-top: 0px;
}
.loginTextbox {
    border-style: dotted;
    border-radius: 5px;
    height: 30px;
    width: 180px;
}
    .loginTextbox:focus {
        outline: none !important;
    }
.onboardingTextbox {
    border-style: dotted;
    border-radius: 5px;
    height: 30px;
    width: 300px;
}
    .onboardingTextbox:focus {
        outline: none !important;
    }
.textNotes {
    font-size: 12px;
}
.onboardingSettingsTextbox {
    border-style: dotted;
    border-radius: 5px;
    height: 30px;
    width: 250px;
}
/*---/Start---*/


.MessageDiv {
    border-radius: 5px;
    border-color: black;
    border: 1px dashed;
    padding: 10px;
    background-color: #b6ff00;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.ajaxError {
    border-radius: 5px;
    border-color: black;
    border: 1px dashed;
    padding: 10px;
    background-color: #ff5050;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}


.inputErrorMessage {
    color: orangered;
}



/*------PLAYERS-------*/
#users {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

    #users td, #users th {
        border: 1px solid #ddd;
        padding: 8px;
    }

    #users tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    #users tr:hover {
        background-color: #ddd;
    }

    #users th {
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        background-color: #74888d;
        color: white;
    }

.btnPlayerActive {
    background-color: #6ab53c;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #fff7f7;
    width: 100px;
}
.btnPlayerActive:hover {
    background-color: #00ff21;
}
.btnPlayerInactive {
    background-color: orangered;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #fff7f7;
    width: 100px;
}
.btnPlayerInactive:hover {
    background-color: #ff6a00;
}
.btnPlayerEdit {
    background-color: #ccc;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
}
.btnPlayerEdit:hover {
    background-color: #e8e8e8;
}

.btnDistributionOmit {
    background-color: #ff7d00;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #fff7f7;
    width: 100px;
}
.btnDistributionOmit:hover {
    background-color: #ff5050;
}
.btnDisabled {
    background-color: darkgrey;
    border: 1px solid #9a9ca2;
    border-radius: 5px;
    color: #fff7f7;
    width: 100px;
}
/*------/PLAYERS-------*/




/*--------FORMS---------*/
.infoDiv {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 700px;
    background-color: #8e8e8e;
    opacity: 90%;
    border-radius: 20px;
    border: 2px solid rgb(70, 65, 65);
    font-family: Arial, Helvetica, sans-serif;
    padding: 25px;
    color: azure;
}
.detailsOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.newDetailsDiv {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 420px;
    background-color: #8e8e8e;
    opacity: 0.8;
    border-radius: 20px;
    border: 2px solid rgb(70, 65, 65);
    font-family: Arial, Helvetica, sans-serif;
    padding: 25px;
    z-index: 9999;
}
.detailsDiv
{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 420px;
    background-color: #8e8e8e;
    opacity: 90%;
    border-radius: 20px;
    border: 2px solid rgb(70, 65, 65);
    font-family: Arial, Helvetica, sans-serif;
    padding: 25px;
}
.detailsDivTitle {
    color: #e8e8e8;
    font-size: 20px;
    font-weight: bolder;
    font-family: Arial, Helvetica, sans-serif;
    padding: 7px;
    margin-bottom: 7px;
    background-color: #575757;
    border-top: 1px dashed #e8e8e8;
    border-bottom: 1px dashed #e8e8e8;
}
.editFieldTitle {
    width: 180px;
    height: 40px;
    text-align: right;
    padding-right: 20px;
    font-weight: bolder;
}

.editTextField {
    border-radius: 5px;
    border: 1px solid rgb(161, 158, 158);
    height: 30px;
    width: 238px;
    padding-left: 10px;
    color: #333333;
    font-size: 16px;
}

.editDDLField {
    border-radius: 5px;
    border: 1px solid rgb(161, 158, 158);
    height: 34px;
    width: 238px;
    padding-left: 10px;
    color: #333333;
    font-size: 16px;
}

.editTextareaField {
    border-radius: 5px;
    border: 1px solid rgb(161, 158, 158);
    height: 50px;
    width: 236px;
    padding-left: 10px;
    color: #333333;
    font-size: 16px;
}
.btnForm {
    background-color: #ccc;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
    height: 35px;
    width: 50px;
}
.btnForm:hover {
    background-color: #e8e8e8;
}
.editFieldError {
    padding-left: 20px;
    color: #a72900;
}
/*--------FORMS---------*/



.btn-disabled {
    background-color: grey !important;
    border-color: grey !important;
    pointer-events: none; /* Prevent clicks */
    opacity: 0.7;
    cursor: default;
}
.btn-publish {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    width: 220px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    display: inline-flex;
    margin: 0 auto;
}

    .btn-publish:hover {
        background-color: #218838;
        border-color: #1e7e34;
        color: white;
    }

.btn-awaiting {
    background-color: #ffb422;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    display: inline-flex;
    margin: 0 auto;
    border-color: grey !important;
    pointer-events: none;
    opacity: 0.7;
    cursor: default;
}
.btn-notapproved {
    background-color: #ff5640;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    display: inline-flex;
    margin: 0 auto;
    border-color: grey !important;
    pointer-events: none;
    opacity: 0.7;
    cursor: default;
}

.btn-search {
    background-color: #4b4b4b;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 120px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex; /* keep flex centering */
    align-items: center;
    justify-content: center;
    margin-top: -4px;
    padding: 0; /* remove padding, since height is fixed */
    line-height: 30px; /* equal to height for perfect vertical centering */
    text-align: center;
    vertical-align: middle; /* <<< key fix */
    cursor: pointer;
}

    .btn-search:hover {
        background-color: #feb47b;
        border-color: #1e7e34;
        color: white;
    }





.newssectionClear {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    margin-bottom: 10px;
}
.newssection {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    margin-bottom: 10px;
    max-height: 400px; /* Limit height initially */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}
.newssectionExpanded {
    max-height: none; /* Show full content when expanded */
    mask-image: none;
}

.statussection {
    background-color: #565656;
    padding: 10px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    color: #e1e1e1;
}

.btnDisabled {
    background-color: #868686;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
}

.latestEventTitle {
    display: inline-block;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    width: 775px;
}
.latestSpTitle {
    display: inline-block;
    background: linear-gradient(to right, #589fce, #adc5d9);
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    width: 775px;
}

.loader {
    background-color: #989898;
    height: 100%;
    text-align: center;
    padding-top: 50px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    margin-bottom: 10px;
    padding-bottom: 50px;
}

.eventTitle {
    display: inline-block;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    padding: 8px 10px 10px 10px;
    border-radius: 5px;
    color: white;
    width: 100%;
    height: 45px;
    font-size: 22px;
    margin-top: 5px;
}

.btnThrone {
    background-color: #ffb207;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
    margin-right: 6px;
    width: 40px;
    height: 40px;
}
    .btnThrone:hover {
        background-color: #ffefcd;
    }
.btnThroneSelected {
    background-color: #ffefcd;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
    margin-right: 6px;
    width: 40px;
    height: 40px;
}


/* Desktop-specific styles */
@media (min-width: 769px) {
    .news-img {
        max-width: 100%; /* Prevent image from exceeding container width */
        height: auto; /* Maintain aspect ratio */
        max-height: 300px; /* Limit height to avoid oversized images */
        object-fit: contain; /* Ensure the image fits without distortion */
        display: block; /* Remove any extra space under image */
        margin-left: 0; /* Align image to the left */
        margin-right: auto; /* Remove right margin to allow it to stick to the left */
    }
}



/*------------*/
.single {
    width: 1170px !important;
    box-sizing: border-box;
    padding: 10px 10px 10px 25px !important; /* top, right, bottom, left */
    overflow-x: hidden;
    background-color: #e0e0e0;
    border-radius: 10px;
    border: 1px dashed #878787;
}


.elTitle {
    margin-top: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    padding-left: 4px;
}
.elGroup {
    width: 60% !important;
    box-sizing: border-box;
    padding: 10px 10px 10px 10px !important; /* top, right, bottom, left */
    overflow-x: hidden;
    background-color: #c0c0c0;
    border-radius: 10px;
    border: 1px dashed #878787;
}

.sageloader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    width: 100%;
}

.panelFull {
    width: 98% !important;
    box-sizing: border-box;
    padding: 10px 10px 10px 10px !important; /* top, right, bottom, left */
    overflow-x: hidden;
    background-color: #c0c0c0;
    border-radius: 10px;
    border: 1px dashed #878787;
}




.eventtypeinfostats {
    color: white;
    background-color: #6b6b6b;
    padding: 0px 10px 10px 10px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    margin-bottom: 10px;
}
.eventtypeinfo {
    background-color: #e0e0e0;
    padding: 0px 10px 10px 10px;
    border-radius: 10px;
    border-color: #878787;
    border: 1px dashed;
    margin-bottom: 10px;
}

#items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    /* =========================
   DATA ROWS (grey cards)
   ========================= */
    #items tbody tr td {
        background-color: white;
        padding: 7px;
    }

        /* rounded corners per row */
        #items tbody tr td:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        #items tbody tr td:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

    /* =========================
   HEADER ROW (first row)
   ========================= */
    #items tbody tr:first-child th {
        background-color: #cfcfcf; /* header color */
        padding: 7px;
        font-weight: bold;
    }

        /* rounded header corners */
        #items tbody tr:first-child th:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        #items tbody tr:first-child th:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

    /* =========================
   PAGING ROW (last row)
   ========================= */
    #items tbody tr:last-child th {
        background: none !important;
        padding: 10px;
    }

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    #items td {
        border-radius: 0 !important;
    }
}




/*=======RUNE IFNO*/
.runeinfo_wrapper {
    display: flex; /* side-by-side layout */
    background-color: white; /* light grey background */
    border-radius: 12px; /* rounded corners */
    padding: 20px; /* inner spacing */
    gap: 20px; /* space between left and right */
    max-width: 700px;
    width: 700px;
    height: 575px;
    align-items: flex-start;
}

.runeinfo_left {
    display: flex;
    flex-direction: column; /* stack buttons vertically */
    gap: 10px; /* spacing between buttons */
    min-width: 120px; /* optional width for left panel */
}

.runeinfo_right {
    display: flex;
    flex-direction: column; /* stack text vertically */
    gap: 5px; /* spacing between text lines */
    flex: 1; /* take remaining space */
}


/*========SET IFNO*/
.set-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.set-left {
    width: 700px;
}

.set-right {
    margin-top: 10px;
    width: 370px;
}

.side-box {
    background: #ccc;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.settypeinfo {
    background-color: #ccc;
    border-radius: 12px;
    padding: 5px 20px 20px 20px;
    gap: 20px;
    max-width: 700px;
    width: 700px;
    height: 675px;
    align-items: flex-start;
}

.setnumbers {
    color: rgb(55,45,30);
    font-weight: bold;
    font-size: 15px;
}

.settypeinfo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #2b2b2b;
    border-radius: 6px;
    font-weight: bold;
}

    .settypeinfo-header img {
        width: 24px;
        height: auto;
    }

    .settypeinfo-header-red {
        color: #ff5555;
        font-size: 16px;
    }
.settypeinfo-header-yellow {
    color: #efd946;
    font-size: 16px;
}
.settypeinfo-header-purple {
    color: #e6a8ed;
    font-size: 16px;
}

.side-box-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

    .side-box-images img {
        max-width: 100%;
        height: auto;
    }


/*============EVENT TYPES*/
/* MAIN WRAPPER */
.et-main-wrapper {
    max-width: 800px;
    width: 800px;
}

/* ROW CONTAINER */
.et-columns {
    display: flex;
    justify-content: flex-start; /* keep left/right columns separated naturally */
}

/* COLUMNS */
.et-column {
    display: flex;
    flex-direction: column; /* stack records vertically */
}

/* LEFT COLUMN */
.et-left {
    align-items: flex-start; /* left column flush left */
}

/* RIGHT COLUMN */
.et-right {
    align-items: flex-end; /* right column flush right */
}

/* RECORD CARD */
.et-record {
    width: 370px;
    height: 76px;
    display: flex;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 10px; /* vertical spacing between records */
}

/* LEFT TEXT */
.et-record-text {
    width: calc(100% - 133px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
    background-color: #d9d9d9;
}

/* RIGHT IMAGE */
.et-record-image {
    width: 133px;
    height: 76px;
    overflow: hidden;
}

    .et-record-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/*=======MERCHANTS*/
.dragon-row {
    display: flex;
    align-items: flex-start;
    background: #ccc;
    border: 1px solid #333;
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.dragon-side {
    margin-left: 20px; /* space from dragon */
    margin-top: 12px;
    background: white;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    width: 100%;
    height: 190px;
}



.btnMain {
    background-color: #658fc2;
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btnMain:hover {
    background-color: #868686;
}
.btnMainDisabled {
    background-color: #868686;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    color: #4b4b4b;
}


.authOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.authModal {
    background: #e0e0e0;
    padding: 20px 20px 20px 40px;
    width: 400px;
    height: 330px;
    border-radius: 6px;
    border: 1px dashed #333333;
    position: relative;
}
.authModalLoad {
    background: #e0e0e0;
    width: 400px;
    height: 250px;
    border-radius: 6px;
    border: 1px dashed #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.authClose {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
}

.disOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.disModal {
    background: #e0e0e0;
    padding: 20px 20px 20px 40px;
    width: 600px;
    height: 300px;
    border-radius: 6px;
    border: 1px dashed #333333;
    position: relative;
}

.disClose {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
}

.rc-image-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 10px;
}

.image-wrapper img {
    display: block;
}

.overlay-text {
    position: absolute;
    top: 100px; /* change position */
    left: 636px;
    color: #fffc35;
    font-size: 48px;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
         2px -2px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0    0   6px rgba(0,0,0,0.8);
}

.revstatus {
    border-color: #28a745;
    color: white;
    font-size: 18px;
    width: 70px;
    height: 20px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    margin: 0 auto;
    pointer-events: none;
    font-size: 11px;
}
.revstatus-published {
    background-color: #28a745;
}
.revstatus-draft {
    background-color: #4b4b4b;
}
.revstatus-awaiting {
    background-color: #feb300;
    width: 100px;
}
.revstatus-disapproved {
    background-color: #fe4949;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


.searchwarn {
    display: none;
    position: absolute;
    top: 50%;
    left: 365px; /* stays at original position */
    transform: translate(-100%, -50%);
    padding: 5px 10px;
    background: #fffae5;
    color: #333;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #666; /* slightly darker border */
    border-left: none; /* no left border */
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}

    /* Outer arrow (border) */
    .searchwarn::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -12px; /* slightly more left to match arrow size */
        transform: translateY(-50%);
        width: 11px;
        height: 11px;
        background: #666; /* matches border color */
        clip-path: polygon(100% 0, 0 50%, 100% 100%); /* triangle pointing left */
        z-index: 0;
    }

    /* Inner arrow (matches div background) */
    .searchwarn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -10px; /* slightly right to show outer border */
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background: #fffae5; /* matches div background */
        clip-path: polygon(100% 0, 0 50%, 100% 100%); /* triangle pointing left */
        z-index: 1;
    }


.rightsections-title {
    display: inline-block;
    padding: 6px 14px;
    background: #c3c3c3;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
    width: 100%;
    border: 1px dashed #333333;
}

#itemDescription {
    white-space: pre-line;
}
