/* modal regulamentaçoes */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999999999999;
}

#modal {
  display: flex;
  flex-direction: column;
  width: 80%;
  max-width: 700px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  position: relative;
  border: solid 5px #4067b4;
}

#modalBody h2 {
  color: #d00408;
}

#modalTitle {
  color: #d00408;
}

#closeButton {
  background-color: #d00408;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 10px;
}

#modalBody {
  overflow-y: auto;
  max-height: 60vh;
  gap: 20px;
}

.modal-item {
  display: flex;
  padding: 10px;
  align-items: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-item-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

#modalTitle {
  color: #d00408;
}

.modal-description {
  font-size: 1em;
  color: #2e2e2e;
}

.modal-description a {
  color: #384b70;
}

.modal-description strong {
  color: rgb(34, 34, 34);
}

/* modal instalaçoes */
#installOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#installModal {
  display: flex;
  flex-direction: column;
  width: 90vh;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  position: relative;
  border: solid 5px #4067b4;
}

#closeInstallButton {
  background-color: #d00408;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Carrossel */
#installBody {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 90vh;
  width: 100%;
}

#installTitle {
  color: #d00408;
}

.installCarousel {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.installCarousel img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.installCarouselControls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.installCarouselButton {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.installCarouselButton:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  #installModal {
    width: 90%;
    max-width: 90%;
    padding: 15px;
  }

  #installBody {
    max-height: 70vh;
  }

  .installCarousel {
    width: 100%;
    max-width: 100%;
  }

  .installCarouselButton {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #installModal {
    width: 90%;
    padding: 10px;
  }

  #closeInstallButton {
    width: 20px;
    height: 20px;
    font-size: 14px;
    top: 5px;
    right: 5px;
  }

  .installCarousel img {
    max-height: 50vh;
  }

  .installCarouselButton {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}
