body {  
    font-size : 14px;   
    margin-top: 0px;    
    margin-bottom: 0px; 
    margin-left: 0px;   
    margin-right: 0px;  
    padding: 0;
    height:100%;
    font-family: "Microsoft JhengHei", "MingLiU", "Apple LiSung" !important;
    background-color: #F6F7FC;
}

/*****************************/
/********** MODAL ***********/
/***************************/

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  width: 96%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  -webkit-transform: translate(0, -50px);
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}

.modal-dialog-scrollable {
  display: -ms-flexbox;
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

.modal-header .close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.modal-footer > :not(:first-child) {
  margin-left: .25rem;
}

.modal-footer > :not(:last-child) {
  margin-right: .25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}


/**********************************/
/******** LOCKED TOPIC BAR *******/
/********************************/
.nav-locked-topics {
  position: fixed;
  bottom: 55px;
  width: 100%;
  height: 55px;
  box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  border:1px solid #C0C0C0;
  overflow-x: auto;
  text-align: center;
  color: #C0C0C0;
  vertical-align: baseline;
  font-size: 22px;
  padding-top: 10px;
}



.dialogue {
    display: inline-block;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    color: #e0e7ff;                    /* Soft bluish text */
    background-color: #2b2b3a;         /* Subtle dark background */
    padding: 2px 6px;
    margin: 0 2px;
    border-left: 3px solid #778cff;   /* Slight accent line */
    border-radius: 4px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.4;
}



/* === EPIC NPC FORM STYLES === */
.epicnpc-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.epicnpc-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.epicnpc-form-group {
    margin-bottom: 20px;
}

.epicnpc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #444;
}

.epicnpc-form-group input[type="text"],
.epicnpc-form-group input[type="number"],
.epicnpc-form-group select,
.epicnpc-form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.epicnpc-form-group input:focus,
.epicnpc-form-group select:focus {
    border-color: #888;
    outline: none;
    background-color: #fff;
}

.epicnpc-submit-button {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    background-color: #0055a5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.epicnpc-submit-button:hover {
    background-color: #003f80;
}


























/* NATE & ZO's PHONES */
@media only screen and (max-width: 430px) and (min-width: 330px){
 /* CSS that should be displayed if width is equal to or less than 360px and larger 
  than 100px goes here */


/***********************/
/*** BOTTOM NAV BAR ***/
/*********************/
    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding-bottom: 2px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      overflow-x: auto;
      float: right;
    }
    .nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #FFF;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FFF;
    }

/*****************************/
/*** BOTTOM CHARACTER BAR ***/
/***************************/
    .nav-character {
      position: fixed;
      bottom: 55px;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #C0C0C0;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #444444;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FF8633;
    }


/*****************************/
/***** BOTTOM CHAT BAR ******/
/***************************/
    .nav-chat {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: 40px;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #C0C0C0;
    }

    .nav-forum {
        position: fixed;
        bottom: 55px;
        width: 100%; /* Adjust as needed */
        height: 120px; /* Adjust as needed */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    }
    .nav-action-buttons {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: auto; /* Let height expand with button size */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        justify-content: center; /* ✅ This centers children horizontally */
        align-items: center;     /* Optional: centers vertically if needed */
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px; /* Optional spacing */
    }


/*****************************/
/******** TOP NAV BAR *******/
/***************************/
    .navbar {
      float: right;
      vertical-align: text-top;
      overflow: hidden;
      background-color: #000;
      position: fixed;
      top: 0;
      width: 100%;
      height: 55px;
      z-index: 200;
    }

    .navbar a {
      float: left;
      display: block;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
    }

    .navbar a:hover {
      background: #ddd;
      color: black;
    }

/* NAV BAR FORUM */
    .top-navbar-forum {
        vertical-align: baseline;
        overflow: hidden;
        background-color: #fff;
        position: fixed;
        top: 40;
        padding-right: 0px;
        width: 100vw;
        height: 100px;
        border:1px solid black;
         z-index: 1;
    }
    .top-navbar-forum table {
        border: 0px;
        width: 100%;
        height: 80px;
    }

    .top-navbar-forum a {
        color: #000;
        text-align: center;
        padding: 12px 8px;
        text-decoration: none;
        font-size: 17px;
    }

    .top-navbar-forum a:hover {
        background: #ddd;
        color: black;
    }

    .top-navbar-forum img {
        height: 50px;
        width: 50px;
    }




/*********************/
/** ACTION BUTTONS **/
/*******************/

.action-menu-container {
    padding: 20px;
    width: 300px;
    border: 2px solid #444;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
}
.action-menu-container h2 {
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #333;
}
.action-button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-button:hover {
    background-color: #357ab8;
}
.action-close-button {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: red;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-close-button:hover {
    background-color: #357ab8;
}

.action-menu-container details {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 5px;
    background: #f9f9f9;
}
.action-menu-container summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}



/*****************/
/**  NPC PAGE  **/
/***************/
.npc-stat-block {
    background: #f9f9f9;
    border: 2px solid #bbb;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    font-family: Georgia, serif;
}

.stat-table th, .stat-table td {
    border-bottom: 1px solid #ccc;
    padding: 5px;
}



/*****************/
/** LOGIN FORM **/
/***************/

    .content-container {
        margin: 0 auto;
    }
    .login {
        margin-top: 0px;
        overflow: hidden;
        background-color: #F6F7FC;
    }

    .login-form {
        overflow: hidden;
        width: 100vw;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        z-index: 50;
    }

    .login-form label {
        color: #000;
        font-size: 16px;
        display: block;
        text-align: left;
    }

    .login-form input[type="text"], .login-form input[type="password"] {
        text-align: left;
        padding: 10px 20px;
        margin: 8px 0;
        border: 0px;
        border-radius: 5px;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .login-form input[type="submit"] {
        background-color: black;
        color: white;
        border-radius: 5px;
        padding: 10px;
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 10px 0;
    }

    .remember-forgot label {
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .remember-forgot a {
        text-decoration: none;
        color: #B4886B;
        font-size: 14px;
        align-self: center;
    }






    /* MATERIAL-ICONS SETTINGS */
    .material-icons.black { color: #000000; }


    .user-info {
        margin-top: 10px; /* Adjust the margin as needed */
    }


    .forumPostTable {
        width: 100%;
        height: 100px;
        border: 0px solid black;
    }
    .forumPostTable td {
        vertical-align: top;
    }



    /* Style the header */
    .header {   
        position: sticky;   
        top: 0; 
        background: #555;   
        color: #f1f1f1; 
        width: 100%;    
        z-index: 99;
    }


    button {  
        border: none;
        outline: 0;
        display: inline-block;
        padding: 8px;
        color: white;
        background-color: #000;
        text-align: center;
        cursor: pointer;
        width: 100%;
        font-size: 18px;
    }

    a {
        text-decoration: none;
        font-size: 22px;
        color: black;
    }

    button:hover, a:hover {
        opacity: 0.7;
    }

    .button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 140px;  
        height: 40px;
    }

    .campaign_button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 40px;  
        height: 20px;
    }
    .relog-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 20px;  
        width: 100px;  
        height: 25px;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 20px;  
        height: 32px;
    }

    /* Create two equal columns that floats next to each other */
    .column {
        float: left;
        width: 100%;
        padding: 10px;
        height: 150px; /* Should be removed. Only for demonstration */
        padding: 1px;
    }

    .column table {
        border: 1px solid #c0c0c0;
        width: 90%;
        border-radius: 5px;
    }
    .column td {
        border: 0px;
        height: 100px;
    }

    /* Clear floats after the columns */
    .row:after {
        content: "";
        display: table;
        clear: both;
    }

    /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
    @media screen and (max-width: 600px) {
        .column {
            width: 100%;
        }
        table {
            border: 1px solid #c0c0c0;
            width: 90%;
            border-radius: 5px;
        }
        td {
            border: 0px;
            height: 20px;
        }
    }



    /* MATERIAL-ICONS SETTINGS */
    .material-icons.orange600 { color: #FB8C00; }
    .material-icons.green { color: green; }
    .material-icons.grey { color: #c0c0c0; }
    .material-icons.lightred { color: #FFCCCB; }
    .material-icons.darkred { color: #8B0000; }
    .material-icons.blue { color: #2B65EC; }
    .material-icons.white { color: #FFFFFF; }



    /* FORUM PAGE LAYOUT */
    .forum-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 60px;
      margin-bottom: 40px;
    }

    /* MAIN PAGE LAYOUT BORDER */
    .main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 80px;
      margin-bottom: 20px;
    }
    .main table {
        border-collapse: collapse;
        width: 95%;
    }
    .main td {
        border: 0px solid #000;
    }

    .character-sheet-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 41px;
      margin-bottom: 111px;
    }






    /* The container must be positioned relative: */
    .custom-select {
      position: relative;
      width: 200px;
      
    }

    .custom-select select {
      display: none; /*hide original SELECT element: */
    }

    /* Style the arrow inside the select element: */
    .select-selected:after {
      position: absolute;
      content: "";
      top: 14px;
      right: 10px;
      width: 0;
      height: 0;
      border: 6px solid transparent;
      border-color: #fff transparent transparent transparent;
    }

    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent #fff transparent;
      top: 7px;
    }

    /* style the items (options), including the selected item: */
    .select-items div,.select-selected {
      color: #000;
      padding: 2px 4px;
      border: 1px solid transparent;
      border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
      cursor: pointer;
    }

    /* Style items (options): */
    .select-items {
      position: absolute;
      background-color: #4CAF50;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 99;
    }

    /* Hide the items when the select box is closed: */
    .select-hide {
      display: none;
    }

    .select-items div:hover, .same-as-selected {
      background-color: rgba(0, 0, 0, 0.1);
    }





/*****************************/
/******* SIDE NAV BAR *******/
/***************************/


    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 40px;
        left: 0;
        background-color: black;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 40px;
        z-index: 2;
    }

    .sidenav a {
        padding: 8px 8px 8px 8px;
        text-decoration: none;
        font-size: 16px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
    .sidenav table {
        border:0 solid black;
    }

    .sidenav tr td {
      
    }







/*****************************/
/** ACCOUNT CAMPAIGNS PAGE **/
/***************************/

    .campaignsTable {
        border: 1px solid black;
        width: 80%;
    }

    .campaignCharacters {
        font-size: 12px;
    }

    .campaigns img {
        height: 75px;
        width: 75px;
    }

    .campaigns .td1 {
        text-align: center;
        width: 20%;
    }

    .campaigns .td2 {
        text-align: left;
        width: 40%;
    }
    .campaigns .td3 {
        text-align: center;
        width: 40%;
    }

    .campaigns .title {
        font-size: 12px;
    }

    .campaigns .description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .campaigns .players {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }






/*****************************/
/**** Character Edit Page ***/
/***************************/
    .character-edit-form-header {
        display: flex; /* Enables flexbox layout */
        justify-content: space-between; /* Distributes space between items */
        align-items: center; /* Vertically centers items */
        margin-left: 5px;
        margin-right: 5px;
        padding-top: 10px;
        width: 95%;
        border: 0px solid #ccc; /* Optional: for better visualization */
    }
    .character-edit-form-header img {
        height: 100px;
        width: 100px;
    }
    .character-edit-form-header .character-info {
        flex: 1; /* Allows this div to take up remaining space */
        padding-left: 10px; /* Adds space between the image and the text */
    }
    .character-edit-form-header .character-info input {
        border: 1px solid #c0c0c0;
        border-radius: 5px;
        border-color: gray;
        width: 100%; /* Ensures the input field takes up the full width */
        height:40px;
        padding: 5px; /* Adds padding inside the input field */
        font-size: 20px;
    }
    .character-edit-form-header .character-name {
        font-weight: 700;
        padding-bottom: 5px; /* Adds padding inside the input field */
    }
    .content {
        margin: 20px;
        font-family: Arial, sans-serif;
    }
    .content-img {
        float: right;
        font-size: 20px;
    }
    .content-img a {
        font-size: 16px;
        color: blue;
    }
    .content-img img {
        float: right; /* Positions the image to the right */
        margin: 0 0 10px 10px; /* Adds some margin to the image */
        width: 100px; /* Set the width of the image */
        height: 100px; /* Maintain the aspect ratio of the image */
    }
    .content-traits {
        font-size: 12px;
    }
    .content-details a {
        font-size: 16px;
        color: blue;
        padding-left: 20px;
    }
    .collapsible {
        background-color: #f1f1f1;
        color: #444;
        cursor: pointer;
        padding: 10px;
        width: 100%;
        border: 1px solid black;
        text-align: left;
        outline: none;
        font-size: 20px;
        height: 50px;
    }
    .collapsible.active {
        background-color: #C0C0C0;
    }

    .collapsible:after {
        content: '\002B'; /* Unicode character for "plus" sign (+) */
        font-size: 18px;
        float: right;
        margin-left: 5px;
        
    }

    .collapsible.active:after {
        content: "\2212"; /* Unicode character for "minus" sign (−) */
        background-color: #C0C0C0;
    }

    .content-divs {
        padding: 0 10px;
        display: none;
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs {
        padding: 0 10px;
        display: block; /* Changed from none to block */
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs-content {
        display: none; /* Hide content initially */
    }



/*************************/
/**** WEBSITE BUTTONS ***/
/***********************/

    .button-3 {
        appearance: none;
        background-color: #2ea44f;
        border: 1px solid rgba(27, 31, 35, .15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        padding: 6px 16px;
        position: relative;
        text-align: center;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
    }

    .button-3:focus:not(:focus-visible):not(.focus-visible) {
        box-shadow: none;
        outline: none;
    }

    .button-3:hover {
        background-color: #2c974b;
    }

    .button-3:focus {
        box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
        outline: none;
    }

    .button-3:disabled {
        background-color: #94d3a2;
        border-color: rgba(27, 31, 35, .1);
        color: rgba(255, 255, 255, .8);
        cursor: default;
    }

    .button-3:active {
        background-color: #298e46;
        box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
    }


    .button-4 {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
    }

    .button-4:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .button-4:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .button-4:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .button-4:focus {
        outline: 1px transparent;
    }

    .button-4:before {
        display: none;
    }

    .button-4:-webkit-details-marker {
        display: none;
    }

    .forum-send-button {
        appearance: none;
        background-color: #4CAF50;/* Green */
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 5px;
    }

    .forum-send-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-send-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-send-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-send-button:focus {
        outline: 1px transparent;
    }

    .forum-send-button:before {
        display: none;
    }

    .forum-send-button:-webkit-details-marker {
        display: none;
    }

    .forum-actions-button {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 10px;
    }

    .forum-actions-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-actions-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-actions-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-actions-button:focus {
        outline: 1px transparent;
    }

    .forum-actions-button:before {
        display: none;
    }

    .forum-actions-button:-webkit-details-marker {
        display: none;
    }




    .admin-button {
        appearance: none;
        background-color: #000;
        border: 2px solid #4CAF50;
        border-radius: 1px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: white;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        text-align: center;
    }

    .admin-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .admin-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .admin-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .admin-button:focus {
        outline: 1px transparent;
    }

    .admin-button:before {
        display: none;
    }

    .admin-button:-webkit-details-marker {
        display: none;
    }




    .forum-button-edit {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 1px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-right: 4px;
        padding-top: 0px;
        padding-bottom: 0px;

    }

    .forum-button-edit:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-button-edit:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-button-edit:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-button-edit:focus {
        outline: 1px transparent;
    }

    .forum-button-edit:before {
        display: none;
    }

    .forum-button-edit:-webkit-details-marker {
        display: none;
    }


/*********************/
/** CHARACTER SHEET **/
/*********************/

    * { box-sizing: border-box; }

    .xp-container {
        width: 75px;
        background-color: #ddd;
        padding-top: 0px;
        vertical-align: top;
        text-align: right;
    }

    .xp {
        font-size: 6px;
        text-align: center;
        padding-top: 0px;
        color: black;
    }

    .lvlup {
        animation: pulse 2s infinite;
        font-size: 10px;
        text-align: center;
        padding-top: 6px;
    }
    .lvlup a {
        color: white;
        vertical-align: center;
        font-size: 10px;
        text-align: center;
    }

    @keyframes pulse {
        50%, 50% {
          background-color: #ff0000;
        }
    }

    .css {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
        background-color: #2196F3;
    }

    .css2 {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
    }
    

    .stats {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);  
        max-width: 100px;
        width: 100px;  
        padding:5px;
        text-align: center;  
        background-color: #FFF;
        height: 100px;
        margin: auto;
        border:2px solid #4CAF50;
        border-radius: 10px;
        vertical-align: center;
    }

    .flex-container {
        display: flex;
        background-color: white;
        margin-top: 2px;
    }

    .flex-container > div {
        background-color: white;
        margin: 5px;
        padding: 5px;
        font-size: 30px;
    }

    .character-table {
        width: 90%;
        border: 0px;
        top: 100;
    }

    .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-width: 400px;
        text-align: center;
    }






/*******************/
/** VERSION INFO **/
/*****************/

    .version-container {
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        padding: 10px;
        margin-bottom: 20px;
        width: 95vw;
    }
    .version-container table {
        width: 100%;
        border: 1px solid #ccc;
    }

    .edit-link {
        font-size: 12px;
        text-decoration: none;
        color: #007bff;
        margin-right: 10px;
        text-align: left;
        background-color: #C0C0C0;
        padding: 10px;
    }

    .version-date {
        font-size: 12px;
        font-weight: bold;
        text-align: right;
        background-color: #C0C0C0;
        padding: 10px;

    }

    .version-description {
        font-size: 12px;
        margin: 5px 0;
        text-align: left;
    }
    .dashboard-version {
        font-size: 12px;
        background-color: gray;
        color: white;
        padding-top:5;
        
    }







    .ChararcterEditForm {
        font-size: 8px;
    }




/*****************************/
/**** CHARACTER CONTAINER ***/
/***************************/

    .characters-background {
        background-color: white;
    }

    .character-container {
        background-color: white;
        display: inline-block;
        margin: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .character-image {
        width: 200px;
        height: 200px;
    }

    .character-info {
        margin: 0;
        font-size: 12px;
    }

    .characters {

    }

    .characters img {
        height: 75px;
        width: 75px;
    }

    .characters .td1 {
        text-align: center;
        width: 20%;
    }

    .characters .td2 {
        text-align: left;
        width: 40%;
    }
    .characters .td3 {
        text-align: center;
        width: 40%;
    }

    .characters-title {
        font-size: 12px;
    }

    .characters-description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .characters .link {
        text-decoration: none;
        font-size: 16px;
    }





    /*********************/
    /** BOOTSTRAP ITEMS **/
    /*********************/
    .col-md-8
    {
        position:relative;
        min-height:1px;
        padding-right:15px;
        padding-left:15px;
    }

    .clearfix:after,.clearfix:before {
        display:table;
        content:" "
    }

    .clearfix:after
    {
        clear:both;
    }

    .pull-right {
        float:right!important
    }

    .pull-left {
        float:left!important
    }
    .text-muted {
        color:#777
    }

    .input-group {
        display:inline-table;
        vertical-align:middle;
        width:auto
    }

    .btn {
        display:inline-block;
        padding:6px 12px;
        margin-bottom:0;
        font-size:14px;
        font-weight:400;
        line-height:1.42857143;
        text-align:center;
        white-space:nowrap;
        vertical-align:middle;
        -ms-touch-action:manipulation;
        touch-action:manipulation;
        cursor:pointer;
        -webkit-user-select:none;
        -moz-user-select:none;
        -ms-user-select:none;
        user-select:none;
        background-image:none;
        border:1px solid transparent;
        border-radius:4px
    }

    .btn-success {
        color:#fff;
        background-color:#5cb85c;
        border-color:#4cae4c
    }

    .form-control {
        display:block;
        width:100%;
        height:34px;
        padding:6px 12px;
        font-size:14px;
        line-height:1.42857143;
        color:#555;
        background-color:#fff;
        background-image:none;
        border:1px solid #ccc;
        border-radius:4px;
        -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        -webkit-transition:border-color ease-in-out .15s,
        -webkit-box-shadow ease-in-out .15s;
        -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s
    }

    .input-group-btn {
        width:auto
    }

    .input-group-btn {
        display:table-cell
    }
    .input-group-btn:not(:first-child):not(:last-child){ 
        border-radius:0
    }








    /*********************/
    /** CHAT ROOM **/
    /*********************/

    .input-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 430px; /* Optional: Adjust max-width to your preference */
    }

    .input-container .chat-input-box {
        width: 400px;
        padding: 12px 20px;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }

    #messageInput {
        width: 80%;
        height: 40px;
        padding: 2px;
        font-size: 16px;
    }

    .chat-button {
        width: 20%;
        height: 40px; /* Match input height */
        font-size: 16px; /* Optional: Adjust font size */
    }

    .left-align {
        text-align: left;
    }

    .right-align {
        text-align: right;
    }

    .chatMessage {
        
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 56px); /* Adjusted height to accommodate footer */
        margin-bottom: 56px; /* Added margin to prevent overlap with footer */
    }

    .chat-box {
        flex: 1; /* Grow to fill remaining space */
        overflow-y: auto; /* Enable vertical scrolling */
        min-height: 50px; /* Adjust as needed to ensure visibility */
    }

    .chatDelete {
        border: none;
        outline: 0;
        padding: 0px;
        color: white;
        background-color: darkred;
        text-align: center;
        cursor: pointer;
        width: 20px;
        height: 20px;
        font-size: 10px;
        border-radius: 5px;
    }



    /*********************/
    /** FORUM PAGES **/
    /*********************/

    .forum-pages {
        margin-bottom: 2px;
        overflow: hidden;
        text-align: right;
        border: 0px;
    }

    .forum-pages table {
        width: 100%;
        border: 0px;

    }

    .forum-pages td {
        padding: 20px;
        vertical-align: middle;
    }

    .forum-pages a {
        text-decoration: none;
        color: #333;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 30px;  
        height: 32px;
    }


    /*********************/
    /** FORUM **/
    /*********************/

    .main-forum-table {
        margin-bottom: 2px;
        border: 0px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
        width: 100vw;
    }

    .main-forum-table table {
        width: 100vw;
    }

    .main-forum-table td {
        padding: 10px;
        vertical-align: middle;
    }

    .main-forum-table a {
        text-decoration: none;
        color: #333;
    }

    .forum-table-posts {
        border:1px solid black;
        width: 300px;
    }

    /* Character Image */
    .forum-table-posts-td1 {
        padding:5px;
        background-color:#000;
        width:10%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
    }

    /* Character Name */
    .forum-table-posts-td2 {
        padding:5px;
        background-color:#000;
        text-align:left;
        color:#FFF;
        width:30%;
        vertical-align:center;
        font-size: 12px;
    }

    /* Post Time */
    .forum-table-posts-td3 {
        padding:5px;
        padding-left:10px;
        background-color:#000;
        width:30%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
        font-size: 12px;
    }

    /* Edit + Delete Buttons */
    .forum-table-posts-td4 {
        background-color:#000;
        text-align:right;
        color:#FFF;
        width:30%;
        vertical-align: middle;
        font-size: 12px;
    }

    .forum-table-posts-message {
        padding-left:10px;
        padding-right:10px;
        padding-top:10px;
        padding-bottom:10px;
        background-color: #fff;
        width: 80%;
        vertical-align: center;
    }


    /* Forum Container */
    .forum-container {
        width: 90%;
        top: 0px;
        max-width: 412px;
        margin: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Forum Tables */
    .forum-table,
    .campaign-table {
        width: 100%;
        margin-top: 20px;
        border-collapse: collapse;
        border: 0px, solid #ccc;
    }

    .forum-table-inner,
    .campaign-table-inner {
        width: 90%;
    }

    /* Forum Rows */
    .forum-row {
        border-bottom: 1px solid #ddd;
        background-color: #f9f9f9;
    }

    /* Forum Cells */
    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-category-info,
    .forum-last-post-info,
    .forum-topics-info,
    .forum-posts-info,
    .forum-replies-info,
    .forum-views-info,
    .forum-no-posts {
        padding: 5px;
        text-align: center;
        font-size: 10px;
    }

    .forum-replies,
    .forum-replies-info {
        width: 10%;
    }

    .forum-last-post,
    .forum-last-post-info {
        width: 70%;
    }

    .forum-topics, 
    .forum-topics-info {
        width: 20%;
    }

    .forum-category-info a {
        font-size: 10px;
        text-decoration: none;
    }
    .forum-last-post-info, a {
        font-size: 10px;
        text-decoration: none;
    }

    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-replies,
    .forum-views {
        font-weight: bold;
        background-color: #ddd;
        text-align: left;
        padding: 5px;
        font-size: 10px;
    }

    /* Forum Buttons */
    .forum-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    /* Forum Buttons */
    .topic-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
        width:90%;
    }

    .forum-img {
        height: 100px;
        width: 100px;
    }

    .forum-img-info {

    }

    /* User Profile */

    .button-container {
        position: fixed;
        bottom: 60px; /* You can adjust this value based on your requirements */
        left: 50%;
        transform: translateX(-50%);
    }

    .user-profile {
        display: inline-block;
    }

    /* Last Post Details */
    .last-post-details {
        margin-left: 10px;
        text-align: left;
    }

    .last-post-title {
        font-weight: bold;
    }

    .last-post-info,
    .last-post-time {
        font-size: 12px;
        color: #555;
    }

    /* Responsive Design */
    @media only screen and (max-width: 600px) {
        .forum-container {
            width: 100%;
            padding: 10px;
        }

        .forum-btn {
            width: 100%;
        }
    }

    .locked-placeholder {
        border: 2px dashed gray;
        background-color: lightgray;
        color: darkgray;
        text-align: center;
        padding: 10px;
        margin: 20px;
        position: fixed;
        bottom: 60px; /* Adjust this value if needed */
        width: 100%;
        left: 0;
        right: 0;
        z-index: 10;
    }

/////////////////////////////
/**** ADMIN USER TABLE ****/
///////////////////////////

    .adminUserTable {
        width: 360px;
        max-width: 412px;
        table-layout: fixed;
        font-size: 12px;
    }

    .adminTable th,
    .adminTable td {
        width: 20%;
    }

    .adminTable button {
        font-size: 8px;
    }


    .adminDashboard {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    }

    .adminDashboard a {
        font-weight: bold;
        color: #333;
        text-decoration: none;
    }

    .adminDashboard a:hover {
        text-decoration: underline;
    }

    .admin-last-post-title {
        font-size: 1.2em;
        margin-top: 5px;
    }

    .admin-last-post-info {
        font-size: 0.9em;
        color: #666;
    }

    .admin-last-post-time {
        font-style: italic;
}


//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 412px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }


    .translation {
            cursor: pointer;
            border-bottom: 1px dotted #000;
        }
    .tooltip {
        position: absolute;
        background: #fff;
        border: 1px solid #ccc;
        padding: 5px;
        z-index: 1000;
    }


}































@media only screen and (max-width: 412px) and (min-width: 361px){
 /* CSS that should be displayed if width is equal to or less than 412px and larger 
  than 361px goes here */


/********************/
/* ADMIN PAGE      */
/******************/

.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFF;
    color: black;
    padding: 20px;
}

.dashboard-info {
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* small screen max width */
}

.admin-button {
    padding: 10px 15px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

 #weapons-add-form {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#weapons-add-form input,
#weapons-add-form select,
#weapons-add-form textarea {
    width: 100%;
    margin-bottom: 10px;
}

#weapons-add-form button {
    width: 100%;
}

.admin-weapons-add {
    font-size: 18px; /* Bigger text */
    line-height: 1.6;
}

.admin-weapons-add input,
.admin-weapons-add select,
.admin-weapons-add textarea,
.admin-weapons-add button {
    font-size: 18px; /* Bigger text in inputs */
    padding: 12px; /* More clickable space */
}

/* Make boxes and dropdowns wider */
.admin-weapons-add input,
.admin-weapons-add select,
.admin-weapons-add textarea {
    width: 100%;
    box-sizing: border-box;
}


/* Optional: space between fields */
.admin-weapons-add .form-group {
    margin-bottom: 16px;
}


#admin-weapons-add form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* spacing between each row */
    max-width: 500px;
    margin: 0 auto;
}
#admin-weapons-add .toggle-row {
    display: flex;
    align-items: center;
    gap: 20px; /* space between label and toggle */
}

/* Fix label width and right-align text */
#admin-weapons-add .toggle-row label:first-child {
    width: 160px;        /* fixed width for labels */
    text-align: right;   /* align text right inside label */
    font-size: 1.2rem;
    user-select: none;
}

/* Checkbox stays the same size and aligned left */
#admin-weapons-add .toggle-row input[type="checkbox"] {
    flex-shrink: 0;
    transform: scale(1.5);
    cursor: pointer;
}



.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4CAF50;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 412px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }
}


/* NAV BAR FORUM */
    .top-navbar-forum {
        vertical-align: baseline;
        overflow: hidden;
        background-color: #fff;
        position: fixed;
        top: 40;
        padding-right: 0px;
        width: 100vw;
        height: 100px;
        border:1px solid black;
         z-index: 1;
    }
    .top-navbar-forum table {
        margin-top: 10px;
        border: 0px;
        width: 100%;
        height: 80px;
    }

    .top-navbar-forum a {
        color: #000;
        text-align: center;
        padding: 12px 8px;
        text-decoration: none;
        font-size: 17px;
    }

    .top-navbar-forum a:hover {
        background: #ddd;
        color: black;
    }

    .top-navbar-forum img {
        height: 50px;
        width: 50px;
    }


/**************************************/
/* SLIDE IN MENU FOR CHARACTER SHEET */
/************************************/
.side-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: #222;
  color: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.4);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 9998;
}

.side-panel.open {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 20px;
}

.panel-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.panel-buttons button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  background-color: #444;
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.panel-buttons button:hover {
  background-color: #666;
}

.menuToggle img {
    position: fixed; 
    bottom: 60px; 
    right: 20px; 
    z-index: 9999;
    width: 50;
    height: 50; 
    cursor: pointer;
}


/************************************/
/* TOP NAV BAR FOR CHARACTER SHEET */
/**********************************/
.character-sheet-main {
    padding: 0px;
    margin-left:0px;
    margin-right:0px;
    margin-top: 200px;
    margin-bottom: 111px;
}


.top-info-bar {
  position: fixed;
  top: 40; /* Anchored to top instead of bottom */
  width: 100%;
  height: 75px; /* Adjust height as needed */
  background-color: #f4f4f4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 1000; /* Ensure it's above everything else */
  font-family: sans-serif;
  font-size: 14px;
}
.top-info-bar img {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  margin-right: 15px;
}
.top-info-bar .char-details {
  display: flex;
  flex-direction: column;
}

#second-info-bar {
    position: fixed;
    top: 115px;           /* Exactly below .top-info-bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1f1f1f;
    height: 75px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px;
    box-sizing: border-box;
    transition: top 0.3s ease-in-out;
}

#second-info-bar.hidden {
  top: -80px; /* Hide only the bar, not its full 115px offset */
}

.info-block,
.info-buttons {
    flex: 1 1 20%;                  /* 5 equal-width columns */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start; /* Align content to the top */
    min-height: auto;            /* Remove forced vertical spacing */
    min-width: 0;                   /* Prevents growing too wide */
}

.character-content {
    top: 190px;
    margin-top: 190px; /* Assuming both bars are 75px tall and top offset is 40px */
    position: relative;
}

/* Top and bottom labels */
.label {
    color: #ccc;
    text-align: center;
    font-family: Roboto Condensed, Roboto, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
}

/* Central value */
.value {
    color: #00c680;
    text-align: center;
    font-size: 26px;
    font-weight: 500;
    line-height: 27px;
}


/* Defenses/Conditions buttons */
.small-button {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin: 2px 0;
    border: none;
    background-color: #333;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
}

.small-button:hover {
    background-color: #555;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manage-button {
  font-size: 0.7rem;
  padding: 2px 6px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.manage-button:hover {
  background-color: #555;
}







.epic-swap-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.epic-swap-title {
    text-align: center;
    margin-bottom: 20px;
}

.epic-character-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.epic-character-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    width: 90%;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.epic-character-card:hover {
    transform: translateY(-3px);
    background-color: #f9f9f9;
}

.epic-character-card h4 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.epic-character-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}




.forum-icons {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    width: 24px;          /* Fixed width */
    height: 24px;         /* Fixed height */
    font-size: 0;         /* Prevent text from expanding the box */
    border: 1px solid transparent;
    display: inline-block;
    margin: 4px;
    padding: 0;
}

.forum-long-icons {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%; /* Stretch to fill the button area exactly */
    width: 108px;
    height: 24px;
    font-size: 0;
    border: 1px solid transparent;
    display: inline-block;
    margin: 4px;
    padding: 0;
    box-sizing: border-box;
}

.forum-icons-bold {
    background-image: url("https://www.alendair.com/img/icons/Bold.png"); /* Or lowercase, if needed */
}

.forum-icons-italics {
    background-image: url("https://www.alendair.com/img/icons/Italics.png"); /* Or lowercase, if needed */
}

.forum-icons-whisper {
    background-image: url("https://www.alendair.com/img/icons/Whisper.png"); /* Or lowercase, if needed */
    height: 24px;
    width: 108px;
}



/*****************************/
/*** FORUM ACTION BUTTONS ***/
/***************************/
.forum-actions-button {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
    }

    .forum-actions-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-actions-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-actions-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-actions-button:focus {
        outline: 1px transparent;
    }

    .forum-actions-button:before {
        display: none;
    }

    .forum-actions-button:-webkit-details-marker {
        display: none;
    }


.forum-post-img-wrapper {
    margin-top: 10px;
    text-align: center;
}

.forum-post-img {
    max-width: 412px;
    width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
}



/* Tooltip Container Style */
.dnd-tooltip {
    position: relative;
    cursor: help;
    color: #d6b370;
    font-weight: bold;
    border-bottom: 1px dashed #d6b370;
}

.dnd-tooltip::after {
    content: attr(data-tooltip);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 125%; /* Show above the text */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #fefefe;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    white-space: normal;
    width: 250px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    font-size: 14px;
    font-family: 'Georgia', serif;
}

/* Tooltip Arrow */
.dnd-tooltip::before {
    content: '';
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1a1a1a transparent;
    transition: opacity 0.3s ease;
}

/* Show the tooltip on hover */
.dnd-tooltip:hover::after,
.dnd-tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}
.dnd-tooltip::after {
    content: attr(data-tooltip);
    ...
}

.dnd-tooltip[data-tooltip="Loading..."]::after {
    content: '⏳ Loading...';
    font-style: italic;
}


/* FORUM MESSAGE BOX */
.message-box {
    float: none;
    width: auto;
    display: block;
}

.forum-textarea {
    height:250px;
    width:100%;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}


.bbcode-whisper {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    font-style: italic;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-whisper::before {
    content: "Whisper: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.bbcode-whisper::after {
    content: "DC 15 Perception check to hear";
    font-size: 0.75em;
    color: #444;
    display: block;
    margin-top: 12px;
    font-style: normal;
    background-color: #d9e6f2; /* soft light blue background */
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #a8bddc; /* subtle border for separation */
    max-width: fit-content;
}

.bbcode-loot {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    font-style: italic;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-loot::before {
    content: "Loot: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.bbcode-note {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-note::before {
    content: "Notes: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Base list styling inside any bbcode block */
[class^="bbcode-"] ul,
[class*=" bbcode-"] ul {
    margin: 8px 0 8px 20px;
    padding-left: 20px;   /* let bullets show */
    list-style-type: disc; /* normal filled bullets */
}

/* Nested lists: normal indentation */
[class^="bbcode-"] ul ul,
[class*=" bbcode-"] ul ul {
    margin: 6px 0 6px 20px;
    list-style-type: circle; /* slightly different bullet for nesting */
}

/* Each list item */
[class^="bbcode-"] li,
[class*=" bbcode-"] li {
    margin: 4px 0;
    line-height: 1.5;
    color: #444;
}




.forum-half-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Adjust for header.php height */
    overflow: hidden;
}

.forum-top-half,
.forum-bottom-half {
    flex: 1;
    padding: 10px;
    background-color: #fff;
}

.forum-top-half {
    border-bottom: 1px solid #444;
    overflow-y: auto;
}

.forum-bottom-half {
    flex: 2; /* Takes 2x the space of top */
    padding: 10px;
    background-color: #fff;
    overflow-y: hidden;
}

.forum-main {
    padding: 0;
    margin: 0;
    margin-top: 40px; /* Push below header if not already handled */
}

body.forum-reply-page,
html.forum-reply-page {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent page scroll */
}

.nav-forum {
  position: fixed;
  bottom: 55px;
  width: 100%;
  height: 55px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  background-color: #000;
  display: flex;
  overflow-x: auto;
}

.nav_forum_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-width: 50px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 10px;
  color: #FFF;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.1s ease-in-out;
}

.nav_forum_button:hover {
  background-color: #eeeeee;
  color: #000;
}



.attack-message {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #444;
    max-width: 100%;
    flex-wrap: wrap;
}

.attack-left {
    flex: 1 1 60%;
    padding: 5px 10px;
    font-family: sans-serif;
    font-size: 14px;
}

.attack-right {
    flex: 1 1 40%;
    text-align: right;
    padding: 5px 10px;
}

.attack-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.attack-subtext {
    font-size: 12px;
    color: gray;
    margin-bottom: 6px;
}

.attack-damage {
    font-size: 16px;
    margin: 8px 0 4px 0;
}

.attack-dice {
    max-width: 80px;
    height: auto;
}

.roll {
    font-weight: bold;
}

.roll-green {
    color: green;
}

.roll-red {
    color: red;
}

.attack-trait,
.attack-damage-type,
.attack-condition {
    font-size: 12px;
    margin-top: 4px;
}

.version-container {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
    width: 95vw;
}
.version-container table {
    width: 100%;
    border: 1px solid #ccc;
}

.edit-link {
    font-size: 12px;
    text-decoration: none;
    color: #007bff;
    margin-right: 10px;
    text-align: left;
    background-color: #C0C0C0;
    padding: 10px;
}

.version-date {
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    background-color: #C0C0C0;
    padding: 10px;

}

.version-description {
    font-size: 12px;
    margin: 5px 0;
    text-align: left;
}
.dashboard-version {
    font-size: 12px;
    background-color: gray;
    color: white;
    padding-top:5;
    padding-bottom: 5;
    
}

























/* IPAD 10th Gen - Portrait Mode */
@media only screen and (min-width: 431px) and (max-width: 580px)  {



/***********************/
/*** BOTTOM NAV BAR ***/
/*********************/
    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding-bottom: 2px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      overflow-x: auto;
      float: right;
    }
    .nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #FFF;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FFF;
    }

/*****************************/
/*** BOTTOM CHARACTER BAR ***/
/***************************/
    .nav-character {
      position: fixed;
      bottom: 55px;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #C0C0C0;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #444444;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FF8633;
    }


/*****************************/
/***** BOTTOM CHAT BAR ******/
/***************************/
    .nav-chat {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: 40px;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #C0C0C0;
    }

    .nav-forum {
        position: fixed;
        bottom: 55px;
        width: 100%; /* Adjust as needed */
        height: 120px; /* Adjust as needed */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    }
    .nav-action-buttons {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: auto; /* Let height expand with button size */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        justify-content: center; /* ✅ This centers children horizontally */
        align-items: center;     /* Optional: centers vertically if needed */
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px; /* Optional spacing */
    }



/*****************************/
/******** TOP NAV BAR *******/
/***************************/
    .navbar {
      float: right;
      vertical-align: text-top;
      overflow: hidden;
      background-color: #000;
      position: fixed;
      top: 0;
      width: 100%;
      height: 40px;
      z-index: 200;
    }

    .navbar a {
      float: left;
      display: block;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
    }

    .navbar a:hover {
      background: #ddd;
      color: black;
    }

/* NAV BAR FORUM */
    .top-navbar-forum {
        vertical-align: baseline;
        overflow: hidden;
        background-color: #fff;
        position: fixed;
        top: 40;
        padding-right: 0px;
        width: 100vw;
        height: 100px;
        border:1px solid black;
         z-index: 1;
    }
    .top-navbar-forum table {
        border: 0px;
        width: 100%;
        height: 80px;
    }

    .top-navbar-forum a {
        color: #000;
        text-align: center;
        padding: 12px 8px;
        text-decoration: none;
        font-size: 17px;
    }

    .top-navbar-forum a:hover {
        background: #ddd;
        color: black;
    }

    .top-navbar-forum img {
        height: 50px;
        width: 50px;
    }




/*********************/
/** ACTION BUTTONS **/
/*******************/

.action-menu-container {
    margin: 30px auto;
    padding: 20px;
    width: 300px;
    border: 2px solid #444;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
}
.action-menu-container h2 {
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #333;
}
.action-button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-button:hover {
    background-color: #357ab8;
}
.action-close-button {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: red;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-close-button:hover {
    background-color: #357ab8;
}




/*****************/
/** LOGIN FORM **/
/***************/

    .content-container {
        margin: 0 auto;
    }
    .login {
        margin-top: 0px;
        overflow: hidden;
        background-color: #F6F7FC;
    }

    .login-form {
        overflow: hidden;
        width: 100vw;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        z-index: 50;
    }

    .login-form label {
        color: #000;
        font-size: 16px;
        display: block;
        text-align: left;
    }

    .login-form input[type="text"], .login-form input[type="password"] {
        text-align: left;
        padding: 10px 20px;
        margin: 8px 0;
        border: 0px;
        border-radius: 5px;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .login-form input[type="submit"] {
        background-color: black;
        color: white;
        border-radius: 5px;
        padding: 10px;
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 10px 0;
    }

    .remember-forgot label {
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .remember-forgot a {
        text-decoration: none;
        color: #B4886B;
        font-size: 14px;
        align-self: center;
    }

    .login-form img {
        width: 100%;
        max-width: 100%; /* Ensures the image does not exceed its container's width */
        height: auto; /* Maintains aspect ratio */
        display: block; /* Removes inline spacing if the image is inline */
        margin: 0 auto; /* Centers the image within the container */
    }   





    /* MATERIAL-ICONS SETTINGS */
    .material-icons.black { color: #000000; }


    .user-info {
        margin-top: 10px; /* Adjust the margin as needed */
    }


    .forumPostTable {
        width: 100%;
        height: 100px;
        border: 0px solid black;
    }
    .forumPostTable td {
        vertical-align: top;
    }



    /* Style the header */
    .header {   
        position: sticky;   
        top: 0; 
        background: #555;   
        color: #f1f1f1; 
        width: 100%;    
        z-index: 99;
    }


    button {  
        border: none;
        outline: 0;
        display: inline-block;
        padding: 8px;
        color: white;
        background-color: #000;
        text-align: center;
        cursor: pointer;
        width: 100%;
        font-size: 18px;
    }

    a {
        text-decoration: none;
        font-size: 22px;
        color: black;
    }

    button:hover, a:hover {
        opacity: 0.7;
    }

    .button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 140px;  
        height: 40px;
    }

    .campaign_button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 40px;  
        height: 20px;
    }
    .relog-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 20px;  
        width: 100px;  
        height: 25px;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 20px;  
        height: 32px;
    }

    /* Create two equal columns that floats next to each other */
    .column {
        float: left;
        width: 100%;
        padding: 10px;
        height: 150px; /* Should be removed. Only for demonstration */
        padding: 1px;
    }

    .column table {
        border: 1px solid #c0c0c0;
        width: 90%;
        border-radius: 5px;
    }
    .column td {
        border: 0px;
        height: 100px;
    }

    /* Clear floats after the columns */
    .row:after {
        content: "";
        display: table;
        clear: both;
    }

    /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
    @media screen and (max-width: 600px) {
        .column {
            width: 100%;
        }
        table {
            border: 1px solid #c0c0c0;
            width: 90%;
            border-radius: 5px;
        }
        td {
            border: 0px;
            height: 20px;
        }
    }



    /* MATERIAL-ICONS SETTINGS */
    .material-icons.orange600 { color: #FB8C00; }
    .material-icons.green { color: green; }
    .material-icons.grey { color: #c0c0c0; }
    .material-icons.lightred { color: #FFCCCB; }
    .material-icons.darkred { color: #8B0000; }
    .material-icons.blue { color: #2B65EC; }
    .material-icons.white { color: #FFFFFF; }



    /* FORUM PAGE LAYOUT */
    .forum-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 60px;
      margin-bottom: 40px;
    }

    /* MAIN PAGE LAYOUT BORDER */
    .main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 80px;
      margin-bottom: 20px;
    }
    .main table {
        border-collapse: collapse;
        width: 95%;
    }
    .main td {
        border: 0px solid #000;
    }

    .character-sheet-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 41px;
      margin-bottom: 111px;
    }






    /* The container must be positioned relative: */
    .custom-select {
      position: relative;
      width: 200px;
      
    }

    .custom-select select {
      display: none; /*hide original SELECT element: */
    }

    /* Style the arrow inside the select element: */
    .select-selected:after {
      position: absolute;
      content: "";
      top: 14px;
      right: 10px;
      width: 0;
      height: 0;
      border: 6px solid transparent;
      border-color: #fff transparent transparent transparent;
    }

    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent #fff transparent;
      top: 7px;
    }

    /* style the items (options), including the selected item: */
    .select-items div,.select-selected {
      color: #000;
      padding: 2px 4px;
      border: 1px solid transparent;
      border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
      cursor: pointer;
    }

    /* Style items (options): */
    .select-items {
      position: absolute;
      background-color: #4CAF50;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 99;
    }

    /* Hide the items when the select box is closed: */
    .select-hide {
      display: none;
    }

    .select-items div:hover, .same-as-selected {
      background-color: rgba(0, 0, 0, 0.1);
    }





/*****************************/
/******* SIDE NAV BAR *******/
/***************************/


    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 40px;
        left: 0;
        background-color: black;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 40px;
        z-index: 2;
    }

    .sidenav a {
        padding: 8px 8px 8px 8px;
        text-decoration: none;
        font-size: 16px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
    .sidenav table {
        border:0 solid black;
    }

    .sidenav tr td {
      
    }







/*****************************/
/** ACCOUNT CAMPAIGNS PAGE **/
/***************************/

    .campaignsTable {
        border: 1px solid black;
        width: 80%;
    }

    .campaignCharacters {
        font-size: 12px;
    }

    .campaigns img {
        height: 75px;
        width: 75px;
    }

    .campaigns .td1 {
        text-align: center;
        width: 20%;
    }

    .campaigns .td2 {
        text-align: left;
        width: 40%;
    }
    .campaigns .td3 {
        text-align: center;
        width: 40%;
    }

    .campaigns .title {
        font-size: 12px;
    }

    .campaigns .description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .campaigns .players {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }






/*****************************/
/**** Character Edit Page ***/
/***************************/
    .character-edit-form-header {
        display: flex; /* Enables flexbox layout */
        justify-content: space-between; /* Distributes space between items */
        align-items: center; /* Vertically centers items */
        margin-left: 5px;
        margin-right: 5px;
        padding-top: 10px;
        width: 95%;
        border: 0px solid #ccc; /* Optional: for better visualization */
    }
    .character-edit-form-header img {
        height: 100px;
        width: 100px;
    }
    .character-edit-form-header .character-info {
        flex: 1; /* Allows this div to take up remaining space */
        padding-left: 10px; /* Adds space between the image and the text */
    }
    .character-edit-form-header .character-info input {
        border: 1px solid #c0c0c0;
        border-radius: 5px;
        border-color: gray;
        width: 100%; /* Ensures the input field takes up the full width */
        height:40px;
        padding: 5px; /* Adds padding inside the input field */
        font-size: 20px;
    }
    .character-edit-form-header .character-name {
        font-weight: 700;
        padding-bottom: 5px; /* Adds padding inside the input field */
    }
    .content {
        margin: 20px;
        font-family: Arial, sans-serif;
    }
    .content-img {
        float: right;
        font-size: 20px;
    }
    .content-img a {
        font-size: 16px;
        color: blue;
    }
    .content-img img {
        float: right; /* Positions the image to the right */
        margin: 0 0 10px 10px; /* Adds some margin to the image */
        width: 100px; /* Set the width of the image */
        height: 100px; /* Maintain the aspect ratio of the image */
    }
    .content-traits {
        font-size: 12px;
    }
    .content-details a {
        font-size: 16px;
        color: blue;
        padding-left: 20px;
    }
    .collapsible {
        background-color: #f1f1f1;
        color: #444;
        cursor: pointer;
        padding: 10px;
        width: 100%;
        border: 1px solid black;
        text-align: left;
        outline: none;
        font-size: 20px;
        height: 50px;
    }
    .collapsible.active {
        background-color: #C0C0C0;
    }

    .collapsible:after {
        content: '\002B'; /* Unicode character for "plus" sign (+) */
        font-size: 18px;
        float: right;
        margin-left: 5px;
        
    }

    .collapsible.active:after {
        content: "\2212"; /* Unicode character for "minus" sign (−) */
        background-color: #C0C0C0;
    }

    .content-divs {
        padding: 0 10px;
        display: none;
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs {
        padding: 0 10px;
        display: block; /* Changed from none to block */
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs-content {
        display: none; /* Hide content initially */
    }



/*************************/
/**** WEBSITE BUTTONS ***/
/***********************/

    .button-3 {
        appearance: none;
        background-color: #2ea44f;
        border: 1px solid rgba(27, 31, 35, .15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        padding: 6px 16px;
        position: relative;
        text-align: center;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
    }

    .button-3:focus:not(:focus-visible):not(.focus-visible) {
        box-shadow: none;
        outline: none;
    }

    .button-3:hover {
        background-color: #2c974b;
    }

    .button-3:focus {
        box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
        outline: none;
    }

    .button-3:disabled {
        background-color: #94d3a2;
        border-color: rgba(27, 31, 35, .1);
        color: rgba(255, 255, 255, .8);
        cursor: default;
    }

    .button-3:active {
        background-color: #298e46;
        box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
    }


    .button-4 {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
    }

    .button-4:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .button-4:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .button-4:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .button-4:focus {
        outline: 1px transparent;
    }

    .button-4:before {
        display: none;
    }

    .button-4:-webkit-details-marker {
        display: none;
    }

    .forum-send-button {
        appearance: none;
        background-color: #4CAF50;/* Green */
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 5px;
    }

    .forum-send-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-send-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-send-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-send-button:focus {
        outline: 1px transparent;
    }

    .forum-send-button:before {
        display: none;
    }

    .forum-send-button:-webkit-details-marker {
        display: none;
    }

    .forum-actions-button {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 10px;
    }

    .forum-actions-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-actions-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-actions-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-actions-button:focus {
        outline: 1px transparent;
    }

    .forum-actions-button:before {
        display: none;
    }

    .forum-actions-button:-webkit-details-marker {
        display: none;
    }




    .admin-button {
        appearance: none;
        background-color: #000;
        border: 2px solid #4CAF50;
        border-radius: 1px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: white;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        text-align: center;
    }

    .admin-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .admin-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .admin-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .admin-button:focus {
        outline: 1px transparent;
    }

    .admin-button:before {
        display: none;
    }

    .admin-button:-webkit-details-marker {
        display: none;
    }




    .forum-button-edit {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 1px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-right: 4px;
        padding-top: 0px;
        padding-bottom: 0px;

    }

    .forum-button-edit:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-button-edit:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-button-edit:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-button-edit:focus {
        outline: 1px transparent;
    }

    .forum-button-edit:before {
        display: none;
    }

    .forum-button-edit:-webkit-details-marker {
        display: none;
    }


/*********************/
/** CHARACTER SHEET **/
/*********************/

    * { box-sizing: border-box; }

    .xp-container {
        width: 360px;
        background-color: #ddd;
        padding-top: 0px;
        vertical-align: top;
        text-align: right;
    }

    .xp {
        font-size: 15px;
        text-align: center;
        padding-top: 0px;
        color: black;
    }

    .lvlup {
        animation: pulse 2s infinite;
        font-size: 24px;
        text-align: center;
        padding-top: 6px;
    }
    .lvlup a {
        color: white;
        vertical-align: center;
        font-size: 24px;
        text-align: center;
    }

    @keyframes pulse {
        50%, 50% {
          background-color: #ff0000;
        }
    }

    .css {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
        background-color: #2196F3;
    }

    .css2 {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
    }
    

    .stats {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);  
        max-width: 100px;
        width: 100px;  
        padding:5px;
        text-align: center;  
        background-color: #FFF;
        height: 100px;
        margin: auto;
        border:2px solid #4CAF50;
        border-radius: 10px;
        vertical-align: center;
    }

    .flex-container {
        display: flex;
        background-color: white;
        margin-top: 2px;
    }

    .flex-container > div {
        background-color: white;
        margin: 5px;
        padding: 5px;
        font-size: 30px;
    }

    .character-table {
        width: 90%;
        border: 0px;
    }

    .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-width: 400px;
        text-align: center;
    }






/*******************/
/** VERSION INFO **/
/*****************/

    .version-container {
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        padding: 10px;
        margin-bottom: 20px;
        width: 95vw;
    }
    .version-container table {
        width: 100%;
        border: 1px solid #ccc;
    }

    .edit-link {
        font-size: 12px;
        text-decoration: none;
        color: #007bff;
        margin-right: 10px;
        text-align: left;
        background-color: #C0C0C0;
        padding: 10px;
    }

    .version-date {
        font-size: 12px;
        font-weight: bold;
        text-align: right;
        background-color: #C0C0C0;
        padding: 10px;

    }

    .version-description {
        font-size: 12px;
        margin: 5px 0;
        text-align: left;
    }
    .dashboard-version {
        font-size: 12px;
        background-color: gray;
        color: white;
        padding-top:5;
        
    }







    .ChararcterEditForm {
        font-size: 8px;
    }




/*****************************/
/**** CHARACTER CONTAINER ***/
/***************************/

    .characters-background {
        background-color: white;
    }

    .character-container {
        background-color: white;
        display: inline-block;
        margin: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .character-image {
        width: 200px;
        height: 200px;
    }

    .character-info {
        margin: 0;
        font-size: 12px;
    }

    .characters {

    }

    .characters img {
        height: 75px;
        width: 75px;
    }

    .characters .td1 {
        text-align: center;
        width: 20%;
    }

    .characters .td2 {
        text-align: left;
        width: 40%;
    }
    .characters .td3 {
        text-align: center;
        width: 40%;
    }

    .characters-title {
        font-size: 12px;
    }

    .characters-description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .characters .link {
        text-decoration: none;
        font-size: 16px;
    }





    /*********************/
    /** BOOTSTRAP ITEMS **/
    /*********************/
    .col-md-8
    {
        position:relative;
        min-height:1px;
        padding-right:15px;
        padding-left:15px;
    }

    .clearfix:after,.clearfix:before {
        display:table;
        content:" "
    }

    .clearfix:after
    {
        clear:both;
    }

    .pull-right {
        float:right!important
    }

    .pull-left {
        float:left!important
    }
    .text-muted {
        color:#777
    }

    .input-group {
        display:inline-table;
        vertical-align:middle;
        width:auto
    }

    .btn {
        display:inline-block;
        padding:6px 12px;
        margin-bottom:0;
        font-size:14px;
        font-weight:400;
        line-height:1.42857143;
        text-align:center;
        white-space:nowrap;
        vertical-align:middle;
        -ms-touch-action:manipulation;
        touch-action:manipulation;
        cursor:pointer;
        -webkit-user-select:none;
        -moz-user-select:none;
        -ms-user-select:none;
        user-select:none;
        background-image:none;
        border:1px solid transparent;
        border-radius:4px
    }

    .btn-success {
        color:#fff;
        background-color:#5cb85c;
        border-color:#4cae4c
    }

    .form-control {
        display:block;
        width:100%;
        height:34px;
        padding:6px 12px;
        font-size:14px;
        line-height:1.42857143;
        color:#555;
        background-color:#fff;
        background-image:none;
        border:1px solid #ccc;
        border-radius:4px;
        -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        -webkit-transition:border-color ease-in-out .15s,
        -webkit-box-shadow ease-in-out .15s;
        -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s
    }

    .input-group-btn {
        width:auto
    }

    .input-group-btn {
        display:table-cell
    }
    .input-group-btn:not(:first-child):not(:last-child){ 
        border-radius:0
    }








    /*********************/
    /** CHAT ROOM **/
    /*********************/

    .input-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 430px; /* Optional: Adjust max-width to your preference */
    }

    .input-container .chat-input-box {
        width: 400px;
        padding: 12px 20px;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }

    #messageInput {
        width: 80%;
        height: 40px;
        padding: 2px;
        font-size: 16px;
    }

    .chat-button {
        width: 20%;
        height: 40px; /* Match input height */
        font-size: 16px; /* Optional: Adjust font size */
    }

    .left-align {
        text-align: left;
    }

    .right-align {
        text-align: right;
    }

    .chatMessage {
        
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 56px); /* Adjusted height to accommodate footer */
        margin-bottom: 56px; /* Added margin to prevent overlap with footer */
    }

    .chat-box {
        flex: 1; /* Grow to fill remaining space */
        overflow-y: auto; /* Enable vertical scrolling */
        min-height: 50px; /* Adjust as needed to ensure visibility */
    }

    .chatDelete {
        border: none;
        outline: 0;
        padding: 0px;
        color: white;
        background-color: darkred;
        text-align: center;
        cursor: pointer;
        width: 20px;
        height: 20px;
        font-size: 10px;
        border-radius: 5px;
    }



    /*********************/
    /** FORUM PAGES **/
    /*********************/

    .forum-pages {
        margin-bottom: 2px;
        overflow: hidden;
        text-align: right;
        border: 0px;
    }

    .forum-pages table {
        width: 100%;
        border: 0px;

    }

    .forum-pages td {
        padding: 20px;
        vertical-align: middle;
    }

    .forum-pages a {
        text-decoration: none;
        color: #333;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 30px;  
        height: 32px;
    }


    /*********************/
    /** FORUM **/
    /*********************/

    .main-forum-table {
        margin-bottom: 2px;
        border: 0px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
        width: 100vw;
    }

    .main-forum-table table {
        width: 100vw;
    }

    .main-forum-table td {
        padding: 10px;
        vertical-align: middle;
    }

    .main-forum-table a {
        text-decoration: none;
        color: #333;
    }

    .forum-table-posts {
        border:1px solid black;
        width: 300px;
    }

    /* Character Image */
    .forum-table-posts-td1 {
        padding:5px;
        background-color:#000;
        width:10%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
    }

    /* Character Name */
    .forum-table-posts-td2 {
        padding:5px;
        background-color:#000;
        text-align:left;
        color:#FFF;
        width:30%;
        vertical-align:center;
        font-size: 12px;
    }

    /* Post Time */
    .forum-table-posts-td3 {
        padding:5px;
        padding-left:10px;
        background-color:#000;
        width:30%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
        font-size: 12px;
    }

    /* Edit + Delete Buttons */
    .forum-table-posts-td4 {
        background-color:#000;
        text-align:right;
        color:#FFF;
        width:30%;
        vertical-align: middle;
        font-size: 12px;
    }

    .forum-table-posts-message {
        padding-left:10px;
        padding-right:10px;
        padding-top:10px;
        padding-bottom:10px;
        background-color: #fff;
        width: 80%;
        vertical-align: center;
    }


    /* Forum Container */
    .forum-container {
        width: 90%;
        top: 0px;
        max-width: 820px;
        margin: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Forum Tables */
    .forum-table,
    .campaign-table {
        width: 100%;
        margin-top: 20px;
        border-collapse: collapse;
        border: 0px, solid #ccc;
    }

    .forum-table-inner,
    .campaign-table-inner {
        width: 90%;
    }

    /* Forum Rows */
    .forum-row {
        border-bottom: 1px solid #ddd;
        background-color: #f9f9f9;
    }

    /* Forum Cells */
    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-category-info,
    .forum-last-post-info,
    .forum-topics-info,
    .forum-posts-info,
    .forum-replies-info,
    .forum-views-info,
    .forum-no-posts {
        padding: 5px;
        text-align: center;
        font-size: 10px;
    }

    .forum-replies,
    .forum-replies-info {
        width: 10%;
    }

    .forum-last-post,
    .forum-last-post-info {
        width: 70%;
    }

    .forum-topics, 
    .forum-topics-info {
        width: 20%;
    }

    .forum-category-info a {
        font-size: 10px;
        text-decoration: none;
    }
    .forum-last-post-info, a {
        font-size: 10px;
        text-decoration: none;
    }

    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-replies,
    .forum-views {
        font-weight: bold;
        background-color: #ddd;
        text-align: left;
        padding: 5px;
        font-size: 10px;
    }

    /* Forum Buttons */
    .forum-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    /* Forum Buttons */
    .topic-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
        width:90%;
    }

    .forum-img {
        height: 100px;
        width: 100px;
    }

    .forum-img-info {

    }

    /* User Profile */

    .button-container {
        position: fixed;
        bottom: 60px; /* You can adjust this value based on your requirements */
        left: 50%;
        transform: translateX(-50%);
    }

    .user-profile {
        display: inline-block;
    }

    /* Last Post Details */
    .last-post-details {
        margin-left: 10px;
        text-align: left;
    }

    .last-post-title {
        font-weight: bold;
    }

    .last-post-info,
    .last-post-time {
        font-size: 12px;
        color: #555;
    }

    /* Responsive Design */
    @media only screen and (max-width: 600px) {
        .forum-container {
            width: 100%;
            padding: 10px;
        }

        .forum-btn {
            width: 100%;
        }
    }

    .locked-placeholder {
        border: 2px dashed gray;
        background-color: lightgray;
        color: darkgray;
        text-align: center;
        padding: 10px;
        margin: 20px;
        position: fixed;
        bottom: 60px; /* Adjust this value if needed */
        width: 100%;
        left: 0;
        right: 0;
        z-index: 10;
    }

/////////////////////////////
/**** ADMIN USER TABLE ****/
///////////////////////////

    .adminUserTable {
        width: 360px;
        max-width: 412px;
        table-layout: fixed;
        font-size: 12px;
    }

    .adminTable th,
    .adminTable td {
        width: 20%;
    }

    .adminTable button {
        font-size: 8px;
    }


    .adminDashboard {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    }

    .adminDashboard a {
        font-weight: bold;
        color: #333;
        text-decoration: none;
    }

    .adminDashboard a:hover {
        text-decoration: underline;
    }

    .admin-last-post-title {
        font-size: 1.2em;
        margin-top: 5px;
    }

    .admin-last-post-info {
        font-size: 0.9em;
        color: #666;
    }

    .admin-last-post-time {
        font-style: italic;
}


//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 412px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }


    .translation {
            cursor: pointer;
            border-bottom: 1px dotted #000;
        }
    .tooltip {
        position: absolute;
        background: #fff;
        border: 1px solid #ccc;
        padding: 5px;
        z-index: 1000;
    }


}

























/* IPAD 10th Gen - Portrait Mode */
@media only screen and (min-width: 810px) {



/***********************/
/*** BOTTOM NAV BAR ***/
/*********************/
    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding-bottom: 2px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      overflow-x: auto;
      float: right;
    }
    .nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #FFF;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FFF;
    }

/*****************************/
/*** BOTTOM CHARACTER BAR ***/
/***************************/
    .nav-character {
      position: fixed;
      bottom: 55px;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #C0C0C0;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #444444;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FF8633;
    }


/*****************************/
/***** BOTTOM CHAT BAR ******/
/***************************/
    .nav-chat {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: 40px;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #C0C0C0;
    }

    .nav-forum {
        position: fixed;
        bottom: 55px;
        width: 100%; /* Adjust as needed */
        height: 120px; /* Adjust as needed */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    }
    .nav-action-buttons {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: auto; /* Let height expand with button size */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        justify-content: center; /* ✅ This centers children horizontally */
        align-items: center;     /* Optional: centers vertically if needed */
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px; /* Optional spacing */
    }



/*****************************/
/******** TOP NAV BAR *******/
/***************************/
    .navbar {
      float: right;
      vertical-align: text-top;
      overflow: hidden;
      background-color: #000;
      position: fixed;
      top: 0;
      width: 100%;
      height: 40px;
      z-index: 200;
    }

    .navbar a {
      float: left;
      display: block;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
    }

    .navbar a:hover {
      background: #ddd;
      color: black;
    }

/* NAV BAR FORUM */
    .top-navbar-forum {
        vertical-align: baseline;
        overflow: hidden;
        background-color: #fff;
        position: fixed;
        top: 40;
        padding-right: 0px;
        width: 100vw;
        height: 100px;
        border:1px solid black;
         z-index: 1;
    }
    .top-navbar-forum table {
        border: 0px;
        width: 100%;
        height: 80px;
    }

    .top-navbar-forum a {
        color: #000;
        text-align: center;
        padding: 12px 8px;
        text-decoration: none;
        font-size: 17px;
    }

    .top-navbar-forum a:hover {
        background: #ddd;
        color: black;
    }

    .top-navbar-forum img {
        height: 50px;
        width: 50px;
    }




/*********************/
/** ACTION BUTTONS **/
/*******************/

.action-menu-container {
    margin: 30px auto;
    padding: 20px;
    width: 300px;
    border: 2px solid #444;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
}
.action-menu-container h2 {
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #333;
}
.action-button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-button:hover {
    background-color: #357ab8;
}
.action-close-button {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: red;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-close-button:hover {
    background-color: #357ab8;
}




/*****************/
/** LOGIN FORM **/
/***************/

    .content-container {
        margin: 0 auto;
    }
    .login {
        margin-top: 0px;
        overflow: hidden;
        background-color: #F6F7FC;
    }

    .login-form {
        overflow: hidden;
        width: 100vw;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        z-index: 50;
    }

    .login-form label {
        color: #000;
        font-size: 16px;
        display: block;
        text-align: left;
    }

    .login-form input[type="text"], .login-form input[type="password"] {
        text-align: left;
        padding: 10px 20px;
        margin: 8px 0;
        border: 0px;
        border-radius: 5px;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .login-form input[type="submit"] {
        background-color: black;
        color: white;
        border-radius: 5px;
        padding: 10px;
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
        z-index: 80;
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 10px 0;
    }

    .remember-forgot label {
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .remember-forgot a {
        text-decoration: none;
        color: #B4886B;
        font-size: 14px;
        align-self: center;
    }






    /* MATERIAL-ICONS SETTINGS */
    .material-icons.black { color: #000000; }


    .user-info {
        margin-top: 10px; /* Adjust the margin as needed */
    }


    .forumPostTable {
        width: 100%;
        height: 100px;
        border: 0px solid black;
    }
    .forumPostTable td {
        vertical-align: top;
    }



    /* Style the header */
    .header {   
        position: sticky;   
        top: 0; 
        background: #555;   
        color: #f1f1f1; 
        width: 100%;    
        z-index: 99;
    }


    button {  
        border: none;
        outline: 0;
        display: inline-block;
        padding: 8px;
        color: white;
        background-color: #000;
        text-align: center;
        cursor: pointer;
        width: 100%;
        font-size: 18px;
    }

    a {
        text-decoration: none;
        font-size: 22px;
        color: black;
    }

    button:hover, a:hover {
        opacity: 0.7;
    }

    .button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 140px;  
        height: 40px;
    }

    .campaign_button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 40px;  
        height: 20px;
    }
    .relog-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 20px;  
        width: 100px;  
        height: 25px;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 20px;  
        height: 32px;
    }

    /* Create two equal columns that floats next to each other */
    .column {
        float: left;
        width: 100%;
        padding: 10px;
        height: 150px; /* Should be removed. Only for demonstration */
        padding: 1px;
    }

    .column table {
        border: 1px solid #c0c0c0;
        width: 90%;
        border-radius: 5px;
    }
    .column td {
        border: 0px;
        height: 100px;
    }

    /* Clear floats after the columns */
    .row:after {
        content: "";
        display: table;
        clear: both;
    }

    /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
    @media screen and (max-width: 600px) {
        .column {
            width: 100%;
        }
        table {
            border: 1px solid #c0c0c0;
            width: 90%;
            border-radius: 5px;
        }
        td {
            border: 0px;
            height: 20px;
        }
    }



    /* MATERIAL-ICONS SETTINGS */
    .material-icons.orange600 { color: #FB8C00; }
    .material-icons.green { color: green; }
    .material-icons.grey { color: #c0c0c0; }
    .material-icons.lightred { color: #FFCCCB; }
    .material-icons.darkred { color: #8B0000; }
    .material-icons.blue { color: #2B65EC; }
    .material-icons.white { color: #FFFFFF; }



    /* FORUM PAGE LAYOUT */
    .forum-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 60px;
      margin-bottom: 40px;
    }

    /* MAIN PAGE LAYOUT BORDER */
    .main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 80px;
      margin-bottom: 20px;
    }
    .main table {
        border-collapse: collapse;
        width: 95%;
    }
    .main td {
        border: 0px solid #000;
    }

    .character-sheet-main {
      padding: 0px;
      margin-left:0px;
      margin-right:0px;
      margin-top: 41px;
      margin-bottom: 111px;
    }






    /* The container must be positioned relative: */
    .custom-select {
      position: relative;
      width: 200px;
      
    }

    .custom-select select {
      display: none; /*hide original SELECT element: */
    }

    /* Style the arrow inside the select element: */
    .select-selected:after {
      position: absolute;
      content: "";
      top: 14px;
      right: 10px;
      width: 0;
      height: 0;
      border: 6px solid transparent;
      border-color: #fff transparent transparent transparent;
    }

    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent #fff transparent;
      top: 7px;
    }

    /* style the items (options), including the selected item: */
    .select-items div,.select-selected {
      color: #000;
      padding: 2px 4px;
      border: 1px solid transparent;
      border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
      cursor: pointer;
    }

    /* Style items (options): */
    .select-items {
      position: absolute;
      background-color: #4CAF50;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 99;
    }

    /* Hide the items when the select box is closed: */
    .select-hide {
      display: none;
    }

    .select-items div:hover, .same-as-selected {
      background-color: rgba(0, 0, 0, 0.1);
    }





/*****************************/
/******* SIDE NAV BAR *******/
/***************************/


    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 40px;
        left: 0;
        background-color: black;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 40px;
        z-index: 2;
    }

    .sidenav a {
        padding: 8px 8px 8px 8px;
        text-decoration: none;
        font-size: 16px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
    .sidenav table {
        border:0 solid black;
    }

    .sidenav tr td {
      
    }







/*****************************/
/** ACCOUNT CAMPAIGNS PAGE **/
/***************************/

    .campaignsTable {
        border: 1px solid black;
        width: 80%;
    }

    .campaignCharacters {
        font-size: 12px;
    }

    .campaigns img {
        height: 75px;
        width: 75px;
    }

    .campaigns .td1 {
        text-align: center;
        width: 20%;
    }

    .campaigns .td2 {
        text-align: left;
        width: 40%;
    }
    .campaigns .td3 {
        text-align: center;
        width: 40%;
    }

    .campaigns .title {
        font-size: 12px;
    }

    .campaigns .description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .campaigns .players {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }






/*****************************/
/**** Character Edit Page ***/
/***************************/
    .character-edit-form-header {
        display: flex; /* Enables flexbox layout */
        justify-content: space-between; /* Distributes space between items */
        align-items: center; /* Vertically centers items */
        margin-left: 5px;
        margin-right: 5px;
        padding-top: 10px;
        width: 95%;
        border: 0px solid #ccc; /* Optional: for better visualization */
    }
    .character-edit-form-header img {
        height: 100px;
        width: 100px;
    }
    .character-edit-form-header .character-info {
        flex: 1; /* Allows this div to take up remaining space */
        padding-left: 10px; /* Adds space between the image and the text */
    }
    .character-edit-form-header .character-info input {
        border: 1px solid #c0c0c0;
        border-radius: 5px;
        border-color: gray;
        width: 100%; /* Ensures the input field takes up the full width */
        height:40px;
        padding: 5px; /* Adds padding inside the input field */
        font-size: 20px;
    }
    .character-edit-form-header .character-name {
        font-weight: 700;
        padding-bottom: 5px; /* Adds padding inside the input field */
    }
    .content {
        margin: 20px;
        font-family: Arial, sans-serif;
    }
    .content-img {
        float: right;
        font-size: 20px;
    }
    .content-img a {
        font-size: 16px;
        color: blue;
    }
    .content-img img {
        float: right; /* Positions the image to the right */
        margin: 0 0 10px 10px; /* Adds some margin to the image */
        width: 100px; /* Set the width of the image */
        height: 100px; /* Maintain the aspect ratio of the image */
    }
    .content-traits {
        font-size: 12px;
    }
    .content-details a {
        font-size: 16px;
        color: blue;
        padding-left: 20px;
    }
    .collapsible {
        background-color: #f1f1f1;
        color: #444;
        cursor: pointer;
        padding: 10px;
        width: 100%;
        border: 1px solid black;
        text-align: left;
        outline: none;
        font-size: 20px;
        height: 50px;
    }
    .collapsible.active {
        background-color: #C0C0C0;
    }

    .collapsible:after {
        content: '\002B'; /* Unicode character for "plus" sign (+) */
        font-size: 18px;
        float: right;
        margin-left: 5px;
        
    }

    .collapsible.active:after {
        content: "\2212"; /* Unicode character for "minus" sign (−) */
        background-color: #C0C0C0;
    }

    .content-divs {
        padding: 0 10px;
        display: none;
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs {
        padding: 0 10px;
        display: block; /* Changed from none to block */
        overflow: hidden;
        background-color: #f9f9f9;
    }
    .racial-divs-content {
        display: none; /* Hide content initially */
    }



/*************************/
/**** WEBSITE BUTTONS ***/
/***********************/

    .button-3 {
        appearance: none;
        background-color: #2ea44f;
        border: 1px solid rgba(27, 31, 35, .15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        padding: 6px 16px;
        position: relative;
        text-align: center;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
    }

    .button-3:focus:not(:focus-visible):not(.focus-visible) {
        box-shadow: none;
        outline: none;
    }

    .button-3:hover {
        background-color: #2c974b;
    }

    .button-3:focus {
        box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
        outline: none;
    }

    .button-3:disabled {
        background-color: #94d3a2;
        border-color: rgba(27, 31, 35, .1);
        color: rgba(255, 255, 255, .8);
        cursor: default;
    }

    .button-3:active {
        background-color: #298e46;
        box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
    }


    .button-4 {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
    }

    .button-4:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .button-4:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .button-4:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .button-4:focus {
        outline: 1px transparent;
    }

    .button-4:before {
        display: none;
    }

    .button-4:-webkit-details-marker {
        display: none;
    }

    .forum-send-button {
        appearance: none;
        background-color: #4CAF50;/* Green */
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 5px;
    }

    .forum-send-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-send-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-send-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-send-button:focus {
        outline: 1px transparent;
    }

    .forum-send-button:before {
        display: none;
    }

    .forum-send-button:-webkit-details-marker {
        display: none;
    }

    .forum-actions-button {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 10px;
    }

    .forum-actions-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-actions-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-actions-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-actions-button:focus {
        outline: 1px transparent;
    }

    .forum-actions-button:before {
        display: none;
    }

    .forum-actions-button:-webkit-details-marker {
        display: none;
    }




    .admin-button {
        appearance: none;
        background-color: #000;
        border: 2px solid #4CAF50;
        border-radius: 1px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: white;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        text-align: center;
    }

    .admin-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .admin-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .admin-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .admin-button:focus {
        outline: 1px transparent;
    }

    .admin-button:before {
        display: none;
    }

    .admin-button:-webkit-details-marker {
        display: none;
    }




    .forum-button-edit {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 1px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-right: 4px;
        padding-top: 0px;
        padding-bottom: 0px;

    }

    .forum-button-edit:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-button-edit:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-button-edit:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-button-edit:focus {
        outline: 1px transparent;
    }

    .forum-button-edit:before {
        display: none;
    }

    .forum-button-edit:-webkit-details-marker {
        display: none;
    }


/*********************/
/** CHARACTER SHEET **/
/*********************/

    * { box-sizing: border-box; }

    .xp-container {
        width: 360px;
        background-color: #ddd;
        padding-top: 0px;
        vertical-align: top;
        text-align: right;
    }

    .xp {
        font-size: 15px;
        text-align: center;
        padding-top: 0px;
        color: black;
    }

    .lvlup {
        animation: pulse 2s infinite;
        font-size: 24px;
        text-align: center;
        padding-top: 6px;
    }
    .lvlup a {
        color: white;
        vertical-align: center;
        font-size: 24px;
        text-align: center;
    }

    @keyframes pulse {
        50%, 50% {
          background-color: #ff0000;
        }
    }

    .css {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
        background-color: #2196F3;
    }

    .css2 {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 50px; /* Adjust the height to make the bar slimmer */
    }
    

    .stats {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);  
        max-width: 100px;
        width: 100px;  
        padding:5px;
        text-align: center;  
        background-color: #FFF;
        height: 100px;
        margin: auto;
        border:2px solid #4CAF50;
        border-radius: 10px;
        vertical-align: center;
    }

    .flex-container {
        display: flex;
        background-color: white;
        margin-top: 2px;
    }

    .flex-container > div {
        background-color: white;
        margin: 5px;
        padding: 5px;
        font-size: 30px;
    }

    .character-table {
        width: 90%;
        border: 0px;
    }

    .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-width: 400px;
        text-align: center;
    }






/*******************/
/** VERSION INFO **/
/*****************/

    .version-container {
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        padding: 10px;
        margin-bottom: 20px;
        width: 95vw;
    }
    .version-container table {
        width: 100%;
        border: 1px solid #ccc;
    }

    .edit-link {
        font-size: 12px;
        text-decoration: none;
        color: #007bff;
        margin-right: 10px;
        text-align: left;
        background-color: #C0C0C0;
        padding: 10px;
    }

    .version-date {
        font-size: 12px;
        font-weight: bold;
        text-align: right;
        background-color: #C0C0C0;
        padding: 10px;

    }

    .version-description {
        font-size: 12px;
        margin: 5px 0;
        text-align: left;
    }
    .dashboard-version {
        font-size: 12px;
        background-color: gray;
        color: white;
        padding-top:5;
        
    }







    .ChararcterEditForm {
        font-size: 8px;
    }




/*****************************/
/**** CHARACTER CONTAINER ***/
/***************************/

    .characters-background {
        background-color: white;
    }

    .character-container {
        background-color: white;
        display: inline-block;
        margin: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .character-image {
        width: 200px;
        height: 200px;
    }

    .character-info {
        margin: 0;
        font-size: 12px;
    }

    .characters {

    }

    .characters img {
        height: 75px;
        width: 75px;
    }

    .characters .td1 {
        text-align: center;
        width: 20%;
    }

    .characters .td2 {
        text-align: left;
        width: 40%;
    }
    .characters .td3 {
        text-align: center;
        width: 40%;
    }

    .characters-title {
        font-size: 12px;
    }

    .characters-description {
        font-size: 10px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .characters .link {
        text-decoration: none;
        font-size: 16px;
    }





    /*********************/
    /** BOOTSTRAP ITEMS **/
    /*********************/
    .col-md-8
    {
        position:relative;
        min-height:1px;
        padding-right:15px;
        padding-left:15px;
    }

    .clearfix:after,.clearfix:before {
        display:table;
        content:" "
    }

    .clearfix:after
    {
        clear:both;
    }

    .pull-right {
        float:right!important
    }

    .pull-left {
        float:left!important
    }
    .text-muted {
        color:#777
    }

    .input-group {
        display:inline-table;
        vertical-align:middle;
        width:auto
    }

    .btn {
        display:inline-block;
        padding:6px 12px;
        margin-bottom:0;
        font-size:14px;
        font-weight:400;
        line-height:1.42857143;
        text-align:center;
        white-space:nowrap;
        vertical-align:middle;
        -ms-touch-action:manipulation;
        touch-action:manipulation;
        cursor:pointer;
        -webkit-user-select:none;
        -moz-user-select:none;
        -ms-user-select:none;
        user-select:none;
        background-image:none;
        border:1px solid transparent;
        border-radius:4px
    }

    .btn-success {
        color:#fff;
        background-color:#5cb85c;
        border-color:#4cae4c
    }

    .form-control {
        display:block;
        width:100%;
        height:34px;
        padding:6px 12px;
        font-size:14px;
        line-height:1.42857143;
        color:#555;
        background-color:#fff;
        background-image:none;
        border:1px solid #ccc;
        border-radius:4px;
        -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
        -webkit-transition:border-color ease-in-out .15s,
        -webkit-box-shadow ease-in-out .15s;
        -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s
    }

    .input-group-btn {
        width:auto
    }

    .input-group-btn {
        display:table-cell
    }
    .input-group-btn:not(:first-child):not(:last-child){ 
        border-radius:0
    }








    /*********************/
    /** CHAT ROOM **/
    /*********************/

    .input-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 430px; /* Optional: Adjust max-width to your preference */
    }

    .input-container .chat-input-box {
        width: 400px;
        padding: 12px 20px;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }

    #messageInput {
        width: 80%;
        height: 40px;
        padding: 2px;
        font-size: 16px;
    }

    .chat-button {
        width: 20%;
        height: 40px; /* Match input height */
        font-size: 16px; /* Optional: Adjust font size */
    }

    .left-align {
        text-align: left;
    }

    .right-align {
        text-align: right;
    }

    .chatMessage {
        
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 56px); /* Adjusted height to accommodate footer */
        margin-bottom: 56px; /* Added margin to prevent overlap with footer */
    }

    .chat-box {
        flex: 1; /* Grow to fill remaining space */
        overflow-y: auto; /* Enable vertical scrolling */
        min-height: 50px; /* Adjust as needed to ensure visibility */
    }

    .chatDelete {
        border: none;
        outline: 0;
        padding: 0px;
        color: white;
        background-color: darkred;
        text-align: center;
        cursor: pointer;
        width: 20px;
        height: 20px;
        font-size: 10px;
        border-radius: 5px;
    }



    /*********************/
    /** FORUM PAGES **/
    /*********************/

    .forum-pages {
        margin-bottom: 2px;
        overflow: hidden;
        text-align: right;
        border: 0px;
    }

    .forum-pages table {
        width: 100%;
        border: 0px;

    }

    .forum-pages td {
        padding: 20px;
        vertical-align: middle;
    }

    .forum-pages a {
        text-decoration: none;
        color: #333;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 30px;  
        height: 32px;
    }


    /*********************/
    /** FORUM **/
    /*********************/

    .main-forum-table {
        margin-bottom: 2px;
        border: 0px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
        width: 100vw;
    }

    .main-forum-table table {
        width: 100vw;
    }

    .main-forum-table td {
        padding: 10px;
        vertical-align: middle;
    }

    .main-forum-table a {
        text-decoration: none;
        color: #333;
    }

    .forum-table-posts {
        border:1px solid black;
        width: 300px;
    }

    /* Character Image */
    .forum-table-posts-td1 {
        padding:5px;
        background-color:#000;
        width:10%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
    }

    /* Character Name */
    .forum-table-posts-td2 {
        padding:5px;
        background-color:#000;
        text-align:left;
        color:#FFF;
        width:30%;
        vertical-align:center;
        font-size: 12px;
    }

    /* Post Time */
    .forum-table-posts-td3 {
        padding:5px;
        padding-left:10px;
        background-color:#000;
        width:30%;
        text-align:left;
        vertical-align:center;
        color:#FFF;
        font-size: 12px;
    }

    /* Edit + Delete Buttons */
    .forum-table-posts-td4 {
        background-color:#000;
        text-align:right;
        color:#FFF;
        width:30%;
        vertical-align: middle;
        font-size: 12px;
    }

    .forum-table-posts-message {
        padding-left:10px;
        padding-right:10px;
        padding-top:10px;
        padding-bottom:10px;
        background-color: #fff;
        width: 80%;
        vertical-align: center;
    }


    /* Forum Container */
    .forum-container {
        width: 90%;
        top: 0px;
        max-width: 820px;
        margin: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Forum Tables */
    .forum-table,
    .campaign-table {
        width: 100%;
        margin-top: 20px;
        border-collapse: collapse;
        border: 0px, solid #ccc;
    }

    .forum-table-inner,
    .campaign-table-inner {
        width: 90%;
    }

    /* Forum Rows */
    .forum-row {
        border-bottom: 1px solid #ddd;
        background-color: #f9f9f9;
    }

    /* Forum Cells */
    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-category-info,
    .forum-last-post-info,
    .forum-topics-info,
    .forum-posts-info,
    .forum-replies-info,
    .forum-views-info,
    .forum-no-posts {
        padding: 5px;
        text-align: center;
        font-size: 10px;
    }

    .forum-replies,
    .forum-replies-info {
        width: 10%;
    }

    .forum-last-post,
    .forum-last-post-info {
        width: 70%;
    }

    .forum-topics, 
    .forum-topics-info {
        width: 20%;
    }

    .forum-category-info a {
        font-size: 10px;
        text-decoration: none;
    }
    .forum-last-post-info, a {
        font-size: 10px;
        text-decoration: none;
    }

    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-replies,
    .forum-views {
        font-weight: bold;
        background-color: #ddd;
        text-align: left;
        padding: 5px;
        font-size: 10px;
    }

    /* Forum Buttons */
    .forum-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    /* Forum Buttons */
    .topic-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
        width:90%;
    }

    .forum-img {
        height: 25px;
        width: 25px;
    }

    .forum-img-info {

    }

    /* User Profile */

    .button-container {
        position: fixed;
        bottom: 60px; /* You can adjust this value based on your requirements */
        left: 50%;
        transform: translateX(-50%);
    }

    .user-profile {
        display: inline-block;
    }

    /* Last Post Details */
    .last-post-details {
        margin-left: 10px;
        text-align: left;
    }

    .last-post-title {
        font-weight: bold;
    }

    .last-post-info,
    .last-post-time {
        font-size: 12px;
        color: #555;
    }

    /* Responsive Design */
    @media only screen and (max-width: 600px) {
        .forum-container {
            width: 100%;
            padding: 10px;
        }

        .forum-btn {
            width: 100%;
        }
    }

    .locked-placeholder {
        border: 2px dashed gray;
        background-color: lightgray;
        color: darkgray;
        text-align: center;
        padding: 10px;
        margin: 20px;
        position: fixed;
        bottom: 60px; /* Adjust this value if needed */
        width: 100%;
        left: 0;
        right: 0;
        z-index: 10;
    }

/////////////////////////////
/**** ADMIN USER TABLE ****/
///////////////////////////

    .adminUserTable {
        width: 360px;
        max-width: 412px;
        table-layout: fixed;
        font-size: 12px;
    }

    .adminTable th,
    .adminTable td {
        width: 20%;
    }

    .adminTable button {
        font-size: 8px;
    }


    .adminDashboard {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    }

    .adminDashboard a {
        font-weight: bold;
        color: #333;
        text-decoration: none;
    }

    .adminDashboard a:hover {
        text-decoration: underline;
    }

    .admin-last-post-title {
        font-size: 1.2em;
        margin-top: 5px;
    }

    .admin-last-post-info {
        font-size: 0.9em;
        color: #666;
    }

    .admin-last-post-time {
        font-style: italic;
}


//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 412px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }


    .translation {
            cursor: pointer;
            border-bottom: 1px dotted #000;
        }
    .tooltip {
        position: absolute;
        background: #fff;
        border: 1px solid #ccc;
        padding: 5px;
        z-index: 1000;
    }


}




















@media only screen and (max-width: 1280px) and (min-width: 413px){
 /* CSS that should be displayed if width is equal to or less than 1280px and larger 
  than 413px goes here */

//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 1280px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }
}































@media only screen and (max-width: 1920px) and (min-width: 1180px){
 /* CSS that should be displayed if width is equal to or less than 1920px and larger 
  than 1281px goes here */


/********************/
/* ADMIN PAGE      */
/******************/

.dashboard-buttons {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.admin-button {
    font-size: 1.1rem;
}

 #weapons-add-form {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#weapons-add-form input,
#weapons-add-form select,
#weapons-add-form textarea {
    width: 100%;
    margin-bottom: 10px;
}

#weapons-add-form button {
    width: 100%;
}

.admin-weapons-add {
    font-size: 18px; /* Bigger text */
    line-height: 1.6;
}

.admin-weapons-add input,
.admin-weapons-add select,
.admin-weapons-add textarea,
.admin-weapons-add button {
    font-size: 18px; /* Bigger text in inputs */
    padding: 12px; /* More clickable space */
}

/* Make boxes and dropdowns wider */
.admin-weapons-add input,
.admin-weapons-add select,
.admin-weapons-add textarea {
    width: 100%;
    box-sizing: border-box;
}


/* Optional: space between fields */
.admin-weapons-add .form-group {
    margin-bottom: 16px;
}


#admin-weapons-add form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* spacing between each row */
    max-width: 500px;
    margin: 0 auto;
}
#admin-weapons-add .toggle-row {
    display: flex;
    align-items: center;
    gap: 20px; /* space between label and toggle */
}

/* Fix label width and right-align text */
#admin-weapons-add .toggle-row label:first-child {
    width: 160px;        /* fixed width for labels */
    text-align: right;   /* align text right inside label */
    font-size: 1.2rem;
    user-select: none;
}

/* Checkbox stays the same size and aligned left */
#admin-weapons-add .toggle-row input[type="checkbox"] {
    flex-shrink: 0;
    transform: scale(1.5);
    cursor: pointer;
}



.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4CAF50;
}
input:checked + .slider:before {
  transform: translateX(24px);
}
/************************************/
/* TOP NAV BAR FOR CHARACTER SHEET */
/**********************************/
.character-sheet-main {
    padding: 0px;
    margin-left:0px;
    margin-right:0px;
    margin-top: 200px;
    margin-bottom: 111px;
}

/***********************/
/*** BOTTOM NAV BAR ***/
/*********************/
    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding-bottom: 2px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      overflow-x: auto;
      float: right;
    }
    .nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #4CAF50;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #FFF;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FFF;
    }

/*****************************/
/*** BOTTOM CHARACTER BAR ***/
/***************************/
    .nav-character {
      position: fixed;
      bottom: 55px;
      width: 100%;
      height: 55px;
      box-shadow: 0 0  3px rgba(0, 0, 0, 0.2);
      background-color: #C0C0C0;
      display: flex;
      overflow-x: auto;
    }
    .nav__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 50px;
      overflow: hidden;
      white-space: nowrap;
      font-family: sans-serif;
      font-size: 10px;
      color: #444444;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.1s ease-in-out;
    }
    .nav__link:hover {
      background-color: #eeeeee;
    }
    .nav__link--active {
      color: #FF8633;
    }


/*****************************/
/***** BOTTOM CHAT BAR ******/
/***************************/
    .nav-chat {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: 40px;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #C0C0C0;
    }
    .nav-action-buttons {
        position: fixed;
        bottom: 55px;
        width: 100%;
        height: auto; /* Let height expand with button size */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        background-color: #000;
        display: flex;
        justify-content: center; /* ✅ This centers children horizontally */
        align-items: center;     /* Optional: centers vertically if needed */
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px; /* Optional spacing */
    }



/*****************************/
/******** TOP NAV BAR *******/
/***************************/
    .navbar {
      float: right;
      vertical-align: text-top;
      overflow: hidden;
      background-color: #000;
      position: fixed;
      top: 0;
      width: 100%;
      height: 55px;
      z-index: 200;
    }

    .navbar a {
      float: left;
      display: block;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
    }

    .navbar a:hover {
      background: #ddd;
      color: black;
    }



/********************/
/** NAV BAR FORUM **/
/******************/
.nav-forum {
  position: fixed;
  bottom: 55px;
  width: 100%;
  height: 55px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  background-color: #000;
  display: flex;
  overflow-x: auto;
}

.nav_forum_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-width: 50px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 10px;
  color: #FFF;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.1s ease-in-out;
}

.nav_forum_button:hover {
  background-color: #eeeeee;
  color: #000;
}

.top-navbar-forum {
    vertical-align: baseline;
    overflow: hidden;
    background-color: #fff;
    position: fixed;
    top: 56;
    padding-right: 10px;
    width: 100%;
    height: 120px;
    border:1px solid black;
    z-index: 1;
}
.top-navbar-forum table {
    border: 0px;
    width: 100%;
    height: 80px;
}

.top-navbar-forum a {
    color: #000;
    text-align: center;
    padding: 12px 8px;
    text-decoration: none;
    font-size: 17px;
}

.top-navbar-forum a:hover {
    background: #ddd;
    color: black;
}
.top-navbar-forum img {
    height: 75px;
    width: 75px;
}


/* FORUM MESSAGE BOX */
.message-box {
    float: none;
    width: auto;
    display: block;
}

.forum-textarea {
    height:250px;
    width:100%;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}


.bbcode-whisper {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    font-style: italic;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-whisper::before {
    content: "Whisper: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.bbcode-whisper::after {
    content: "DC 15 Perception check to hear";
    font-size: 0.75em;
    color: #444;
    display: block;
    margin-top: 12px;
    font-style: normal;
    background-color: #d9e6f2; /* soft light blue background */
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #a8bddc; /* subtle border for separation */
    max-width: fit-content;
}

.bbcode-loot {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    font-style: italic;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-loot::before {
    content: "Loot: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}


.bbcode-note {
    background-color: #f0f0f0;
    border-left: 3px solid #aaa;
    padding: 12px 16px;
    color: #555;
    display: inline-block;
    margin: 8px 0;
    position: relative;
}

.bbcode-note::before {
    content: "Notes: ";
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Base list styling inside any bbcode block */
[class^="bbcode-"] ul,
[class*=" bbcode-"] ul {
    margin: 8px 0 8px 20px;
    padding-left: 20px;   /* let bullets show */
    list-style-type: disc; /* normal filled bullets */
}

/* Nested lists: normal indentation */
[class^="bbcode-"] ul ul,
[class*=" bbcode-"] ul ul {
    margin: 6px 0 6px 20px;
    list-style-type: circle; /* slightly different bullet for nesting */
}

/* Each list item */
[class^="bbcode-"] li,
[class*=" bbcode-"] li {
    margin: 4px 0;
    line-height: 1.5;
    color: #444;
}



.forum-half-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Adjust for header.php height */
    overflow: hidden;
}

.forum-top-half,
.forum-bottom-half {
    flex: 1;
    padding: 10px;
    background-color: #fff;
}

.forum-top-half {
    border-bottom: 1px solid #444;
    overflow-y: auto;
}

.forum-bottom-half {
    flex: 1; /* Takes 2x the space of top */
    padding: 10px;
    background-color: #fff;
    overflow-y: hidden;
}

.forum-main {
    padding: 0;
    margin: 0;
    margin-top: 40px; /* Push below header if not already handled */
}





/**********************/
/** ENCOUNTERS PAGE **/
/********************/

    .enc-container {
        max-width: 1000px;
        margin: 30px auto;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 10px;
    }

    .enc-table {
        width: 100%;
        border-collapse: collapse;
        background-color: white;
        font-family: Arial, sans-serif;
    }

    .enc-table thead th {
        text-align: left;
        padding: 12px 20px;
        background-color: #eee;
        font-weight: bold;
        border-bottom: 2px solid #ccc;
    }

    .enc-table tbody td {
        padding: 12px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Optional: add spacing between each row */
    .enc-table tbody tr:last-child td {
        border-bottom: none;
    }

    .enc-table tbody tr:hover {
        background-color: #f5f5f5;
    }

    .enc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .enc-header h1 {
        margin: 0;
        font-size: 2em;
    }

    .enc-button {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: bold;
        transition: background-color 0.2s ease;
    }

    .enc-button:hover {";

        background-color: #0056b3;
    }

    /* Tabs wrapper */
.enc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Tab buttons */
.enc-tab-button {
    padding: 10px 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Active tab */
.enc-tab-button.active {
    background-color: white;
    border-bottom: 1px solid white;
}

/* Tab content box */
.enc-tab-content {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    background: white;
}

/* Active tab content */
.enc-tab-content.active {
    display: block;
}




/*********************/
/** ACTION BUTTONS **/
/*******************/

.action-menu-container {
    margin: 30px auto;
    padding: 20px;
    width: 300px;
    border: 2px solid #444;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
}
.action-menu-container h2 {
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #333;
}
.action-button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-button:hover {
    background-color: #357ab8;
}
.action-close-button {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: red;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}
.action-close-button:hover {
    background-color: #357ab8;
}




/*****************/
/** LOGIN FORM **/
/***************/
    .login-container {
        display: flex;
        height: 100vh;
        width: 100%;
    }

    .left-half, .right-half {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .left-half {
        background: #F6F7FC;
    }

    .right-half {
        background-image: url("../img/login-right.png");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .login-form {
        width: 500px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    .login-form label {
        color: #000;
        font-size: 16px;
        display: block;
        text-align: left;
    }

    .login-form input[type="text"], .login-form input[type="password"] {
        text-align: left;
        padding: 10px 20px;
        margin: 8px 0;
        border: 0px;
        border-radius: 5px;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
    }

    .login-form input[type="submit"] {
        background-color: black;
        color: white;
        border-radius: 5px;
        padding: 10px;
        width: 100%;
        font-size: 18px; /* Adjust font size as needed */
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 10px 0;
    }

    .remember-forgot label {
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .remember-forgot a {
        text-decoration: none;
        color: #B4886B;
        font-size: 14px;
        align-self: center;
    }

    .user-info {
        margin-top: 5px; /* Adjust the margin as needed */
    }

    .forumPostTable {
        width: 100%;
        height: 100px;
        border: 0px solid black;
    }
    .forumPostTable td {
        vertical-align: top;
    }

    .forumPostTable tr {
        border: 0px solid #000;
    }

    #forumPost {
        width: 1000px;
        height: 220px;
        font-size: 20px;
        border-radius: 5px;
        white-space: pre-wrap;
        word-wrap: break-word;
        text-align: left; /* Add this line */
    }

    .buttonTable {
        margin-left: 20px; /* Add some space for the buttons */
        width: auto;
        height: 40px; /* Set the button container height */
    }

    .buttonTable td {
        border: none;
        padding: 0;
        text-align: center;
        vertical-align: top;
        width: calc(16.6% - 5px); /* Distribute the buttons evenly with some space in between */
    }

    .forum-send-button {
        appearance: none;
        background-color: #000;/* Green */
        border: 1px solid rgba(27, 31, 35, 0.15);
        
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #FFF;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 5px;
    }

    .forum-send-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-send-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-send-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-send-button:focus {
        outline: 1px transparent;
    }

    .forum-send-button:before {
        display: none;
    }

    .forum-send-button:-webkit-details-marker {
        display: none;
    }

    .forum-actions-button {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 10px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-top: 10px;
    }

    .forum-actions-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-actions-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-actions-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-actions-button:focus {
        outline: 1px transparent;
    }

    .forum-actions-button:before {
        display: none;
    }

    .forum-actions-button:-webkit-details-marker {
        display: none;
    }








    .loginform {
        margin-top: 20px;
    }
    .loginform label {
        color: #B4886B;
        font-size: 60;
        display: block;
    }

    /* Style the header */
    .header {   
    position: sticky;   
    top: 0; 
    background: #555;   
    color: #f1f1f1; 
    width: 100%;    
    z-index: 99;
    }



    button {  
        border: none;
        outline: 0;
        display: inline-block;
        padding: 8px;
        color: white;
        background-color: #000;
        text-align: center;
        cursor: pointer;
        width: 100%;
        font-size: 18px;
    }

    button:hover, a:hover {
        opacity: 0.7;
    }

    .button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 16px;  
        width: 140px;  
        height: 40px;
    }
    .relog-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 20px;  
        width: 100px;  
        height: 25px;
    }

    /* Create two equal columns that floats next to each other */
    .column {
      float: left;
      width: 100%;
      padding: 10px;
      height: 150px; /* Should be removed. Only for demonstration */
      padding: 1px;
    }

    .column table {
        border: 1px solid #c0c0c0;
        width: 90%;
        border-radius: 5px;
    }
    .column td {
        border: 0px;
        height: 100px;
    }

    /* Clear floats after the columns */
    .row:after {
      content: "";
      display: table;
      clear: both;
    }

    /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
    @media screen and (max-width: 600px) {
        .column {
            width: 100%;
        }
        table {
            border: 1px solid #c0c0c0;
            width: 90%;
            border-radius: 5px;
        }
        td {
            border: 0px;
            height: 20px;
        }
    }



    /* MATERIAL-ICONS SETTINGS */
    .material-icons.orange600 { color: #FB8C00; }
    .material-icons.green { color: green; }
    .material-icons.grey { color: #c0c0c0; }
    .material-icons.lightred { color: #FFCCCB; }
    .material-icons.darkred { color: #8B0000; }
    .material-icons.blue { color: #2B65EC; }
    .material-icons.white { color: #FFFFFF; }


    /* MAIN PAGE LAYOUT BORDER */
    .main {
      padding: 0px;
      margin-left:5px;
      margin-right:5px;
      margin-top: 80px;
      margin-bottom: 20px;
    }


    /* The container must be positioned relative: */
    .custom-select {
      position: relative;
      width: 200px;
      
    }

    .custom-select select {
      display: none; /*hide original SELECT element: */
    }

    /* Style the arrow inside the select element: */
    .select-selected:after {
      position: absolute;
      content: "";
      top: 14px;
      right: 10px;
      width: 0;
      height: 0;
      border: 6px solid transparent;
      border-color: #fff transparent transparent transparent;
    }

    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent #fff transparent;
      top: 7px;
    }

    /* style the items (options), including the selected item: */
    .select-items div,.select-selected {
      color: #000;
      padding: 2px 4px;
      border: 1px solid transparent;
      border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
      cursor: pointer;
    }

    /* Style items (options): */
    .select-items {
      position: absolute;
      background-color: #4CAF50;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 99;
    }

    /* Hide the items when the select box is closed: */
    .select-hide {
      display: none;
    }

    .select-items div:hover, .same-as-selected {
      background-color: rgba(0, 0, 0, 0.1);
    }



/*****************************/
/** ACCOUNT CAMPAIGNS PAGE **/
/***************************/

    .campaignsTable {
        border: 1px solid black;
        width: 80%;
    }

    .campaignCharacters {
        font-size: 12px;
    }

    .campaigns img {
        height: 100px;
        width: 100px;
    }

    .campaigns .button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 14px;  
        width: 100px;  
        height: 25px;
    }

    .campaigns .td1 {
        text-align: center;
        width: 20%;
    }

    .campaigns .td2 {
        text-align: left;
        width: 40%;
    }
    .campaigns .td3 {
        text-align: center;
        width: 40%;
    }




    /*********************/
    /** CHARACTER SHEET **/
    /*********************/
    .stats {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);  
        max-width: 100px;
        width: 100px;  
        padding:5px;
        text-align: center;  
        background-color: #FFF;
        height: 100px;
        margin: auto;
        border:2px solid #4CAF50;
        border-radius: 10px;
        vertical-align: center;
    }

    .flex-container {
      display: flex;
      background-color: white;
    }

    .flex-container > div {
      background-color: white;
      margin: 5px;
      padding: 5px;
      font-size: 30px;
    }







/*********************/
/** CHAT ROOM **/
/*********************/

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Set height to viewport height */
}

.chat-box {
    flex: 1; /* Grow to fill remaining space */
    overflow-y: auto; /* Enable vertical scrolling */
}

.chat-input {
    flex-shrink: 0; /* Do not grow or shrink */
}




   /*********************/
    /** FORUM **/
    /*********************/

    .main-forum-table {
        margin-bottom: 2px;
        border: 0px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
        width: 1200px;
    }

    .main-forum-table table {
        width: 1200px;
    }

    .main-forum-table td {
        padding: 10px;
        vertical-align: middle;
    }

    .main-forum-table a {
        text-decoration: none;
        color: #333;
    }

    .forum-table-posts {
        border:1px solid black;
        width: 1200px;
    }


    /* Forum Container */
    .forum-container {
        width: 1200px;
        top: 0px;
        margin: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Forum Tables */
    .forum-table,
    .campaign-table {
        width: 100%;
        margin-top: 20px;
        border-collapse: collapse;
        border: 0px, solid #ccc;
    }

    .forum-table-inner,
    .campaign-table-inner {
        width: 90%;
    }

    /* Forum Rows */
    .forum-row {
        border-bottom: 1px solid #ddd;
        background-color: #f9f9f9;
    }

    /* Forum Cells */
    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-category-info,
    .forum-last-post-info,
    .forum-topics-info,
    .forum-posts-info,
    .forum-replies-info,
    .forum-views-info,
    .forum-no-posts {
        padding: 5px;
        text-align: left;
        font-size: 14px;
    }

    .forum-category,
    .forum-category-info {
        width: 30%;
    }

    .forum-last-post,
    .forum-last-post-info {
        width: 40%;
    }

    .forum-topics,
    .forum-topics-info,
    .forum-posts,
    .forum-posts-info {
        width: 15%;
    }

    .last-post-title {
        font-weight: bold;
        font-size: 14px;
    }

    .forum-category-info a {
        font-size: 18px;
        text-decoration: none;
    }
    .forum-last-post-info, a {
        font-size: 14px;
        text-decoration: none;
    }

    .forum-category,
    .forum-last-post,
    .forum-topics,
    .forum-posts,
    .forum-replies,
    .forum-views {
        font-weight: bold;
        background-color: #ddd;
        text-align: left;
        padding: 5px;
        font-size: 10px;
    }

    /* Forum Buttons */
    .forum-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    /* Forum Buttons */
    .topic-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
        width:90%;
    }

    /* Forum Buttons */
    .topic-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin-top: 20px;
        cursor: pointer;
        border-radius: 5px;
        width:90%;
    }

    .forum-new-buttons {
        text-align: left;
        padding-left: 75px;
    }

    .forum-img {
        height: 200px;
        width: 200px;
    }

    .forum-img-info {
        margin-top: 0;
        padding:5px;
        background-color:#000;
        text-align:left;
        vertical-align: top;
        color:#FFF;
        padding-bottom: 5px;
        width: 15%;
    }

    .forum-edit-delete {
        padding-bottom: 20px;
        margin: 0px;
    }

    .forum-button-edit {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 1px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        margin-right: 4px;

    }

    .forum-button-edit:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .forum-button-edit:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .forum-button-edit:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .forum-button-edit:focus {
        outline: 1px transparent;
    }

    .forum-button-edit:before {
        display: none;
    }

    .forum-button-edit:-webkit-details-marker {
        display: none;
    }

    /*********************/
    /** FORUM PAGES **/
    /*********************/

    .forum-pages {
        margin-bottom: 2px;
        border-radius: 5px;
        overflow: hidden;
        text-align: right;
        width: 1200px;
    }

    .forum-pages table {
        width: 1200px;
        border: 0px solid black;
    }

    .forum-pages td {
        padding: 20px;
        vertical-align: middle;
    }

    .forum-pages a {
        text-decoration: none;
        color: #333;
    }

    .page-button {
        background-color: #4CAF50;/* Green */  
        border:
        none;  
        color: white;  
        padding: 5px 5px;  
        text-align: center;  
        text-decoration: none;  
        display: inline-block;  
        font-size: 10px;  
        width: 30px;  
        height: 32px;
    }





    /* User Profile */

    .button-container {
        position: fixed;
        bottom: 60px; /* You can adjust this value based on your requirements */
        left: 50%;
        transform: translateX(-50%);
    }

    .user-profile {
        display: inline-block;
    }

    /* Last Post Details */
    .last-post-details {
        padding-left: 20px;
        text-align: left;
    }

    .last-post-title {
        font-weight: bold;
    }

    .last-post-info,
    .last-post-time {
        font-size: 14px;
        color: #555;
    }

    /* Responsive Design */
    @media only screen and (max-width: 600px) {
        .forum-container {
            width: 100%;
            padding: 10px;
        }

        .forum-btn {
            width: 100%;
        }
    }






/*******************/
/** VERSION INFO **/
/*****************/

    .version-container {
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        padding: 10px;
        margin-bottom: 20px;
        width: 1200px;
    }
    .version-container table {
        width: 100%;
        border: 1px solid #ccc;
    }

    .edit-link {
        font-size: 12px;
        text-decoration: none;
        color: #007bff;
        margin-right: 10px;
        text-align: left;
        background-color: #C0C0C0;
        padding: 10px;
    }

    .version-date {
        font-size: 14px;
        font-weight: bold;
        text-align: right;
        background-color: #C0C0C0;
        padding: 10px;
    }

    .version-description {
        font-size: 16px;
        margin: 5px 0;
        text-align: left;
    }










    .container {
    text-align: center;
    margin: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .character-container {
        display: inline-block;
        margin: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .character-image {
        width: 200px;
        height: 00px;
    }

    .character-info {
        margin: 0;
    }

    .continue-button {
        background-color: #4CAF50;
        color: #fff;
        border: none;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 14px;
        border-radius: 5px; /* Adjust the border-radius value for slightly rounded corners */
        cursor: pointer;
    }

    /* Style for the delete link */
    .delete-link {
        margin-top: 5px;
        font-size: 4px;
        color: #EE4B2B; /* Red color for the delete link */
    }

    .create-link {
        margin-top: 20px;
    }



/*****************************/
/**** CHARACTER CONTAINER ***/
/***************************/

    .characters-background {
        background-color: white;
    }

    .character-container {
        background-color: white;
        display: inline-block;
        margin: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .character-image {
        width: 200px;
        height: 200px;
    }

    .character-info {
        margin: 0;
        font-size: 12px;
    }

    .characters {
        width: 1200px;
    }

    .characters img {
        height: 200px;
        width: 200px;
    }

    .characters .td1 {
        text-align: center;
        width: 20%;
    }

    .characters .td2 {
        text-align: left;
        width: 40%;
    }
    .characters .td3 {
        text-align: center;
        width: 40%;
    }

    .characters-name {
        font-size: 18px;
    }

    .characters-description {
        font-size: 18px;
        margin-bottom:1px;
        margin-top:1px;
    }

    .characters .link {
        text-decoration: none;
        font-size: 16px;
    }




/*****************************/
/******* SIDE NAV BAR *******/
/***************************/


    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 56px;
        left: 0;
        background-color: #fff;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
    }

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
    .sidenav table {
        border:0 solid black; 
        padding-left:20px;
    }

    .sidenav tr td {
      
    }

    @media screen and (max-height: 450px) {
        .sidenav {padding-top: 15px;}
        .sidenav a {font-size: 18px;}
    }



//////////////////
/**** MODAL ****/
////////////////
    .modal-dialog {
        max-width: 1920px;
        margin: 1.75rem auto;
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }
    .modal-xl {
        max-width: 1140px;
    }




/*************************/
/**** WEBSITE BUTTONS ***/
/***********************/

    .button-3 {
        appearance: none;
        background-color: #2ea44f;
        border: 1px solid rgba(27, 31, 35, .15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        padding: 6px 16px;
        position: relative;
        text-align: center;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
    }

    .button-3:focus:not(:focus-visible):not(.focus-visible) {
        box-shadow: none;
        outline: none;
    }

    .button-3:hover {
        background-color: #2c974b;
    }

    .button-3:focus {
        box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
        outline: none;
    }

    .button-3:disabled {
        background-color: #94d3a2;
        border-color: rgba(27, 31, 35, .1);
        color: rgba(255, 255, 255, .8);
        cursor: default;
    }

    .button-3:active {
        background-color: #298e46;
        box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
    }




    .button-4 {
        appearance: none;
        background-color: #FAFBFC;
        border: 1px solid rgba(27, 31, 35, 0.15);
        border-radius: 6px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: #24292E;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
    }

    .button-4:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .button-4:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .button-4:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .button-4:focus {
        outline: 1px transparent;
    }

    .button-4:before {
        display: none;
    }

    .button-4:-webkit-details-marker {
        display: none;
    }



    .admin-button {
        appearance: none;
        background-color: #000;
        border: 2px solid #4CAF50;
        border-radius: 1px;
        box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
        box-sizing: border-box;
        color: white;
        cursor: pointer;
        display: inline-block;
        font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        list-style: none;
        padding: 6px 16px;
        position: relative;
        transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
        white-space: nowrap;
        word-wrap: break-word;
        text-align: center;
    }

    .admin-button:hover {
        background-color: #F3F4F6;
        text-decoration: none;
        transition-duration: 0.1s;
    }

    .admin-button:disabled {
        background-color: #FAFBFC;
        border-color: rgba(27, 31, 35, 0.15);
        color: #959DA5;
        cursor: default;
    }

    .admin-button:active {
        background-color: #EDEFF2;
        box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
        transition: none 0s;
    }

    .admin-button:focus {
        outline: 1px transparent;
    }

    .admin-button:before {
        display: none;
    }

    .admin-button:-webkit-details-marker {
        display: none;
    }




/*********************/
/** CHARACTER SHEET **/
/*********************/

    * { box-sizing: border-box; }

    .container {
        width: 95%;
        background-color: #ddd;
        padding-top: 0px;
        vertical-align: top;
        text-align: right;
    }

    .xp {
        font-size: 20px;
        text-align: center;
        padding-top: 0px;
        color: black;
    }

    .lvlup {
        animation: pulse 2s infinite;
        vertical-align: top;
        font-size: 10px;
        text-align: center;
        padding-top: 0px;
        color: white;
    }

    @keyframes pulse {
        50%, 50% {
          background-color: #ff0000;
        }
    }

    .css {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 10px; /* Adjust the height to make the bar slimmer */
        background-color: #2196F3;
    }

    .css2 {
        width: <?php echo $xpbarPercentage; ?>%;
        height: 10px; /* Adjust the height to make the bar slimmer */
    }
    .stats {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);  
        max-width: 100px;
        width: 100px;  
        padding:5px;
        text-align: center;  
        background-color: #FFF;
        height: 100px;
        margin: auto;
        border:2px solid #4CAF50;
        border-radius: 10px;
        vertical-align: center;
    }

    .flex-container {
        display: flex;
        background-color: white;
        margin-top: 2px;
    }

    .flex-container > div {
        background-color: white;
        margin: 5px;
        padding: 5px;
        font-size: 30px;
    }

    .translation {
            cursor: pointer;
            border-bottom: 1px dotted #000;
        }
    .tooltip {
        position: absolute;
        background: #fff;
        border: 1px solid #ccc;
        padding: 5px;
        z-index: 1000;
    }


}