#modal-screen {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.33);
  display: none;
  height: var(--section-height-normal);
  justify-content: center;
  position: absolute;
  top: -2px;
  width: 100vw;
  width: 100dvw;
  z-index: 1;
}

#modal-previous-button,
#modal-next-button {
  cursor: pointer;
  height: 34px;
  padding: 12px;
  position: relative;
}

#modal-previous-button {
  transform: rotate(180deg);
}

#modal {
  background: radial-gradient(ellipse at center, rgba(33, 33, 33, 0.99) 0%, rgba(31, 31, 31, 0.99) 100%);
  border: 2px solid rgb(22, 22, 22);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  height: 82%;
  max-height: 700px;
  max-width: 700px;
  width: 69%;
}

#modal-header {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 24px;
  width: 100%;
}

#modal-title {
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 600;
  hyphens: auto;
  line-height: 1.4;
  overflow-wrap: break-word;
  padding: 5px 28px 0px 28px;
  text-align: left;
  text-align: justify;
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.116);
}

#modal-close-icon {
  height: 20px;
}

@media (hover: hover) {
  #modal-close-icon:hover {
    cursor: pointer;
  }
}

#modal-image-section {
  height: 100%;
  max-height: 200px;
  position: relative;
  width: 100%;
}

#image-images-slider {
  border: 2px solid rgb(22, 22, 22);
  border-width: 2px 0px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#modal-image-A,
#modal-image-B {
  filter: brightness(0.9);
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

#modal-buttons-section {
  align-items: flex-end;
  bottom: -18px;
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  width: 100%;
  z-index: 2;
}

#modal-buttons-section button {
  border: 2px solid rgb(32, 32, 32);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  color: var(--white);
  display: flex;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 32px;
}

#modal-description-button,
#modal-challenges-button,
#modal-skills-button {
  background: radial-gradient(ellipse at center, rgb(133, 57, 95) 0%, rgb(110, 50, 80) 100%);
}

@media (hover: hover) {
  #modal-buttons-section button:hover {
    cursor: pointer;
  }
}

.modal-buttons-images {
  display: none;
}

#modal-text-block {
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 400;
  height: 100%;
  hyphens: auto;
  margin: 0 20px;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 52px 28px 0px 28px;
  position: relative;
  text-align: justify;
}

#modal-text-block .arrow-down {
  bottom: 6px;
  height: 18px;
  left: calc(50% - 6% - 1px);
  padding: 3px 1px;
  width: 12%;
}

#modal-text-block .arrow-down img {
  height: 16px;
}

#modal-text {
  height: 100%;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

#modal-text::-webkit-scrollbar {
  display: none;
}

#modal-text-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  text-decoration: underline;
}

.arrows-problems {
  height: 20px;
  margin-right: 10px;
  vertical-align: text-bottom;
}

.modal-problems-p {
  margin-bottom: 10px;
}

.modal-solutions-p {
  margin-bottom: 24px;
}

.modal-solutions-p:last-child {
  margin-bottom: 0px;
}

.modal-challenges-span {
  color: rgb(116, 218, 130);
  font-weight: 600;
}

#modal-skills {
  list-style-position: inside;
  list-style-type: disc;
}

#modal-skills li {
  line-height: 1.3;
  margin-bottom: 8px;
}

#modal-text-block .arrow-down {
  left: calc(50% - 38px);
  padding: 2px 0px;
  width: 76px;
}

#modal-text-block .arrow-down img {
  height: 21px;
}

#modal-link {
  display: flex;
  font-size: 17px;
  font-weight: 400;
  justify-content: center;
  margin-bottom: 22px;
  margin-top: 36px;
  position: relative;
}

#modal-link span {
  font-weight: 600;
}

@media (hover: hover) {
  #modal-link a:hover {
    cursor: pointer;
  }
}
