body {
  background-color: #ffeab7; 
  background-image: url("https://imagesforblogsite.carrd.co/assets/images/image16.jpg?v=3eb31069");
  background-repeat: repeat;      
  background-position: top left;      
  background-attachment: fixed;
  background-size: 500px auto;
  
  font-family: 'Pixelify Sans', sans-serif; 
  color: #4b2e05;
  margin: 0;
  padding: 40px 0;
}

h1, h2, h3 {
  font-family: 'Pixelify Sans', sans-serif;
  color: #4b2e05;
  text-align: center;
}

p, span, li, a, div {
  font-family: 'Courier New', sans-serif;  
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

.container {
  width: 760px;
  margin: auto;
  border: 15px solid transparent;
  border-image: url("https://dl.dropbox.com/s/rr5se47u373c2yn/orange%20lace.png") 8 fill round;
  padding: 20px;
  text-align: center;
}


#nav {
  margin: 15px 0;
  font-size: 18px;
}
#nav a {
  color: #6a3d00;
  text-decoration: none;
  padding: 4px 10px;
  transition: 0.3s;
}
#nav a:hover {
  background: white;
  border-radius: 25px;
}

/*general*/

#main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

#sidebar {
  width: 220px;
  background: #fffdf4;
  border: 3px dotted #f6d28d;
  padding: 15px;
  box-sizing: border-box;
  text-align: left;
}

#sidebar h3 {
  margin-top: 0;
  font-size: 20px;
  color: #6a3d00;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

#sidebar ul li {
  margin: 8px 0;
}

#sidebar ul li a {
  text-decoration: none;
  color: #4b2e05;
  transition: 0.3s;
}

#sidebar ul li a:hover {
  color: #b26e00;
}

.back-button {
  display: block;
  width: 50%;
  margin: 15px auto;
  padding: 8px 0;
  background: #fffdf4;
  border: 3px dotted #f6d28d;
  color: #4b2e05;
  font-family: 'Pixelify Sans', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.back-button:hover {
  background: #fef7e5;
}


/*actual content*/

#content {
  flex: 1;
  background: #fffdf4;
  border: 3px dotted #f6d28d;
  padding: 20px;
  text-align: left;
  line-height: 1.6;
  height: auto;
  overflow-y: auto;      
  box-sizing: border-box;
}

/*thoughts*/

.thoughtbox {
  max-height: 600px;  
  overflow-y: auto;   
  padding: 10px;
  border: 1px solid grey;
  background-color: #ffffff;
  border-radius: 10px;
}

.thought {
  background-color: #fff4e0;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.date {
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 0.8em;
  color: #0065ff;
  text-align: right;
  margin-top: 5px;
  font-style: italic;
}


#footer {
  border-top: 1px solid #f0dba7;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 14px;
  color: #7a5b1a;
}

.headerimage {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .container {
    width: 95%;
  }
  #main {
    flex-direction: column;
    align-items: center;
  }
  #sidebar {
    width: 100%;
  }
  #content {
    width: 100%;
  }
}