/*----------------------- general -------------------------- */
body {
  font-family: Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.content {
  padding: 20px;
  padding-top: 80px;
}

/*------------------------ navbar ------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  color: black;
  padding: 17px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1, .navbar ul li a {
  font-size: 18px;
  color: black;
  font-family: Arial, sans-serif;
}

/*--- title ---*/
.nav-left h1 {
  margin: 0;
  font-size: 20px;
  color: black;
  font-weight: normal;
}

/*--- nav pages ---*/
.nav-right {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-right li {
  margin: 0 10px;
  padding: 12px 5px;
}

.nav-right li a {
  color: black;
  text-decoration: none;
  font-size: 18px;
}

.nav-right li a:hover, .nav-right a.active, .nav-right a.home-active {
  color: #8806CE;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-right {
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
  }
}

/*-------------------------- social nav --------------------------- */
.contact-section {
  text-align: center;
  padding: 20px;
  background-color: white;
}

.contact-section a {
  color: #8806CE;
  margin: 0 10px;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: none;
}

body.about-page .contact-section {
  display: none;
}


/*-------------------------------- pubs ----------------------------------*/
body.publications-page {
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: black;
}

body.publications-page .content {
  margin: 0 auto;
  width: 75%;
  max-width: 1200px;
}

@media (max-width: 1024px) {
  body.publications-page .content {
    width: 90%;
  }
}

@media (max-width: 768px) {
  body.publications-page .content {
    margin-top: 80px;
    width: 95%;
    padding: 0 15px;
  }
}

.publications-title {
  margin-top: 60px;
  font-size: 35px;
  color: #8806CE;
  font-weight: normal;
}

.publication-title {
  font-size: 25px;
  font-weight: normal;
  color: black;
  margin-bottom: 20px;
}

.publication-authors {
  margin-top: 0;
  font-size: 15px;
  font-weight: normal;
}

.publication-authors strong {
  font-weight: bold;
}

.publication-links-container {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  margin-top: -30px;
  margin-bottom: 30px;
}

.publication-links-container h6 {
  font-size: 18px;
  color: #333;
  font-weight: normal;
  margin-bottom: 20px;
}

.publication-links {
  list-style-type: disc;
  padding-left: 15px;
  margin-top: 0px;
}

.publication-links li {
  margin-bottom: 5px;
}

.publication-links a {
  font-size: 15px;
  color: #8A2BE2;
  text-decoration: none;
  display: block;
}

.publication-links a:hover {
  text-decoration: underline;
}

/* flexbox */
.publication-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.publication-image {
  flex: 1;
  max-width: 45%;
  min-width: 400px;
}

.publication-links-container {
  flex: 1;
  max-width: 50%;
  min-width: 300px;
}

.publication-image img {
  max-width: 100%;
  height: auto;
}


/*---------------------------- writing -----------------------------*/
body.writing-page {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: gray;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.writing-page .content {
  flex-grow: 1;
}

.writing-page .content h1 {
  font-weight: normal;
  margin-top: 60px;
  font-size: 35px;
  font-weight: normal;
  color: #gray;
}

.writing-page .content {
  margin: 0 150px 10px;
  line-height: 1.8;
}

.writing-page .writing-entry p {
  color: black;
}

@media (max-width: 768px) {
  .writing-page .content {
    margin: 0 20px;
  }
}

.writing-title {
  font-size: 30px;
  font-weight: normal;
  color: #8806CE;
  text-decoration: none;
}

.writing-title:hover {
  text-decoration: underline;
}

.writing-meta {
  font-size: 17px;
  font-weight: 300;
  color: #8806CE;
}

.read-more {
  font-size: 15px;
  color: #8806CE;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}


/*---------------------------- posts ----------------------------- */
body.writing-post {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: black;
}

.writing-post .content {
  margin: 0 150px 10px !important;
}

.writing-post h1 {
  font-weight: normal;
  font-size: 30px;
  color: #8806CE;
}

h2 {
  color: #8806CE;
  font-weight: normal;
}

.bold-color {
  font-weight: bold;
  color: #8806CE;
}

.writing-post .writing-meta {
  font-size: 17px;
  font-weight: 300;
  color: #8806CE;
  margin-bottom: 20px;
}

.writing-post p {
  line-height: 1.8;
  color: black;
}


.writing-post .back-to-writing {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  color: #8806CE;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
}

.writing-post .back-to-writing:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .writing-post .content {
    margin: 0 20px;
  }
}

/*---------------------------- about ------------------------------ */
body.about-page {
  font-family: Arial, sans-serif;
  background-color: white;
  font-size: 18px;
  color: black;
  text-align: justify;
  line-height: 1.6;
}

/* nav padding match */
body.about-page .navbar {
  padding-top: 13px;
}

.about-page .content {
  padding: 80px 90px;
  margin: 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-page .figure {
  width: 40%;
  margin-right: 20px;
  text-align: center;
}

.about-page .text-block {
  width: 55%;
  max-width: 900px;
}

.about-page .social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.about-page .social-links a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  display: flex;
  align-items: center;
}

.about-page .social-icon {
  margin-right: 10px;
  width: 30px;
  height: 30px;
}

.about-page .social-links a:hover {
  color: #8806CE;
}

@media (max-width: 768px) {
  .about-page .content {
    flex-direction: column;
    padding: 60px 15px;
    margin: 0;
  }

  .about-page .figure {
    width: 70%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .about-page .text-block {
    width: 100%;
  }

  .about-page .social-links {
    justify-content: center;
  }

  body.about-page {
    font-size: 16px;
  }

  .about-page .social-icon {
    width: 18px;
    height: 18px;
  }

  .about-page .text-block p {
    font-size: 16px;
    margin-bottom: 15px;
  }
}



/*--------------------- contact form --------------------------*/

body.contact-page {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: #495057;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-page .content {
  flex-grow: 1;
  margin: 0 150px 10px;
  text-align: center;
}

.contact-page h1 {
  margin-top: 60px;
  font-size: 35px;
  font-weight: normal;
}

.custom-button {
  background-color: white;
  color: #8806CE;
  padding: 10px 10px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.custom-button:hover {
  background-color: #8806CE;
  color: white;
}


form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: transparent;
  border-radius: 8px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"] {
  background-color: white;
  color: #8806CE;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 4px;
}

input[type="submit"]:hover {
  background-color: #8806CE;
  color: white;

}

form input[type="text"], form input[type="email"], form textarea {
  font-family: Arial, sans-serif;
  background-color: #F7F0FD;
  border: transparent;
  color: #8806CE;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 5px;
}

form label {
  font-size: 18px;
  color: #8806CE;
  margin-bottom: 5px;
  text-align: left;
  display: block;
}

@media (max-width: 768px) {
  .contact-page .content {
    margin: 0 20px;
  }
}
