:root {
  --color-primary: #ffb626;
  --color-secondary: #0025CA;
  --color-tertiary: #f11012;
  --color-foreground: #0f111a;
  --color-background: #ffffff;
}

html {
  font-size: 100%;
}

body {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  color: var(--color-foreground);
  margin: 0;
  background-color: #ffffff;
}

.main {
  max-width: 600px;
  margin: 1rem auto;
  padding: 2rem;
}

.logo {
  width: 10rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 2rem;
}

.heading {
  font-size: 3rem;
  margin-top: 0;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
}

.subheading {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 4rem;
  font-weight: 400;
  text-align: center;
}

.viewOnGitHub {
  font-size: 2rem;
  margin-bottom: 4rem;
  display: block;
  text-align: center;
  color: var(--color-foreground);
  transition: all 0.2s ease-in-out;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.25rem;
}

.viewOnGitHub:hover {
  color: var(--color-secondary);
}

.viewOnGitHub:focus {
  outline-width: 0;
  box-shadow: var(--color-primary) 0 0 0 0.25rem;
  transition: box-shadow 0.2s ease 0s;
}

.imageHolder img {
  width: 100%;
  border: 0.25rem solid var(--color-secondary);
  margin-bottom: 2rem;
  box-shadow: 0.5rem 0.5rem 0 0 var(--color-foreground);
}

.imageHolderTitle {
  text-align: center;
  font-weight: 400;
  margin-bottom: 1rem;
  display: none;
}

.formLabel {
  font-size: 1.2rem;
  color: var(--color-foreground);
  margin-bottom: 2rem;
  display: block;
  text-align: center;
}

.urlInput {
  height: 3rem;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.75rem;
  padding: 0.25rem 1rem;
  margin-bottom: 2rem;
  color: var(--color-foreground);
  border: 0.125rem solid var(--color-foreground);
}

.urlInput:focus {
  outline: 0.125rem solid var(--color-primary);
}

.error {
  display: none;
  color: var(--color-background);
  background-color: var(--color-tertiary);
  padding: 1rem;
  font-size: 1.8rem;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
  border: 0.25rem solid var(--color-primary);
}

.button {
  border-radius: 0;
  border: 0.125rem solid var(--color-foreground);
  text-transform: uppercase;
  font-size: 1.5rem;
  display: block;
  background-color: var(--color-foreground);
  padding: 0.5rem 1rem;
  color: var(--color-background);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 0.125rem solid var(--color-background);
  box-shadow: 0.5rem 0.5rem 0 0 var(--color-primary);
  margin: 1rem auto 2rem auto;
}

.button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.button:focus {
  outline-width: 0;
  box-shadow: var(--color-primary) 0 0 0 0.25rem;
  transition: box-shadow 0.2s ease 0s;
}

/* https://tobiasahlin.com/spinkit/ */

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 100px auto;
  display: none;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.footerLink {
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--color-foreground);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.25rem;
  transition: all 0.2s ease-in-out;
}

.footerLink:hover {
  color: var(--color-secondary);
}

.footerLink:focus {
  outline-width: 0;
  box-shadow: var(--color-primary) 0 0 0 0.25rem;
  transition: box-shadow 0.2s ease 0s;
}

@-webkit-keyframes sk-bounce {
  0%,
  100% {
    -webkit-transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}
