/* modal */
.modal {
  width: 100%;
  height: 100%;
  background-color: var(--bg-modal);
  position: fixed;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.5s;
  opacity: 0;
  overflow-y: auto;
  padding: 20px;
}
.modal .container {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  font-size: 0.85em;
  position: relative;
  flex-direction: column;
  /* opacity: 0 ; */
  transition-duration: 1s;
  border-radius: 10px;
  background-color: var(--bg-primary);
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}
.modal .container .leftAndRightModal {
  display: flex;
}
.modal .container .closeButton {
  font-size: 2em;
  line-height: 25px;
  cursor: pointer;
  right: 10px;
  top: 10px;
  position: fixed;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 50%;
  z-index: 11;
  color: white;
}
.modal .container h4 {
  line-height: 15px;
  margin-top: 40px;
}
.modal .container p {
  margin-top: -10px;
  font-size: 0.9em;
}

.modal .right {
  padding: 20px 20px 20px 40px;
}
.modal .right .name {
  display: flex;
}
.modal .right .name * {
  margin: 5px;
}

.modal .left {
  flex-shrink: 0;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .left img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0px 0px 5px 4px rgba(255, 255, 255, 0.6);
}

.modal .productDetail {
  display: none;
}
.modal .loginForm,
.modal .changePass {
  display: none;
  padding-top: 100px;
  overflow: visible;
  position: relative;
  min-height: 300px;
}
.modal .loginForm .loginIcon,
.modal .changePass .changePassIcon {
  width: 150px;
  height: 150px;
  border: solid 2px var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em !important;
  position: absolute;
  top: -75px;
  left: calc(50% - 75px);
  background-color: #222;
  color: white;
}

.modal .fieldContainer {
  /* border: solid 2px; */
  padding: 0px;
  background-color: #555;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  width: 350px;
  max-width: 90%;
  direction: ltr;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px auto;
}

.modal .fieldContainer input {
  border: none;
  outline: none;
  background-color: #222;
  height: 100%;
  width: 100%;
  font-size: 0.7em;
  color: white;
  padding: 10px;
}

.modal button {
  width: 100%;
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
.loginErrorMessage,
.changePassErrorMessage {
  color: red;
  font-size: 0.9em;
  margin: 20px 10px;
  display: none;
  animation: enterFromRight 0.5s;
}
.modal .aboutUs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px;
  max-width: 100%;
}
.modal .aboutUs .leftAndRightAboutUs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  gap: 30px;
}
.modal .aboutUs #leftAboutUs {
  box-shadow: 0px 2px 2px 2px rgba(107, 104, 104, 0.6);
  margin-right: 20px;
  font-size: 2em;
  flex-shrink: 0;
}
.modal .aboutUs #rightAboutUs {
  font-size: 0.7em;
  line-height: 1.8;
  text-align: justify;
}
.modal .aboutUs #rightAboutUs .highlight {
  font-weight: bold;
  color: #888;
  font-size: 1.1em;
}
.modal .aboutUs #rightAboutUs .brand-name {
  font-weight: bold;
  background: linear-gradient(45deg, #b19cd9, #9370db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15em;
}
body.dark-mode .modal .aboutUs #rightAboutUs .brand-name {
  background: linear-gradient(45deg, #6a4c93, #8b6bb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal .contactUs {
  display: flex;
  width: 900px;
  max-width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
}

.modal .contactUs .contactSection {
  width: 30%;
  min-width: 250px;
  height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 5px;
  perspective: 1500px;
  margin: 10px;
}
.modal .contactUs .contactSection .back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
  box-shadow: 0px 0px 4px 1px var(--border-color);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 50px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal .contactUs .contactSection .front {
  backface-visibility: hidden;
  box-shadow: 0px 0px 4px 1px var(--border-color);
  height: 100%;
  width: 100%;
  text-align: center;
}

.modal .contactUs .contactSection:hover .front {
  transform: rotateY(-180deg);
}
.modal .contactUs .contactSection:hover .back {
  transform: rotateY(0deg);
}
.modal .contactUs .contactSection:nth-of-type(1) span {
  direction: rtl;
  font-size: 0.9em;
}

.modal .contactUs .contactSection .icon {
  border: solid 2px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.7em;
  background-color: #222;
  position: absolute;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
  z-index: 2;
}
.modal .contactUs .contactSection:hover .icon {
  top: -50px;
}
.modal .contactUs .contactSection h3 {
  color: #888;
  margin-bottom: 7px;
}
.modal .contactUs .contactSection span {
  direction: ltr;
}
