/* --- CUSTOM FONT REGISTRATION --- */
@font-face {
  font-family: 'HallowedGrounds';
  src: url('https://dahliaduvide.neocities.org/fonts/HallowedGrounds.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

h4 b {
  color: #8d0037;
  text-shadow: -2px 2px 4px rgba(141, 0, 55, 0.4);
}

/* --- ADVANCED TEXTURED PICTURE FRAME --- */
#Frames, .Frame {
  list-style: none;
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  text-align: center;
}
#Frames {
  margin: 3% auto;
  width: 100%;
}
.Frame {
  display: inline-block;
  /* Original padding 45px + border width 28px = 73px total padding */
  padding: 73px; 
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  
  /* Textured background fading from signature red to previous deep burgundy */
  background: #140d0c;
  background-image: 
    url("https://dahliaduvide.neocities.org/images/white-paperboard.png"),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px),
    linear-gradient(to bottom, #8d0037, #2d0111);
  background-blend-mode: screen; /* Seamlessly blends the new paper pattern with the backing gradients */
  
  /* Softer, more transparent outer shadows for a realistic lift off the page */
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3), 
    0 20px 40px rgba(0, 0, 0, 0.2);
}

/* RECESSED MAT LAYER SHADOW (Pseudo-element) */
/* This behaves exactly like SketchWrapper, but aligns perfectly just inside the 28px wood borders */
.Frame::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  bottom: 28px;
  pointer-events: none;
  /* Soft, transparent directional inner shadow casting onto the upper-left of the mat */
  box-shadow: inset 12px 12px 22px rgba(0, 0, 0, 0.4);
  z-index: 4; /* Sits above the mat gradient, but underneath the wood side elements */
  border-radius: 2px;
}

/* MITERED WOOD SIDE ELEMENTS */
.FrameSide {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 5; /* Positioned on top of the glass reflection layer (z-index 4) */
}

/* SEMI-TRANSPARENT WOOD TEXTURE OVERLAY */
.FrameSide::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2000px;
  background-image: url("https://dahliaduvide.neocities.org/images/purty-wood.png");
  background-blend-mode: overlay;
  background-repeat: repeat-y;
  background-size: 28px auto;
  opacity: 0.55;
}

/* TOP BORDER (Horizontal Grain, 45-degree Miter) */
.FrameSide.Top {
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: #2e221a;
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 28px 100%);
}
.FrameSide.Top::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* BOTTOM BORDER (Horizontal Grain, 45-degree Miter) */
.FrameSide.Bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: #594536;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
}
.FrameSide.Bottom::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* LEFT BORDER (Vertical Grain, 45-degree Miter) */
.FrameSide.Left {
  top: 0;
  left: 0;
  width: 28px;
  height: 100%;
  background-color: #3c2f25;
  clip-path: polygon(0 0, 100% 28px, 100% calc(100% - 28px), 0 100%);
}
.FrameSide.Left::after {
  transform: translate(-50%, -50%);
}

/* RIGHT BORDER (Vertical Grain, 45-degree Miter) */
.FrameSide.Right {
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background-color: #47372b;
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 calc(100% - 28px));
}
.FrameSide.Right::after {
  transform: translate(-50%, -50%);
}

/* Elegant glass reflection sweep */
.Frame::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -30%;
  width: 500px;
  height: 500px;
  transform: rotate(-35deg);
  background: linear-gradient(
    135deg, 
    rgba(255,255,255,0.18) 0%, 
    rgba(255,255,255,0.08) 40%, 
    rgba(255,255,255,0) 41%
  );
  pointer-events: none;
  z-index: 4;
}

/* RECESSED SKETCH WRAPPER */
.SketchWrapper {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 4px solid #1a1613;
  outline: 1px solid #d8be52; /* Thin gold inlay bordering the sketch */
  z-index: 3;
  overflow: hidden;
}

/* RECESSED LOGIC: Casts a softer, more transparent inner shadow onto the UPPER LEFT CORNER of the sketch */
.SketchWrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 10px 10px 15px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

.Frame img {
  width: 100%;
  display: block;
}

/* NAMEPLATE STYLE WITH ALUM-DARK OVERLAY */
ul.buttons-container > li {
  width: 33.33%;
  max-width: 300px;
  padding: 0px 10px 30px;
  border-bottom: 2px solid #F2F2F2;
}
ul.buttons li {
  display: inline-block;
}
.hs-wrapper {
  width: 25%;
  min-width: 280px;
  padding: 0px 2px;
  border-right: none;
  border-left: none;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.45);
  border-radius: 5px;
  margin: auto;
}
.hs-button {
  display: block;
  text-align: center;
  border-radius: 2px;
  border: solid 3px #795548;
}
.hs-text {
  display: table-cell; 
  width: 100%;
  vertical-align: middle;
  padding: 12px 24px;
  font-weight: 800;
  letter-spacing: 2px;
}
.hs-border {
  display: table;
  padding: 3px;
  border-radius: 2px;
  height: 45px;
  width: 100%;
  font-weight: normal;
  color: #2c221b;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  font-size: 1.5em;
  line-height: 1.1;
  letter-spacing: 1.5px;
  text-align: center;
}

/* Blending brushed-alum-dark texture seamlessly over the gold metallic background layout layers */
.hs-wrapper.gold {
  background-image: 
    url("https://dahliaduvide.neocities.org/images/brushed-alum-dark.png"),
    linear-gradient(to bottom, #d8be52, #a77d33 9%, #5f3f1d 93%, #1c140d);
  background-blend-mode: overlay;
  border-top: 2px solid #d8be52;
  border-bottom: 2px solid #1c140d;
}
.hs-button.gold {
  background: 
    url("https://dahliaduvide.neocities.org/images/brushed-alum-dark.png"),
    linear-gradient(to bottom, #6f5742, #81615d);
  background-blend-mode: overlay;
}
.hs-text.gold {
  font-family: 'HallowedGrounds', serif, sans-serif;
  
  /* ADVANCED ENGRAVED TEXTURE METHODOLOGY */
  background: 
    url("https://dahliaduvide.neocities.org/images/brushed-alum-dark.png"),
    radial-gradient(circle, #edca37 25%, #a77d33 75%, #5f3f1d);
  background-blend-mode: overlay;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  
  /* Directional deep metal engraving shadow */
  text-shadow: rgba(28, 20, 13, 0.6) 1.5px 2px 2px;
}
.hs-border.gold {
  background-color: #a77d33;
  box-shadow: 0px 2px 6px 0px #362c26;
  background: 
    url("https://dahliaduvide.neocities.org/images/brushed-alum-dark.png"),
    linear-gradient(to bottom, #d8be52, #d5b631 5%, #5f3f1d 59%, #362c26);
  background-blend-mode: overlay;
}

/* COUNTUP STYLE */
.countup {
  text-align: center;
  margin: 10px 0;
}
.thenumber {
  text-shadow: -2px 5px 20px rgba(141, 0, 55, 0.4);
  font-size: 8em;
  font-family: 'Dioszeghiensis', serif, sans-serif;
  line-height: .9em;
  display: block;
  margin: 10px 0;
}

/* TEXT UNDER COUNTUP SECTIONS */
.countup h2 {
  font-size: 1.6em; /* Noticeably larger sizing format */
  font-weight: normal;
}

/* DARK PURPLE BOX CONTAINER & GRID SYSTEM */
.info-layout-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.purple-panel {
  background-color: #1a0f1a;
  border: 1px solid #3d233d;
  border-radius: 6px;
  padding: 30px;
  box-sizing: border-box;
}

.main-focus-box {
  flex: 1.8; /* Made wider to dominate the section space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.5rem;
}

.right-stack-container {
  flex: 0.75; /* Made skinnier to fit information secondary lines */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flower-box {
  flex: 0 1 auto;
  font-size: 1.8rem;
}

.donations-box {
  flex: 1;
  overflow-y: auto;
}

/* CHARITY CALLOUT STYLE */
.charity {
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.6;
}
.charity p {
  margin-bottom: 25px;
}
.charity p:last-child {
  margin-bottom: 0;
}
.charity b {
  font-size: 1.3rem;
}

.spacer {
  height: 40px;
}

/* Responsive wrap rules for smaller displays */
@media (max-width: 850px) {
  .info-layout-container {
    flex-direction: column;
  }
}