.main_pic {
  width: 100%;
  height: 100vh;
  background-image: url(../img/pupin-front.png);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: transparent;
  position: relative;
}

.stamp {
  position: absolute;
  top: 5%;
  right: 5%;
  text-align: center;
  border: 2px solid rgba(173, 122, 29, 1);
  border-radius: 5px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.7);
  padding: 5px;
}

.stamp img {
  width: 200px;
  filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.8));
}

.stamp p {
  color: rgba(173, 122, 29, 1);
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  text-shadow: 10px 10px 10px rgba(0, 0, 0, 0.8);
}

.museum {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin: 10px 0 10px 0;
  background-image: linear-gradient(rgba(250, 250, 250, 0.95)),
    url(../img/narodni_dom.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
  filter: saturate(0);
  transition: filter 0.5s;
}

.home {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin: 10px 0 10px 0;
  background-image: linear-gradient(rgba(250, 250, 250, 0.95)),
    url(../img/rodna_kuca.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
  filter: saturate(0);
  transition: filter 0.5s;
}

.school {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin: 10px 0 10px 0;
  background-image: linear-gradient(rgba(250, 250, 250, 0.95)),
    url(../img/stara_skola.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
  filter: saturate(0);
  transition: filter 0.5s;
}

.school .text3,
.home .text2,
.museum .text {
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.school .text3 h2,
.home .text2 h2,
.museum .text h2 {
  color: rgb(152, 61, 58);
  line-height: 5em;
  font-size: 2em;
  font-family: "Times New Roman", Times, serif;
}

.school .text3 p,
.home .text2 p,
.museum .text p {
  color: #333;
  width: 80%;
  line-height: 2em;
  text-align: justify;
}

.school .text3 a,
.home .text2 a,
.museum .text a {
  color: rgb(152, 61, 58);
  text-decoration: none;
  font-weight: bold;
}

.school .picture3,
.home .picture2,
.museum .picture {
  width: 30%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.school .picture3 img,
.home .picture2 img,
.museum .picture img {
  width: 100%;
  opacity: 0.8;
}

.school:hover,
.home:hover,
.museum:hover {
  filter: saturate(1);
}

.pupin_galerija {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 10px;
  width: 100%;
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
}

.pupin_galerija .text4,
.pupin_galerija .text5 {
  width: 33.33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
}

.pupin_galerija .pupin_pic {
  width: 33.33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: auto;
  object-fit: fill;
}

.pupin_galerija .text5 {
  background-image: linear-gradient(rgba(250, 250, 250, 0.95)),
    url(../img/galerija_front.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pupin_galerija .text4 h2,
.pupin_galerija .text5 h2 {
  color: rgb(152, 61, 58);
  line-height: 5em;
  font-size: 2em;
  font-family: "Times New Roman", Times, serif;
}

.pupin_galerija .text4 p,
.pupin_galerija .text5 p {
  color: #333;
  padding-bottom: 5%;
  line-height: 2em;
  text-align: justify;
  font-style: italic;
  width: 90%;
}

.pupin_galerija .text4 a button,
.pupin_galerija .text5 a button {
  color: #fff;
  background-color: rgb(152, 61, 58);
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  cursor: pointer;
  transition: box-shadov 0.5s, transform 0.5s;
}

.pupin_galerija .text4 a button:hover,
.pupin_galerija .text5 a button:hover {
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
  transform: scale(1.1);
}

.pupin_galerija .pupin_pic img {
  width: 100%;
}

@media (max-width: 767px) {
  .museum,
  .home,
  .school {
    filter: saturate(1);
  }

  .school .picture3,
  .home .picture2,
  .museum .picture {
    display: none;
  }

  .school .text3,
  .home .text2,
  .museum .text {
    width: 100%;
  }

  .school .text3 p,
  .home .text2 p,
  .museum .text p {
    width: 90%;
    padding-bottom: 20px;
  }
}

@media (max-width: 1017px) {
  .pupin_galerija .pupin_pic {
    display: none;
  }
  .pupin_galerija .pupin_pic img {
    display: none;
  }

  .pupin_galerija .text4,
  .pupin_galerija .text5 {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .pupin_galerija {
    flex-direction: column;
  }

  .pupin_galerija .text4,
  .pupin_galerija .text5 {
    width: 100%;
  }

  .pupin_galerija .text4 {
    background-image: linear-gradient(rgba(232, 219, 167, 0.8)),
      url(../img/pupin-short.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

@media (max-width: 504px) {
  .stamp img {
    width: 120px;
  }

  .stamp p {
    font-size: 0.7rem;
  }
}
