:root {
  --background-color: #fff;
  --font-color: #000;
  --font-color-lighter: rgb(87, 89, 88);
  --font-size-main: 3.545rem;
  --font-size-description: 1.245rem;
  --box-color: #f2f2f2;
  --working-color: #137333;
  --working-color-background: #e6f4ea;
  --error-color-background: #fce8e6;
  --error-color: #c5221f;
  --working-with-error-color: #b05a00;
  --working-with-error-color-background: #fef7e0;
  --icon-size: 48px;
}

body {
  margin: 2rem 2rem;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--font-color);
  background-color: var(--background-color);
}

header {
  margin-left: 1rem;
}

header description {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--font-size-description);
  line-height: var(--fonr-size-description);
  color: var(--font-color-lighter);
}

header main {
  font-size: var(--font-size-main);
  line-height: var(--font-size-main);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

code {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

none {
  display: none;
}

status {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  @media (max-width: 768px) {
    flex-direction: column;
  }  
}

status > card {
  background-color: var(--box-color);
  padding: 2rem;
  margin: 1rem 1rem;
  min-height: 3rem;
  border-radius: 9px;
  flex-grow: 1;
}

status > card.green-card {
  background-color: var(--working-color-background);
}

status > card.red-card {
  background-color: var(--error-color-background);
}

status > card.yellow-card {
  background-color: var(--working-with-error-color-background);
}

status > card main {
  font-size: calc(var(--font-size-description) + 0.1rem);
}

.green-text {
  color: var(--working-color);
}

.red-text {
  color: var(--error-color);
}

.yellow-text {
  color: var(--working-with-error-color);
}

.gray-text {
  color: gray;
}

status-text,
reason p {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

reason p {
  line-height: 125%;
}

icon {
  font-size: var(--icon-size) !important;
}

a {
  text-decoration: none;
  color: #1967d2;
}

reason {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}

reason > * {
  display: block;
  margin: 1rem;
  flex-grow: 1;
  max-width: 40%;
}

reason main {
  font-size: calc(var(--font-size-description) + 0.2rem);
  font-weight: 550;
}

.footer {
  margin: 1rem;
  color: var(--font-color-lighter);
  font-size: calc(var(--font-size-description) - 0.4rem);
}

.footer > text {
  font-size: calc(var(--font-size-description) - 0.6rem);
}

.footer > * {
  display: block;
}

@media screen and (max-width: 768px) {
  :root {
    --font-size-main: 3rem;
    --font-size-description: 1.045rem;
  }

  reason > * {
    max-width: 100%;
  }

  .footer {
    font-size: calc(var(--font-size-description) - 0.1rem);
  }

  .footer > text {
    font-size: calc(var(--font-size-description) - 0.2rem);
  }
}

@media screen and (min-width: 768px) {
  header > * {
    display: inline-block;
    margin-left: 1%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --font-color: rgba(255, 255, 255, 0.86);
    --font-color-lighter: rgba(255, 255, 255, 0.4);
    --background-color: rgb(0, 0, 0);
    --box-color: rgb(40 40 40 / 73%);
    --working-color-background: #07220f;
    --error-color-background: #270501;
    --working-with-error-color-background: #392605;
  }
}

#challenge-running {
  display: none;
}

#footer-text {
  display: none;
}

.waifu-img {
  position: fixed;
  bottom: -5px;
  right: 0;
  z-index: 99;
  @media (max-width: 768px) {
    display: none;
  }
}

.container {
  max-width: 60rem;
  margin: 0 auto;
  margin-top: 75px;
  @media (max-width: 1024px) {
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.error-icon {
  position: absolute;
  bottom: -3px;
  right: -5px;
  font-size: 24px;
  background: var(--error-color-background);
  border-radius: 50%;
}
