html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.mbkey {
  font-family: "Courier New", Courier, monospace;
}

.username {
  font-weight: bold;
}

.phonenumber {
  font-style: italic;  
}

.createdate {
   color: navy;
}

#forumsTable {
  width: 80%;
}

#idtopicstable {
  width: 99%;
}

#idbottom {
  border:1px solid red;
}

.topic-table {
  border-collapse: collapse;
  border-spacing: 0px;
  border: 0px;
}
.topic-table th, .topic-table td {
  border: 0px;
  box-sizing: border-box;
}
.topic-table tr:nth-child(4n) {
    background-color: #f2f2f2;
}
.topic-title {
  cursor: pointer;
  color: #203090;
  padding-left: 6px;
  font-weight: bold;
}
.topic-details1 {
  padding: 0px;
  margin: 0px;
  border: 0px;
}
.topic-details2 {
  padding: 0px;
  margin: 0px;
  border: 0px;
}
.topic-body {
  background-color: #f0f0f0;
  border-radius: 0px 0px 10px 10px;
  padding: 10px;
  margin-top: 0px;
  margin-bottom: 10px;
  border: 1px solid silver;
}
.topic-reply {
  background-color: #e8e8e8;
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid silver;
}

.lr-container {
  display: flex;
  justify-content: space-between; /* Pushes items to far ends */
  align-items: center; /* Vertically centers content */
}
.lr-left, .lr-middle, .lr-right {
  padding: 3px;
  font-weight: bold;
}
.lr-left {
  flex: 1;
  text-align: left;
}
.lr-middle {
  flex: 1;
  text-align: center;
}
.lr-right {
  flex: 1;
  text-align: right;
}
.new-post-icon {
  height: 24px;
  width: auto;
  vertical-align: middle;
  margin-right: 5px;
}

.load-more {
  cursor: pointer;
  color: blue;
  text-align: right;
}
.powered-by {
  font-size: small;
  color: gray
}

.message-container {
  /* Logical wrapper with no visual styling */
  /* This separates the container ID from the styled reply div */
  /* Enables flat DOM rendering while maintaining hierarchy */
}

/* for three column layout */
.three-col-left {
    float: left;
    width: 33.33%;
    text-align: left;
}

.three-col-middle {
    float: left;
    width: 33.33%;
    text-align: center;
}
.three-col-right {
    float: left;
    width: 33.33%;
    text-align: right;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* for the different messsage leves: 1, 2, and 3 */
.message1 {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.message2 {
    background-color: #e0e0f0;
    padding: 10px;
    border-radius: 10px;
    margin-left: 5%;
    margin-bottom: 10px;
}
.loadmore2 {
    padding-right: 3px;
    text-align:right;
    margin-left: 5%;
    margin-bottom: 10px;
    font-size: 90%;
    background-color: #d0d0e0;
    border: 1px solid #b0b0c0;
}
.message3 {
    background-color: #e0f0e0;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10%;
    margin-bottom: 10px;
}
.loadmore3 {
    padding-right: 3px;
    text-align:right;
    margin-left: 10%;
    margin-bottom: 10px;
    background-color: #d0e0d0;
    font-size: 90%;
    border: 1px solid #b0c0b0;
}

/* JavaScript link styling for message links */
.js-link {
    color: #203090;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    /*font-size: 90%;*/
}
.js-link:visited,
.js-link:hover,
.js-link:active {
    color: #818589;
    text-decoration: none;
}

/* ========== Message Editor Styles ========== */

/* Overlay: Gray background with 30% opacity */
.editor-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.3);
    z-index: 1000;
}

/* Modal: 70% width and height, centered */
.editor-modal {
    display: none; /* Hidden by default, will be set to flex when shown */
    position: fixed;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    flex-direction: column;
    padding: 20px;
}

/* Close X button in upper right */
.editor-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}
.editor-close-btn:hover {
    color: #000;
}

/* Editor content area (contentEditable) */
.editor-content {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    background-color: white;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
}
.editor-content:focus {
    border-color: #258cfb;
}

/* Bottom buttons container */
.editor-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

/* Button styling */
.editor-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}
.editor-btn-primary {
    background-color: #258cfb;
    color: white;
}
.editor-btn-primary:hover {
    background-color: #1a6fd1;
}
.editor-btn-secondary {
    background-color: #6c757d;
    color: white;
}
.editor-btn-secondary:hover {
    background-color: #545b62;
}

/* Floating toolbar (appears on selection) */
.editor-toolbar {
    display: none;
    position: fixed;
    background-color: #333;
    border-radius: 4px;
    padding: 5px;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

/* Toolbar buttons */
.toolbar-btn {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
.toolbar-btn:hover {
    background-color: #555;
}

.crest {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

#idloggedinuser {
    text-align: right;
    width: 99%;
    font-style:italic;
    color: #009933;
    font-weight: bold;
} 

#idlogo {
    height: 120px;
}

/* ========== Reaction Strip Styles ========== */
.reaction-strip {
    display: none;
    position: absolute;
    background-color: silver;
    height: 50px;
    border-radius: 25px;
    padding: 5px 15px;
    z-index: 100;
    white-space: nowrap;
}

.reaction-icon {
    height: 40px;
    width: auto;
    margin: 0 5px;
    cursor: pointer;
    vertical-align: middle;
}

.reaction-icon:hover {
    transform: scale(1.2);
    transition: transform 0.1s;
}

.reaction-container {
    position: relative;
    display: inline-block;
}

/* Reaction counts display */
.reaction-counts {
    padding: 5px 0;
    margin-bottom: 5px;
}

.reaction-count-item {
    display: inline-block;
    margin-right: 10px;
}

.reaction-count-icon {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

/* Editor title field (for top-level posts) */
.editor-title-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
    gap: 10px;
}

.editor-title-label {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    margin: 0;
}

.editor-title-input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.editor-title-input:focus {
    border-color: #258cfb;
}

#iddescription {
    padding: 10px;
    color: gray;
    font-size: larger;
    font-style: italic;
} 

#idusericon {
  height: 40px;
}

.icon-delete {
  height: 20px;
  vertical-align: top; 
  cursor: pointer; 
  margin-right: 8px;
}