@import url("/assets/reset.css");
@import url("/assets/controls.css");

:root {
  --color-main-1: oklch(15% 0 0);
  --color-main-2: oklch(20% 0 0);
  --color-main-3: oklch(25% 0 0);
  --color-main-4: oklch(28% 0 0);
  --color-main-5: oklch(30% 0 0);

  --color-sub-1: oklch(95% 0 0);
  --color-sub-2: oklch(75% 0 0);
  --color-sub-3: oklch(55% 0 0);
  --color-sub-4: oklch(40% 0 0);
}

body.light {
  --color-main-1: oklch(100% 0 0);
  --color-main-2: oklch(98% 0 0);
  --color-main-3: oklch(93% 0 0);
  --color-main-4: oklch(88% 0 0);
  --color-main-5: oklch(85% 0 0);

  --color-sub-1: oklch(10% 0 0);
  --color-sub-2: oklch(50% 0 0);
  --color-sub-3: oklch(80% 0 0);
  --color-sub-4: oklch(90% 0 0);
}

.themeSwitcher {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
}

.themeSwitcher > button {
  display: flex;
  flex-direction: column;
  height: 35px;
  width: 35px;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: var(--color-main-2);
  border: 1px solid var(--color-main-5);
  border-radius: 5px;
  animation-duration: 300ms;
  cursor: pointer;
}

.themeSwitcher > button:hover {
  background-color: var(--color-main-3);
}

body {
  background-color: var(--color-main-1);
  color: var(--color-sub-1);
  width: 100%;
  min-height: 100dvh;
  padding: 10px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media screen and (width >= 80rem) {
  body {
    width: 80rem;
  }
}

header > img {
  margin: 0 auto;
}

header > nav {
  width: 100%;
  height: 50px;
  background-color: var(--color-main-2);
  border: 1px solid var(--color-main-5);
  border-radius: 5px;
  display: flex;
  flex-direction: row;
}

header > nav > button {
  width: 50%;
  height: 100%;
  animation-duration: 300%;
  cursor: pointer;
  background-color: transparent;
}

header > nav > button:hover {
  background-color: var(--color-main-3);
}


header > nav > button:not(:first-child) {
  border-left: 1px solid var(--color-main-5);
}

main {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  height: fit-content;
  background-color: var(--color-main-2);
  border: 1px solid var(--color-main-5);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

b {
  font-weight: bold;
}