:root {
  --bg-color: #a6fffe;
  --nav-link-color: blue;
  --link-hover-color: #004080;
  --heading-color: #000000;
  --code-bg-color: #f0f0f0;
  --code-color: #d73a49;
  --border-color: #e0e0e0;
  --image-border-color: black;
  --main-width: 800px;
  --section-color: #a6fffe;
}

/*@media (prefers-color-scheme: dark) {*/
/*  :root {*/
/*    --bg-color: #1a1a1a;*/
/*    --text-color: #e0e0e0;*/
/*    --nav-link-color: rgb(153, 153, 153);*/
/*    --link-hover-color: #80bfff;*/
/*    --heading-color: #ffffff;*/
/*    --code-bg-color: #2a2a2a;*/
/*    --code-color: #ff9966;*/
/*    --blockquote-color: #cccccc;*/
/*    --border-color: #333333;*/
/*    --image-border-color: white;*/
/*  }*/
/*}*/

body {
  font-family: sans-serif;
  line-height: 1.6;
  background: var(--bg-color) url("/bg.png");
  background-size: contain;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 60px 37px;
  background: #1a67b9;
}

main {
  display: flex;
  max-width: 800px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
}

main section {
  padding: 38px 31px;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  border: 3px solid #000;
  background: var(--1, #a6fffe);
  box-shadow: 14px 22px 0px 0px #000;
}

nav {
  display: flex;
  padding: 0px 20px;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px;
  align-self: stretch;
  flex-wrap: wrap;
}

nav a {
  display: flex;
  padding: 4px 12px;
  align-items: center;
  gap: 10px;
  border-radius: 5px 13px 0px 0px;
  outline: 2px solid #000;
  background: var(--3, #d7faff);
  color: black;
}

nav a.selected {
  background: var(--3, #39ff8f);
  font-weight: 700;
}

.sun {
  width: 406px;
  height: 406px;
  top: 0;
  left: 0;
  aspect-ratio: 1/1;
  position: fixed;
  background: radial-gradient(
    78.6% 81.87% at 16.99% 18.55%,
    #dcff14 0%,
    rgba(217, 217, 217, 0) 100%
  );
}

.cloud {
  width: 400px;
  height: 300px;
  position: fixed;
  fill: #fff;
  filter: blur(24.950000762939453px);
}

.grass {
  width: 150%;
  height: 490.181px;
  transform: rotate(2deg);
  position: fixed;
  left: -248px;
  bottom: -298px;
  background: #4eb13f;
  filter: blur(44px);
}

.background {
  z-index: -1;
}

a:hover {
  color: var(--link-hover-color);
}

h1,
h2,
h3 {
  margin-bottom: 10px;
  color: var(--heading-color);
}

ul {
  padding-left: 20px;
}

.list-item {
  margin-bottom: 20px;
}

img {
  max-width: 100%;
}

code {
  background-color: var(--code-bg-color);
  padding: 2px 4px;
  color: var(--code-color);
  border-radius: 3px;
}

blockquote {
  border-left: 3px solid black;
  padding-left: 10px;
  margin-left: 0;
  color: var(--blockquote-color);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
}

table,
th,
td {
  border: 1px solid black;
}

@media (max-width: 900px) {
  :root {
    --main-width: 480px;
  }
}

@media (max-width: 480px) {
  html {
    overscroll-behavior: none;
  }
  body {
    padding: 0;
    background-color: var(--section-color);
  }
  :root {
    --main-width: 100%;
  }
  main section {
    box-shadow: none;
    border: none;
  }
  nav {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    align-self: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
  }
  nav a {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    flex: 1 0 0;
    border: 4px solid black;
    outline: none;
    border-radius: 0;
  }
}
