/**
 * 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");
@import url("fonts.css");
@import url("main.css");
@import url("server-selector.css");
@import url("button.css");
@import url("results.css");

/* Setting up the basic structure */

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

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

html {
  background-color: var(--background-backup-color);
  font-size: 10px;

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

body {
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
  color: var(--primary-text-color);
  display: flex;
  flex-direction: column;
}

/* Position the logo */

header {
  padding: 4rem 7rem;

  & > img {
    display: block;
    height: 4rem;
    width: auto;
  }

  @media screen and (max-width: 800px) {
    padding: 7rem 2rem;
    text-align: center;

    & > img {
      margin: 0 auto;
    }
  }
}

/* Position the source code link */

footer {
  margin: auto auto 0 auto;
  padding: 5rem;

  & > p.source {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--secondary-text-color);
    text-align: center;
  }

  & > p.source a {
    font-weight: 600;
    color: var(--itdw-red);
    text-underline-offset: 0.3rem;
    transition: text-underline-offset 0.2s;

    &:hover {
      color: var(--itdw-red-hover);
      text-underline-offset: 0.5rem;
    }
  }

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