@font-face {
    font-family: 'main';
    /* src: url('futura_book_font.ttf')  format('truetype'); Safari, Android, iOS */
    src: url('Montserrat-Regular.ttf')  format('truetype'); /* Safari, Android, iOS */
}

@font-face {
    font-family: 'text';
    src: url('Montserrat-Regular.ttf')  format('truetype'); /* Safari, Android, iOS */
}

@font-face {
  font-family: 'small-text';
  src: url('AtkinsonHyperlegibleMono-VariableFont_wght.ttf') format('truetype');
}

/* GLOBAL */

* {
    --text: rgba(255,255,255,0.86);
    --text-strong: rgba(255,255,255,0.96);
    --text-dark: rgba(24, 24, 24, 0.96);
    --muted: rgba(255,255,255,0.62);
    --accent: #dfda45;
    --card: rgba(255,255,255,0.04);
    --card-border: rgba(255,255,255,0.10);
    --hairline: rgba(255,255,255,0.08);
    --row-padding-clamp: clamp(22px, 3vw, 36px) 0;
    --row-inner-padding-clamp: clamp(16px, 2vw, 28px);
    --hero-bullet-height: clamp(140px, 50vh, 360px);
    --background-color: #14161a;
    --background-edit-box: rgba(208, 208, 208, 0.82);
    --font-size-edit-box: 120%;
    --footer-color: rgba(255,255,255,0.62);
    --policy-color: rgba(255,255,255,0.62);
    --button-background-color: transparent;

    --font-family: 'main';
    --font-family-footer-small: 'small-text', Arial, sans-serif;

    /* # --font-size = font sizes normal */
    /* # --small-font = font sizes 900px */
    /* # --very-small = font sizes 600px */
    /* font sizes common */
    --font-size-title: 180%;
    --small-font-size-title: 140%;
    --very-small-font-size-title: 100%;

    --font-size-text: 120%;
    --small-font-size-text: 100%;
    --very-small-font-size-text: 80%;

    --font-size-font-text-label: 120%;
    --small-font-size-font-text-label: 100%;
    --very-small-font-size-font-text-label: 80%;

    --font-size-above-form-policy: 90%;
    --small-font-size-above-form-policy: 80%;
    --very-small-font-size-above-form-policy: 70%;

    --font-size-button: 120%;
    --small-font-size-button: 100%;
    --very-small-font-size-button: 80%;

    --font-size-cookie-bar: 100%;
    --small-font-size-cookie-bar: 100%;
    --font-size-cookie-bar: 100%;

    --font-size-cookie-bar-buttons: 100%;
    --small-font-size-cookie-bar-buttons: 100%;
    --very-small-font-size-cookie-bar-buttons: 100%;

    /* font sizes html/home.*.php */
    --font-size-hero-text: 250%;
    --small-font-size-hero-text: 130%;
    --very-small-font-size-hero-text: 115%;

    --font-size-heroBulletTitle: 140%;
    --small-font-size-heroBulletTitle: 120%;
    --very-small-font-size-heroBulletTitle: 100%;

    --font-size-heroBulletText: 120%;
    --small-font-size-heroBulletText: 100%;
    --very-small-font-size-heroBulletText: 80%;

    /* font sizes footer */
    --font-size-footer: 100%;
    --small-font-size-footer: 85%;
    --very-small-font-size-footer: 70%;

    /* font sizes policy overlay */
    --font-size-policy-title: 100%;
    --small-font-size-policy-title: 100%;
    --very-small-font-size-policy-title: 100%;

    --font-size-policy-text: 100%;
    --small-font-size-policy-text: 100%;
    --very-small-font-size-policy-text: 100%;



/* 
    color: var(--text-dark);
    background-color: var(--background-edit-box);
 */
    color: var(--text);
    margin: 0;
    font-size: 100%;
    font-family: var(--font-family);
}

.footer,
.footerUnderline {
  font-family: var(--font-family-footer-small);
  color: var(--footer-color);
}

.footerUnderline {
  text-decoration: underline;
}

html {
  background-color: var(--background-color);
  background-image: url('../images/solver-ai-background.vcb775231.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.body {
    max-width: 1500px;
    margin: auto;

    background: transparent;
}

/* HEADER */

.glow {
  box-shadow: 0 0 16px rgba(255,255,255,0.04);
}

.header {
    width: 100%;
    padding: 1%;
    text-align: center;
    background: var(--background-color);
    color: var(--accent);
}

.button {
    padding: 1%;
    text-align: center;
    font-size: var(--font-size-button);
    color: var(--accent);
    background: var(--button-background-color);
    border-color: var(--accent);
    border-style: groove;
    border-radius: 4px;
    border-width: 2px;
    cursor: pointer;
    width: auto;
    padding: 8px 14px;
}

.button-tab {
    padding: 1%;
    text-align: center;
    font-size: var(--font-size-button);
    color: var(--accent);
    background: var(--button-background-color);
    border-top: none;
    border-left: none;
    border-right: none;
    width: auto;
    padding: 8px 14px;
}

@media (max-width: 900px) {
  .button,
  .button-tab {
    font-size: var(--small-font-size-button);
    padding: 6px 10px;
    border-width: 1px;
  }
}

@media (max-width: 600px) {
  .button,
  .button-tab {
    font-size: var(--very-small-font-size-button);
    padding: 5px 8px;
  }
}

.pulse {
    animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% {
      background-color: var(--background-color);
    }
    50% {
      background-color: #868329;
    }
}

.button,
.button-tab,
.footerBuilderButton {
    transition: box-shadow 0.25s ease, text-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover,
.button:focus-visible,
.button-tab:hover,
.button-tab:focus-visible,
.footerBuilderButton:hover,
.footerBuilderButton:focus-visible {
    background-color: var(--button-background-color);
    box-shadow: 0 0 8px rgba(223,218,69,0.45), 0 0 18px rgba(223,218,69,0.3);
    text-shadow: 0 0 6px rgba(223,218,69,0.55);
}

.otherButton {
    padding: 0.5%;
}

/* 
.shrink-on-hover {
    transition-duration: 0.2s;
}

.shrink-on-hover:hover
{
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
}
*/

/* FOOTER */

.footerRow {
    /* min-height: 5vh !important; */
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.footerColumn {
    text-align: center;
    float: left;
    margin-left: auto;
    margin-right: auto;
    flex: 100%;
    padding: 5px;
    font-size: 80%;
    color: var(--accent) !important;
}

@media only screen and (max-width: 900px) {
    .footerRow {
        margin-bottom: 4px;
    }

    .footerColumn {
        padding: 2px;
        font-size: 70%;
        line-height: 1.15;
    }

    footer .footer,
    footer .footerUnderline {
        font-size: 70%;
        line-height: 1.15;
    }

    footer .footerBuilderButton {
        font-size: 90%;
    }

    footer .footerColumn br {
        display: none;
    }
}

/* FORMS */

.formPageContainer {
    min-height: 75vh !important;
    display: flex;
    flex-direction: column;
    animation: fadeIn 2.5s ease-in-out forwards;
}

.formTextLabel {
    font-size: var(--font-size-font-text-label);
    text-align: left;
}

.formPolicyText {
    margin-top: 5px;
    font-size: var(--font-size-above-form-policy);
    text-align: left;
}

.formTextInput {
    font-size: var(--font-size-text);
    width: 80%;
    font-weight: bold;
    color: var(--text-dark);
    background-color: var(--background-edit-box);
}

.executionMessages {
    margin-top: 10px;
    margin-left: 10%;
    margin-right: 10%;
}

@media (max-width: 900px) {
  .formTextLabel {
    font-size: var(--small-font-size-font-text-label);
  }

  .formPolicyText {
    font-size: var(--small-font-size-above-form-policy);
  }

  .formTextInput {
    font-size: var(--small-font-size-text);
  }

  .executionMessages {
    margin-left: 6%;
    margin-right: 6%;
  }
}

@media (max-width: 600px) {
  .formTextLabel {
    font-size: var(--very-small-font-size-font-text-label);
  }

  .formPolicyText {
    font-size: var(--very-small-font-size-above-form-policy);
  }

  .formTextInput {
    font-size: var(--very-small-font-size-text);
  }
}

/* BODY */

.rowContainer {
    display: flex;
    flex-direction: column;
    /* padding: 1%; */
    margin: 1%;
    animation: fadeIn 1.5s ease-in-out forwards;
  padding: var(--row-padding-clamp);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.row,
.rowNoBackground {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
    display: flex;
    padding: var(--row-inner-padding-clamp);
}

.rowNoBackground {
  background: transparent;
  border: none;
  box-shadow: none;
}

.rowReverse {
    flex-direction: row-reverse;
    padding: var(--row-padding-clamp);
}

.column {
    text-align: center;
    flex: 1;
}

.full {
    flex: 100%;
}

.fullVh {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

@supports (min-height: 100dvh) {
    .fullVh {
        min-height: 100dvh;
    }
}

.fullVh footer {
    margin-top: auto;
}

/* Internal scroll layout: keep header/footer fixed within viewport */
.fullVh.internalScroll {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    .fullVh.internalScroll {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
    }
}

.pageScroll {
    flex: 1 1 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    min-height: 0; /* allow scrolling within flex container */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--accent) transparent;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Scrollbar styling (WebKit) */
.pageScroll::-webkit-scrollbar {
    width: 10px;
}

.pageScroll::-webkit-scrollbar-track {
    background: var(--background-color);
}

.pageScroll::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 8px;
    border: 2px solid var(--background-color);
}

.half {
    flex: 50%;
}

.wide {
    flex: 66%;
}

.thin {
    flex: 33%;
}

.rowContainerHero {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.heroRow {
  flex: 1;
  min-height: 0;
}

.heroRow .column.wide {
  display: flex;
}

.heroContent {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-block: 2vh; /* vertical breathing room */
  gap: 12px; /* optional spacing between blocks */
  justify-content: center; /* keeps whole hero centered */
}

.columnContent {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sectionTitle,
.homeRowSectionKickerText {
    font-size: var(--font-size-title);
    margin-left: 8%;
    margin-right: 8%;
    color: var(--muted);
}

.sectionText {
    text-align: left;
    font-size: var(--font-size-text);
    margin: 10%;
    margin: 0 10% 0 10%;
}

@media only screen and (max-width: 900px) {
    .sectionTitle,
    .homeRowSectionKickerText {
        font-size: var(--small-font-size-title);
        line-height: 1.2;
    }

    .sectionText {
        font-size: var(--small-font-size-text);
        line-height: 1.4;
        margin: 0 6%;
    }
}

@media only screen and (max-width: 600px) {
    .sectionTitle,
    .homeRowSectionKickerText {
        font-size: var(--very-small-font-size-title);
    }

    .sectionText {
        font-size: var(--very-small-font-size-text);
        margin: 0 4%;
    }
}

/* tighten common markdown outputs */
.sectionText p{ margin: 0 0 12px; }
.sectionText p:last-child{ margin-bottom: 0; }

.sectionText ul{
    margin: 12px 0 0;
    padding-left: 1.2em;
}
.sectionText ol{
    margin: 12px 0 0;
    padding-left: 1.2em;
}
.sectionText li{ margin: 6px 0; }

.containCenterNoRepeatImage{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 2%;
}

.containCenterRepeatImage{
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    margin: 2%;
}

.fixedCenterNoRepeatImage{
    background-attachment: fixed;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.fixedCoverImage {
    background-attachment: fixed;
    background-position: cover;
    background-size: 95%;
    border-radius: 35px;
    border: var(--accent);
    border-style: groove;
    border-radius: 35px;
    border-width: 2px;
}

@media only screen and (min-width: 1024px) {
    .responsiveElement {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    .responsiveElement {
        display: flex;
    }
    .sideImage {
        display: none;
    }
    .rowContainer {
        min-height: none;
    }
}

@media only screen and (max-width: 1024px) and (orientation: portrait) {
  .topImage {
    min-height: 15vh;
    padding: 0; /* remove rowNoBackground padding */
  }

  .topImage .containCenterNoRepeatImage {
    margin: 0;
    background-size: auto 100%; /* fill height, reduce top/bottom gap */
  }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    .topImage {
        min-height: 45vh;
    }
}

/* PROGRESS-BAR */

.progress-bar {
    width: 30%;
    height: 10px;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    display: none;
}

.progress-bar-inner {
    height: 100%;
    width: 50%;
    background-color: var(--accent);
    animation: progress-bar-animation 2s linear infinite;
}

@keyframes progress-bar-animation {
    0% {
        margin-left: 0;
        margin-right: 100%;
    }

    50% {
        margin-left: 50%;
        margin-right: 50%;
    }

    100% {
        margin-left: 0;
        margin-right: 100%;
    }
}
