@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf");
}

@font-face {
  font-family: "Lora";
  src: url("./assets/fonts/Lora/Lora-VariableFont_wght.ttf");
}

@font-face {
  font-family: "Shabnam";
  src: url("./assets/fonts/Shabnam/Shabnam.ttf");
}

html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.leftToRight {
  direction: ltr;
  text-align: justify;
  font-family: "Montserrat";
}

.rightToLeft {
  direction: rtl;
  text-align: justify;
  font-family: "Shabnam";
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  text-align: start;
}

#firstContent {
  width: calc(100% - 2rem);
  height: 9rem;
  background: linear-gradient(to top, #222222aa, #222222aa),
    url("./assets/images/Background1.jpg");
  background-position: center;
  background-size: cover;
  background-color: #222222;
  padding: 1rem;
}

#firstContentTitle {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Lora";
  font-size: 4rem;
  font-weight: 500;
  color: white;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#navigation {
  position: relative;
  margin-top: 2rem;
  width: calc(100% - 4rem);
  padding-left: 2rem;
  padding-right: 2rem;
}

.navigationLink {
  font-size: 1.5rem;
  font-family: "Montserrat";
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border-image-slice: 1;
  border-width: 2px;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.navigationLink:hover {
  border-bottom: 2px solid #222222aa;
}

.gradientUnderlineLTR:hover {
  border-image-source: linear-gradient(to right, #ffffff, #222222);
  transition: border-image-source 150ms ease-in-out;
}

.gradientUnderLineRTL:hover {
  border-image-source: linear-gradient(to left, #ffffff, #222222);
  transition: border-image-source 150ms ease-in-out;
}

#languageSelector {
  font-size: 1.5rem;
  font-family: "Montserrat";
  color: white;
  float: right;
}

.selectedLanguage {
  color: orange;
}

.selectedLanguage.gradientUnderlineLTR:hover {
  border-image-source: linear-gradient(to right, orange, #222222);
  transition: border-image-source 150ms ease-in-out;
}

.selectedLanguage.gradientUnderLineRTL:hover {
  border-image-source: linear-gradient(to left, orange, #222222);
  transition: border-image-source 150ms ease-in-out;
}

#navBiography {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.imageWrapper {
  position: relative;
  height: 15rem;
  margin-bottom: 2.5rem;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.floatRight {
  float: right;
  right: 0;
  margin-left: 2rem;
}

.floatLeft {
  float: left;
  left: 0;
  margin-right: 2rem;
}

.imageWrapper figcaption {
  position: absolute;
  display: block;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin-top: 0.5rem;
}

.biographyImage {
  width: 15rem;
  height: 15rem;
  object-fit: cover;
  border-radius: 1rem;
  cursor: zoom-in;
}

#timeline {
  margin-top: 2rem;
  width: 0.2rem;
  height: calc(100% - 4rem);
  background-color: #222222;
}

.timelineLeft {
  margin-left: 1rem;
}

.timelineRight {
  margin-right: 1rem;
}

.yearMark {
  position: absolute;
  background-color: white;
  border: 3px solid #222222;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 1.5rem;
  cursor: help;
}

.yearMarkLeft {
  left: 1.2rem;
}

.yearMarkRight {
  right: 1.2rem;
}

.yearMarkTooltip {
  opacity: 0;
  background-color: #222222;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  cursor: help;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.yearMark:hover .yearMarkTooltip {
  opacity: 1;
  transition: opacity 150ms ease-in-out;
}

.yearMarkDot {
  width: 0.4rem;
  height: 0.4rem;
  background-color: #222222;
  border-radius: 0.4rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.flexContainer {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 2rem;
}

.leftCol {
  flex: 1 1 5rem;
}

.rightCol {
  flex: 1 1 auto;
}

#contentArea {
  position: relative;
  padding: 1rem;
  height: 100%;
}

#alertArea {
  position: absolute;
  bottom: 0;
  width: 100%;
}

p {
  margin-bottom: 0;
  width: calc(100% - 17rem);
}

#imageModal {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

#imageModalClose {
  color: white;
  font-size: 3rem;
  float: right;
  font-weight: bold;
  position: fixed;
  right: 1rem;
  opacity: 1;
}

#imageModalClose:hover,
#imageModalClose:focus {
  text-decoration: none;
  cursor: pointer;
}

#imageModalImage {
  display: block;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50%;
  cursor: default;
}

#imageModal figcaption {
  color: white;
  font-size: 1.5rem;
  font-family: "Montserrat";
  display: block;
  position: absolute;
  cursor: default;
  left: 50%;
  top: calc(75% + 1rem);
  transform: translateX(-50%);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  cursor: zoom-out;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .leftToRight {
    text-align: left;
  }

  .rightToLeft {
    text-align: right;
  }

  .leftCol {
    display: none;
  }

  #firstContentTitle {
    font-size: 3rem;
  }

  .biographyImage {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .imageWrapper {
    height: 16rem;
  }

  .imageWrapper figcaption {
    top: 15.5rem;
  }

  .floatLeft {
    float: none;
    margin-right: 0;
  }

  .floatRight {
    float: none;
    margin-left: 0;
  }

  p {
    margin-bottom: 1rem;
    width: 100%;
  }

  h1 {
    text-align: center;
  }

  #navBiography {
    display: none;
  }

  #languageSelector {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    display: block;
    position: relative;
    float: none;
  }
}
