* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  #font-family: 'Montserrat';
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
  background: var(--clr-bg-main);
  color: var(--clr-text-main);
  line-height: 1.6;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.content {
  flex: 1;
  margin: 0 10%;
  #padding-left: 1em;
  padding-bottom: 1rem;
}

h1, h2, h3, h4 {
  margin: 1.2em 0 0.6em;
}

h1 {
  border-bottom: 2px solid var(--clr-border-h1);
  padding-bottom: 0.5em;
  font-weight: 700;
}

h2 {
  border-bottom: 1px dashed var(--clr-border-h1);
  padding-bottom: 0.3em;
}

ul.menu {
  display: flex;
  gap: 2px;
  list-style: none;
}

ul.menu li a {
  display: inline-block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--clr-text-main);
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--clr-bg-header);
}

ul.menu li a:hover,
ul.menu li a.active {
  background: rgba(0,0,0,0.1);
  border-bottom: 2px solid var(--clr-border-hover);
  color: var(--clr-link-hover);
}

input, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--clr-bg-header);
  border-bottom: 2px solid var(--clr-bg-header);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-bottom: 2px solid var(--clr-border-hover);
  outline: none;
}

.property {
  width: 21%;
}

textarea {
  height: 26em;
  resize: vertical;
  overflow-y: auto;
  width: 100%;
}

button {
  cursor: pointer;
  background: var(--clr-bg-header);
  color: var(--clr-text-main);
  border: 1px solid var(--clr-bg-header);
  border-bottom: 2px solid var(--clr-bg-header);
}

button:hover {
  background: rgba(0,0,0,0.2);
  color: var(--clr-link-hover);
  border-bottom: 2px solid var(--clr-border-hover);
}

.dangerous {
  color: var(--clr-dangerous) !important;
}

.dangerous:hover {
  color: var(--clr-dangerous-hover) !important;
}

.notfound {
  color: var(--clr-notfound) !important;
  border-bottom: 2px dotted var(--clr-underline);
}

.notfound:hover {
  color: var(--clr-notfound-hover) !important;
  border-bottom-color: var(--clr-underline-hover);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  border: 1px solid var(--clr-border-table);
  padding: 0.5rem;
  text-align: center;
}

th {
  background: var(--clr-th-bg);
}

code {
  display: block;
  background: var(--clr-bg-header);
  color: var(--clr-text-main);
  padding: 0.6rem;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
}

blockquote {
  background: var(--clr-blockquote-bg);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  border-left: 5px solid rgba(0,0,0,0.1);
  border-radius: 5px;
}

header, footer {
  background: var(--clr-bg-header);
  margin: 0 10%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}
