@import url("roboto.css");

:root {
  --bs-font-sans-serif: "Roboto", Roboto, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
  color: inherit;
  transition: 0.2s;
}

main a:hover {
  color: #BA0000;
  opacity: 100%;
}

.btn {
    white-space: nowrap;
}

.btn-min-width-300 {
  min-width: 300px;
}

.btn-min-width-320 {
  min-width: 320px;
}

.navgitbttn {
  margin-bottom: 0px;
  min-width: 120px;
}

.dlbeta {
  opacity: 50%;
}

@media (min-width: 992px) {
  .carousel-inner {
    box-shadow: 0px 9px 15px -3px rgba(0,0,0,0.66);
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 7px;border-radius: 7px;
  }

  .navgitbttn {
    margin-top: 1.5rem;
  }

}
@media (max-width: 991px) {
  .navgitbttn {
    margin-top: 0.5rem;
  }
}

blockquote {
  font-size: 1.15rem;
  margin-top: 10px;
  color: #a5a5a5;
}
figcaption {
  color: #a5a5a5;
}

.bg-rainbow {
color: #fff;
background: -webkit-gradient(linear, left top, right top, from(#140A17), color-stop(50%, #041e2a), to(#140A17));
background: linear-gradient(to right, #140A17 0%, #041e2a 50%, #140A17 100%);
}

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

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.nav-link {
  color:#ffff;
}

.nav-link:hover, .nav-link:focus, .nav-link:active {
  color: #c10303;
}

.align-items-center { align-items: center; justify-content: center; }


.btn-label {
  position: relative;
  left: -12px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px 0 0 3px;
}

.btn-labeled {
  padding-top: 0;
  padding-bottom: 0;
}

.btn {
  margin-bottom: 10px;
}

.changelog h3 {
  color: #198754;
}
.card-logos img{
  display: inline;
  height:40px;
  padding:5px;
}

.figure-caption {
  color: #ffffff;
}

.blockquote-footer::before {
  content: "~ ";
}

.active {
  text-decoration: underline;
  text-decoration-color: #c10303;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.btn-danger {
  background-color:#D70008;
}

.btn-danger:hover {
  background-color: #c10303;
}

.changelogmodalcontent {
  text-align: left;
}

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

.modal-link a:hover {
  color: #BA0000;
  text-decoration: underline;
  cursor:pointer;
}

.distro-logo {
  height:  100px;
}

/* ── Calculator widgets ── */
.calc2 {
  border-spacing: 0;
  border-collapse: separate;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  padding: 15px;
  margin-bottom: 1rem;
}

.calc2 td {
  padding: 4px 6px;
  vertical-align: middle;
}

.calc2 input[type=text],
.calc2 input[type=number] {
  font-size: 1.1em;
  padding: 4px 6px;
  width: 200px;
}

.calc2 textarea {
  font-family: monospace;
  font-size: 0.9em;
  width: 380px;
}

.intext {
  background: #fff;
  color: #222;
  border: 1px solid #888;
}

.outtext {
  background: rgba(0, 0, 0, 0.3);
  color: #eceff4;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mathsymbol {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2em;
  padding-left: 6px;
}

.calc-math {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  padding-left: 6px;
  line-height: 2.2;
  display: block;
}

.ntable {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.ntable th,
.ntable td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
}

.ntable th {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.ntable td {
  text-align: right;
}

/* ── Homepage background ── */
.bg-content {
  background-color: #2E353F;
  color: #fff;
}

/* ── Homepage 2-column layout ── */
#lcol h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.3rem;
}

#rcol h5 {
  font-size: 0.85rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  letter-spacing: 0.05em;
}

#rcol ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

#rcol ul li {
  margin-top: 6px;
}

/* Dark list-group for use on bg-rainbow dark backgrounds */
.list-group-dark .list-group-item {
  color: #eceff4;
  background-color: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.1);
}

.list-group-dark .list-group-item:hover,
.list-group-dark .list-group-item:focus {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.48);
}

.list-group-dark > .list-group .list-group-item {
  padding-left: 2.5rem;
  font-size: 0.95rem;
}

/* ── Theme toggle — exact inch5 pattern ── */
.ic-site-header-theme-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  padding: 12px;
  border-radius: 4px;
  background: 0 0;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.ic-site-header-theme-selector:hover,
.ic-site-header-theme-selector:focus {
  color: #fff;
  outline: none;
}

.ic-nav-theme-icon {
  width: 25px;
  aspect-ratio: 1;
  fill: currentColor;
}

.pointed_events_disabled {
  pointer-events: none;
}

/* Dark is the default — show sun (switch to light), hide moon (already dark) */
html:not([data-theme=light]) .hidden-theme-dark { display: none !important; }
/* Light mode active — show moon (switch to dark), hide sun (already light) */
[data-theme=light] .hidden-theme-light { display: none !important; }

/* ── Light mode content overrides ── */
[data-theme=light] .bg-content {
  background-color: #f4f5f7;
  color: #212529;
}

[data-theme=light] .bg-content .text-white,
[data-theme=light] .bg-content .text-secondary {
  color: #212529 !important;
}

[data-theme=light] .bg-content a {
  color: #212529;
}

[data-theme=light] .bg-content a:hover {
  color: #BA0000;
}

[data-theme=light] #lcol h2 {
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

[data-theme=light] #rcol h5 {
  background: rgba(0, 0, 0, 0.07);
  color: #212529;
}

[data-theme=light] .ntable {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme=light] .ntable th,
[data-theme=light] .ntable td {
  border-color: rgba(0, 0, 0, 0.15);
  color: #212529;
}

[data-theme=light] .ntable th {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme=light] .calc2 {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #212529;
}

[data-theme=light] .calc2 p,
[data-theme=light] .calc2 div {
  color: #212529 !important;
}

[data-theme=light] .outtext {
  background: rgba(0, 0, 0, 0.06);
  color: #212529;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme=light] .list-group-dark .list-group-item {
  color: #212529;
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme=light] .border-secondary {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme=light] .form-control,
[data-theme=light] .form-select {
  background-color: #fff;
  color: #212529;
  border-color: #ced4da;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
  body,
  .dropdown-menu,
  .dropdown-item,
  .dropdown-item:hover,
  .dropdown-item:focus,
  .btn-outline-dark,
  .list-group-item,
  .modal-content,
  .form-select,
  .card {
    color: #eceff4;
    background: #2e3440;
  }
  .list-group-item {
    border-color: #888;
  }
  .form-select {
    border-color: #222;
  }
  .dropdown-item:hover,
  .dropdown-item:focus,
  .card {
    background: #3b4252;
  }
  .homepageheader,
  .news-section {
    background-image: initial;
  }
  .text-muted {
    color: #81a1c1 !important
  }
  code {
    color: #f87cba;
  }
}
