/* Reset some default margins */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Local font embedding: place font files inside a `fonts/` folder next to this CSS file. */
@font-face {
  font-family: "Poppins";
  src:
    url("fonts/Poppins-Regular.woff2") format("woff2"),
    url("fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src:
    url("fonts/Poppins-Italic.woff2") format("woff2"),
    url("fonts/Poppins-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src:
    url("fonts/Poppins-Medium.woff2") format("woff2"),
    url("fonts/Poppins-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src:
    url("fonts/Poppins-MediumItalic.woff2") format("woff2"),
    url("fonts/Poppins-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Typography */

.body-text {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.2rem;
  line-height: normal;
}

.heading-name {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 5vw;
  font-weight: 800;
}

.small-heading {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: normal;
  font-weight: 600;
}

/* Used in Index for Post Titles*/
h1.heading-big {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 400;
}

/* Used in The Post Page for Article Title */
h1.title-big {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 2.488rem;
  line-height: 2.8rem;
  font-weight: 500;
}

h3 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.728rem;
  line-height: normal;
  font-weight: 500;
}

h4 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.44rem;
}

h5 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

p {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 1em;
}

/*Links */
.dec-no {
  text-decoration: none;
  color: black;
}

.dec-no:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.bg_link {
  text-decoration: none;
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: 700;
  font-style: normal;
}

a {
  text-decoration: underlined;
  color: #2e2e2e;
}

a:visited {
  text-decoration: none;
}

a:active {
  text-decoration: underline;
}

.eng a:visited {
  text-decoration: none;
  color: rgb(47, 15, 255);
}

.eng {
  color: #000065;
}

/* Support `nodec` when applied to the link itself or to a parent element */

.nodec a:visited,
a.nodec:visited {
  text-decoration: none;
}

.nodec a:hover,
a.nodec:hover {
  text-decoration: none;
  color: #555555;
}

.eng .nodec a:hover,
a.nodec:hover {
  text-decoration: none;
  color: #4d4dff;
}

.heading-name,
a.heading-name,
a.heading-name:hover {
  text-decoration: none;
  color: black;
}

.italic {
  font-style: italic;
}

/* Header */
.site-header {
  display: flex;
}

.site-header h1 {
  margin: 0;
}

/* Navigation */

.nav-inner {
  display: flex;
  flex-direction: row;
  align-items: bottom;
  justify-content: space-between;
  padding: 1rem 4vw 4rem 4vw;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: top;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

a[aria-current="true"],
a.current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Burger button */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  border-radius: 2px;
  background: rgb(0, 0, 0);
  display: block;
  transition: all 0.3s ease;
  z-index: 4;
}

/* Transform into X */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Page styles */
body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #ffffff;
  color: #000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main {
  width: 100vw;
  display: flex;
  justify-content: center;
  padding: 4vw;
  flex-grow: 1;
}

.the-post-content {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 60vw;
}

/* Responsive typography tweaks */
@media (max-width: 768px) {
  .body-text {
    font-size: 1.1rem;
  }

  h1.title-big {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  h5,
  h6 {
    font-size: 0.8rem;
  }
  p {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .body-text {
    font-size: 1.3rem;
  }
  .heading-name {
    font-size: 2rem;
  }
  h1.heading-big {
    font-size: 1.3rem;
  }
  h1.title-big {
    font-size: 3rem;
    line-height: 3.6rem;
  }
}

/* Sections Index */
.posts-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.post-item {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding: 0.5rem 0.1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.4rem;
}

.post-item:hover {
  /*background-color: #fbecf4;*/
  background-color: rgb(245, 240, 240);
  text-decoration: none;
  border-radius: 2px;
  padding: 0.4rem 0.4rem;
}

.post-title {
  flex: 1 1 0;
  min-width: 0;
}

.post-date {
  width: 10%;
  text-align: right;
  padding-left: 2%;
  min-width: 0;
}

/* Post Page */

.the-post-section {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10vw;
}

.wide-section {
  width: 100vw;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0 4vw;
}

.page-title {
  width: 80vw;
  padding: 3rem 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  vertical-align: bottom;
}

.post-date-inpage {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 3rem 1rem 0;
}

/* About page image */

.the-about {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.the-about-top {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-bottom: 3rem;
}

.text_wrapper {
  width: 40%;
}

.side-b {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

.about-image {
  width: 100%;
  height: auto;
  display: flex;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-radius: 4px;
}

.about-image > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* List styles */

ul.the-list {
  list-style: none; /* removes bullets */
  padding: 2rem 0;
}

/* Individual items (li) */
ul.the-list li {
  margin-bottom: 1rem;
  font-size: 1.2em;
}

.space {
  display: inline-block;
  width: 10ch; /* Adjust this value to control the spacing */
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 1px solid #555555;
  width: 100vw;
  padding: 1rem 4vw;
}

/*content*/

.the-post-section {
  width: 100vw;
  padding: 1rem;
}

.page-title {
  width: 90vw;
  padding: 1.5rem 13% 0.5rem 0;
}

.the-post-content {
  width: 60vw;
  padding-top: 2rem;
}

.the-about {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.the-about-content {
  width: 90vw;
  flex-direction: column;
  padding-top: 1rem;
}

.text_wrapper {
  width: 90vw;
  padding-bottom: 2rem;
}

.side-b {
  width: 100%;
  padding-left: 0;
}

.books-section {
  width: 100vw;
  padding: 1rem;
}

/* Responsive adjustments */

@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    flex-direction: row;
    align-items: bottom;
    justify-content: space-between;
    width: 100vw;
  }
  .logo {
    width: 76vw;
  }
  .heading-name {
    font-size: 1rem;
    letter-spacing: 3vw;
  }

  /*menu*/
  .burger {
    display: flex;
    z-index: 3;
  }

  .burger.active {
    background: white;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* full screen height */

    background: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    transform: translateY(-100%); /* hidden above screen */
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0); /* slides into view */
  }

  /*index */

  .post-item {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .post-title {
    width: 100%;
    word-break: break-word;
    justify-content: flex-start;
  }

  .post-date {
    width: auto;
    padding-left: 0.001rem;
  }

  /* post-page*/
  .the-post-content {
    width: 100%;
    padding-top: 2rem;
  }
  .post-date-inpage {
    justify-content: flex-start;
    width: 100%;
    padding: 0 0 1.5rem 0;
  }

  .page-title {
    width: 100%;
    padding: 1.5rem 0.5rem 0.5rem 0;
  }
  /* About*/

  .the-about-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 3rem;
  }

  .about-image {
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .site-main {
    padding: 1rem;
  }

  /* Individual items (li) */
  ul.the-list li {
    margin-bottom: 1rem;
    font-size: 1.1em;
    line-height: normal;
  }
  .space {
    display: inline-block;
    width: auto;
    padding-right: 0.5rem;
    /* Adjust this value to control the spacing */
  }
}

@media (max-width: 500px) {
}
