.kompleks {
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 10px rgba(92, 83, 3, 0.7);
  margin: 10px 0 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(../img/pupin-short.png);
  background-position: right;
  background-size: cover;
}

.kompleks .museum,
.kompleks .home,
.kompleks .school,
.kompleks .literatura {
  display: flex;
  width: 100%;
}

.kompleks .museum .text,
.kompleks .home .text,
.kompleks .school .text,
.kompleks .literatura .text {
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 10px 10px rgba(92, 83, 3, 0.7);
  padding-bottom: 30px;
  background-color: rgba(250, 250, 250, 0.95);
}

.kompleks .museum .text h2,
.kompleks .home .text h2,
.kompleks .school .text h2,
.kompleks .literatura .text h2 {
  color: rgb(152, 61, 58);
  line-height: 5em;
  font-size: 2em;
  font-family: "Times New Roman", Times, serif;
}

.kompleks .museum .text p,
.kompleks .home .text p,
.kompleks .school .text p {
  color: #333;
  width: 80%;
  line-height: 2em;
  text-align: justify;
}

.kompleks .literatura .text ul {
  color: #333;
  width: 100%;
  line-height: 2em;
  text-align: justify;
  font-style: italic;
  padding-left: 10%;
}

.kompleks .museum .text_pic,
.kompleks .home .text_pic,
.kompleks .school .text_pic,
.kompleks .literatura .text_pic {
  min-width: 20%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.text {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0;
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.9;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@media (max-width: 767px) {
  .kompleks .museum .text_pic,
  .kompleks .home .text_pic,
  .kompleks .school .text_pic,
  .kompleks .literatura .text_pic {
    display: none;
  }

  .kompleks .museum .text,
  .kompleks .home .text,
  .kompleks .school .text,
  .kompleks .literatura .text {
    width: 100%;
  }
}

@media (max-width: 574px) {
  .kompleks .museum .text h2,
  .kompleks .home .text h2,
  .kompleks .school .text h2,
  .kompleks .literatura .text h2 {
    font-size: 1.5em;
  }
}

@media (max-width: 434px) {
  .kompleks .museum .text h2,
  .kompleks .home .text h2,
  .kompleks .school .text h2,
  .kompleks .literatura .text h2 {
    font-size: 1em;
  }
}
