* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: "Overpass", sans-serif;
  width: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: #000;
  text-decoration: none;
}

.active {
  border-bottom: 4px solid #9dcac8;
}

.main-container {
  margin: 0.7em;
}

#map {
  width: 90%;
  height: 400px;
  background-color: grey;
  margin-bottom: 2em;
}

header {
  width: 100%;
  z-index: 1000;
}
header .logo {
  display: block;
  padding-top: 1em;
}
header .logo img {
  display: block;
  margin: 0 auto;
}
header .main-nav {
  margin-bottom: 2em;
}
header .main-nav ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  padding: 0;
  text-align: center;
}
header .main-nav ul li {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.2em;
  margin: 3px 0;
}
.header-shrink {
  display: flex;
  justify-content: flex-start;
  background-color: white;
}
.header-shrink .logo {
  margin: 1em;
}
.header-shrink .logo img {
  width: 70px;
}
.header-shrink .main-nav {
  z-index: 1000;
  margin: 1em 0;
}
.header-shrink .main-nav ul {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.header-shrink .main-nav ul li {
  font-size: 0.7em;
}
.header-shrink .main-nav ul li a {
  margin: 0;
}

.intro-text {
  display: flex;
  justify-content: center;
}
.intro-text h3 {
  max-width: 550px;
  height: calc(100vh - 300px);
  padding: 10px;
  font-size: 1em;
  font-weight: 400;
  color: #999999;
  text-align: center;
  font-style: italic;
}

.main-content {
  max-width: 1500px;
  margin: 0 auto;
}

.work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 3em;
}
.work .work-item {
  width: 100%;
  height: auto;
  margin: 1em 0;
}

.work-title {
  position: relative;
  margin: 0.5em auto;
}
.work-title h1 {
  font-size: 1.6em;
  font-weight: bolder;
  color: #9dcac8;
  text-align: center;
  text-transform: uppercase;
  margin: 0.3em 0;
}
.work-title p {
  font-size: 1.3em;
  text-align: center;
  margin: 1em;
}

.work-text {
  border: 4px solid #9dcac8;
  position: relative;
  margin: 0.5em auto;
  width: 90%;
  box-sizing: content-box;
}
.work-text h1 {
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
  margin: 0.3em 0;
}
.work-text p {
  margin: 1em;
}
.work-text button {
  display: block;
  margin: 0.5rem auto;
  padding: 5px;
  background-color: transparent;
  border-bottom: 4px solid transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  color: #9dcac8;
  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: 800;
  cursor: pointer;
}
.work-text .gallery {
  list-style: none;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
.work-text .gallery li {
  margin: 0 5px;
  cursor: pointer;
}
.work-text .gallery li .gallery-img {
  width: 100%;
  height: auto;
}

.work-text::before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  top: 3px;
  left: 3px;
  z-index: -1;
  border-top: 30px solid #9dcac8;
  border-right: 30px solid transparent;
}

.work-text::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  bottom: 3px;
  right: 3px;
  z-index: -1;
  border-bottom: 30px solid #9dcac8;
  border-left: 30px solid transparent;
}

.team {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.team-text {
  position: relative;
  margin: 0.5em auto;
}
.team-text h1 {
  color: #9dcac8;
  font-size: 1.6em;
  font-weight: bolder;
  text-align: center;
  text-transform: uppercase;
  margin: 0.3em 0;
}
.team-text p {
  margin: 1em;
  font-size: 1.3em;
  text-align: center;
}

.team-grid {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.team-grid .team-item {
  border: 4px solid #9dcac8;
  position: relative;
  width: 100%;
  max-width: 395px;
  height: auto;
  margin: 1em 0;
}
.team-grid .team-item img {
  display: block;
  width: 100%;
}
.team-grid .team-item p {
  text-align: center;
  margin: 0.6em 0;
}
.team-grid .team-item:first-child {
  margin-top: 0;
}

.team-item p::before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  bottom: 3px;
  left: 3px;
  z-index: -1;
  border-top: 30px solid #9dcac8;
  border-right: 30px solid transparent;
  bottom: 4px;
}

.team-item p::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  bottom: 3px;
  right: 3px;
  z-index: -1;
  border-bottom: 30px solid #9dcac8;
  border-left: 30px solid transparent;
}

.contact-title {
  margin: 2em 0 1em;
}
.contact-title h1 {
  color: #9dcac8;
  font-size: 1.6em;
  font-weight: bolder;
  text-align: center;
  text-transform: uppercase;
  margin: 0.3em 0;
}
.contact-title p {
  margin: 1em 1em 0;
  font-size: 1.3em;
  text-align: center;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 4px solid #9dcac8;
  position: relative;
  margin-bottom: 1em;
  margin: 0.5em auto;
}
.contact-text h1 {
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
  margin: 0.3em 0;
}
.contact-text p {
  margin: 1em;
}
.contact-text .google-map {
  overflow: hidden;
  position: relative;
  max-width: 900px;
}

.contact-text::before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  top: 3px;
  left: 3px;
  z-index: -1;
  border-top: 30px solid #9dcac8;
  border-right: 30px solid transparent;
}

.contact-text::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  bottom: 3px;
  right: 3px;
  z-index: -1;
  border-bottom: 30px solid #9dcac8;
  border-left: 30px solid transparent;
}

.adres-adres,
.adres-mail,
.adres-name,
.adres-pc,
.adres-tel {
  display: block;
}

footer {
  background-color: #9dcac8;
  margin: 0 auto;
  padding: 1em;
  display: block;
}
footer p {
  margin: 0;
}
footer p small {
  color: white;
}

.main-nav li a:hover {
  border-bottom: 4px solid #9dcac8;
}

.adres-mail a:hover {
  border-bottom: 4px solid #9dcac8;
}

button:hover {
  border-bottom: 4px solid #9dcac8;
}

button:focus {
  outline: 0;
}

@media screen and (min-width: 600px) {
  header .logo {
    margin-bottom: 2em;
  }
  header .main-nav ul {
    flex-direction: row;
  }
  header .main-nav ul li {
    margin: 0 2em;
  }
  header .main-nav ul li:nth-child(2) {
    order: -1;
  }

  .header-shrink .main-nav {
    margin: auto;
  }
  .header-shrink .main-nav ul {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  .header-shrink .main-nav ul li {
    font-size: 0.9em;
  }
  .header-shrink .main-nav ul li a {
    margin: 0;
  }

  .intro-text h3 {
    max-width: 550px;
    height: calc(100vh - 270px);
    padding: 10px 20px;
    font-size: 1.2em;
  }

  .work {
    margin-bottom: 2em;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .work .work-title {
    width: 95%;
  }
  .work .work-text {
    width: 45%;
  }

  .team {
    border-top: 4px solid #9dcac8;
    margin-bottom: 2em;
  }
  .team .team-text {
    margin-top: 2em;
    width: 95%;
  }
  .team .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
  }
  /* .team .team-grid .team-item {
    width: 45%;
  } */
  .team .team-grid .team-item:first-child {
    margin-top: 1em;
  }

  .contact {
    border-top: 4px solid #9dcac8;
  }
  .contact .contact-text {
    margin-top: 2em;
    text-align: center;
  }
}
@media screen and (min-width: 900px) {
  body {
    background-image: url("../img/bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -10;
  }

  .header-shrink {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

/*# sourceMappingURL=main.css.map */

#nav-leonard{
  cursor: pointer;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  display: flex;
  flex-flow: column nowrap;
  /* justify-content: center; */
  /* align-items: center; */
  background-color: #9dcac8;
  color: black;
  margin: auto;
  padding: 20px;
  /* border: 1px solid #888; */
  width: 80%;
}

.modal-content img{
  width: 60%;
  margin: 0 auto 2rem;
  /* border-radius: 5px; */
  border: 3px solid black;

}

.modal-content p{
  text-align: center;
  margin: .3rem 0;
  padding: 0 2rem;
}


/* The Close Button */
.close {
  color: grey;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}