/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 0.938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: linear-gradient(
    -45deg,
    #e8faea 25%,
    #f5d6bf 25%,
    #f5d6bf 50%,
    #e8faea 50%,
    #e8faea 75%,
    #f5d6bf 75%,
    #f5d6bf
  );
  background-size: 100% 100%;
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, 0.3);
  z-index: var(--z-fixed);
}

/*=========== NAME HEADER ==========*/

#nameHeader {
  text-align: center;
  margin-top: 10%;
  animation: fadeIn 5s ease forwards; /* Apply animation */
}

#nameHeader::after {
  content: "";
  display: block;
  width: calc(100% - 30rem);
  height: 5px;
  background-color: #080247; /* or whatever color you want */
  margin-top: 5px; /* adjust as needed */
  text-align: center;
  margin-left: 15rem;
}

#overviewHeader {
  text-align: center;
  margin-top: 10%;
  animation: fadeIn 5s ease forwards; /* Apply animation */
}

#overviewHeader::after {
  content: "";
  display: block;
  width: 25%;
  height: 5px;
  background-color: #080247; /* or whatever color you want */
  margin-top: 5px; /* adjust as needed */
  text-align: center;
  margin-left: 38%;
}

.subTopic{
  margin-top: 3%;
  text-align: left;
  margin-left: 5%;
  animation: fadeIn 5s ease forwards; /* Apply animation */
}

.subUnderTopic{
  margin-top: 3%;
  text-align: left;
  margin-left: 5%;
  font-size: 1.25rem;
  font-style: italic;
  animation: fadeIn 5s ease forwards; /* Apply animation */
}

.alignList{
  margin-top: 2%;
  margin-left: 5%;
  margin-right: 5%;
}

.alignList li{
  margin: 1rem 0;
  font-size: 1.05rem;
}

.researchList{
  margin-top: 2%;
  margin-left: 5%;
  margin-right: 5%;
}

.researchList li{
  margin: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: bold;
}

.tributeImages{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 5%;
}

#tributeText p{
  text-align: justify;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.overviewIntro{
  margin-left: 5%;
  font-size: 1.15rem;
  font-weight: bold;
}

#researchContainer{
  width: 80%;
}

#researchContainer p{
  margin-left: 6%;
  animation: fadeIn 5s ease forwards; /* Apply animation */
}

#researchContainer a{
  margin-left: 6%;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/*============== OPENINING PANEL ======*/

.openingPanel {
  margin-top: 2%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.openingImages{
  display: flex;
  flex-direction: column;
}

.openingImages img{
  margin: 1.5rem auto;
}

.openingImages img:nth-child(2) {
  margin-top: 35%!important; /* Adjust the margin-top as needed */
}

.openingText {
  width: 60%;
}

.openingIntro p {
  text-align: justify;
  font-size: 1.125rem;
  margin-top: 1.75rem;
  font-weight: bold;
}

.openingIntro span {
  color: #080247;
}

.openingIntro ul {
  margin-left: 2rem;
}

.openingIntro li {
  margin: 1em 0;
  list-style-type: disc;
  font-size: 1.125rem;
  font-weight: bold;
}

.plateStyling{
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background-color: #5591fa;
  border-radius: 5px;
}

.plateStyling p{
  margin-top: unset!important;
}

.fade-in-from-right {
  opacity: 0;
  transform: translateX(-100%);
  animation: fadeInFromRight 3s ease-in forwards;
}

@keyframes fadeInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-from-left {
  opacity: 0;
  transform: translateX(-100%);
  animation: fadeInFromLeft 3s ease-in forwards;
}

@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#coverPhoto {
  margin-top: 15%;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo,
.nav__burger,
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}

footer {
  width: 100%;
  position:relative;
  text-align: center;
  bottom: 0;
  background-color: black;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: #2946d9;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s;
}

.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu,
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height 0.4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

@media screen and (max-width: 900px) {
  .openingPanel{
    flex-direction: column;
  }

  .logoImg{
    display: none;
  }

  .openingText{
   margin: 0 auto;
  }
}

@media screen and (max-width: 800px) {

  #nameHeader{
    margin-top: 20%;
  }

  #nameHeader::after {
    width: calc(100% - 2rem); /* Adjusted width calculation for smaller screens */
    margin-left: 1rem; /* Adjusted margin-left for smaller screens */
  }

}

@media screen and (max-width: 600px) {
 
  #overviewHeader{
    margin-top: 20%;
  }

  #overviewHeader::after {
    width: 50%; /* Adjusted width calculation for smaller screens */
    margin-left: 25%; /* Adjusted margin-left for smaller screens */
  }

}

@media screen and (max-width: 400px) {
  #nameHeader{
    font-size: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: 0.25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: 0.5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top 0.3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top 0.3s;
  }
}
