/* === GLOBAL RESET === */
* {
    outline: none;
    box-sizing: border-box;
    scrollbar-width: thin;
}

/* Scrollbars for WebKit */
*::-webkit-scrollbar {
    width: 10px;
}
*::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    background: #121212;  /* Main dark background */
    color: #e0e0e0;      /* Light text */
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
}

img {
    width: 100%;
    border-radius: 6px;
}

/* === TEXT === */
h1, h2 {
    text-align: center;
    color: #ffffff;
    margin: 1rem 0;
}
a {
    color: #3a82f7;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: #68a4ff;
}

/* === MAIN STRUCTURE === */
main {
    padding: 0;
    margin: 0;
}
article {
    padding: 30px 10px;
}

/* === HEADER & FOOTER === */
header {
    text-align: center;
    margin: 0;
    padding: 15px;
    padding-bottom: 1px;
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 30px;
    margin-top: 5px;
    background: #1e1e1e;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.6);
}
footer p {
    display: inline;
    color: #aaa;
}

/* === NAVIGATION === */
nav {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    justify-content: center;
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
nav a {
    float: left;
    text-align: center;
    padding: 14px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    color: #ddd;
}
nav a:hover {
    background: #3a82f7;
    color: #fff;
}

/* === TABLES === */
table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 6px;
}
table th, table td, table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px;
}
table th {
    background: #222;
    color: #fff;
}

/* === HR LINE === */
hr:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
hr {
    position: relative;
    border: 0;
    height: 1.5em;
    clear: both;
}

/* === TO TOP BUTTON === */
#toTop {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 0px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    margin: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 0px;
    width: 15px;
    background: #3a82f7;
    color: #fff;
    transition: all 500ms;
}
#toTop:hover {
    font-size: 18px;
    width: 75px;
    padding: 15px;
    background: #68a4ff;
}

/* === GRID & CARDS === */
.basic-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}
.row:after {
    content: "";
    display: table;
    clear: both;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 18px;
    text-align: center;
    height: 100%;
    width: 100%;
    background: #1e1e1e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 25px;
    padding: 10px;
    transition: all 500ms;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.card:hover {
    transform: translateY(-3px) scale(1.01);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.card .selectpic {
    width: 30%;
    border-radius: 25px;
    float: left;
}
.cardstatic {
    padding: 20px;
    border-radius: 25px;
    margin: 5px;
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* === COLUMN SYSTEM (unchanged widths) === */
.Level-charselect, .Class-charselect, .Campaign-charselect {
    font-weight: bold;
    font-size: 16px;
    padding: 1px;
    margin: 0px;
    color: #fff;
}
.Charname {
    font-weight: bold;
    color: #fff;
}

.twocolumn { float: left; width: 50%; padding-left: 5px; }
.threecolumn { float: left; width: 33.33%; }
.fourcolumn { float: left; width: 25%; padding-left: 5px; }
.fivecolumn { float: left; width: 20%; padding-left: 2.5px; padding-right: 2.5px; }

.threeleft, .threeright { width: 25%; }
.threemiddle { width: 50%; }

.tcleftside { width: 35%; }
.tcmiddleside { width: 30%; }
.tcrightside { width: 35%; }

.leftcharselect { float: left; width: 70%; }
.leftcolumn { float: left; width: 70%; }
.rightcolumn { float: left; width: 30%; }
.leftcolumnhelp { float: left; width: 75%; padding-right: 10px; }
.rightcolumnhelp { float: left; width: 25%; }

.leftcolumnhalf { float: left; width: 50%; }
.rightcolumnhalf { float: left; width: 50%; }

.detailedLeft { width: 23%; }
.detailedMiddle { width: 52%; }
.detailedRight { width: 25%; }

.leftcolumnname { float: left; width: 90%; }
.rightcolumnname { float: left; width: 10%; }

/* === TABS === */
.tab {
    float: left;
    width: 20%;
    overflow: auto;
    background: #1e1e1e;
}

.tabbutton {
    display: block;
    padding: 14px 8px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    background: #2a2a2a;
    color: #ccc;
}
.tabbutton:hover {
    background: #3a82f7;
    color: #fff;
}

.tabcontent {
    float: left;
    padding: 12px;
    border-left: none;
    width: 80%;
    font-size: 18px;
    overflow: auto;
    background: #1a1a1a;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
}

/* === HORIZONTAL TABS === */
.hortab {
    overflow: hidden;
    border-radius: 25px;
    background: #1e1e1e;
}
.hortabbutton {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 14px;
    color: #ccc;
}
.hortabbutton:hover {
    background: #3a82f7;
    color: #fff;
}
.hortabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
    font-size: 16px;
    overflow: auto;
    background: #1a1a1a;
    animation: fadeEffect 1s;
}
@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === PAGE LINKS === */
.pagelink {
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 18px;
    width: 33.333%;
    background: #2a2a2a;
    color: #ccc;
    transition: 0.3s;
}
.pagelink:hover {
    background: #3a82f7;
    color: #fff;
}

.pagesection {
    display: none;
}

/* === MODAL === */
#appearancepicture {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}
#apppiccaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    padding: 10px 0;
    height: 150px;
    background-color: #000;
    color: #fff;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 25px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 1400px;
    border-radius: 10px;
}
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from { transform: scale(0) }
    to { transform: scale(1) }
}
.closeapppic {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    color: white;
}
.closeapppic:hover, .closeapppic:focus {
    text-decoration: none;
    cursor: pointer;
    color: #bbb;
}

/* === TABLE VIEW === */
.apptableview {
    width: 100%;
    border-spacing: 1px;
    text-align: left;
}
.apptableview tr {
    font-size: 16px;
}
.apptableview th {
    font-size: 16px;
    padding: 5px;
    vertical-align: top;
    width: 15%;
    color: #ccc;
}
.apptableview td {
    vertical-align: top;
    padding-bottom: 15px;
    font-size: 18px;
    text-indent: 15px;
    color: #eee;
}

.BigAttNum {
    font-size: 23px;
}
.centretitle {
    text-align: center;
}

/* === RESPONSIVE === */
@media screen and (max-width: 1150px) {
    .leftcolumn, .rightcolumn, .leftcolumnhalf, .rightcolumnhalf, .detailedLeft, .detailedMiddle, .detailedRight {
        width: 100%;
        padding: 0;
    }
    .threecolumn, .threeleft, .threemiddle, .threeright, .modal-content, .leftcolumnname, .rightcolumnname {
        width: 100%;
    }
}


.hiddenboxcontrol {
    display: none;
    visibility: hidden;
}