@import "./alternative_energy.css";
@import "./generation.css";

#title_background,
#title_gr {
  height: 100%;
}

.to_general {
  margin-top: 2rem !important;
}

#images_gallery {
  display: flex;
  max-width: 60%;
  gap: 1rem;
  justify-content: space-between;
  height: fit-content;
  margin-inline: auto;
  margin-top: 2rem;
}

.gallery_img {
  width: 21rem;
  object-fit: cover;
  min-width: 15rem;
  margin: 0;
  height: 20rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.gallery_img:hover {
  transform: scale(1.1);
}

.division_info {
  margin-top: 2rem;
  background-color: var(--primary-color);
  gap: 1rem;
  border-radius: 10px;
  min-width: 280px;
}

.division_info ul {
  padding: 1rem;
}

#properties {
  width: 60%;
  flex-direction: row;
  justify-content: center;
  margin-inline: auto;
}

.properties_card {
  height: 60rem;
  width: 35rem;
  min-width: 10rem;
}

#properties>div:nth-child(1) {
  width: 35rem;
  flex-direction: column;
  height: 60rem;
}

.division_info ul,
.division_info p {
  font-weight: 200;
  line-height: 1.5;
  font-size: 1.3rem;
  justify-content: flex-start;
  width: 97%;
  min-width: 200px;
}

.division_info li {
  font-weight: 200;
  line-height: 1.5;
  font-size: 1.3rem;
}

@media (max-width: 1550px) {
  section {
    max-width: 80%;
  }

  .division_peculiarities {
    width: 25rem;
    max-width: 80%;
  }

  #images_gallery {
    width: 80%;
    max-width: 80%;
  }

  .gallery_img {
    width: 23rem;
  }

  #properties {
    flex-direction: row;
    width: 80% !important;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .properties_card {
    gap: 1rem;
    width: 30% !important;
    max-width: 30% !important;
    height: 60rem;
    flex-direction: column;
    min-width: 280px !important;
  }

  #properties>div:nth-child(1) {
    width: 30% !important;
    max-width: 30% !important;
    height: 60rem;
    min-width: 280px !important;
  }

  .properties_card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 1200px) {
  #properties {
    max-width: 80%;
    width: 80%;
    flex-direction: column;
  }

  .properties_card {
    width: 100% !important;
    height: 30rem !important;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 100% !important;
  }

  #properties>div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
    height: 35rem;
  }

  #page_title {
    width: 100%;
  }

  .gallery_img {
    min-width: 10rem;
  }

  .division_info {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .division_info ul,
  .division_info p,
  .division_info li {
    font-size: 1.2rem;
  }
}

@media (max-width: 900px) {
  #images_gallery {
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 90%;
  }

  .gallery_img {
    width: 100% !important;
    max-width: 90%;
    min-width: 250px;
    height: 18rem;
  }

  #page_title {
    width: 100%;
  }

  .division_info {
    width: 100%;
    padding: 1rem;
  }

  .division_info ul,
  .division_info p,
  .division_info li {
    width: 100%;
    min-width: 250px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #images_gallery {
    width: 100%;
    max-width: 100%;
  }

  .gallery_img {
    height: 16rem;
    width: 100%;
    max-width: 80%;
  }

  .properties_card {
    height: 32rem !important;
  }

  .division_info ul,
  .division_info p,
  .division_info li {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 480px) {

  section,
  .division_info,
  #images_gallery,
  #properties {
    width: 90% !important;
    max-width: 90% !important;
    margin-inline: auto;
  }

  #page_title {
    margin-inline: auto;
    justify-content: center;
    width: 90%;
  }

  #images_gallery {
    gap: 1.5rem;
  }

  .gallery_img {
    height: 15rem;
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }

  .gallery_img:hover {
    transform: none;
  }

  .division_info {
    padding: 1.5rem;
    margin-top: 2rem;
    gap: 0.8rem;
    min-width: auto;
  }

  .division_info ul,
  .division_info p,
  .division_info li {
    width: 100%;
    min-width: auto;
    font-size: 1rem;
    line-height: 1.4;
  }

  .properties_card {
    height: auto !important;
    min-height: 400px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto;
  }

  #properties>div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 320px) {

  section,
  .division_info,
  #images_gallery,
  #properties {
    width: 90% !important;
    max-width: 90% !important;
    margin-inline: auto;
  }

  #images_gallery {
    gap: 1rem;
    margin-top: 1rem;
  }

  .gallery_img {
    height: 12rem;
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }

  .division_info {
    padding: 0.8rem;
    gap: 0.6rem;
    margin-top: 1.5rem;
    min-width: auto;
    justify-content: center;
  }

  .division_info ul,
  .division_info p,
  .division_info li {
    min-width: auto;
    font-size: 0.9rem;
    line-height: 1.3;
    width: 100%;
  }

  .properties_card {
    height: auto !important;
    min-height: 350px;
    min-width: auto;
    width: 100% !important;
    max-width: 100% !important;
  }

  #properties {
    justify-content: center;
  }

  #properties>div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
  }
}