@import url("normalize.css");
@import url("colors.css");
@import url("variables.css");
@import url("buttons.css");
@import url("text.css");
@import url("lists.css");
@import url("forms.css");
@import url("tables.css");
@import url("slideshow.css");
@import url("dropdown.css");
@import url("navbar.css");
@import url("sidebar.css");
@import url("modal.css");


*,
::before,
::after {
  box-sizing: inherit;
  padding: 0px;
  margin: 0px
}

html {
  color: var(--text-color);
  background-color: var(--background-color);
}

body {
  width: 100vw;
  height: 100vh;
  transition: margin-left .5s;
}

body.grid {
  display: grid;
  grid-template-areas: var(--template);
  grid-template-rows: auto;
  grid-gap: var(--gap-size);
}

header,
nav,
main,
footer {
  border: none;
  outline: none !important;
  margin: 0;
}

header {
  grid-area: header;
  column-span: all;
  width: 100%;
  height: var(--header-h);
  padding: 1em 2em;
  display: inline-flex;
  align-items: center;
  background-color: var(--header-color);
  z-index: 100;
}

header.sticky {
  position: sticky;
  top: 0;
}

header.fixed {
  position: fixed;
  top: 0;
}

header.bordered {
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: var(--border-size) solid var(--border-color);
}

main {
  grid-area: main;
  column-span: all;
  width: 100%;
  height: var(--main-h);
  padding: 0;
  background-color: var(--main-color);
  overflow-y: auto;
}

footer {
  grid-area: footer;
  column-span: all;
  width: 100%;
  height: var(--footer-h);
  padding: 1em 2em;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-075);
  background-color: var(--footer-color);
  z-index: 100;
}

footer.bordered {
  border-top: var(--border-size) solid var(--border-color);
  border-bottom: none;
  border-right: none;
  border-left: none;
}

footer.sticky {
  position: sticky;
  bottom: 0;
}

footer.fixed {
  position: fixed;
  bottom: 0;
}

.grid.container {
  display: grid;
  width: 100%;
  grid-template-areas: var(--template);
  grid-template-rows: auto;
  grid-gap: var(--gap-size);
}

.subgrid {
  box-sizing: border-box;
  width: max(width, 100vw / var(--columns));
  column-fill: balance;
  gap: 1em;
  padding: 2em;
  overflow-y: auto;
  text-align: justify;
}

.grid>.section {
  grid-area: section;
  min-height: var(--main-h);
  padding: 2em;
  overflow-y: auto;
}

.container {
  width: 100%;
  min-height: var(--main-h);
  padding: 2em;
  align-content: center;
  overflow-y: auto;
}

.container.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: auto;
  text-align: center;
}


.box {
  width: 65%;
  max-height: 75vh;
  margin: auto;
  padding: 1em 2em;
  font-size: var(--font-100);
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow-y: auto;
  text-align: justify;
}

.tile {
  margin: auto;
  padding: 1em 2em;
  width: fit-content;
  height: fit-content;
  font-size: var(--font-100);
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow-y: auto;
  text-align: center;
}

.panel {
  width: fit-content;
  height: fit-content;
  margin: auto;
  padding: 1em 2em;
  font-size: var(--font-100);
  border: var(--border-size) solid var(--border-color);
  border-radius: var(--border-radius);
  overflow-y: auto;
  text-align: justify;
}

.panel>h1,
.panel>h2,
.panel>h3 {
  margin-top: 0;
  font-size: var(--font-075);
  font-weight: bold;
  text-transform: uppercase;
}

.panel img {
  max-width: 25em;
  margin-right: 2em;
  float: inline-start;
  clear: both;
}

.unpadded {
  padding: 0 !important;
}

.full-width {
  width: 100% !important;
}

.centered {
  margin: auto;
  text-align: center;
  justify-content: center;
}

.pulled-right {
  float: right;
  clear: left;
}


.pulled-left {
  float: left;
  clear: right;
}

.absolute-right {
  position: absolute;
  right: 2em;
  text-align: right;
  justify-content: right;
}


.absolute-bottom-center {
  position: absolute;
  left: 50vw;
  text-align: center;
  justify-content: center;
  bottom: 1em;
}

.absolute-bottom-right {
  position: absolute;
  right: 2em;
  text-align: right;
  justify-content: right;
  bottom: 1em;
}

.absolute-bottom-left {
  position: absolute;
  left: 2em;
  text-align: left;
  justify-content: left;
  bottom: 1em;
}


.bordered {
  border: var(--border-size) solid var(--border-color);
}

.outlined {
  outline: var(--border-size) solid var(--border-color);
}

.shadowed {
  box-shadow: 0 0 0.75em 0.25em var(--shadow-color);
}

.backlit {
  box-shadow: 0 0 0.75em 0.25em var(--backlite-color);
}

.thumbnail img {
  width: 100%;
  margin-bottom: 0.5em;
}

.thumbnail {
  width: 100%;
  margin: 0 0 0.5em;
  padding: 0.5em;
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  text-align: center;
  text-transform: uppercase;
  font-style: italic;
  font-size: var(--font-065);
}

/* Animation */
.fade-in {
  animation-name: fade-in;
  animation-duration: 1s;
}

@keyframes fade-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fade-out {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}


@media (max-width: 35em) {

  :root {
    --columns: 1;
    --sidebar-w: 100vw;
  }

  .hide-s {
    display: none;
  }

  .column {
    margin-left: 0;
  }

  .column:first-child {
    margin-left: 0;
  }
}

/*@media screen and (min-width: 48.0625em) and (max-width: 62em) and (orientation: portrait) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}*/

@media (min-width: 35.0625vw) and (max-width: 62vw) {

  :root {
    --columns: 1;
  }

  .hide-m {
    display: none;
  }

  .column {
    margin-left: 0;
  }

  .column:first-child {
    margin-left: 0;
  }
}

@media (min-width: 62.0625vw) {
  .hide-l {
    display: none;
  }


  .columns {
    display: flex;
    column-gap: 1em;
  }

  .column:first-child {
    margin-left: 0;
  }

  .column.x1 {
    width: 6.5%;
  }

  .column.x2 {
    width: 15%;
  }

  .column.x3 {
    width: 23.5%;
  }

  .column.x4 {
    width: 32%;
  }

  .column.x5 {
    width: 40, 5;
  }

  .column.x6 {
    width: 49%;
  }

  .column.x7 {
    width: 57.5%;
  }

  .column.x8 {
    width: 66%;
  }

  .column.x9 {
    width: 74.5%;
  }

  .column.x10 {
    width: 83%;
  }

  .column.x11 {
    width: 91.5%;
  }

  .column.x12 {
    width: 100%;
    margin-left: 0;
  }

  .column.one-third {
    width: 32%;
  }

  .column.two-thirds {
    width: 66%;
  }

  .column.one-half {
    width: 49%;
  }

  /* Offsets */
  .column.offset-by-one {
    margin-left: 8.5%;
  }

  .column.offset-by-two {
    margin-left: 17%;
  }

  .column.offset-by-three {
    margin-left: 25.5%;
  }

  .column.offset-by-four {
    margin-left: 34%;
  }

  .column.offset-by-five {
    margin-left: 42.5%;
  }

  .column.offset-by-six {
    margin-left: 51%;
  }

  .column.offset-by-seven {
    margin-left: 59.5%;
  }

  .column.offset-by-eight {
    margin-left: 68%;
  }

  .column.offset-by-nine {
    margin-left: 76.5%;
  }

  .column.offset-by-ten {
    margin-left: 85%;
  }

  .column.offset-by-eleven {
    margin-left: 93.5%;
  }

  .column.offset-by-one-third {
    margin-left: 34.6666666667%;
  }

  .column.offset-by-two-thirds {
    margin-left: 69.3333333333%;
  }

  .column.offset-by-one-half {
    margin-left: 52%;
  }
}

/* Self Clearing Goodness */
.container:after,
.row:after,
.clear-float {
  content: "";
  display: table;
  clear: both;
}
