/* Global Styles */
@media (prefers-color-scheme: dark) {
  html {
    filter: invert(1) hue-rotate(180deg);
  }
}

body {
  margin: 0;
  font-family: 'Anonymous Pro', monospace;
  background-color: #ffffff;
  /*background-color: #F9F8F1;*/

  color: #000000;
}

/* Entferne den rechten Rand-Gradienten */
body::after {
  content: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(238, 238, 238, 0.95), rgba(255, 255, 255, 0.95));
  z-index: -1;
}
html {
  scroll-behavior: smooth;
}


@media (prefers-color-scheme: dark) {
  .navbar::before {
    background: linear-gradient(
      to bottom,
      rgba(247, 247, 247, 0.95),
      rgba(255, 255, 255, 0.95)
    );
  }
}


a.logo,
.logo {
  font-family: 'Anonymous Pro', monospace;
  font-size: 22px;
  font-weight: bold;
  color: black;
  text-decoration: none;
}
.logo {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: sans-serif;
}

.logo-main {
  font-size: 24px;
  font-weight: bold;
  display: block;
}

.logo-sub {
  font-size: 14px;
  color: #666;
  display: block;
  letter-spacing: 1px;
}


.title.centered {
  text-align: center;
  margin-top: 3rem;
}

.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.preset-header .title {
  flex: 1;
  margin: 0;
  text-align: center;
}

.preset-arrow {
  width: 2rem;
  font-size: 2rem;
  text-decoration: none;
  color: black;
  text-align: center;
}


.nav-links a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
}

.ghost-button {
  border: 1px solid #000;
  background: transparent;
  color: black;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  text-decoration: none;
  font-family: 'Anonymous Pro', monospace;
}

.ghost-button:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Content */
.content {
  padding-top: 10rem;
  padding-bottom: 5rem;

}

.title {
  font-size: 2.3rem;
  margin-bottom: 9rem;
  color: black;
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: black;
}

.subtitle.centered {
  text-align: center;
  margin-top: 2rem;
}


.divider {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 2rem;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.news-item:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.text-content {
  flex: 1;
}

.image-content img {
  max-width: 400px;
  border-radius: 4px;
}

.date {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.1em;
}

.news-title {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: black;
}

.description {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.meta {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.read-button {
  border: 1px solid #000;
  background: transparent;
  color: black;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.read-button:disabled {
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  background: #f0f0f0;
}
.read-button:hover {
  border-color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 150px 1fr 400px;
  gap: 2rem;
  align-items: start;
}

.news-date {
  padding-top: 0.5rem;
}

.news-text {
  position: relative;
  padding-bottom: 3rem;
}

.news-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.meta {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #999;
  font-size: 0.9rem;
}

.news-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-grid.no-image {
  grid-template-columns: 150px 1fr;
}

/* Footer */
/*.footer {*/
/*  width: 100%;*/
/*  min-height: 200px;*/
/*  background: linear-gradient(to bottom, #ffffff, #d0ecff);*/
/*  padding: 4rem 1rem;*/
/*  border-top: 1px solid #ddd;*/
/*  color: black;*/
/*}*/
.footer {
  /*background-color: #ffffff;*/
  /*border-top: 1px solid #ddd;*/
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(238, 238, 238, 0.95));
  z-index: -1;
}
.footer-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem;
  text-align: center;
  /* background: rgba(255, 255, 255, 0.6); */ /*  Shading  */
  color: black;
  pointer-events: none;
}


/* Form Section */
.form-section {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 700px;
}

.form-grid-centered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.form-footer {
  display: flex;
  width: 100%;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.form-footer label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-slider input[type="range"] {
  width: 100%;
}

.form-slider div {
  font-size: 1rem;
  color: #333;
}


.form-input {
  padding: 0.4rem 1rem;
  border: 1px solid #000;
  background: transparent;
  color: black;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Anonymous Pro', monospace;
}

.form-input::placeholder {
  color: #666;
  text-align: center;
  font-family: 'Anonymous Pro', monospace;
}

.form-input:focus {
  outline: none;
  border-color: #333;
}

.form-footer .email {
  flex: 1;
}
.form-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: 'Anonymous Pro', monospace;
  text-decoration: none;
  color: black;
}

.styled-slider {
  width: 100%;
  appearance: none;
  height: 6px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  transition: background 0.3s;
}

.styled-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.styled-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}


.form-slider input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  transition: background 0.3s;
}

.form-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

.form-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

.form-slider div {
  font-size: 0.9rem;
  color: #333;
}


.form-checkboxes {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Anonymous Pro', monospace;
}

.form-checkboxes {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Anonymous Pro', monospace;
}

.section-label {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  justify-items: start;
}

.checkbox-grid label {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#dividend-yield-slider {
  width: 100%;
}

#dividend-yield-value {
  text-align: left;
  margin-top: 0.5rem;
  font-family: 'Anonymous Pro', monospace;
  font-size: 1rem;
}

#short-term-slider,
#long-term-slider {
  width: 100%;
  max-width: 600px;
}

.form-checkboxes {
  max-width: 600px;
  margin: 2rem auto;
  font-family: 'Anonymous Pro', monospace;
}

.form-checkboxes label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* noUiSlider: Angleichen an andere Slider */

#dividend-yield-slider.noUi-target {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  box-shadow: none;
  border: none;
  margin-top: 0.5rem;
}

#dividend-yield-slider .noUi-connect {
  background: #000;
  border-radius: 4px;
}

#dividend-yield-slider .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  border: none;
  cursor: pointer;
  top: -5px; /* leicht zentrieren */
  box-shadow: none;
}

#dividend-yield-slider .noUi-handle::before,
#dividend-yield-slider .noUi-handle::after {
  display: none; /* Standard-Zierlinien entfernen */
}


#dividend-yield-slider
.noUi-tooltip {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 6px;
}


body {
  font-family: 'Anonymous Pro', monospace;
}

a.logo,
.logo {
  font-family: 'Anonymous Pro', monospace;
  text-decoration: none;
}

.form-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  max-width: 600px;
  gap: 0.5rem;
}

.form-slider label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#market-cap-slider {
  width: 100%;
}

#market-cap-value {
  font-size: 1rem;
  color: #333;
}

.disabled {
  opacity: 0.4;
  pointer-events: none;
}


.grouped .label-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.grouped .label-row input[type="checkbox"] {
  transform: scale(1.05);
  margin-right: 0.25rem;
}

.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 700px;
  margin: 4rem auto;          /* ← vertikaler Abstand */
  padding-bottom: 1rem;         /* ← Abstand nach unten innerhalb der Box */
  border-bottom: 1px solid #eee; /* ← Linie zwischen Blöcken */
}

.form-info {
  flex: 0 0 40px; /* Breite für Info-Icon */
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  align-items: flex-start;
}


.form-activation {
  flex: 0 0 40px; /* feste Breite für Checkbox-Spalte */
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  align-items: flex-start;

}

.form-parameter {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.form-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 700px;
  margin: 1.5rem auto;
}

/*.form-info {*/
/*  flex: 0 0 40px;*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: flex-start;*/
/*  padding-top: 0;*/
/*}*/

.form-activation {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}
.form-activation input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: black;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.form-parameter {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-parameter label {
  margin-bottom: 1rem;
}
.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.form-parameter input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  transition: background 0.3s;
}
.form-parameter input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}
.form-parameter input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

#short-term-return-slider,
#dividend-yield-slider {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Basisstil für alle Slider */
.noUi-target {
  background: #e0e0e0;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  height: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Verbindung (gefüllter Bereich zwischen Handles) */
.noUi-connect {
  background: #007bff;  /* Bootstrap-Blau oder was du willst */
  border-radius: 6px;
}

/* Handles */
.noUi-handle {
  width: 16px;
  height: 16px;
  top: -4px;
  right: -8px; /* zentriert den Handle */
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #007bff;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Tooltip Styling */
.noUi-tooltip {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 6px;
  bottom: 125%;
}


.noUi-horizontal .noUi-handle {
  top: -5px;
}

#short-term-return-slider.noUi-target {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  box-shadow: none;
  border: none;
  margin-top: 0.5rem;
}

#short-term-return-slider .noUi-connect {
  background: #000;
  border-radius: 4px;
}

#short-term-return-slider .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  border: none;
  cursor: pointer;
  top: -5px;
  box-shadow: none;
}

#short-term-return-slider .noUi-handle::before,
#short-term-return-slider .noUi-handle::after {
  display: none;
}

#short-term-return-slider .noUi-tooltip {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 6px;
}

#long-term-return-slider.noUi-target {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  box-shadow: none;
  border: none;
  margin-top: 0.5rem;
}

#long-term-return-slider .noUi-connect {
  background: #000;
  border-radius: 4px;
}

#long-term-return-slider .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  border: none;
  cursor: pointer;
  top: -5px;
  box-shadow: none;
}

#long-term-return-slider .noUi-handle::before,
#long-term-return-slider .noUi-handle::after {
  display: none;
}

#long-term-return-slider .noUi-tooltip {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 6px;
}

#long-term-return-slider.disabled {
  opacity: 0.4;
  pointer-events: none;
}


#long-term-return-slider.disabled .noUi-handle {
  pointer-events: none;
  background: #888;
  border-color: #888;
}

#long-term-return-slider.disabled .noUi-connect {
  background: #ccc;
}

#long-term-return-slider.disabled {
  opacity: 0.4;
}

#long-term-return-slider.disabled,
#long-term-slider.disabled {
  cursor: not-allowed;
}

input[type="checkbox"] {
  accent-color: black;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  font-size: 1rem;
}

#loading-overlay .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

#loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.footer-links {
  text-align: center;
  padding: 9rem 0;
}

.footer-links a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  text-decoration: underline;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-buttons .logo {
  font-size: 0.8rem;
}

.header-buttons .logo .mobile {
  display: none;
}

@media (max-width: 600px) {
  .header-buttons .logo .desktop {
    display: none;
  }
  .header-buttons .logo .mobile {
    display: inline;
  }
}

.form-row.no-border {
  border-bottom: none;
}

#frequency-options {
  display: flex;
  gap: 0.5rem;
}

#frequency-options input[type="radio"] {
  display: none;
}

#frequency-options label {
  border: 1px solid #000;
  background: transparent;
  color: black;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

#frequency-options input[type="radio"]:checked + label {
  background: #000;
  color: #fff;
}

.preset-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 0.5rem;
  margin: 1rem auto;
  /*flex-wrap: wrap;*/
  padding-bottom: 3rem; /*extra space before the Stock Parameter section */
}

@media (max-width: 1200px) {
  .preset-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .preset-wrapper {
    width: 100%;
  }

  .preset-image {
    width: 100%;
  }
}

/* Inline editor for slider value displays */
.slider-value {
  cursor: pointer;
  display: inline-block;
}

.slider-value input[type="number"] {
  width: 4rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #000;
  background: transparent;
  color: black;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: 'Anonymous Pro', monospace;
  text-align: center;
}

.slider-value input[type="number"] + input[type="number"] {
  margin-left: 0.25rem;
}

.preset-image {
  width: 290px;
  height: 157px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  object-fit: contain;
}

.preset-image:hover {
  border-color: #333;
}


/* Preset image buttons with info links */
.preset-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.preset-button {
  border: none;
  padding: 0;
  background: transparent;
}

.preset-wrapper.selected {
  box-shadow: 0 0 0 1.5px #333;
}

.preset-button img {
  width: 100px;
  height: auto;
  display: block;
}

.info-btn {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  font-size: 0.7rem;
  line-height: 1rem;
  text-align: center;
  text-decoration: none;
}

  .preset-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
/* Ensure preset titles don't push images unevenly */
.preset-label {
  margin: 0.5rem 0;
  min-height: 2.5rem;
  text-align: center;
}

@media (max-width: 600px) {
  .preset-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-bottom: 1.5rem; /* maintain spacing on small screens */

  }

  .preset-wrapper {
    width: 100%;
  }

  .preset-image {
    width: 100%;
  }

  .preset-wrapper.selected {
    box-shadow: none;
  }

  #frequency-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    justify-items: start;
    justify-self: start;
  }

  .checkbox-grid label {
    flex-direction: column;
    align-items: flex-start;
  }

  #frequency-options label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7ch;
    text-align: center;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* Consistent heading styles */
h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #000;
}

/* Explanation page formatting */
.explanation-section {
  margin-bottom: 2rem;
  line-height: 1.6;
}

/*!* Ensure MathJax formulas use the same font *!*/
/*mjx-container {*/
/*  font-family: 'Anonymous Pro', monospace !important;*/
/*  font-size: 1em;*/
/*}*/
/*!* Ensure nested MathJax elements inherit the same font *!*/
/*mjx-container mjx-math, mjx-container mjx-assistive-mml {*/
/*  font-family: 'Anonymous Pro', monospace !important;*/
/*}*/

/* Info Overlay */
#info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  font-size: 1rem;
}

#info-overlay.hidden {
  display: none;
}

#info-overlay .info-box {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1.5rem;
  width: min(500px, calc(100% - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

#info-overlay .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Blinking cursor for header animation */
.cursor {
  display: inline-block;
  width: 0.6ch;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}


/* Tutorial Overlay */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1800;
}

#tutorial-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  z-index: 1830;
}

#tutorial-close.hidden {
  display: none;
}

#tutorial-overlay.hidden {
  display: none;
}

.tutorial-highlight {
  position: relative;
  z-index: 1810;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 0 15px rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}

#tutorial-tooltip {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  max-width: 350px;
  border: 3px solid #F6F0E0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  font-weight: bold;
  z-index: 1820;
}

#tutorial-tooltip.hidden {
  display: none;
}

@media (max-width: 600px) {
  #tutorial-tooltip {
    left: 1rem;
    right: 1rem;
    top: 1rem;
    transform: none;
    width: auto;
    max-width: none;
    font-size: 0.9rem;
  }
}
@media (prefers-color-scheme: dark) {
  #tutorial-tooltip,
  #tutorial-close {
    filter: invert(1) hue-rotate(180deg);
  }
}
@media (min-width: 1024px) {
  .form-row {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    border-bottom: none;
    border: 2px solid #F6F0E0;
  }

  #row-subscription .form-wrapper {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .form-row {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    background-color: #fff;
    transition: background-color 0.2s;
  }

  .form-row:hover {
    background-color: #f5f5f5;
  }

  .parameter-group {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    max-width: 700px;
    margin: 1.5rem auto;
    background-color: #fff;
    transition: background-color 0.2s;
  }

  .parameter-group:hover {
    background-color: #f5f5f5;
  }

  .parameter-group .form-row {
    border: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
  }

  .parameter-group .form-row:hover {
    background-color: transparent;
  }

  .parameter-group .form-row + .form-row {
    margin-top: 1rem;
  }

  #row-subscription .form-wrapper {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    background-color: #fff;
    transition: background-color 0.2s;
  }

  #row-subscription .form-wrapper:hover {
    background-color: #f5f5f5;
  }

  .preset-wrapper {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    background-color: #fff;
    transition: background-color 0.2s;
  }

  .preset-wrapper:hover {
    background-color: #f5f5f5;
  }

  .preset-wrapper .preset-image {
    border: none;
    border-radius: 4px;
  }

  .form-row.no-border-desktop {
    border: none;
    padding: 0;
    background-color: transparent;
  }

  .form-row.no-border-desktop:hover {
    background-color: transparent;
  }
}
#send-time-hour {
  width: 7.8rem;
  padding: 0.4rem 1rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: transparent;
  color: #000;
  font-family: 'Anonymous Pro', monospace;
  text-align-last: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Layout for preset subpages */
.preset-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.preset-layout .preset-image {
  width: 60%;
  max-width: 700px;
  height: auto;
  border: none;
}

.preset-layout .preset-description {
  width: 40%;
}

@media (max-width: 768px) {
  .preset-layout {
    flex-direction: column;
  }

  .preset-layout .preset-image,
  .preset-layout .preset-description {
    width: 100%;
  }
}

/* Scroll to top button */
.scroll-top {
  display: none;
  position: fixed;
  bottom: 8rem;
  right: 8rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: transparent;
  color: #000;
  font-family: 'Anonymous Pro', monospace;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.scroll-top:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}