/**
 * Design by fromScratch Studio - 2022, 2023 (fromscratch.io)
 * Implementation in HTML/CSS/JS by Timendus - 2024 (https://github.com/Timendus)
 *
 * See https://github.com/librespeed/speedtest/issues/585
 */

@import url("colors.css?v=20260624p");
@import url("fonts.css?v=20260623j");
@import url("main.css?v=20260623o");
@import url("server-selector.css?v=20260623j");
@import url("button.css?v=20260623o");
@import url("results.css?v=20260623x");
@import url("dialog.css?v=20260626h");

/* Setting up the basic structure */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  background-color: var(--background-backup-color);
  background-image: var(--html-bg-image);
  background-attachment: fixed;
  font-size: 10px;
  overflow-x: clip;
}

@media (min-width: 48rem) {
  html {
    font-size: 11px;
  }
}

@media (min-width: 64rem) {
  html {
    font-size: 12px;
  }
}

@media screen and (max-width: 800px) {
  html {
    font-size: 8px;
  }
}

html,
body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background-color: transparent;
  color: var(--primary-text-color);
  display: flex;
  flex-direction: column;
}

/* Position the logo */

header {
  padding: 1.5rem 4rem 0.35rem;
  text-align: left;

  @media screen and (max-width: 800px) {
    padding: 1.25rem 1.6rem 0.3rem;
  }
}

/* Position the source code link */

footer {
  margin: auto auto 0 auto;
  padding: 5rem;
  text-align: center;

  & > p.source {
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: normal;
    color: var(--secondary-text-color);
  }

  & > p.source a {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s, text-underline-offset 0.2s;

    &:hover {
      color: var(--theme-green);
      text-underline-offset: 0.3em;
    }
  }

  @media screen and (max-width: 800px) {
    padding: 4rem;
  }
}
