body {  /* this is for the index page */
    background-color: rgb(169, 186, 207);
    color: rgb(221, 0, 0);
    font-family:'Times New Roman', Times, serif;
    font-size: 16px 10vw;
}
.img-candle{ /*this is for the candle image size on the main page*/
     
    width: 96px;
}
.img-hedgehod{ /*hedgehog image size*/
    width:120px;
    
}
.img-str{ /*backround star size? i think */
    width: 94px;
}
.nav-button { /*this is for the index buttons, the coloring and shading*/
 display: block;               /* makes each button its own line */ 
 width:fit-content;
   background-color:rgb(169, 186, 207) ;
    padding: 3px 25px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-bottom: 2px solid #383838;
    border-right: 2px solid #383838;
    box-shadow: none;
    cursor: pointer;
    font-family: Arial, Helvetica,sans-serif; 
    transition: all 0.1 ease;
    text-decoration: none;
    color: #44372a;
    font-size:18px;
}

h1 {
    text-align:center;
    font-size: 35px 10vw;
}
h2{
    text-align:center;
    font-family:'Times New Roman', Times, serif
    
}
.nav-button:hover {   /* this is for the buttons on the index when you hover over them*/
     transform: translate(2px, 2px);
   box-shadow: none;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    border-top: 2px solid #383838;
    border-left: 2px solid #383838;
   background-color: #cecece;
   color:#44372a
}

.backround-image { /* relax page backround allignment */
    position:fixed;
    top: 0;
    left:  0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-image { /* relax page backround image*/

    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dreams-page { /* backround color for dream page*/
background-color: rbg(169, 186, 207);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
margin: 0;
}
.img-dreamland{
    width:300px;
}
#dream-box { /* this is the box containing the dream texts */
    background-color: white;
    width: 300px;
    padding: 20px;
    margin-bottom: 20px ;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    width: 600px;
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    margin-top: 40px;
}

#new-dream-button { /* dream button color*/
    background-color:rgb(169, 186, 207) ;
    padding: 3px 25px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-bottom: 2px solid #383838;
    border-right: 2px solid #383838;
    box-shadow: none;
    cursor: pointer;
    font-family: Arial, Helvetica,sans-serif; 
    transition: all 0.1 ease;
}
#new-dream-button:hover { /*dream button 3d movement*/
   transform: translate(2px, 2px);
   box-shadow: none;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    border-top: 2px solid #383838;
    border-left: 2px solid #383838;
   background-color: #cecece;
}

/*relating to blog below this*/

.img-candle2{ /*this is for the candle image size on the blog page*/
     
    width: 40px;
}

.sidebar {
  position: fixed;
  top: 220px;          /* tweak this to sit where i want from top */
  left: 20px;          /* distance from left edge */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.nav-button {
  display: block;
  width: 150px;
  text-align: center;
  text-decoration: none;
  color: #44372a;
  background-color: rgb(169,186,207);
  padding: 6px 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #383838;
  border-right: 2px solid #383838;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
.nav-button:hover {
  transform: translate(2px,2px);
  background-color: #cecece;
  color: #44372a;
}

/* decorative images on the sides */
.side-img {
  position: fixed;
  width: 80px;     /* adjust size */
  z-index: 10;      /* stay above background */
}

/* left side of screen */
.left-img {
  left: 10px;       /* how far from left edge */
  top: 200px;       /* vertical position */
}

/* right side of screen */
.right-img {
  right: 10px;
  top: 200px;
}
/* -------------------------
   main area
   ------------------------- */
/* push content to the right so it doesn't sit under the fixed sidebar */
.main-area {
  margin-left: 220px;   
  padding: 80px 50px;
  max-width: 800px;    
}
/* header */
.page-header {
    text-align: center;
  margin-bottom: 20px;
}
.date {
    color: #6b6b6b;
}
/* -------------------------
   blog container with columns
   ------------------------- */
.blog-container {
  column-count: 2;              /* two columns */
  column-gap: 15px;            /* space between columns */
  widows: 1;
  orphans: 1;
  color: black;
  font-style:italic

}
@media (max-width: 900px) {
    .blog-columns {
        column-count: 1;
    }
}

/* keep each post together (don't break a post in half across columns) */
.blog-post {
  display: inline-block;        /* keeps the article in a block */
  width: 100%;                  /* fills column width */
  margin: 0 0 7px;             /* spacing between posts */
  padding: 12px;
  break-inside: avoid;         /* try to prevent a post from splitting between columns */
  
}

/* images that are not side-by-side get full column width */
.blog-post img {
  height: auto;
  display: block;
  margin: 14px 0;
}

/* -------------------------
   this is for two images side-by-side inside a post
   ---- */
.photo-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;  /* images can have different heights (not forced to align middle) */
  margin: 12px 0;
}

.photo-row img {
  width: 30%;
  height: auto;
  display: block;
}

body {
    background-image: url('img/picgifs-stars-1071811.gif');
    background-repeat: repeat; /* tile it */
    background-position: left, right;
    background-size: auto;     /* the original size of the image */
    background-color: rgb(169,186,207); /* fallback color */
    background-blend-mode: lighten;
}

img {
    max-width: 100%;
    height: auto;
}

.img-intro{
    width:200px;
}

.img-flowers{
    width: 160px ;
}
.img-breadman{
    width: 250px;
}

.float-right { /*this is for the tetxt wrapped photos*/
  float: right;
  margin-left: 15px;
  margin-bottom: 10px;
  max-width: 40%;
}
.float-left { /*this is for the tetxt wrapped photos*/
  float: right;
  margin-left: 85px;
  margin-bottom: 10px;
  max-width: 40%;
}

/* make images responsive and stop forcing tiny column widths */
.blog-post img,
.blog-container img,
.main-area img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* default float behaviour for images that should wrap text */
.blog-post img.float-left,
.blog-post img.float-right {
  max-width: 40%;       /* images won't be huge on desktop */
  height: auto;
  margin-bottom: 10px;
}

.blog-post img.float-left { 
  float: left;
  margin-right: 15px;
}

.blog-post img.float-right {
  float: right;
  margin-left: 15px;
}

/* Remove floats and make images full-width on narrow screens */
@media (max-width: 900px) {
  .blog-post img.float-left,
  .blog-post img.float-right {
    float: none;
    display: block;
    margin: 12px auto;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .sidebar {
    position: static; /* no longer fixed */
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }
}

@media (max-width: 900px) {

  /* Fix columns */
  .blog-container {
    column-count: 1 !important;
    column-gap: 0 !important;
    width: 100% !important;
  }

  /* Sidebar stops being fixed */
  .sidebar {
    position: static !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  /* Buttons become smaller so they fit horizontally */
  .nav-button {
    width: auto !important;
    padding: 4px 10px !important;
    font-size: 14px !important;
    display: inline-block !important;
  }

  /* Main content gets full width */
  .main-area {
    margin-left: 0 !important;
    padding: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Float images stop floating */
  .float-left,
  .float-right,
  .blog-post img.float-left,
  .blog-post img.float-right {
    float: none !important;
    display: block !important;
    margin: 12px auto !important;
    max-width: 100% !important;
  }

  /* Side photos (photo-row) stack vertically */
  .photo-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .photo-row img {
    width: 100% !important;
  }

  /* Decorative side images shrink */
  .side-img,
  .img-candle2,
  .img-candle {
    width: 40px !important;
  }
}