:root {
  --background: #3d3e40;
  --card: #575c66;
  --muted: #adb8cc;
  --text: #f2f2f2;
  --accent: #16d9d9;
  --border: #6e6e6e;
  color-scheme: light dark;
}

.light {
  --background: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #11a6a6;
  --border: #e6e9ef;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--background);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  height: 100%;
  margin: 0;
  padding: 0;
}

.main {
  background: var(--background);
  padding: 1em 5em;
}

.header {
  background: var(--card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1em;
  padding: 1em;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 var(--card), 0 2px 20px 0 var(--card);
}

.header a {
  text-decoration: none;
}

.header h1 {
  color: var(--accent);
  font-size: 1.75em;
  font-weight: 600;
  margin: 0;
}

.title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25em;
}

.title svg {
  height: 2em;
  width: auto;
  stroke: var(--accent);
}

.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  margin-right: 0.5em;
  gap: 0.5em;
}

nav a {
  color: var(--muted);
  font-size: 1em;
  font-weight: 400;
  text-decoration: none;
  padding: 0.5em;
  border: 1px solid var(--border);
}

nav p {
  margin: 0;
}

nav .active {
  color: var(--card);
  background: var(--accent);
}

nav svg {
  stroke: var(--muted);
}

nav .active svg {
  stroke: var(--card);
}

nav a:hover, nav a:focus {
  outline: none;
  color: var(--accent);
  border-color: var(--accent);
}

nav a:hover svg, nav a:focus svg {
  stroke: var(--accent);
}

nav .active:hover, nav .active:focus {
  outline: none;
  color: var(--text);
  border-color: var(--accent);
}

nav .active:hover svg, nav .active:focus svg {
  stroke: var(--text);
}

#themeIcon {
  border: 1px solid var(--border);
}

#themeIcon svg {
  margin: auto;
}

#themeIcon svg path {
  fill: var(--muted);
}

#themeIcon:hover, #themeIcon:focus {
  outline: none;
  border-color: var(--accent);
}

#themeIcon:hover svg path, #themeIcon:focus svg path {
  fill: var(--accent);
}

.layout-app {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.layout-simple {
  display: grid;
  grid-template-columns: 1fr;
  width: 75%;
  margin: 0 auto;
}

.section {
  background: var(--card);
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid var(--border);
  border-radius: 12px; 
  box-shadow: 0 1px 8px 0 var(--card), 0 2px 20px 0 var(--card);
}

.section h2 {
  color: var(--accent);
  font-size: 1.25em;
  font-weight: 600;
  margin: 0 0 0.5em 0;
}

.section p {
  color: var(--text);
  font-size: 1em;
  font-weight: 300;
  margin: 0;
}

.layout-simple p {
  color: var(--text);
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5em;
  margin: 0;
}

.layout-simple ul {
  color: var(--text);
  font-size: 1em;
  font-weight: 300;
  margin: 0;
  padding-left: 2em;
}

.layout-simple a {
  color: var(--accent);
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
}

.small {
  color: var(--muted);
  font-size: 1em;
  font-weight: 300;
  margin-top: 0.5em;
}

footer {
  background: var(--background);
  color: var(--muted);
  font-size: 1em;
  text-align: center;
  padding-bottom: 1em;
}

.button-div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25em;
  cursor: pointer;
  border-radius: 8px;
}

.icon-div {
  width: fit-content;
  cursor: pointer;
  padding: 0.5em;
  border-radius: 8px;
}

.icon {
  height: 1.2em;
  width: auto;
  display: block;
}

@media (max-width: 1100px) {
  .main {
    padding: 0.5em 1em;
  }
  .header {
    display: block;
    position: static;
    text-align: center;
  }
  .title {
    justify-content: center;
  }
  .controls {
    margin: 0.5em auto 0 auto;
    justify-content: center;
  }
  .layout-simple {
    width: 100%;
  }
}

@media (max-width: 550px) {
  nav {
    display: block;
  }
  nav a {
    margin-top: 0.5em;
  }
}
