.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000000;
  border-radius: 15px;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  max-width: 800px;
  max-height: 700px;
  background-color: #fff;
  overflow: hidden;
}

.popup-content-row {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  padding: 20px;
  background-color: var(--background-color);
  min-height: 195px;
  position: relative;
  align-items: center;
}

.profile-picture {
  max-width: 115px;
  max-height: 155px;
  border-radius: 10%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
  border: 2px solid var(--primary-color);
}

.profile-name {
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  color: var(--primary-color);
  margin-bottom: 0px;
  margin-right: 40px;
}

.profile-name-sub {
  font-size: 15px;
  font-weight: semi-bold;
  margin-bottom: 10px;
  text-align: left;
  color: var(--primary-color);
}

.profile-description {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  flex: 1;
}

.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
}

.closeButton {
  position: absolute;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 20px;
  top: 0;
  right: 0;
}

.closeButton:hover {
  background-color: #b37419;
}
.popup-text {
  background-color: rgb(239, 236, 236);
}

@media screen and (max-width: 375px) {
  .popup-content {
    width: 100%;
  }

  .profile-content .profile-name-sub {
    font-size: 8px;
    text-align: center;
  }

  .profile-description {
    font-size: 8px;
  }

  .profile-name {
    font-size: 14px;
    text-align: left;
    margin-right: auto;
    margin-left: auto;
    padding-right: 50px;
  }

  .profile-content .profile-name-sub {
    font-size: 12px;
  }

  .profile-content {
    font-size: 8px;
  }
}

@media screen and (min-width: 376px) and (max-width: 440px) {
  .popup-content {
    font-size: 14px;
    width: 100vw;
  }

  .profile-content .profile-name-sub {
    font-size: 12px;
    text-align: center;
  }

  .profile-description {
    font-size: 12px;
  }
  .popup-content .profile-name {
    font-size: 18px;
    text-align: left;
    margin-right: auto;
    margin-left: auto;
    padding-right: 38px;
  }

  .popup-content .profile-name-sub {
    font-size: 12px;
  }
}

@media screen and (min-width: 440px) and (max-width: 804px) {
  .popup-content {
    width: 80vw;
  }
  .popup-content-row {
    align-items: center;
    gap: 15px;
  }

  .profile-content-row {
    padding-bottom: 0px;
  }

  .profile-content {
    font-size: 14px;
  }

  .profile-description {
    font-size: 12px;
  }
  .popup-content .profile-name {
    font-size: 18px;
    text-align: left;
    margin-right: auto;
    margin-left: auto;
    padding-right: 38px;
  }

  .popup-content .profile-name-sub {
    font-size: 12px;
  }
}

@media screen and (min-width: 805px) and (max-width: 924px) {
  .popup-content {
    font-size: 12px;
  }

  .profile-content .profile-name-sub {
    font-size: 12px;
  }
}
