@font-face {
  font-family: "Rotis Semi Sans Std";
  src: url('RotisSemiSansStd-Light.otf') format("opentype");
}

@font-face {
  font-family: "Rotis Semi Sans Std";
  font-weight: bold;
  src: url('RotisSemiSansStd-Bold.otf') format("opentype");
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#videobackground {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  transform: translateX(calc((100% - 100vw) / 2));
}

body {
  font-family: "Rotis Semi Sans Std", sans-serif;
}

body.noscroll{
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  padding: 0;
  margin: 0;
  display: inline-block;
}

.home-img {
  background: url('../img/bg.jpg') no-repeat fixed center center #666;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0,0,0);
}

#home {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translate3d(0,0,0);
}

#home header {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#home header ul {
  list-style: none;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}

#home header li {
  display: block;
  flex-basis: 100px;
  flex-grow: 1;
  color: #fff;
  margin: 0;
}

#home header li.border {
  border-top: 2px solid #fff;
}

#home header li a {
  display: block;
  color: #fff;
  text-transform: lowercase;
  font-weight: normal;
  padding-left: 0.5vw;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 24px;
  font-size: 3vw;
}

#home header li a
{
  border-bottom: 2px solid #fff;
}

#home header li a:hover {
  color: #ccc;
  background-color: #00000080;
}

#home header li h1 {
  line-height: 1;
  margin-top: 1vw;
  margin-left: 0.5vw;
  font-size: 32px;
  font-size: 3vw;
  text-transform: uppercase;
}

#home footer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  margin-top: 24px;
  font-size: 2vw;
}

#home footer ul {
  margin-left: 24px;
  list-style: none;
  padding: 0;
}

#home footer ul li {
  display: inline;
}

#home footer ul li a {
  color: #b4b4b4;
}

#home footer ul li a:hover, #home footer ul li a.active {
  color: #fff;
}


@media only screen and (max-width: 800px) {
  #home header {
    font-size: 30px;
    position: relative;
    width: auto;
    height: auto;
    top: 0;
  }

  #home header ul {
    display: block;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
  }
  #home header li {
    width: 100%;
    left: auto;
    margin: 0;
    padding: 0;
    line-height: normal;
  }
  #home header li a {
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 4px;
    font-size: 4vw;
    font-size: 24px;
  }
  #home header li:first-child a {
    border-bottom: 0;
  }
  #home header li h1 {
    font-size: 28px;
    margin-left: 24px;
    margin-top: 24px;
    margin-bottom: 30vh;
  }
  #home header li h2 {
    font-size: 18px;
  }

  #home nav {
    left: 0;
    width: 100%;
    right: 0;
    text-align: center;
  }

  #home nav ul {
    margin: 0 20px 0 20px;
    font-size: 26px;
  }

  #home footer {
    top: auto;
    left: 0;
    width: 100%;
    bottom: 0;
    font-size: 24px;
    text-align: center;
  }

  #home footer ul {
    margin-left: 0;
  }
}

#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  bottom: 0;
  background-color: #707070;
  z-index: 1000;
  padding-top: 24px;
  padding-left: 24px;
  padding-bottom: 24px;
  overflow: auto;
  transform: translateX(-100%);
}

.slide-in {
  animation: slide-in 0.25s forwards;
  -webkit-animation: slide-in 0.25s forwards;
}

.slide-out {
  animation: slide-out 0.25s forwards;
  -webkit-animation: slide-out 0.25s forwards;
}

@keyframes slide-in {
  100% { transform: translateX(0%); }
}

@-webkit-keyframes slide-in {
  100% { -webkit-transform: translateX(0%); }
}

@keyframes slide-out {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@-webkit-keyframes slide-out {
  0% { -webkit-transform: translateX(0%); }
  100% { -webkit-transform: translateX(-100%); }
}

#menu .padding {
  padding-top: 4px;
  padding-left: 33px;
}

#menu.show {
  display: block;
}

#menu .close {
  position: absolute;
  font-size: 24px;
  line-height: 0.6;
  margin-top: 8px;
  margin-left: 0px;
  display: block;
}

#menu .close a {
  color: #fff;
}

#menu .close a:hover {
  color: #b4b4b4;
}

#menu .sites {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: bold;
  display: block;
  margin-bottom: 96px;
}

#menu .sites li {
  display: block;
  line-height: 1;
}

#menu .sites .active {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid #fff;
  color: #fff;
}

#menu .sites .subtitle {
  display: block;
  font-size: 16px;
  text-transform: none;
  font-weight: normal;
}
#menu .sites a {
  color: #b4b4b4;
  display: block;
}
#menu .sites a:hover {
  color: #fff;
}

#menu ul.pages {
  border-top: 1px solid #fff;
  display: block;
}

#menu ul.pages li {
  display: block;
  border-bottom: 1px solid #fff;
}

#menu ul.pages li a {
  padding: 8px 0px 0px 0px;
  color: #fff;
  display: block;
  text-transform: lowercase;
}

#menu ul.pages li a:hover {
  color: #b4b4b4;
}

#menu ul.pages li ul li {
  border-bottom: none;
}

#menu ul.pages li ul li a {
  color: #b4b4b4;
}

#menu ul.pages ul li a:hover {
  color: #fff;
}

#menu ul.social {
  margin-top: 96px;
}

#menu ul.social li {
  display: block;
  margin-bottom: 8px;
}

#menu ul.social li span {
  padding-top: 3px;
  padding-left: 3px;
}

#menu li a {
  color: #fff;
  fill: #fff;
}

#menu li a:hover {
  color: #b4b4b4;
  fill: #b4b4b4;
}

#projects {
  background-color: #fff;
  height: 100%;

  display: flex;
  flex-direction: column;
}

.contents {
  margin-top: 24px;
  flex: 1 0 auto;
}

#projects a {
  color: #707070;
  text-decoration: none;
}

#projects header {
  font-size: 24px;
  display: flex;
}

#projects header h1 {
  text-transform: uppercase;
  margin: 0 0 0 0px;
  font-size: 24px;
  color: #707070;
}

#projects header #menubutton a {
  font-size: 40px;
  line-height: 0.6;
  margin-top: 6px;
  margin-left: -11px;
  margin-right: 4px;
  display: block;
}

#projects .top {
  border-top: 2px solid #b4b4b4;
  display: flex;
  justify-content: space-between;
}

#projects .top h2 {
  font-size: 18px;
  font-weight: normal;
  margin-top: 4px;
  color: #707070;
}

#projects .top ul {
  margin: 0 -12px 0 -12px;
}

#projects .top ul li {
  /*display: inline-block;*/
  margin: 4px 12px 0px 12px;
  font-size: 18px;
}

#projects .top ul.language {
  margin: 0 -4px 0 -4px;
}
#projects .top ul.language li {
  margin: 4px 4px 0 4px;
}

#projects .top a {
  color: #b4b4b4;
}

#projects .top ul.menu a {
  color: #707070;
}

#projects .top ul.menu a:hover {
  color: #b4b4b4;
}

#projects .top a.active, #projects .top a:hover {
  color: #707070;
}

#menu .language a.active {
  color: #b4b4b4;
}

#projects ul.menu {
  text-transform: lowercase;
}

#projects .row {
  display: flex;
  margin-bottom: 48px;
  color: #707070;
}

#projects header, #projects .title, #projects .notitle {
  flex-basis: 300px;
  margin-left: 24px;
}

#projects .title {
  border-top: 2px solid #b4b4b4;
  padding-top: 12px;
  font-size: 24px;
  text-transform: lowercase;
}

#projects .subtitle {
  color: #b4b4b4;
}

#projects .first .title {
  border-top: none;
}

#projects .first {
  margin-bottom: 6px;
}

#inneravailable
{
  /*display: flex;
  flex-wrap: wrap;
  align-items: flex-end;*/

  display: grid;
  grid-gap: 48px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

#inneravailablewrapper {
  margin: 32px;
}

@media only screen and (max-width: 800px) {
  #inneravailablewrapper {
    margin: 0;
  }
}

#inneravailable .rowavailable {
  /*flex-basis: 300px;
  flex-grow: 1;
  max-width: 400px;
  min-width: 200px;*/
}

#inneravailable .contentavailable
{
  position: relative;
}

#inneravailable .contentavailable img
{
  width: 100%;
}

#inneravailable .rowavailable .contentavailable {
  overflow: hidden;
}

#inneravailable .rowavailable .contentavailable a {
  display: block;
  transition: margin 1200ms;
  margin: 0;
}

#inneravailable .rowavailable.over .contentavailable a {
/*  margin: -8px;
  transition: margin 1200ms;*/
}

#inneravailable .availablefooter {
  padding-top: 16px;
  height: 80px;
  position: relative;
}

@media only screen and (max-width: 800px) {
  #inneravailable .availablefooter {
    height: 120px;
  }
}

#inneravailable .availablebuy {
  position: absolute;
  text-align: center;
  opacity: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 300ms linear;
  top: 19px;
}

#inneravailable .rowavailable.over .availablebuy {
  transition: opacity 300ms linear;
  opacity: 1;
}

#inneravailable .rowavailable.over .availabletitle, #inneravailable .rowavailable.over .availablesubtitle {
  opacity: 0;
  transition: opacity 300ms linear;
}

@media only screen and (max-width: 800px) {
  #inneravailable .rowavailable.over .availabletitle, #inneravailable .rowavailable.over .availablesubtitle {
    opacity: 1;
  }
  #inneravailable .availablebuy {
    opacity: 1;
    position: relative;
    top: 0;
  }
}

#inneravailable .availabletitle {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  transition: opacity 300ms linear;
}

#inneravailable .availablesubtitle {
  text-align: center;
  font-size: 16px;
  transition: opacity 300ms linear;
}

#inneravailable .availablebuy a {
  display: inline-block;
  background-color: #000;
  border-radius: 30px;
  padding: 8px 16px 4px 16px;
  color: #fff;
}

#inneravailable .availablebuy a.soldout,
#projects a.inquiry.disabled {
  background-color: #ddd;
  color: #999;
}

#projects .content {
  margin-left: 36px;
  margin-right: 24px;
  flex-basis: 400px;
  font-size: 18px;
  flex-grow: 1;
}

#projects .content img {
  position: relative;
  width: 60%;
  max-width: 700px;
  min-width: 400px;
  height: auto;
  max-height: none;
}

#projects .row.project {
  display: block;
  margin: 0px 24px 48px 24px;
  height: 500px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

#projects .row.project img {
  width: 100%;
  height: auto;
  margin-top: -10vw;
}

#projects .subtitle {

}

#projects a.inquiry {
  display: block;
  width: 100%;
  background-color: #000;
  color: #ccc;
  text-align: center;
  margin-top: 30px;
  max-width: 800px;
  text-transform: uppercase;
  font-size: 18px;
  padding: 12px 8px 8px 8px;
  border: 0;
}

#projects a.inquiry:hover {
  background-color: #666;
}

#projects a.inquiry.disabled:hover {
  background-color: #ccc;
  color: #888;
}


#projects .single {
  margin-bottom: 12px;
}

#projects footer {
  background-color: #b4b4b4;
  color: #707070;
  display: flex;
  padding: 24px 48px 48px 24px;
  font-size: 18px;
  flex-shrink: 0;
}

#projects footer .left {
  flex-basis: 250px;
}

#projects footer .left h1 {
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 24px;
}
#projects footer .left li {
  display: block;
}

#projects footer .center {
  flex-basis: 300px;
  flex-grow: 1;
  margin-left: 48px;
}

#projects footer .center ul {
  margin-top: 24px;
}

#projects footer .center li {
  display: block;
  margin-bottom: 12px;
}
#projects footer .center li a {
  display: block;
  font-weight: bold;
}
#projects footer .right {
  flex-basis: 350px;
  flex-shrink: 1;
}

#projects footer .right form div {
  display: flex;
}

#projects footer .right form input {
  border: 1px solid #707070;
  background-color: #b4b4b4;
  padding: 4px;
  flex-grow: 1;
}
#projects footer .right form button {
  border: 1px solid #707070;
  border-left-width: 0;
  background-color: #b4b4b4;
  padding: 4px;
  flex-grow: 0;
  color: #707070;
}

#projects footer .right ul.social {
  position: absolute;
  right: 96px;
  padding-top: 48px;

}

#projects footer .right ul.social li {
  display: block;
  margin-bottom: 8px;
  color: #707070;
  fill: #707070;
}

#projects footer .right ul.social li span {
  padding-top: 3px;
  padding-left: 3px;
}

.editions {
  flex-wrap: wrap;
}

.edition {
  flex-basis: 304px;
  min-width: 304px;
  border: 1px solid #b4b4b4;
  box-shadow: 0px 0px 10px #ddd;
  margin: 12px;
  padding: 12px;
  display: flex;
  height: 304px;
  align-items: stretch;
  flex-direction: column;
}


.edition .img {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.edition .img a {
}

.edition .img img {
  width: 100%;
}

.edition .name {
  font-size: 24px;
  flex-grow: 0;
}

a:hover .icon {
  opacity: 0.5;
}

.icon {
  padding: 4px;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.dialog label {
  display: block;
}

.dialog input[type=text] {
  margin-bottom: 8px;
  width: 100%;
}
.dialog textarea {
  width: 100%;
  height: 100px;
}

.dialog button {
  display: block;
  margin-top: 8px;
  padding: 6px 12px 2px 12px;
  border-radius: 5px;
  background-color: #aaf;
  color: #00a;
  border: none;
  box-shadow: 0px 0px 10px #aaf8;
}

.dialog {
  margin: 16px;
}

#menu .language {
  display: none;
  text-align: right;
  margin-right: 24px;
  margin-bottom: 24px;
}

@media only screen and (max-width: 800px) {
  body.noscroll {
    position:fixed;
    overflow:hidden;
  }

  #projects .top {
    display: none;
  }

  .slide-in {
    animation: slide-in 0.1s forwards;
    -webkit-animation: slide-in 0.1s forwards;
  }

  .slide-out {
    animation: slide-out 0.1s forwards;
    -webkit-animation: slide-out 0.1s forwards;
  }

  @keyframes slide-in {
    100% { transform: translateX(0%); }
  }

  @-webkit-keyframes slide-in {
    100% { -webkit-transform: translateX(0%); }
  }

  @keyframes slide-out {
    0% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
  }

  @-webkit-keyframes slide-out {
    0% { -webkit-transform: translateX(0%); }
    100% { -webkit-transform: translateX(100%); }
  }

  #menu {
    width: 100%;
    height: 100%;
    padding: 0;
    transform: translateX(100%);
  }

  #menu .padding {
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  #menu ul {
    margin-left: 20px;
  }
  #menu ul.sites {
    padding-top: 20px;
  }

  #menu ul.social {
    padding-bottom: 20px;
  }

  #menu .close {
    position: absolute;
    right: 28px;
    top: 20px;
  }

  #menu .language {
    display: block;
  }

  #menubutton {
    position: absolute;
    right: 8px;
  }

  #projects .row {
    flex-direction: column-reverse;
    margin: 0 20px 40px 20px;
  }

  #projects .row.header {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  #projects .row.header header {
    flex-grow: 1;
    flex-basis: 300px;
  }

  #projects .row .title, #projects .row header, #projects .row .notitle {
    flex-basis: auto;
    margin: 0;
    border-top: none;
  }

  #projects .row .title {
    padding-bottom: 30px;
  }

  #projects .row.single .title {
    padding-bottom: 8px;
  }

  #projects .row.first .title {
    text-transform: lowercase;
  }

  #projects .row.first {
    flex-direction: column;
  }

  #projects .row .content {
    border-top: 2px solid #bbb;
    padding-top: 40px;
  }


  #projects .row .content, #projects .row .nav {
    flex-basis: auto;
    margin: 0;
  }

  #projects .row.project  {
    margin: 0 20px 40px 20px;
    max-height: 300px;
  }

  #projects .content img {
    width: 100%;
    max-width: unset;
    min-width: unset;
    height: auto;
    max-height: none;
  }

  #projects footer {
    flex-direction: column;
  }
  #projects footer .left {
    flex-direction: column;
    flex-basis: 0;
  }
  #projects footer .center {
    margin: 0;
    padding: 0;
    flex-basis: 0;
  }
  #projects footer .right {
    flex-basis: 0;
    margin-top: 24px;
  }
  #projects footer .right ul.social {
    position: relative;
    right: auto;

  }

  .edition {
    flex-grow: 1;
    height: auto;
    padding: 0;
    margin: 24px 0 0 0;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #b4b4b4;
  }

  .edition .img {
    margin-bottom: 12px;
  }

  .edition .name {
    margin-bottom: 12px;
  }
}



.markdown-help {
  color: #3333cc !important;
}


#inquiry-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
}

#inquiry-popup .popup {
  position: absolute;
  width: 500px;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  background-color: #fff;
}

#inquiry-popup .popup-header {
  font-size: 24px;
  border-bottom: 1px solid #b4b4b4;
  padding: 24px 24px 18px 24px;
  display: flex;
}

#inquiry-popup .popup-header span {
  flex-grow: 1;
}

#inquiry-popup .popup-image {
  display: flex;
  padding: 24px;
  align-items: center;
}

#inquiry-popup .popup-image-description
{
  margin-left: 24px;
  flex-grow: 1;
}

#inquiry-popup em {
  color: #707070;
  font-style: normal;
}

#inquiry-popup .popup-form {
  padding: 0px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#inquiry-popup .popup-label {
  font-weight: bold;
}

#inquiry-popup .popup-close a {
  color: #707070;
}

#inquiry-popup .popup-form textarea {
  border: 2px solid #b4b4b4;
  padding: 12px;
  color: #707070;
  background-color: #fff;
  border-radius: 0;
  font-family: "Rotis Semi Sans Std", sans-serif;
  display: block;
  height: 100px;
  margin-bottom: 12px;
  width: 100%;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

#inquiry-popup .popup-form input[type=text] {
  border: 2px solid #b4b4b4;
  padding: 12px;
  color: #707070;
  background-color: #fff;
  border-radius: 0;
  display: block;
  width: 100%;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  margin-bottom: 12px;
}

#inquiry-popup .popup-checkbox {
  display: flex;
  margin-bottom: 12px;
}

#inquiry-popup .popup-checkbox input {

}

#inquiry-popup .popup-checkbox-text {
  flex-grow: 1;
  margin-left: 12px;
}

#inquiry-popup button {
  background-color: #000;
  color: #fff;
  text-align: center;
  display: block;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 0;
  font-weight: bold;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}



@media only screen and (max-width: 800px) {
  #inquiry-popup .popup {
    width: 100%;
    height: 100%;
    overflow: auto;
  }

  #inquiry-popup .popup-image img {
    width: 150px;
    height: 150px;
  }
}
