@import url("https://fonts.googleapis.com/css?family=Montserrat");
@import url("https://fonts.googleapis.com/css?family=Roboto");
body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  overflow: hidden;
}

#background {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("/img/4.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  z-index: 9999;
  width: 100%;
  position: fixed;
  -webkit-box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
  padding: 1em;
  background-color: #fefeff !important;
  margin-bottom: 200px;
}

#navbar-toggler {
  border-color: transparent !important;
  color: #00b8f1 !important;
  position: relative;
  top: 10px;
  right: 50px;
  float: right;
  cursor: pointer;
}

@media (max-width: 768px) {
  #navLogo {
    width: 250px;
    height: 50px;
  }
}

/* Overlay */

#overlay {
  transform: translateX(-1000px);
  position: fixed;
  width: 50%;
  height: 100vh;
  background-color: rgba(45, 195, 245, 0.9);
  z-index: 999;
}

#overlay ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50%;
  padding-left: 0;
}

#overlay ul li {
  display: block;
  margin-bottom: 16px;
}

#overlay ul li a {
  text-decoration: none;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
}

.show {
  transform: translateX(0) !important;
}

.add-to-show {
  transition: 0.2s;
}

@media (max-width: 1100px) {
  .modal {
    margin: 10% auto;
  }
}

@media (max-width: 768px) {
  #grid {
    grid-template-columns: 1fr !important;
    margin-bottom: 20px !important;
  }
  #titleText p {
    margin-bottom: 0 !important;
  }
  nav {
    margin-bottom: 0 !important;
  }
  #title {
    margin-top: 50px !important;
  }
}

@media (max-width: 576px) {
  #overlay ul li a {
    font-size: 28px;
  }
  .modal-header {
    padding: 5px;
  }
  .modal {
    margin: 15% auto;
  }
  .modal-content {
    margin-top: 15px;
    width: 70%;
  }
  #navLogo {
    width: 150px;
    height: 30px;
  }
  #navbar-toggler {
    top: 0;
    right: 35px;
  }
  #schildwerk-responsive,
  #texwerk-responsive,
  #behangwerk-responsive {
    display: none !important;
  }
}

@media (max-width: 376px) {
  #overlay ul {
    margin-top: 75%;
  }
  #schilderwerk p,
  #texwerk p,
  #behangwerk p {
    font-size: 12px;
  }
  #overlay ul li a {
    font-size: 24px;
  }
}

/* Spinner */

#spinner {
  background-color: #fefeff;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lds-ellipsis {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #00b8f1;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}

@media (max-width: 376px) {
  #navLogo {
    width: 150px;
    height: 30px;
  }
  #navbar-toggler {
    top: 0;
    right: 35px;
  }
}

.gallery {
  padding: 2em 0;
  width: 100%;
  display: flex;
  flex-flow: row wrap;
}

.gallery__item {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  margin: 1rem;
  box-shadow: 1px 2px 40px 2px rgba(160, 160, 160, 0.5);
}

.gallery__image-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.gallery__image {
  width: 100%;
  display: block;
  cursor: pointer;
}

@media only screen and (min-width: 33.75em) {
  .gallery__item {
    flex-basis: calc(50% - 2rem);
  }
}

@media only screen and (min-width: 48em) {
  .gallery__item {
    flex-basis: calc((100% / 3) - 2rem);
  }
}

@media only screen and (min-width: 60em) {
  .gallery__item {
    flex-basis: calc((100% / 4) - 2rem);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  overflow: auto;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #f4f4f4;
  margin: 10% auto;
  width: 50%;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: 0.5s;
}

.closeBtn {
  float: right;
  color: #00b8f1;
  font-size: 32px;
  position: relative;
  top: -19px;
  right: 0px;
}

.closeBtn:focus,
.closeBtn:hover {
  color: #008af1;
  text-decoration: none;
  cursor: pointer;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-header {
  text-align: center;
  background-color: #f3f3ff;
  padding: 15px;
  -webkit-box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 3px 25px -2px rgba(0, 0, 0, 0.75);
}

.modal-body {
  text-align: center;
  padding: 10px 20px;
}

#outputImage {
  width: 100%;
  height: 100%;
}

#titleText {
  text-align: center;
  color: #fff;
}

#titleText p {
  margin-bottom: 100px;
}

#arrow {
  cursor: pointer;
  color: #fff;
}

#arrow:hover {
  transition: 0.2s;
  color: #00b8f1;
}

#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 50px;
}

#grid p {
  margin: 0 5px 0 5px;
}