html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "futura-pt", sans-serif;
  background-color: #f6f6f5;
}

* {
  box-sizing: border-box;
}

h2 {
  font-size: 30px;
}

p {
  font-size: 20px;
  color: #1b1914;
}

.italics {
  font-style: italic;
}

/* Home Page */
.nav {
  background-color: #f6f6f5;
  height: 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1b1914;
  padding: 20px 50px;
  margin-top: 20px;
}

.nav ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav ul li {
  list-style: none;
}

.nav ul li a {
  text-decoration: none;
  font-family: "arsenica-variable", sans-serif;
  font-size: 1.9rem;
  color: #1b1914;
  padding: 0 20px;
}

.home_cover, .background-home, .favorite-things {
  padding: 20px 50px;
  box-sizing: border-box;
}

.home_cover {
  background-color: #f6f6f5;
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 50px;
}

.background-home {
  background-color: white;
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 50px;
  padding-right: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-home {
  background-color: #dd3932;
  width: 100%;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-text h2 {
  margin: 20px;
  color: #f6f6f5;
}

.footer-text p {
  margin: 20px;
  color: #f6f6f5;
}

/* My Work */
.main {
  background-color: #f6f6f5;
  max-width: 1000px;
  margin: auto;
}

h1 {
  font-size: 50px;
  word-break: break-word;
}

.work-title {
  justify-items: center;
  padding-left: 50px;
  padding-right: 50px;
  justify-items: center;
}

.work-title h2 {
  font-family: "arsenica-variable", sans-serif;
  font-size: 50px;
}

/* Papers Section */
.papers {
  background-color: #16baaf;
  margin: 50px;
  padding: 50px;
  align-items: center;
  justify-content: center;
}

.papers h3 {
  color: #f6f6f5;
}

.papers p {
  color: #1b1914;
}

.papers-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
  margin-bottom: 20px;
}

.papers-iframe {
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  height: 300px;
}

.favorite-things {
  background-color: #feb009;
  margin: 50px;
  padding: 50px;
  align-items: center;
  justify-content: center;
}

.favorite-iframe {
  width: 100%;
  max-width: 100%;
  height: 500px;
}

.paintings {
  margin: 50px;
  width: auto;
}

/* Row and Column layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.column {
  flex: 1 0 33%;
  padding: 10px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.content-monochrome {
  background-color: white;
  border: 3px solid #feb009;
  padding: 10px;
}

.content-landscape {
  background-color: white;
  border: 3px solid #dd3932;
  padding: 10px;
}

.content-self {
  background-color: white;
  border: 3px solid #16baaf;
  padding: 10px;
}

/* Blog */
.nav-blog {
  background-color: #1b1914;
  height: 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f6f6f5;
  padding: 20px 50px;
  margin-top: 20px;
}

.nav-blog ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-blog ul li {
  list-style: none;
}

.nav-blog ul li a {
  text-decoration: none;
  font-family: "arsenica-variable", sans-serif;
  font-size: 1.9rem;
  color: #f6f6f5;
  padding: 0 20px;
}

.blog {
  background-color: #1b1914;
}

.blog-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.red-m {
  width: 75%;
}

.blog h3 {
  color: #feb009;
}

.blog h4 {
  color: #f6f6f5;
  font-style: italic;
}

.blog p {
  color: #f6f6f5;
}

button {
  padding: 10px 20px;
  background-color: #1b1914;
  border: 5px solid #16baaf;
  color: #16baaf;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

article {
  flex: 1 0 100%;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.article-left {
  align-self: flex-start;
}

.article-right {
  align-self: flex-end;
}

@media screen and (min-width: 768px) {
  .article-left {
    order: 1;
  }

  .article-right {
    order: 2;
  }

  .article-container {
    justify-content: space-between;
  }

  article {
    flex: 1 0 48%;
  }
}

@media screen and (max-width: 900px) {
  .background
::contentReference[oaicite:0]{index=0}
 
/* Update the CSS for .background-home on smaller screens so that it stacks vertically */
@media screen and (max-width: 900px) {
  .background-home {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .wrap img {
    width: 50%;
  }

  .home-text {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Adjust for very small screens (less than 600px) */
@media screen and (max-width: 600px) {
  .background-home {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wrap img {
    width: 70%; /* Adjust the image width to be smaller on smaller devices */
  }
  
  .home-text h2 {
    font-size: 20px;
  }

  .home-text p {
    font-size: 14px;
  }
}
