/*------------------------------*
 * Element defaults & structure *
 *------------------------------*/
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
}

body {
  display: flex;
}

hr {
  width: 100%;
  margin: 0;
}

a {
  color: var(--header);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--header-alt);
  transition: 0.3s;
}

/* Base color/background transition targets */
body,
aside#nav,
#effects-table,
#banner {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
#effects-table tbody tr {
  transition: none;
}

/* Disable transitions during batch DOM updates */
.suspend-transitions,
.suspend-transitions * {
  transition: none !important;
  animation: none !important;
  caret-color: transparent !important;
}

/*----------------------------*
 * Main content container     *
 *----------------------------*/
main#content {
  flex: 1;
  padding: 1.5rem 2rem 1rem 1.5rem;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
}
main#content > section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Background image styles */
#content.bg-image {
  background-image: url("../img/background.png");
  background-repeat: no-repeat;
  background-size: cover;
}
#content.bg-overlay {
  transition: 0.3s;
  position: relative;
}
#content.bg-overlay::before {
  transition: 0.3s;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--bg-overlay-main);
}
#content.bg-overlay > * {
  position: relative;
  z-index: 1;
}

/* Title & version */
main h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--header);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
main h1 span {
  margin-top: 1.5px;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-self: flex-start;
}

/* Intro */
.intro-bar {
  display: flex;
  flex-direction: column;
}
.intro-bar .intro-text {
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--white);
}

:root.dark .intro-bar .intro-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Utility */
.hidden {
  display: none !important;
}
