@font-face {
  font-family: BirthOfAHero;
  src: url("BirthOfAHero.ttf");
  font-stretch: ultra-expanded;
}

body {
  background: url("img/background.jpg") repeat fixed, #3a3a3a;
  font-family: "Open Sans", "Helvetica", Arial, sans-serif;
  margin: 0px;

  overflow-y: scroll;
  overflow-x: hidden;
}

.imageComponent {
  width: auto;
  height: auto;
}

.nonselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

a {
  color: #222;
}

#top {
  position: relative;

  /* max-width : 1000px; */
  margin: 0px auto;
  padding: 10px 0px;

  text-align: center;
  color: white;

  font-weight: 300;

  font-size: 22pt;
  overflow: hidden;
}

.toplogos {
  width: 100%;
  display: flex;
  justify-content: center;
}

.toplogos img {
  height: 2.5em;
}

@media (max-width: 500px) {
  .toplogos img {
    height: 2em;
  }
}

@media (max-width: 400px) {
  .toplogos img {
    height: 1.5em;
  }
}

.topImage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  max-width: 700px;
  height: 100%;
  object-position: top left;
  object-fit: cover;
}

@media (max-width: 960px) {
  .navbar {
    font-size: 18pt;
  }
}

@media (max-width: 780px) {
  /* #top {
    font-size: 14pt;
  } */
  .navbar > span {
    display: block;
  }
}

.navbar {
  vertical-align: middle;
  padding: 20px 0px;
}

.item {
  color: white;
  text-decoration: none;
}

.item.selected {
  color: hsl(210, 50%, 65%) !important;
}

.item:hover {
  cursor: pointer;
  color: hsl(210, 50%, 65%);
  animation: pulsate 1s;
  -webkit-animation: pulsate 1s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
}

@-webkit-keyframes pulsate {
  from {
    text-shadow: 0px 0px 10px #555;
  }
  to {
    text-shadow: 0px 0px 10px #000;
  }
}

.contentswap {
  position: absolute;
  left: 0px;
  width: 100%;
  transition: left 700ms ease-in-out;
}

.swapper-left {
  left: -2000px;
}

.swapper-right {
  left: 2000px;
}

.content {
  position: relative;

  min-height: 20px;
  margin: 0px auto;

  text-align: center;

  /*background: grey;*/
}

.back {
  background: hsla(200, 0%, 30%, 0.5);
}

.previews {
  position: relative;
  transition: opacity 700ms ease-in-out;
}

.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
}

.fade-enter-done {
  opacity: 1;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
}

.fade-exit-done {
  display: none;
  opacity: 0;
}

button {
  position: relative;
  top: -50px;

  padding: 5px;
  font-size: 20pt;

  border: 2px solid hsl(250, 20%, 40%);
  background: hsl(250, 20%, 20%);
  color: white;
}

.details {
  position: relative;
  top: -15px;

  width: 100%;
  overflow: hidden;
  background: #ccc;
}

.detailscontent {
  max-width: 80ch;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
}

.detailscontent .ignorePadding {
  width: calc(100% + 40px);
  position: relative;
  left: -20px;
}

p.imgcontainer {
  width: calc(100% + 40px);
  position: relative;
  left: -20px;

  text-align: center;
  background: #aaa;
  padding: 15px 0px;
}

p.imgcontainer img {
  margin: 0px 5px;
}

.artworks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;

  width: 100%;
  padding: 10px 0px;

  vertical-align: top;
}

#legendre {
  position: fixed;
  bottom: 5px;
  right: 10px;
}

#footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;

  height: 20px;

  color: grey;
  font-size: 10pt;
}

/* Overlay part */

.overlay {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 999;

  text-align: center;
  line-height: 100vh;
  cursor: pointer;
}

.window {
  display: inline-block;
  display: inline-flex;
  justify-content: center;
  position: relative;
  vertical-align: middle;

  padding: 0px;
  max-width: 90%;
  width: 90%;
  height: 90%;
  box-sizing: border-box;

  background: hsl(200, 10%, 30%);
  border-radius: 5px;
  box-shadow: 0px 0px 20px 0px black;
  cursor: initial;
}

@media (max-width: 500px) {
  .window {
    /* Keeping both max-width and width since "width: auto" is set through inline styles sometimes */
    max-width: calc(100% - 60px);
    width: calc(100% - 60px);
    height: calc(100% - 60px);
  }
}

.close {
  position: absolute;
  top: -30px;
  right: -30px;

  width: 60px;
  height: 60px;

  border-radius: 30px;
  box-shadow: 0px 0px 10px 0px black;
  background: hsl(200, 10%, 50%);
  cursor: pointer;

  background-image: url("img/close.png");
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: center;
}

.windowImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  display: block;
  margin: auto auto;
}

.aboutImage {
  width: 35%;
  margin-right: 10px;
  float: left;
}

.portfolioContainer {
  display: flex;
  flex-wrap: wrap;
  padding-left: 7px;
  padding-top: 7px;
}

@supports (display: grid) {
  .portfolioContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  }
}

.titledArtworkBox {
  flex-basis: 440px;
  flex-grow: 1;
  margin-right: 7px;
  margin-bottom: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background: #ddd;
  border-radius: 0;
  box-shadow: 0px 0px 13px #555;
  position: relative;
  font-size: 1.5em;
  text-decoration: none;
  /* content-visibility: auto; */
  /* contain-intrinsic-size: 200px; */
  /* contain: paint; */
}

@media (min-width: 900px) {
  .titledArtworkBox:last-child {
    /* flex-grow: 0.0; */
  }
}

@media (max-width: 500px) {
  .aboutImage {
    width: 100%;
    max-width: initial;
    margin: 0px;
    height: auto;
    object-fit: cover;
    object-position: 50% 54%;
  }
}
