/* Reset margins and set up a full-height layout box */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: Arial, sans-serif;
            font-weight: bold;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: url('images/Sidewall1.jpg');
            background-repeat: repeat;
            background-size: 300px auto;
            overflow-x: hidden;

        }
        
        
        .sonic-container {
          display: flex;
          
          
          }
          
          .shadow {
            width:50%;
            height: 900px;
            background-color: red;
            
            
            }
            
            .silver{
              position: relative;
              overflow: visible;
              
            width:50%;
            height: 900px;
            background-color: white;
            
            }
            
            
  
.laceborder {
  position: absolute;
  top: 0;
  right: 0;            /* Pins the container directly to the right edge of the white box */
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}
  
  .lace1 {
  width: 180px;
  position: absolute;  /* Ensures it behaves like a floating sticker */
  top: 0px;           /* Move it down from the top edge as needed */
  right: -60px;            /* Keeps it perfectly flush with the right boundary */
}


.laceborder2 {
  position: absolute;
  top: 0;
  right: 0;            /* Pins the container directly to the right edge of the white box */
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}
  
  .lace2 {
  width: 900px;
  position: absolute;  /* Ensures it behaves like a floating sticker */
  top: 0px;           /* Move it down from the top edge as needed */
  right: 0px;            /* Keeps it perfectly flush with the right boundary */
}


.bunchofsilvers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    width: 450px;
    height: max-content;
    top: 0px;
    left: 400px;
    overflow: hidden;
    z-index:1;
}

.bunchofsilvers img {
    width: 100%;
    height: auto;
    display: block;
}



/* Position them directly into their own slots */
.bunchofsilvers img:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; } /* Top row */
.bunchofsilvers img:nth-child(2) { grid-column: 1; grid-row: 2; }          /* Left Column, Row 2 */
.bunchofsilvers img:nth-child(4) { grid-column: 1; grid-row: 3; }          /* Left Column, Row 3 (Right under 2!) */

.bunchofsilvers img:nth-child(3) { grid-column: 2; grid-row: 2 / span 2; } /* Right Column, spans down */

.silver1 {
  width: 100%;             /* Takes up the available width up to its max */
    max-width: 440px;        /* Adjusted so it fits beautifully in the 450px box */
    height: auto;            /* Keeps the height proportional */
    object-fit: contain;     /* Prevents squishing/stretching */
    display: block;          /* Forces it out of inline text mode */
    vertical-align: bottom;}
  
  .silver2 {
    width: 100%;             /* Takes up the available width up to its max */
    max-width: 225px;        /* Won't get bigger than its original size */
    height: auto;            /* Keeps the height proportional */
    object-fit: contain;     /* Prevents squishing/stretching */
    display: block;          /* Forces it out of inline text mode */
    vertical-align: bottom;}
    
    
    .silver3 {
    width:200px;
    display: block;          /* Forces it out of inline text mode */
    vertical-align: bottom;}


.silver4 {
    width: 100%;             /* Takes up the available width up to its max */
    max-width: 220px;        /* Won't get bigger than its original size */
    height: auto;            /* Keeps the height proportional */
    object-fit: contain;     /* Prevents squishing/stretching */
    display: block;          /* Forces it out of inline text mode */
    vertical-align: bottom;}
    
    
   
    
    .silver5 {
      position:absolute;
      width: 400px;
      top:450px;
      left:-150px;
      z-index:2;}
      
      .silver7 {
      position:absolute;
      width: 200px;
      top:500px;
      left:200px;
      z-index:1;}




.silverrotate{
  display: flex;
  flex-direction: row;
    position: absolute;       
  top: 10px;                /* Adjust distance from the top edge */
  left: 150px;               /* Adjust distance from the left edge */
  z-index: 1;
 
    
}

.silverrotate img {
  width: 80px;              
  height: auto;}
  
  
.pierogisilver {
    position: relative;
    width:100px;  
    height:100px; 
    top:100px;
    left:-200px;
    
}

.lily2 {
    position: absolute;
    top: -90px;
    left: 50px;
    z-index: 2;
    width:400px;
}
.swirl1 {
    position: absolute;
    top: 50px;
    left: 250px;
    z-index: 2;
    width:400px;
}

.pierogi {
    position: absolute;
    top: 250px;
    left: 100px;
    z-index: 2;
    width:200px;
}

.silverpierogi {
    position: absolute;
    top: 0;
    left:200px;
    z-index: 1; 
    width:400px;
}
              

        

        /* The Grid Wrapper */
        .container {
            display: grid;
            grid-template-rows: auto 1fr auto; /* Header, Body, Footer heights */
            min-height: 100vh;
        }

        /* Header Styling */
        .header {
            background-image:url('images/FriezeC.jpg');
            background-size: 300px auto;
            padding: 20px;
            text-align: center;
            font-size: 1.5rem;
            
        }

        /* Main Content Grid (The 3 Columns) */
        .main-layout {
            display: grid;
            /* Aside 1 is fixed at 250px, Aside 2 is fixed at 250px. Center takes the remaining space (1fr) */
            grid-template-columns: 250px minmax(0, 1fr) 250px; 
            align-items: stretch;
            overflow:hidden;
            
        }
        
       

        /* Sidebar 1 (Left) */
        .aside-1 {
            background-color: transparent;
            
            text-align: center;
            font-size: 1.2rem;
            /* Keeps it strictly stationary */
            overflow: hidden; 
            
        }

        /* Center Content Area */
        .content {
            background-color: rgba(0, 0, 0, 0.85);
            font-size: 1.2rem;
            line-height: 1.5;
            text-align: left;
           
            
        }
        
        .journal-frontpage {
          padding: 20px;}
          
          .journal-frontpage img{
            width: 100%;}
            
            .art-display img {
              width:300px;}
          
          .currently-text {
            padding: 20px;}
        
        .row {
          padding-top:20px;}
          
          
        
      

        /* Sidebar 2 (Right) */
        .aside-2 {
             background-color: #8F1D21;
            padding: 20px;
            text-align: center;
            font-size: 1.2rem;
            /* Keeps it strictly stationary */
            overflow: hidden; 
          
        }
        
        .aside-2 p {
          color: #3C0008;}
          
          .aside-2 img {
            width:100%;}
          
          
          /* Container for the entire directory */
.shrine-grid {
  display: grid;
  /* Automatically fits columns that are at least 280px wide */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  
  max-width: 1000px;
  margin: 0 auto; /* Centers the whole directory on the page */
  
}

.shrine-content {
  background-color: black;}

/* Individual clickable shrine blocks */
.shrine-card {
  display: block;
  text-decoration: none; /* Removes link underline */
  color: #333; /* Text color */
  background: black;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden; /* Keeps images clean within the border radius */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effects to make the cards feel interactive */
.shrine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: red; /* Accent color on hover */
}

/* Forces images/banners to fit the card perfectly */
.shrine-img {
  width: 100%;
  height: 160px;
  object-fit: cover; /* Prevents banners from stretching awkwardly */
  display: block;
}

/* Text styling inside the card */
.shrine-card h3 {
  margin: 15px 15px 5px 15px;
  font-size: 1.3rem;
}

.shrine-card p {
  margin: 0 15px 15px 15px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}
     

        /* Footer Styling */
        .footer {
            background-image:url('images/footer.jpg');
            background-size: 100px auto;
            padding: 20px;
            text-align: center;
            font-size: 1.5rem;
        }
        
        
        .journal-container {
          
          display: flex;
    flex-direction: row;
    align-items: flex-start; /* Aligns the top of the text with the top of the image */
    gap: 30px;              /* Puts space between the text and the image */
    margin-top: 10px;
    padding-left: 10px;
          }
          
          .journal-text {
    flex: 60%;
   
}

/* Gives the image container 40% of the available width */
.journal-image {
    flex: 40%;
}

.journal-image img {
  width:700px;
  padding-right:10px;}
  

        
          
        .currently-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Aligns the top of the text with the top of the image */
    gap: 30px;              /* Puts space between the text and the image */
    margin-top: 10px;
    padding-left: 10px;
}

/* Gives the text area 60% of the available width */
.currently-text {
    flex: 60%;
   
}

/* Gives the image container 40% of the available width */
.currently-image {
    flex: 40%;
}

/* Ensures the image scales cleanly without overflowing */
.currently-image img {
    width: 100%;
    max-width: 350px; /* Adjust this to make the image smaller or larger */
    height: auto;
    display: block;
}
        nav {
    padding: 0 1em 1em 1em;
    font-weight: bold;
}

.movie-review-entry {
  padding:20px;}
  
  .journal {
    padding:20px;}
    
    
    /* This makes the container hold the images side-by-side horizontally */
.journal-entry-images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allows them to wrap cleanly if they run out of space */
    gap: 10px;       /* Adds a nice spacing gap between each image */
    margin-top: 15px;
}

/* This styles the individual images inside that row */
.journal-entry-images img {
    width: 200px;
    height: auto;    /* Prevents vertical stretching */
}


.mushroom-entry-images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allows them to wrap cleanly if they run out of space */
    gap: 10px;       /* Adds a nice spacing gap between each image */
    margin-top: 15px;
}

.mushroom-entry-images img {
    width: 200px;
    height: auto;    /* Prevents vertical stretching */
}

#mushroom-entry h3 {
  padding-top: 75px;
  }
    
  .books {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Aligns the top of the text with the top of the image */
    gap: 30px;              /* Puts space between the text and the image */
    margin-top: 10px;
    padding-left: 10px;
    padding-bottom: 50px;}
    
    .ticker {
      padding:20px;}
    

nav ul {
    margin: auto;
    line-height: 3rem;
/* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
/* this line takes away the dot in front of the list items */
    list-style-type: none;
/* list items have default padding but we don't need it for these */
    padding-left: 0;
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
    
}
nav li a {
    border: 3px solid #5A0A0D;
   padding: .3em 0.5em;
/* this takes away the link underline */
    text-decoration: none;
/* and this part is animation! */
    transition: color 400ms ease-out, border-color 400ms ease-out;
    background-color: black;
}
nav li a:hover {
    border: 1px solid var(--accent-color);
}

a {
    color: red;
    transition: color 400ms ease-out;
}
a:visited {
    color: var(--favorite-color);
}
a:hover {
    color: var(--text-color2);
}
h2 { color: #BA2525;}
h3 { color: #BA2525;}
h4 { color:#BA2525;}
header li { color: #700808;}
li {color:#BA2525;}
p { color: #BA2525;}
img {
   pointer-events: none;
}

/* base styles for responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* mobile styles (applies to screens 768px wide or smaller) */
@media (max-width: 768px) {
    /* Stack your main grid layout vertically */
    .main-layout {
        display: flex;
        flex-direction: column;
    }
    
    /* make sidebars and main content take full width */
    .aside-1, .aside-2, .content {
        width: 100% !important;
        margin: 10px 0;
    }
    
    /* make horizontal containers (like journal or currently info) stack vertically */
    .journal-container, .currently-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .journal-text, .journal-image, .currently-text, .currently-image {
        width: 100% !important;
        text-align: center;
    }

    /* wrap navigation items horizontally or turn them into a neat list */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: 10px;
    }
    
    nav ul li {
        list-style: none;
    }

    /* keep the stamp layout wrapping nicely instead of breaking boundaries */
    .stamps-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
}
