@font-face {
  font-family: 'OpenSans';
  /*a name to be used later*/
  src: url('../fonts/Open_Sans/OpenSans-Regular.ttf');
  /*URL to font*/
  font-display: swap;
}

@font-face {
  font-family: "OpenSans";
  src: url('../fonts/Open_Sans/OpenSans-Bold.ttf');
  font-weight: bold;
  font-display: swap;
}

html,
body,
#map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
  font-family: 'OpenSans';
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  /* min-width: 800px; */
}

.toast-top-center {
  top: 0;
  right: 0;
  width: 100%;
  padding-top: 50vh;
}

nav .custom-select {
    width: auto;
}

main {
  padding-top: 40px;
  min-height: calc(100% - 125px);
}

#projectsContainer{
  margin-top: 100px;
}
/* nav {
  margin: 0px 50px 30px 50px;
} */

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}


nav a {
  color: black;
  font-weight: bold;
  font-size: 16px;
}

footer a, footer span{
  font-size: 16px; 
  line-height: 32px; 
  margin: 0px 10px;
}

footer svg:hover {
  fill: #FFB836;
}

.img-container {
  display: inline-block;
}

#title {
  margin: auto;
  margin-right: 30px;
}

#carouselMain {
  width: 100%;
  margin: auto;
}

#carousel {
  width: 640px;
  margin: auto;
}

.carousel-inner {
  border-radius: 25px;
}

#carouselItems img {
  height: 480px;
  object-fit: cover;
}

#mainTitle {
  font-size: 54px;
  line-height: 1.2;
}

#projectsButtonDesktop {
  display: block;
}

#projectsButtonMobile {
  display: none;
}

.hline {
  display: inline-block;
  border-top: 1px solid lightgrey;
  width: 18px;
  height: 6px;
}

.nav-item svg {
  position: absolute;
  display: none;
}

#projectHeading {
  width: 100%;
  text-align: center;
  padding: 10px;
}

#projectTitle {
    font-family: 'OpenSans';
    font-size: 36px;
    font-weight: bold;
}

#projectBackLink {
  color: black; 
  padding: 16px 0px;
}

#projectContainer {
  margin-top: 80px;
}

.project-cover-image {
  height: 200px;
  object-fit: cover;
}

/* .project-image {
  width: 49%;
  padding: 0 4px;
} */

.imgRow {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.imgColumn {
  flex: 50%;
  width: 50%;
  padding: 0 4px;
  min-height: 80vh;
}

.imgColumn img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

#featuredImagesContainer img {
  height: 120px;
}

#featuredImagesModal {
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}

#featuredImagesModal .close {
  color: white;
  position: absolute;
  z-index: 20;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
}

#featuredImagesModal .modal-dialog {
  max-width: 95%;
}

#featuredImagesModal .modal-content {
  background-color: transparent;
}

#featuredImagesModal img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

#featuredImagesModal .modal-body {
  padding: 0px;
}

#featuredImagesContainer img {
  cursor: pointer;
  transition: 0.3s;
}

#featuredImagesContainer img:hover {
  opacity: 0.8;
}

#overlay {
  position: fixed;
  /* Sit on top of the page content */
  display: none;
  /* Hidden by default */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid black;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Next & previous buttons */
.prev,
.next {
  color: white;
  opacity: .5;
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  font-weight: bold;
  font-size: 28px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 999;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: .8;
}

#aboutTitle{
  font-family: "OpenSans";
  font-weight: bold;
  font-size: 36px;
}

#aboutSubtitle {
  font-family: "OpenSans";
  font-weight: bold;
  font-size: 24px;
}

#aboutImage {
  height: 73vh; 
  object-fit: cover;
}

#aboutSection{
  max-height: 73vh;
  overflow: auto;
  margin: auto;
  margin-left: 64px;
}

#mainWrapper {
  transition: transform 300ms ease-in-out;
}

#mainWrapper a {
  color: black;
}

#mainWrapper a:hover {
  color: #FFB836;
}

.moved {
  transform: translate(0px, 150px);
}

a:hover {
  text-decoration: none;
  color: #FFB836;
}

.featuredLinkButton:hover {
  color: #FFB836;  
}

.form-group label {
  font-family: "OpenSans";
  font-size: 14px;
  line-height: 19px;
}


@media only screen 
and (max-width : 1280px) {
  #aboutSection{
    max-height: 73vh;
  }

  #aboutTitle {
    font-size: 30px;
  }

  #aboutSubtitle {
    font-size: 20px;
  }

  .aboutDescription p {
    font-size: 14px;
  }

  #aboutImage {
    height: 65vh; 
  }
}


@media only screen 
and (max-width : 1024px) {
  #aboutSection{
    max-height: 60vh; 
  }

  #aboutTitle {
    font-size: 26px;
  }

  #aboutSubtitle {
    font-size: 18px;
  }

  .aboutDescription p {
    font-size: 12px;
  }

  #aboutImage {
    height: 60vh; 
  }
}

@media only screen 
and (max-device-width : 1280px) 
and (orientation : portrait) { 
  .flex-container {
    flex-direction: column;
  }

  #carousel {
    width: 90vw;
    margin: auto;
  }

  #aboutImage {
    height: 40vh; 
  }

  #aboutSection{
    max-height: 73vh;
    overflow:auto;
    margin: 0px;
  }

  #aboutTitle{
    font-size: 36px;
  }

  #aboutSubtitle {
    font-size: 24px;
  }

  .aboutDescription p {
    font-size: 16px;
  }

  #aboutSvg {
    text-align: center;
  }
}

@media only screen 
and (max-device-width : 1024px) 
and (orientation : landscape) { 

  #carousel {
    width: 50vw;
    margin: auto;
  }

  #carouselItems img {
    height: 480px;
  }

}

@media screen and (max-width: 640px) {
  main {
    padding-top: 55px;
    height: unset;
  }
  .navbar-brand {
    position: absolute;
    left: calc(50% - 18px);
    top: 7px;
  }

  .flex-container {
    flex-direction: column;
  }

  #mainTitle {
    font-size: 30px;
    line-height: 1;
  }

  #projectsButtonDesktop {
    display: none;
  }
  #projectsButtonMobile {
    display: block;
  }

  #carousel {
    width: 100%;
  }
  .carousel-inner {
    border-radius: 0px;
  }

  #carouselItems img{
    height: 30vh;
    object-fit: contain;
  }

  .hline{
    display: none;
  }
  .project-image {
    width: 100%;
  }

  #projectsContainer {
    margin-top: 50px;
  }

  #projectContainer {
    margin-top: 50px;
  }
  
  .imgColumn {
    flex: 100%;
    max-width: 100%;
  }

  #featuredImagesContainer .changedWidth {
    width: 33.33333%;
  }

  #featuredImagesContainer img {
    height: 100px;
  }

  .loader {
      width: 80px;
      height: 80px;
      margin: -40px 0 0 -40px;
      border: 10px solid #f3f3f3;
      border-top: 10px solid black;
  }

    #aboutImage {
      height: unset; 
      width: 100%;
    }

    #aboutSection{
      max-height: unset;
      overflow:unset;
      width: 100%;
    }

    #aboutTitle{
      font-size: 26px;
    }

    #aboutSubtitle {
      font-size: 18px;
    }

    .aboutDescription p {
      font-size: 12px;
    }

    #aboutSvg {
      text-align: center;
    }

    #projectTitle {
      font-size: 20px;
    }

    #projectBackLink {
      padding: 5px 0px;
    }
}

@media only screen 
and (max-height : 640px) 
and (orientation : landscape) { 
  footer a, footer span{
    font-size: 14px; 
    line-height: 1.2;
    display: inline;
  }

  #carouselItems img {
    height: 200px;
  }

  #title {
    font-size: 14px;
    margin-right: 10px;
  }

  #mainTitle {
    font-size: 24px;
  }

  main {
    padding-top: 50px;
    min-height: calc(100% - 80px);
  }

  #projectTitle {
    font-size: 20px;
  }

  #projectBackLink {
    padding: 5px 0px;
  }

  #projectContainer {
  margin-top: 45px;
}
}
