/* General */
/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
/* Variables */
:root{
  --paddlr: 1em;
  --paddtb: .5em;
  --offset: 3em;
  --cardaspect: 150%;
}
/* Type */
h1{
  /* font-size: 1.75em; */
}
body {
  font-size: 1rem;
  line-height: 1.25;
  font-family: serif;
}
.header{
  color: white;
}
.header a{
  text-decoration: none;
  color: white;
}


/* Everything Footer */
/* Header */
.header{
  position: fixed;
  z-index: 2;
  width: 100%;
  max-height: calc(100% + 1px);
  overflow-y: auto;
  background: var(--primcolor);
}
/* Logos General */
.logo-wall li, .main-logo{
  mask-image;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.logo-wall li img, .main-logo img{
  opacity: 0;
}
/* Main Menu Top */
.top-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  /* sticky */
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primcolor);
  z-index: 2;
}
.header.closed .top-section{
  position: revert;
  top: revert;
  width: revert;
  background: revert;
}
.logo.left{
  padding-right: 0;
  width: 100%;
}
.logo.left, .copyright{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: var(--paddtb) var(--paddlr);
}
.logo.left .main-logo{
  background: white;
}
.main-logo{
  margin-right: .5em;
  /* small fix to avoid cropping of svgs */
  padding: .01em;
}
.main-logo img{
  height: 2em;
  max-width: 4em;
}
.copyright{
  background: white;
  color: var(--primcolor);
}
.header .copyright{
  border-bottom: 1px solid black;
}
.copyright .main-logo{
  background: var(--primcolor);
}
/* Breadcrumbs */
.breadcrumbs{
  border-top: 1px solid white;
  width: calc(100% - 2 * var(--paddlr));
  margin: 0 var(--paddlr);
  padding: 1em 0;
  text-align: center;
  list-style: disc;
  display: none;
}
.header.closed .breadcrumbs:last-of-type{
  display: revert;
}
.breadcrumbs span{
  margin-left: -.2em;
}
/* Main Nav */
nav{
  margin: 0;
  padding: 0;
  margin-top: 3.4em;
}
nav ul{
  margin: 0;
  padding: 0 var(--paddlr);
  padding-bottom: var(--paddtb);

  display: flex;
  flex-direction: column;
  align-items: center;
}
nav ul li{
  list-style: none;
  margin-bottom: .5em;
}
nav ul li.selected{
  list-style: disc;
  margin-left: 1em;
  padding-left: 0;
}
nav ul li.selected a{
  margin-left: -.25em;
}
hr.solid{
  border: none;
  border-top: 1px solid white;
  width: 100%;
  margin-bottom: 1em;
}
hr.solid.mobile{
  margin-top: 0;
}
.poll-buttons{
  width: 100%;
  margin-top: .75em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: black;
}
.poll-buttons button{
  width: 48%;
  background: white;
  border-radius: 3px;
  border: none;
  padding: .25em 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.poll-buttons button:active{
  background: var(--seccolor);
}

/* Logo Wall */
.logo-wall{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--seccolor);
  padding: 1em;
  margin: 0;
}
.logo-wall li{
  background: var(--primcolor);
  list-style: none;
  margin: 1em;
}
.logo-wall li img{
  height: calc(33vw - 8em / 3);
  width: calc(33vw - 8em / 3);
}
/* Menu Open Close */
.openclose{
  padding: 0;
  margin: 0;
  margin-top: .1em;
  line-height: 0;
  position: fixed;
  z-index: 3;
  right: var(--paddlr);
  top: var(--paddtb);
  background: none;
  border: none;
  transform: rotate(45deg);
}
.header.closed .openclose{
  background: none;
  border: none;
  transform: rotate(0);
}
.openclose img{
  width: 2em;
  height: 2em;
}
.header.closed .main-nav, .header.closed .logo-wall, .header.closed .copyright{
  display: none;
}

/* Footer */
.footer{
  --paddlr: .75em;
  --paddtb: .5em;
  padding-top: 0;
}



/* Content Pages */
/* Main Page */
#body .wrapper{
  position: relative;
  padding-top: var(--offset);
}
.noscroll{
  position: fixed;
}
.start-img{
  width: 100%;
  padding-bottom: .5em;
}
/* Subcategories */
.card-overview{
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: .5em;
  padding-bottom: 0;
  margin: 0;
}
.card-overview li{
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: var(--cardaspect);
  margin-bottom: .5em;
  order: 1;
}
.card-overview li.description{
  order: 2;
  border: 1px solid var(--primcolor);
}
.card-overview li.project a{
  text-decoration: none;
}
.card-content{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
}
.card-content .overlay{
  width: 100%;
  height: calc(100% - 4em);
  position: absolute;
  background: white;
  border: 1px solid var(--primcolor);
  padding: 4em;
  display: none;
}
.card-content:hover .overlay{
  display: flex;
}
.card-content .overlay .main-logo{
  background: var(--seccolor);
  margin-right: 0;
  width: 100%;
}
.card-content .overlay .main-logo img{
  max-width: none;
}
.card-content img{
  width: 100%;
  height: calc(100% - 4em);
  object-fit: cover;
}
.card-content .title, .card-content .meta{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 1;
  font-size: 1rem;
}
.card-content .title{
  font-weight: bold;
  background: var(--primcolor);
  color: white;
}
.card-content .title span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 0.5em;
}
.card-content .meta{
  background: var(--seccolor);
  color: var(--primcolor);
}
.card-content .buybutton{
  position: absolute;
  bottom: 5em;
}
/* description card specifically */
.card-overview li.description .card-content{
  padding: .5em;
  overflow-y: auto;
  max-height: calc(100% - 2em);
}
.card-overview li.description .about-link{
  position: absolute;
  bottom: .5em;
  left: .5em;
  color: black;
}
.card-overview li .card-content p:first-of-type{
  margin-top: 0;
}

/* Project Pages */
.project-carousel{
  padding: .5em;
  padding-bottom: 0;
  line-height: 0;
}
.project-carousel img{
  width: 100%;
  margin-bottom: .5em;
}
.project-carousel img:last-of-type{
  margin-bottom: 0;
}
.project-content{
  padding: 0 .75em;
  max-width: 45em;
}
.project-content h1{
  margin: .5em 0;
}
.project-content .meta{
  background: var(--primcolor);
  color: white;
  padding: .5em;
  font-size: 1rem;
}
.project-content hr{
  border-bottom: 1px solid black;
}
.project-content .related{
  display: none;
}
.swiper-navigation{
  display: none;
}

/* Info Pages */
.info img{
  border: 1px solid black;
}
.info .meta{
  background: var(--seccolor);
  color: black;
}
.numbers{
  display: flex;
  flex-wrap: wrap;
  margin: 0 -.25em 1em -.25em;
}
.number{
  margin: 0.25em;
  padding: 1em .5em;
  background: var(--seccolor);
  width: calc(33% - 1em);
  text-align: center;
  flex-grow: 1;
}
.number h2{
  margin: 0 0 .5em 0;
}
.info-icon{
  width: 5em;
  margin-top: 1em;
  padding: 1em;
  margin-bottom: -.5em;
}



/* Desktop and Responsive in General */
/* Normal Phones */
@media (min-width:360px) {
  /* Type */
  body{
    font-size: 1.1rem;
  }
  .logo.left{
    font-weight: bold;
  }
}
/* Desktop */
@media (min-width:600px) {
  /* Vars */
  :root{
    --paddlr: 3rem;
    --paddtb: 1.5rem;
    --cardaspect: calc( 150% * .3333333);
  }
  /* Type */
  .logo.left{
    font-size: 1.25em;
  }
  /* Menu */
  .openclose{
    font-size: 1.25em;
    position: absolute;
  }
  nav{
    margin-top: 0;
  }
  .top-section{
    position: revert;
    top: revert;
    width: revert;
    background: revert;
  }
  nav ul{
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    max-height: 6.75em;
  }
  nav ul li{
    min-width: 10em;
  }
  nav ul li.selected{
    min-width: 9em;
  }
  .poll{
    display:none;
  }
  hr.solid{
    position: absolute;
    width: 4.5em;
    transform: rotate(90deg);
    left: 16.5em;
    top: 7.5em;
  }
  hr.solid.mobile{
    margin: revert;
  }
  hr.solid:first-of-type{
    left: 6.5em;
  }
  hr.solid:last-of-type{
    left: 26.5em;
    display: none;
  }
  /* Logo Wall */
  .logo-wall{
    padding: 2em calc((100% - 50em) / 2)
  }
  .logo-wall li{
    margin: 1em;
  }
  .logo-wall li img{
    height: 4em;
    width: auto;
    max-width: 7em;
  }
  /* Content */
  #body .wrapper{
    padding-top: var(--offset);
  }
  /* Sub category pages */
  .card-overview{
    flex-direction: row;
    flex-wrap: wrap;
    padding: .25em;
  }
  .card-overview li{
    width: auto;
    flex-grow: 1;
    flex-basis: 16em;
    padding-bottom: 35em;
    margin: .25em;
  }
  .card-overview li.description {
    order: 1;
  }
  /* Project Pages */
  .project-carousel{
    height: calc(100vh - var(--offset));
    padding: 0;
  }
  .project-carousel img{
    margin: 0;
    width: auto;
    max-width: 100vw;
    height: 100%;
    object-fit: contain;
  }
  .swiper-navigation{
    display: block;
    position: absolute;
    top: calc(100vh - 4em - 1em);
    left: 1em;
    height: 4em;
    z-index: 1;
  }
  .swiper-navigation button{
    padding: 0;
    line-height: 0;
    border: 1px solid var(--seccolor);
    border-radius: 0;
  }
  .swiper-navigation img{
    width: 4em;
    height: 4em;
    object-fit: cover;
  }
  .project-content hr{
    left: revert;
    position: revert;
    width: revert;
    transform: revert;
    top: revert;
  }
  .project-content .related{
    display: revert;
    font-size: 1rem;
  }
  .project-content .related ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -.25em .5em -.25em;
  }
  .project-content .related li{
    width: 25%;
    padding: 0;
    margin: 0;
  }
  .project-content .related a{
    text-decoration: none;
  }
  .project-content .related figure{
    height: 18em;
    margin: 0;
    padding: .25em;
    line-height: 0;
    position: relative;
  }
  .project-content .related img{
    width: 100%;
    height: calc(100% - 2em);
    object-fit: cover;
  }
  .project-content .related figcaption{
    height: 2em;
    background: var(--seccolor);
    color: var(--primcolor);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0;
    padding: 1.2em .5em;
    width: calc(100% - .5em);
  }
  /* About Pages/Info */
  .number{
    width: calc(20% - 1em);
  }
}
@media (min-width:875px) {
  /* Menu */
  .poll{
    display: block;
  }
  hr.solid:last-of-type{
    display: block;
  }
  /* breadcrumbs */
  .top-section{
    flex-direction: row;
  }
  .logo.left{
    width: auto;
    padding-right: 0;
  }
  .breadcrumbs span{
    margin: 0;
  }
  .breadcrumbs{
    display: revert;
    width: auto;
    border: none;
    list-style: none;
    margin: 0;
    margin-right: 0;
    font-size: 1.25em;
  }
  .breadcrumbs::before{
    content: "/ ";
    margin-right: 0;
    margin-left: .25em;
  }
  /* Content */
  .card-overview li{
    flex-basis: 20em;
  }
}
@media (min-width:1200px) {
  /* navigation */
  nav ul li{
    min-width: 13em;
  }
  nav ul li.selected{
    min-width: 12em;
  }
  hr.solid{
    left: 21em;
  }
  hr.solid:first-of-type{
    left: 8em;
  }
  hr.solid:last-of-type{
    left: 34em;
  }
  /* Logo Wall */
  .logo-wall{
    padding: 2em calc((100% - 70em) / 2)
  }
}
@media (min-width:1850px) {
  /* Logo Wall */
  .logo-wall{
    padding: 2em calc((100% - 110em) / 2)
  }
  .logo-wall li{
    margin: 1.5em;
  }
  .logo-wall li img{
    height: 6.25em;
    max-width: 12em;
  }
}
