html,
body {
  height: 100%;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bd-placeholder-img { /* Placeholder image style */
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) { /* Styling for larger screens */
  .bd-placeholder-img-lg {
      font-size: 3.5rem;
  }
}

/* Divider styling for layout */
.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

/* Placeholder image size and alignment */
.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller { /* Navbar styling */
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

/* Button customization */
.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle { /* Mode toggle styling */
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

/* Link decoration control */
#initial-result a,
#shortened-result a {
  text-decoration: none;
}

#initial-result a:hover,
#shortened-result a:hover {
  text-decoration: underline;
}

.maintenance {
  width: 75%; /* Make alert full width on mobile */
  margin-top: 10px;
}

@media (max-width: 768px) {
  .list-group-item {
      text-align: center; /* Center align the text on mobile */
  }

  .badge {
      display: block; /* Make badge a block element so it can be centered */
      margin: 0 auto; /* Center the badge horizontally */
  }

  .list-group-item span {
      margin-bottom: 10px; /* Add space between the label and the badge */
  }

  #canvas-wrapper {
      max-width: 100%; /* Ensure canvas fits the screen width */
  }

  .maintenance {
    width: 100vw; /* Make alert full width on mobile */
    height: 100vh; /* Ensure alert takes full height */
    margin-top: 0px;
    border-radius: 0;;
  }
}