/**
 * 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");
@import url("dialog.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);
  background-image: url("../images/background.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-size: 10px;

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

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

/* Position the logo */

header {
  padding: 4rem 7rem;

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

/* Position the source code link */

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

  & > a.source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 0.1rem solid rgba(255,255,255,0.12);
    border-radius: 999rem;
    background: rgba(8, 15, 38, 0.56);
    box-shadow: 0 1.2rem 2.4rem -1.8rem rgba(0,0,0,0.65);
    transition:
      transform 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;

    &:hover {
      transform: translateY(-0.2rem);
      border-color: var(--theme-green);
      box-shadow: 0 1.6rem 2.8rem -1.8rem rgba(92, 249, 253, 0.35);
    }

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

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