/* ==================== BASE STYLES ==================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  background-image: url(../assets/deepslate_bricks.png);
  background-repeat: repeat;
  background-size: 32px 32px;
  background-color: #1a1a1a;
  position: fixed;
}

.body-div {
  margin-left: 10px;
  margin-right: 10px;
}

a:link,
a:visited,
a:active {
  color: #66bb6a;
}

a:hover {
  color: green;
}

.graylink a:link,
.graylink a:visited,
.graylink a:active {
  color: #777;
}

.graylink a:hover {
  color: #888;
}

p::first-letter {
  font-size: 20px;
  font-weight: bold;
  color: #66bb6a;
  text-transform: uppercase;
}

.blockquote {
  border-left: 2px solid #66bb6a; /* Vertical line color */
  padding: 0px;
  padding-left: 10px; /* Space between line and text */
}

/* ==================== NAVBAR STYLES ==================== */
/* Desktop Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #2d2d2d;
  border-bottom: 2px solid #404040;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: #66bb6a;
  text-decoration: none;
  margin: 0;
  transition: color 0.3s ease;
}

.navbar-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.navbar-nav a,
.navbar-nav a:visited,
.navbar-nav a:active {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar-nav a:hover {
  background: #404040;
  color: #66bb6a;
}

/* Mobile Navbar Elements */
.navbar-toggle {
  display: none;
  background: #404040;
  border: 1px solid #555;
  color: #e0e0e0;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 40px;
  width: 65px;
  height: 65px;
  align-items: center;
  justify-content: center;
}

.navbar-toggle:hover {
  background: #505050;
}

.navbar-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: #2d2d2d;
  border-bottom: 2px solid #404040;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.navbar-menu.open {
  display: flex;
  max-height: 300px;
}

.navbar-menu a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 15px 20px;
  border-bottom: 1px solid #404040;
  transition: background 0.3s ease;
}

.navbar-menu a:hover {
  background: #404040;
  color: #66bb6a;
}

.navbar-menu a:last-child {
  border-bottom: none;
}

/* ==================== IP Copy Container ==================== */
.ip-container {
  display: flex;
  align-items: stretch;
  border: 2px solid #404040;
  border-radius: 8px;
  overflow: hidden;
  font-family: "Roboto Mono", monospace;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.ip-text-content {
  padding: 10px 10px;
  background-color: #2d2d2d;
  flex: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.ip-action-button {
  background-color: #66bb6a;
  color: #404040;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  font-family: "Roboto Mono", monospace;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.25s ease;
}

.ip-action-button:hover,
.ip-action-button:active {
  background-color: #404040;
  color: #66bb6a;
}

/* ==================== SERVER STATUS WIDGET STYLES ==================== */
/* Desktop Widget */
.server-status {
  position: fixed;
  top: 0px;
  right: 20px;
  width: 250px;
  background: #2d2d2d00;
  border: 0px solid #404040;
  border-radius: 8px;
  padding: 0px;
  padding-top: 0px;
  padding-bottom: 3px;
  z-index: 2100;
  display: flex;
  align-items: center;
  color: #e0e0e0;
  min-height: 60px;
}

.server-icon {
  height: clamp(40px, calc(100% - 30px), 47px);
  width: clamp(40px, calc(100% - 30px), 47px);
  min-height: 40px;
  min-width: 40px;
  margin-top: 1px;
  margin-right: 15px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
  border: 2px solid #404040;
}

.server-info {
  flex: 1;
  min-width: 0;
}

.server-info h2 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  padding-top: 0px;
  gap: 8px;
}

.server-info p {
  margin: 5px 0;
  font-size: 14px;
}

.status-online {
  color: #66bb6a;
  font-weight: bold;
}

.status-offline {
  color: #ef5350;
  font-weight: bold;
}

.status-error {
  color: #ffb74d;
  font-weight: bold;
}

.error {
  color: #ef5350;
  font-style: italic;
}

/* Widget Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-selected {
  width: 100%;
  padding: 3px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #3a3a3a;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.dropdown-selected:hover {
  border-color: #777;
  background: #404040;
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #e0e0e0;
  margin-left: 10px;
}

.dropdown-arrow.open {
  border-top: none;
  border-bottom: 5px solid #e0e0e0;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #3a3a3a;
  border: 1px solid #555;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dropdown-options.open {
  display: block;
}

.dropdown-option {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  color: #e0e0e0;
}

.dropdown-option:hover {
  background-color: #505050;
}

.dropdown-option.disabled {
  font-weight: bold;
  color: #b0b0b0;
  cursor: default;
  background-color: #333;
}

.dropdown-option.disabled:hover {
  background-color: #333;
}

.player-head {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 2px;
  image-rendering: pixelated;
  background-color: #3a3a3a;
  border: 1px solid #404040;
}

.dropdown-options.mobile-top {
  top: auto;
  bottom: 100%;
  border-top: 1px solid #555;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* ==================== CONTENT CONTAINER STYLES ==================== */
.content-container {
  margin-top: 80px;
  padding: 9px;
  max-width: min(1200px, calc(100vw - 30px));
  margin-left: auto;
  margin-right: auto;
  background: rgba(45, 45, 45, 0.9);
  border: 2px solid #404040;
  border-radius: 16px;
  color: #e0e0e0;
  height: calc(100vh - 100px);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.content-container h2 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.content-container h3 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.content-container h5 {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #616161;
  font-size: 15px;
}

.content-container p {
  margin-top: 0px;
}

/* ==================== LIST STYLES ==================== */
ol {
  list-style-type: disc;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-left: 15px; /* Controls indent width for top-level ordered list */
}

ol > li {
  margin-bottom: 0; /* No spacing by default for top-level items */
}

ol > li:has(ul) {
  margin-bottom: 10px; /* Add spacing only for top-level items with sublists */
}

ol > li > ul {
  margin-top: 0; /* No gap above sublist */
  margin-bottom: 0; /* No gap below sublist */
  padding-left: 10px; /* Controls indent width for nested unordered list */
}

ol > li > ul > li {
  margin-bottom: 0; /* No spacing below sub-bullets */
}

ol > li > ul > li::marker {
  color: #e0e0e0;
}

li::marker {
  color: #66bb6a;
}

/* ==================== DOWNLOAD BUTTON STYLES ==================== */
.download-button {
  display: block;
  float: right;
  margin: 0px;
  padding: 10px 20px;
  border: 2px solid #404040;
  border-radius: 8px;
  background-color: #66bb6a;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: background-color 0.25s ease;
}

.download-button:link,
.download-button:visited,
.download-button:active {
  background-color: #66bb6a;
  color: #2d2d2d;
  transition: background-color 0.25s ease;
}

.download-button:hover {
  background-color: #404040;
  color: #66bb6a;
  transition: background-color 0.25s ease;
}

/* ==================== BR INVERT ==================== */
.br-invert {
  display: none;
  line-height: normal;
}

/* ==================== NON MOBILE NARROW STYLES ==================== */
@media (pointer: fine) and (max-width: 1024px) {
  body {
    background-size: 32px 32px;
  }

  /* Narrow Navbar Styles*/
  .navbar {
    padding: 0 15px;
    height: 60px;
    justify-content: space-between;
    width: 100vw;
    background: #2d2d2d;
  }

  .navbar-brand {
    font-size: 24px;
    margin-left: 10px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
    font-size: 22px;
    height: 35px;
    width: auto;
    margin-right: 8px;
  }

  .navbar-menu {
    font-size: 15px;
    padding-left: 0px;
  }

  /* Narrow Content Container Styles */
  .content-container {
    margin-left: 15px;
    margin-right: 15px;
    height: calc(100vh - 205px);
    border-radius: 8px;
  }

  /* Narrow Server Status Styles */
  .server-status {
    position: fixed;
    top: auto;
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: calc(100vw - 30px);
    margin: 0;
    padding: 8px;
    background: #2d2d2d;
    font-size: 16px;
    min-height: 75px;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    max-width: calc(100vw - 30px);
  }

  .server-icon {
    height: clamp(60px, calc(100% - 50px), 75px);
    width: clamp(60px, calc(100% - 50px), 75px);
    margin-right: 10px;
    margin-top: 0px;
    border: 2px solid #404040;
  }

  .server-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
    gap: 10px;
  }

  .dropdown-selected {
    padding: 8px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #555;
  }

  .dropdown-selected:hover {
    border-color: #777;
  }

  .dropdown-option,
  .dropdown-option.disabled {
    padding: 8px;
    font-size: 16px;
  }

  .player-head {
    width: 42px;
    height: 42px;
    margin-right: 16px;
    border-radius: 4px;
    border: 2px solid #4a2a0a;
  }

  .dropdown-arrow {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #e0e0e0;
    margin-left: 10px;
  }

  .dropdown-arrow.open {
    border-top: none;
    border-bottom: 10px solid #e0e0e0;
  }

  .dropdown-options {
    top: auto;
    bottom: 100%;
    border-top: 2px solid #555;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    border-left: 2px solid #555;
    border-right: 2px solid #555;
    max-height: 400px;
  }

  /* BR Invert */
  .br-invert {
    display: block;
  }
}

/* ==================== GENERAL MOBILE STYLES ==================== */
/* Browsers tested for: Brave */
@media (max-width: 768px) and (max-aspect-ratio: 4/3) and (pointer: course),
  (max-width: 480px) and (pinter: course),
  (pointer: coarse) and (max-width: 1024px) {
  body {
    background-size: 64px 64px;
  }

.blockquote {
  border-left: 4px solid #66bb6a;
  padding-left: 20px;
}

  /* Mobile Navbar */
  .navbar {
    padding: 0 15px;
    height: 100px;
    justify-content: space-between;
    width: 100vw;
    background: #3a3a3a;
    border-bottom: 5px solid #404040;
  }

  .navbar-brand {
    font-size: 40px;
    margin-left: 20px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
    margin-right: 10px;
  }

  .navbar-menu {
    font-size: 30px;
    padding-left: 18px;
  }

  /* Mobile Content Container*/
  .content-container {
    max-width: 1200px;
    margin-top: 120px;
    padding: 15px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 160px;
    height: calc(100vh - 610px);
    border: 5px solid #404040;
  }

  .content-container h2 {
    margin-bottom: 10px;
  }

  .content-container p {
    margin-bottom: 0px;
  }

  /* Mobile IP Address Copy*/
  .ip-container {
    scale: 2;
    margin-left: 25%;
    margin-top: 30px;
    display: none;
  }

  /* Mobile Server Widget */
  .server-status {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 15px;
    left: 15px;
    width: calc(100vw - 30px);
    margin: 0;
    padding: 25px;
    background: #2d2d2d;
    font-size: 30px;
    min-height: 140px;
    border: 5px solid #404040;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    max-width: calc(100vw - 30px);
  }

  .server-icon {
    height: clamp(60px, calc(100% - 50px), 135px);
    width: clamp(60px, calc(100% - 50px), 135px);
    margin-right: 20px;
    margin-top: 5px;
    border: 4px solid #404040;
  }

  .server-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
    gap: 16px;
  }

  .dropdown-selected {
    padding: 24px;
    font-size: 30px;
    border-radius: 8px;
    border: 5px solid #555;
  }

  .dropdown-selected:hover {
    border-color: #777;
  }

  .dropdown-option {
    padding: 24px;
    font-size: 30px;
  }

  .dropdown-option.disabled {
    padding: 24px;
    font-size: 30px;
  }

  .player-head {
    width: 42px;
    height: 42px;
    margin-right: 16px;
    border-radius: 4px;
    border: 2px;
  }

  .dropdown-arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e0e0e0;
    margin-left: 20px;
  }

  .dropdown-arrow.open {
    border-top: none;
    border-bottom: 10px solid #e0e0e0;
  }

  .dropdown-options {
    top: auto;
    bottom: 100%;
    border-top: 2px solid #555;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    border-left: 2px solid #555;
    border-right: 2px solid #555;
    max-height: 400px;
  }

  /* List Styles */
  ol {
    padding-left: 30px;
  }

  ol > li > ul {
    padding-left: 20px;
  }

  /* Download Button */
  .download-button {
    display: none;
  }

  /* BR Invert */
  .br-invert {
    display: block;
  }
}

/* ==================== MOBILE PORTRAIT STYLES ==================== */
/* Browsers tested for: Firefox */
@media (max-width: 480px) and (orientation: portrait) {
  body {
    background-size: 32px 32px;
  }

.blockquote {
  border-left: 2px solid #66bb6a;
   padding-left: 10px;
}
  .server-status {
    left: 10px;
    right: 10px;
    bottom: 15px;
    padding: 20px;
    min-height: 120px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .server-icon {
    height: clamp(50px, calc(100% - 40px), 100px);
    width: clamp(50px, calc(100% - 40px), 100px);
    margin-right: 15px;
  }

  /* Portrait Navbar Menu */
  .navbar {
    padding: 0 15px;
    height: 50px;
    justify-content: space-between;
    width: 100vw;
    background-color: #3a3a3a;
    border-bottom: 2px solid #404040;
  }

  .navbar-brand {
    font-size: 18px;
    margin-left: 5px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
    font-size: 22px;
    height: 35px;
    width: auto;
    margin-right: 5px;
  }

  .navbar-menu {
    font-size: 14px;
    padding: 0px;
  }

  /* Mobile Content Container */
  .content-container {
    max-width: 1200px;
    margin-top: 60px;
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    height: calc(100vh - 220px);
    border: 2px solid #404040;
  }

  .content-container h2 {
    margin-bottom: 5px;
  }

  .content-container p {
    margin-bottom: 0px;
  }

  .body-div {
    margin-left: 0px;
    margin-right: 0px;
  }

  /* Mobile IP Address Copy*/
  .ip-container {
    scale: 1;
    margin-left: 0px;
    margin-top: 5px;
    display: none;
  }

  /* Mobile Server Widget */
  .server-status {
    position: fixed;
    top: auto;
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    margin: 0px;
    padding: 10px;
    background: #2d2d2d;
    font-size: 18px;
    min-height: auto;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    max-width: calc(100vw - 20px);
  }

  .server-icon {
    height: clamp(60px, calc(100% - 50px), 22px);
    width: clamp(60px, calc(100% - 50px), 22px);
    margin-right: 15px;
    margin-top: 0px;
    border: 2px solid #404040;
  }

  .server-info h2 {
    font-size: 16px;
    margin-bottom: 8px;
    gap: 16px;
  }

  .dropdown-selected {
    padding: 5px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #555;
  }

  .dropdown-option {
    padding: 5px;
    font-size: 16px;
  }

  .dropdown-option.disabled {
    padding: 5px;
    font-size: 16px;
  }

  .player-head {
    width: 21px;
    height: 21px;
    margin-right: 8px;
    border-radius: 2px;
    border: 1px solid #4a2a0a;
  }

  .dropdown-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e0e0e0;
    margin-left: 20px;
  }

  .dropdown-arrow.open {
    border-top: none;
    border-bottom: 8px solid #e0e0e0;
  }

  .dropdown-options {
    top: auto;
    bottom: 100%;
    border-top: 2px solid #555;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    border-left: 2px solid #555;
    border-right: 2px solid #555;
    max-height: 400px;
  }

  /* List Styles */
  ol {
    padding-left: 15px;
  }

  ol > li > ul {
    padding-left: 10px;
  }

  /* Download Button */
  .download-button {
    display: none;
  }

  /* BR Invert */
  .br-invert {
    display: inline-block;
  }
}

/* ==================== MOBILE LANDSCAPE STYLES ==================== */
@media (max-height: 460px) and (orientation: landscape) and (pointer: coarse) {
  body {
    background-size: 32px 32px;
  }

.blockquote {
  border-left: 2px solid #66bb6a;
   padding-left: 10px;
}

  /* Landscape Navbar */
  .navbar {
    height: 45px;
    padding: 0 10px;
    border-bottom: 2px solid #404040;
  }

  .navbar-brand {
    font-size: 18px;
    margin-left: 10px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
    font-size: 22px;
    height: 35px;
    width: auto;
    margin-right: 5px;
  }

  .navbar-menu {
    font-size: 14px;
    padding: 0px;
  }

  /* Landscape Navbar Menu */
  .navbar-menu {
    height: auto;
    font-size: 12px;
  }

  /* Landscape Content Containter */
  .content-container {
    margin-top: 52px;
    border-radius: 5px;
    padding: 8px;
    padding-right: 6px;
    height: calc(71vh);
    border: 2px solid #404040;
  }

  .content-container p {
    margin-bottom: 15px;
  }

  /* List Styles */
  ol {
    padding-left: 17px;
  }

  ol > li > ul {
    padding-left: 15px;
  }

  /* Landscape Server Widget */
  .server-status {
    display: none;
  }

  /* Download Button */
  .download-button {
    display: none;
  }

  /* BR Invert */
  .br-invert {
    display: none;
  }
}

/* ==================== SCROLLBAR STYLING ==================== */
.content-scroll-wrapper {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  margin-right: -8px;
}

/* Scrollbar styling for the wrapper */
.content-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

.content-scroll-wrapper::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 4px;
}

.content-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.content-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.content-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #555 #00000000;
}
