@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Cinzel:wght@400;700&display=swap&family=Asul:wght@400;700&display=swap&family=Qwitcher+Grypen:wght@400;700&display=swap&family=Bacasime+Antique&display=swap&family=Bacasime+Antique&family=Lustria&display=swap&family=Freehand&display=swap&family=Babylonica&display=swap&family=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
  --sage: #3a4a3f;
  --cream: #f4f1ea;
  --black: #121212;
  --gray: #2e2e2e;
  --header-height: 120px;
}

body {
  margin: 0;
  font-family: 'Asul', serif;
  background-color: var(--black);
  color: var(--cream);
  line-height: 1.6;
  display: flex; /* Helps with layout of header, sidebar, and content */
  flex-direction: column; /* Stacks header, content */
  min-height: 100vh; /* Ensures body takes full height */
  grid-template-rows: auto 1fr auto;
  padding-bottom: 30px;
}

main {  
  flex-grow: 1; /* Shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0 */  
}  

header {
  background: var(--sage);
  padding: 1rem;
  text-align: center;
  font-family: 'UnifrakturCook', cursive;
  font-size: 4rem;
  color: var(--cream);
}

.drawer-header {
    background: var(--sage);
    padding: 1rem;
    text-align: center;
    font-family: 'Qwitcher Grypen', cursive;
    font-size: 4rem;
    color: var(--cream);
    position: relative;
    z-index: 1001;
    height: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.landing header {
    font-family: 'Asul', serif;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    color: #b0b3af;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.menu-icon {
    background: none;
    border: none;
    color: #898E88;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.menu-icon-style2 {
    background: none;
    border: none;
    color: #70746f;
    font-size: 24px;
    font-family: Qwitcher Grypen;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    /* background-image: url('path/to/your/semitransparent_image.png'); */ /* Optional: if you have an actual semi-transparent image */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    z-index: 999; /* Below the sidebar, but above main content */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Also hide from screen readers and pointer events */
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out; /* Smooth transition */
}

.sidebar.active + .sidebar-overlay, /* If overlay is *immediately after* sidebar */
.sidebar-overlay.active { /* If overlay gets its own active class (preferred for click outside) */
    opacity: 1;
    visibility: visible;
}

.sidebar { 
  padding: 0.5rem;
  padding-top: 60px;
  width: 280px;
  background: #54574f66 100%;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  gap: 3rem;  
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  font-family: Cinzel;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

.sidebar li {
  width: 100%;
  margin-bottom: 10px;
}

.sidebar a {
  display: block;
  color: #ffe; /* pale bone color */
  padding: 16px;
  text-decoration: none; 
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  width: 100%;
}

.sidebar a:hover {
  text-shadow: 0 0 7px #b1d989;
  color: #edf2e9;
}

.sidebar img {
  position: fixed;
  top: 2%;
  left: 50%;
  transform: translate(-120%, -2%);
  width: 75px;
}

.content {
    flex-grow: 1;/* Allows main content to take remaining vertical space */
    padding: 20px;
}

 footer {
  width:100%;
  height: 0.2em;
  font-family: "Bacasime Antique", serif;
  color: var(--cream);
  text-align: center; /* Centers the text horizontally */
  font-size: 1em; /* Sets font size to 2em */ 
}

.ovals {
  position: relative;
  width: 100%;
  height: 600px;
  /* Still good practice for positioned elements */
  display: flex; /* Using flexbox to arrange them initially */
  justify-content: center; /* Center horizontally */
  align-items: flex-start; /* Align to the top of the container */
  gap: 2%; /* Small gap between the items */
}

.oval-wrapper {
  position: absolute; /* Keep absolute positioning for precise control */
  width: 390px; /* Adjust width to make them suitable for display */
  padding-bottom: 0%; /* Create a taller oval aspect ratio for your plaques */
  border-radius: 60%/70%; /* This can make a more distinct oval shape if needed */
  background-color: transparent; /* Assuming your images will fill the space */
  /* Keep image inside */
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.0); /* Stronger shadow for depth */
}

.oval-wrapper:hover {
  transform: scale(1.03) translateY(-5px); /* Slightly larger and "lifted" */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.0); /* More pronounced shadow on hover */
}

/* Specific positioning for your two plaques */
.oval-1 {
  top: 0.1%; /* Starting position from the top */
  left: 12%; /* Starting position from the left */
  transform: rotate(-0deg); /* A very slight, subtle tilt */
  z-index: 2; /* Ensures it's clearly on top if they overlap */
}

.oval-2 {
  top: 6%; /* Lower than oval-1, creating the "down a little" effect */
  left: 55%; /* More to the right than oval-1 */
  transform: rotate(0deg); /* A very slight tilt in the opposite direction */
  z-index: 1; /* Can be behind oval-1 */
}

.oval-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Use 'contain' to ensure the entire plaque is visible */
  /* If your images are already pre-cropped to the oval, 'cover' might work.
     But since these are reliefs, 'contain' will likely preserve the full plaque. */
  border-radius: 60%/70%; /* Match the border-radius of the wrapper for consistent masking */
  /* Or, if the plaques have their own irregular shape, you might skip border-radius on img
     and instead rely on a transparent background for the oval-wrapper. */
}

/*Galleries of Galleries Section*/
.shelf img {
  position: relative;
  top: 24%;
  left: 40%;
  width: 57%;
  transform: translateY(125%);
  align-items: right;
  z-index: 2;
}

.galleries header {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    color: #333;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

/*Paintings Section*/
.paintings header {
    font-family: 'Asul', serif;
    color: #B2BEAC;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.paintings header a {
   color: #B2BEAC;
   text-decoration: none;
}
  
.paintings-icons {
  display: flex;
  justify-content: center; /* Centers the whole group horizontally */
  align-items: center;     /* Aligns them by their vertical center line */
  gap: 20px;               /* Space between the paintings */
  padding: 120px 20px 0px 20px;      /* Extra vertical space so the top/bottom doesn't get cut off */
  justify-content: space-around;
  align-items: flex-end;
}

.paintings-icons2 {
  display: flex;
  justify-content: center; /* Centers the whole group horizontally */
  align-items: center;     /* Aligns them by their vertical center line */
  gap: 20px;               /* Space between the paintings */
  padding: 0px 20px 0px 20px;      /* Extra vertical space so the top/bottom doesn't get cut off */
  justify-content: space-around;
  align-items: flex-end;
}

.paintings-icons img {
  display: block;
  margin-right: 15px;
  margin-left: 15px;
  margin-bottom: 20px; /* Space below each image */
  break-inside: avoid; /* Prevents images from being cut between columns */
  border-radius: 8px; /* Optional: rounded corners look nice */
}

.paintings-icons2 img {
  display: block;
  margin-right: 15px;
  margin-left: 15px;
  margin-bottom: 20px; /* Space below each image */
  break-inside: avoid; /* Prevents images from being cut between columns */
  border-radius: 8px; /* Optional: rounded corners look nice */
}

.Image1 {
  width: ;              /* Dogs should probably be slightly narrower than the landscape */
  max-width: 300px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.3);
}

.Image2 {
  width: ;              /* Adjust this based on how big you want the flower */
  max-width: 500px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.3); /* Adds depth/shadow */
  
  /* THIS MOVES THE FLOWER UP */
  transform: translateY(-50px); 
  z-index: 2; /* Ensures it sits on top if they overlap */
}

.Image3 {
  width: ;              /* Dogs should probably be slightly narrower than the landscape */
  max-width: 300px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.3);
}

.Image4 {
  width: ;              /* Skull painting is a square */
  max-width: 400px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.3);
}

.RememberYourArt header {
    font-family: 'Asul', serif;
    color: #B2BEAC;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.RememberYourArt header a {
   color: #B2BEAC;
   text-decoration: none;
}

.FullPage {
  display: flex; 
  position: relative;
  justify-content: center; /* Centers the whole group horizontally */
  align-items: center;     /* Aligns them by their vertical center line */
  gap: 20px;               /* Space between the paintings */
  padding: 0px 20px 0px 20px;      /* Extra vertical space so the top/bottom doesn't get cut off */
  justify-content: space-around;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;        /* Optional rounded corners */
  cursor: zoom-in;
  outline: none;
}

/* Change cursor when zoomed */
.FullPage.is-zoomed {
  cursor: zoom-out;
}

/* Clear keyboard focus indicator */
.FullPage:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

.DrawingPaintingDescription {
  font-family: "Lustria", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
}

.SkullImage {
  display: block;
  width: 70%;
  height: 70%;
  margin-right: 15px;
  margin-left: 15px;
  margin-bottom: 20px; /* Space below each image */
  break-inside: avoid; /* Prevents images from being cut between columns */
  border-radius: 8px; /* Optional: rounded corners look nice */
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform-origin 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, transform-origin;
} 

/*.SkullImage:hover {
  transform: scale(1.9);
}*/

/*Drawings Section*/
.drawings header {
    font-family: 'Asul', serif;
    color: #B2BEAC;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.drawings header a {
   color: #B2BEAC;
   text-decoration: none;
}

.drawings-icons { 
  display: flex;
  justify-content: center; /* Centers the whole group horizontally */
  align-items: center;     /* Aligns them by their vertical center line */
  gap: 20px;               /* Space between the paintings */
  padding: 120px 20px 0px 20px;      /* Extra vertical space so the top/bottom doesn't get cut off */
}

.drawings-icons img {
  display: block;
  margin-bottom: 15px; /* Space below each image */
  break-inside: avoid; /* Prevents images from being cut between columns */
  border-radius: 8px; /* Optional: rounded corners look nice */
}

.Drawing1 {
  width: 80%;              /* Adjust this based on how big you want the flower */
  max-width: 350px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.3); /* Adds depth/shadow */
  
  /* THIS MOVES THE FLOWER UP */
  transform: translateY(-40px); 
  z-index: 2; /* Ensures it sits on top if they overlap */
}


/*Drawer Section*/
drawer {
    position: absolute; /* Position it relative to the viewport or a parent container */
    top: 0;
    left: 0;
    width: 80%; /* Or set a specific width */
    height: 200px; /* IMPORTANT: You must give the div a height when using background-image */
    z-index: 1000;
    
    /* Image as background */
    background-image: url('Drawer-2.3.png'); /* <--- IMPORTANT: Update this path! */
    background-size: cover; /* Cover the entire area of the div */
    background-position: center center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-color: #2c3e50;
  
  /* Apply shadow to the div */
    
    /* Initially hidden above the viewport */
    /* THESE ARE THE CRITICAL LINES */
    transform: translateY(-100%); 
    transition: transform 0.6s ease-in-out; 
    
    /* Prevent dragging (though less critical for a div, good for consistency) */
    -webkit-user-drag: none;
    user-select: none;

    /* If your image has transparent parts, you might want a fallback background color */
    background-color: #2c3e50; /* Fallback or base color */
}

.drawer.is-open {
    transform: translateY(0)
}

.drawer-content {
    /* These styles will position content within the .drawer div */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%; /* Ensure content takes full height of the drawer for centering */
    box-sizing: border-box; /* Include padding in height */
    /* You might want to remove position: absolute; if .drawer-content is a direct child */
    /* and you want it to flow normally within the drawer. */
    position: relative; /* Keep relative if you want to position children absolutely within it */
}

.icon-link {
    color: white;
    text-decoration: none;
    text-align: center;
    margin: 0 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.4s;
    /* Ensure icon links are visible over the background image */
    /* text-shadow: 0 0 5px rgba(0,0,0,0.5); /* Optional: add shadow for better contrast */
}

.drawer.is-open .icon-link {
    opacity: 1;
}

.icon-link i {
    font-size: 2em;
    display: block;
    margin-bottom: 8px;
}

.ComingSoon header {
    font-family: 'Asul', serif;
    color: #B2BEAC;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.ComingSoon  header a {
   color: #B2BEAC;
   text-decoration: none;
}

.ComingSoon main {
    font-family: 'Asul', serif;
    font-size: 40px;
    height: 2%;
    margin: 90px;
}

.AboutTheInhabitant header {
    font-family: '', serif;
    font-size: 40px;
    height: 2%;
    background-color: transparent;
    color: #333;
    text-align: left;
    padding-top: 5px;
    padding-left: 2%;
}

.AboutTheInhabitant main {
  /* background: url('Generated Image November 08, 2025 - 11_49PM.png'); */
  font-family: Freehand;
  font-size: 2em;
  font-weight: 500;
  margin-right: 90px;
  margin-left: 90px;
}

#fragment1 {
  display: inline-block;
  background-image: url('Old Paper- Cut Pieces-Fragment1.png');
  background-size: 100%, cover;    /* Scale image to cover the element */
  background-position: left; /* Center the image */
  background-repeat: no-repeat; /* Prevent tiling */
  padding-bottom: 9%;
  padding-top: 11%; 
  padding-left: 2.5%;
  padding-right: 17%;
  text-align: start;
  text-anchor: start;
  color: #31221c;
}

  #fragment2 {
    font-size: clamp(0.7rem, 3.2vw, 2rem);
    aspect-ratio: 980 / 760;
    background-image: url('Old Paper- Cut Pieces-Fragment2.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 9vw, 55px);
    padding-bottom: clamp(10px, 13vw, 76px);
    padding-left: clamp(15px, 9vw, 90px);
    padding-right: clamp(15px, 9vw, 80px);
    box-sizing: border-box;
    margin: 0 10%; 
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
  }

 #fragment3 {
    font-size: clamp(0.7rem, 3.2vw, 2rem);
    aspect-ratio: 973 / 508;
    background-image: url('Old Paper- Cut Pieces-Fragment3.png');
    background-size: 100% 75%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 9vw, 55px);
    padding-bottom: clamp(10px, 13vw, 94px);
    padding-left: clamp(15px, 9vw, 90px);
    padding-right: clamp(15px, 9vw, 80px);
    box-sizing: border-box;
    margin: 0 10%;
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
 }

 #fragment4 {
    font-size: clamp(0.7rem, 3.2vw, 2rem);
    aspect-ratio: 965 / 905;
    background-image: url('Old Paper- Cut Pieces-Fragment4.png');
    background-size: 100% 84%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 15vw, 74px);
    padding-bottom: clamp(10px, 23vw, 129px);
    padding-left: clamp(15px, 9vw, 73px);
    padding-right: clamp(15px, 9vw, 94px);
    box-sizing: border-box;
    margin: 0 10%;
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
 }

 #fragment5 {
    font-size: clamp(0.7rem, 3.2vw, 2.5rem);
    aspect-ratio: 961 / 687;
    background-image: url('Old Paper- Cut Pieces-Fragment5.png');
    background-size: 96% 68%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 15vw, 74px);
    padding-bottom: clamp(10px, 23vw, 113px);
    padding-left: clamp(15px, 9vw, 111px);
    padding-right: clamp(15px, 9vw, 91px);
    box-sizing: border-box;
    margin: 0 10%;
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
 }

#fragment6 {
    transform: rotate(-30deg);
    /*align-content: flex-end;*/
    flex-direction: column;
    font-size: clamp(0.7rem, 2.4vw, 2rem);
    aspect-ratio: 720 / 231;
    background-image: url('Old Paper- Cut Pieces-Fragment6.2.png');
    background-size: 90% 60%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 15vw, 5px);
    padding-bottom: clamp(10px, 23vw, 114px);
    padding-left: clamp(15px, 9vw, 35px);
    padding-right: clamp(4px, 9vw, 75px);
    box-sizing: border-box;
    margin: 0 10%;
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
}

  #fragment7 {
    font-size: clamp(0.7rem, 3.2vw, 2.5rem);
    aspect-ratio: 972 / 610;
    background-image: url('Old Paper- Cut Pieces-Fragment7.png');
    background-size: 100% 88%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(10px, 15vw, 25px);
    padding-bottom: clamp(10px, 23vw, 40px);
    padding-left: clamp(15px, 9vw, 130px);
    padding-right: clamp(15px, 9vw, 53px);
    box-sizing: border-box;
    margin: 0 10%;
    width: auto;
    color: #31221c;
    display: flex; /* Changed from 'inherit' to activate flex properties below */
    flex-wrap: wrap;
    align-items: center; /* Or 'flex-start' if you want it aligned to the top */
    justify-content: center;
 }
  
/* Section-specific vibes */
.landing { background: #000000 url('/1000003518-dark.png') no-repeat center center fixed; background-size: cover; }
.galleries { background: #000000 url('/1000003518-dark.png') no-repeat center center fixed; background-size: cover; }
.codex { background: #fefdf8 url('https://www.transparenttextures.com/patterns/paper-fibers.png'); color: #222; }
.paintings { background: #0d0d0d url('/Painted Wall Background.png'); border: 0px solid #666; padding: 1rem; }
.RememberYourArt { background: #0d0d0d url('/Painted Wall Background.png'); border: 0px solid #666; padding: 1rem; }
.drawings { background: #0d0d0d url('/Painted Wall Background.png'); border: 0px solid #666; padding: 1rem; }
.ComingSoon {background: url('/Painted Wall Background.png') no-repeat center center fixed; background-size: cover; }
.AboutTheInhabitant { background: #fefdf8 url('AboutPage-WoodWalnut-BackgroudImage.png') no-repeat center center fixed; background-size: cover; color: #222; }
.lab { background: radial-gradient(circle, #0d0d0d, #1a1a1a); color: #9fe8a3; }
.cabinet { background: #2e2e2e; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; }
.cabinet-item { background: var(--sage); padding: 1rem; border: 2px solid var(--cream); border-radius: 4px; }
