/* colors */
/*
:root {
  --fg-color: #132333;
  --bg-color: #eeedec;
  --body-background: #fefdfc;
  --offset-bg-color: #e7e6e5;
  --err-color: #c00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg-color: #fefdfc;
    --bg-color: #2e2e2e;;
    --body-background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    --offset-bg-color: #393939;
  }
}
/**/

html {
	color-scheme: light dark;
	background-color: light-dark(white, black);
	color: light-dark(black, white);
}

body {
  font: 1rem/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  margin: 0;
  height: 100dvh;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header, main, footer {
  width: 50rem;
  max-width: 50rem;
}
header {
  padding-top: 1rem;
}

* + * {
  margin-top: 0.5rem;
}
.no-owl {
  margin-top: 0;
}

label,input,select,textarea,button {
  display: block;
  box-sizing: border-box;
}

input, button, select, textarea {
  padding: 0.3rem;
  width: 100%;
  font-size: 1rem;
}
input[type="checkbox"], input[type="radio"] {
  display: inline-block;
  width: auto;
}
input[readonly] {
  background-color: lightgray;
}

summary {
  cursor: pointer; /* weird that this is not default */
}

.card {
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* design */
nav a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  &:hover {
    text-decoration: underline;
  }
  &:active {
    text-decoration: underline;
  }
  &:visited {
    color: inherit;
  }
}

nav details {
  float:right;
  display: inline-block;
  margin-left: 1rem;
  margin-top: 0;
  div {
    position: fixed;
    padding: 0.5rem;
    &:hover {
      background: var(--offset-bg-color);
    }
  }
}

nav.breadcrumbs  {
  h3 {
    font-size: 0.8rem;
    font-weight: normal;
  }
  a {
    font-weight: bold;
    text-transform: none;
  }
}

.card h3 {
  margin: 0;
}

/* triptych loaded animation */
.loaded {
  animation: show 400ms forwards;
  opacity: 0.3;
}

@keyframes show {
  100% {
    opacity: 1;
  }
}
