/* font-family: 'Bebas Neue', sans-serif;
font-family: 'Old Standard TT', serif;
*/

html,
body {
  font-family: 'Bebas Neue', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f6f6f6;
  text-align: center;
}

main {
  margin: 0;
  padding-top: 10%;
  padding-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  flex: 1;
  z-index: 1;
}

p {
  font-family: 'Old Standard TT', serif;
  color: #8a9ea7;
}

li {
  font-family: 'Old Standard TT', serif;
  color: #8a9ea7;
  list-style: none;
  margin-top: 4%;
}
h1 {
  text-align: center;
  color: #8d9b6a;
}
h2 {
  color: #8d9b6a;
  margin-top: 5%;
}
h3 {
  color: #8d9b6a;
  margin-top: 5%;
}
h4 {
  color: #8d9b6a;
  margin-top: 5%;
}
h5 {
  color: #8d9b6a;
}

header {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-start;
  align-items: center;
  /*background-color: 503C3C;*/
  background-color: white;
  z-index: 999;
  position: fixed;
  width: 100%;
}
#header-img {
  width: 25px;
  height: 25px;
  padding-right: 10px;
  padding-left: 10px;
}

header h1 {
  font-size: 1.5rem;
  color: #dab682;
  font-family: 'Bebas Neue', sans-serif;
  padding-right: 20%;
}

/* Resetting default list styles */
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-right: 40px;
  font-family: 'Bebas Neue', sans-serif;
  float: left;
  position: relative; /* Important for positioning the sub-menu */
  cursor: pointer;
  color: #dab682;
  font-size: 1.5rem;
}

.navMargin {
  margin: 10px;
}

nav li:hover {
  color: #503c3c;
}
.nav-container ul li {
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 10px;
}
.nav-container ul li a {
  padding: 0;
}
nav a {
  color: #dab682;
  text-decoration: none;
  display: block; /* Ensure the whole area is clickable */
  padding: 10px; /* Add padding for better click area */
  background-color: white;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

nav a:hover {
  color: #503c3c;
}

/* Styling for the sub-navigation- li items */
.sub-nav {
  position: absolute;
  top: 100%; /* Position below the main navigation item */
  left: 0;
  background-color: white;

  height: auto;
  display: none; /* Hide the li */
}

/* how to make it show */
nav li:hover .sub-nav {
  display: block;
  opacity: 1;
  z-index: 998;
}
.sub-nav li {
  display: block;
  width: 400px;
  position: relative;
  text-align: center;

  padding: 10px;
  background-color: white;
  box-sizing: border-box;
}

#mainIndex {
  margin: 0px;
  padding: 0px;
}
#top-container {
  display: flex;
  justify-content: start;
  align-items: center;
  background-image: url('/images/topcontainer.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0px 0px;
  height: 100vh;
  width: 100%;
}
#top-container div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  margin: 10%;
}
#top-container div h1 {
  font-size: 3rem;
}
#top-container div p {
  font-size: 15px;
}

.date {
  text-align: center;
  color: #dab692;
}
#intro-name {
  font-size: 4rem;
}

.main-intro-container {
  /*color: #7e6363;*/
  color: #7a77b9;
  text-align: center;
  margin: 0;
  padding: 0;
}
.main-intro-container h1 {
  margin-top: 0;
  padding-top: 16px;
}

.main-intro-container img {
  width: 200px;
  height: auto;
  padding-bottom: 20px;
}
.main-intro-container p {
  padding: 10px;
}

.main-end-container {
  text-align: center;
  padding: 20px;
}
.main-end-container p {
  margin-bottom: 0;
  color: #8a9ea7;
}
.research-h2 {
  text-align: center;
}
#relative-1 {
  width: 200px;
  height: 100px;
  background-color: #8a9ea7;
}
#relative-2 {
  position: relative;
  top: 30px;
  left: 100px;

  width: 200px;
  height: 100px;
  background-color: #8a9ea7;
}
.relative {
  margin-top: 50px;
}
.relative img {
  position: relative;
  left: 100px;
}
.absolute h2 {
  margin-top: 50px;
}
#absolute-1 {
  width: 200px;
  height: 100px;
  background-color: #8a9ea7;
}
.relative-div {
  position: relative;
  height: 200px;
  width: 100%;
  border-color: #8a9ea7;
  border-width: 5px;
  border-style: solid;
}

#absolute-2 {
  width: 200px;
  height: 100px;
  background-color: #8a9ea7;
  position: absolute;
  right: 100px;
  bottom: 25px;
}

#fixed {
  width: 200px;
  height: 100px;
}
#fixed img {
  position: fixed;
  right: 50px;
  top: 50px;
  width: 50px;
  height: 50px;
}

.eqtable {
  font-family: 'Old Standard TT', serif;
  text-align: center;
  margin-left: 20%;
  margin-right: 20%;
  color: #8a9ea7;
}
.eqtable td {
  padding-top: 10px;
}

#controlFlow {
  font-family: 'Old Standard TT', serif;
}
#controlFlow li {
  list-style: none;
  padding-top: 2%;
}
footer {
  padding: 10px;
  margin-top: 10px;
  color: #8a9ea7;
  text-align: left;
}
#girl {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#girl img {
  width: 100%;
  height: 300px;
  border-radius: 20%;
  border-color: black;
  border-style: solid;
}
#girl figcaption {
  text-align: center;
}
#sandwich {
  text-align: center;
}
#sandwich img {
  width: 200px;
}
figcaption {
  font-family: 'Old Standard TT', serif;
  font-size: 12px;
}
#domStructure {
  text-align: center;
}
#domStructure img {
  border-radius: 20%;
  border-style: solid;
}

.growth a {
  display: block;
  text-align: center;
  margin-top: 10%;
  color: #8a9ea7;
}

.growth a:hover {
  color: #8d9b6a;
}
#growthBrain {
  display: flex;
  justify-content: center;
}

#growthBrain img {
  width: 50%;
  align-items: center;
  margin-top: 10%;
}
.problem {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}
#whare {
  width: 100%;
}

#brick-wall img {
  width: 10%;
  flex-wrap: wrap;
}

.flex {
  display: flex;

  justify-content: space-around;
}

.flex div {
  width: 40%;
  margin: 10px;
}

@media screen and (max-width: 400px) {
  main {
    margin-top: 200px;
  }
  #fixed img {
    top: 150px;
    right: 0px;
  }
  header h1 {
    font-size: 1rem;
  }
}

@media screen and (min-width: 400px) {
  main {
    margin-top: 75px;
  }
  #fixed img {
    top: 150px;
    right: 0px;
  }
  header h1 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 750px) {
  .flex {
    flex-wrap: wrap;
  }
  .flex div {
    width: 100%;
  }
  .nav-container ul li {
    font-size: 1rem;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 2px;
  }
}
