/* --- Font Setup (Bulletproof Syntax) --- */
@font-face {
  font-family: 'UnifrakturCook';
  src: local('UnifrakturCook'),
       url('UnifrakturCook-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- Base Body Styling --- */
body {
  margin: 0;
  padding: 20px;
  background-color: #111; /* background color */
  color: #eee; /* body text color */
  font-family: "Courier New", Courier, monospace; /* body text font */
  line-height: 1.5;
  position: relative;
}

/* --- Headings --- */
h1, h2 {
  font-family: 'UnifrakturCook', cursive;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 3em;
  text-align: center;
  margin: 20px 0;
  color: #5c0000;
  text-shadow: 2px 2px black;
}

h2 {
  font-size: 2em;
  margin-top: 40px;
  color: #eee;
}

/* --- Paragraphs --- */
p {
  max-width: 700px;
  margin: 10px auto;
  position: relative;
  z-index: 1;
}

/* Centered text */
.centered {
  text-align: center;
}

/* --- Links --- */
a {
  color: #a10000;
  text-decoration: underline;
  text-shadow: 1px 1px 0 #000;
}
a:hover {
  color: #d42a2a;
  text-decoration: none;
}

/* --- Top Right Links Container --- */
.top-right-links {
  position: fixed; /* stays in top right when scrolling */
  top: 20px;
  right: 20px;
  text-align: right;
  z-index: 1000;
}

/* Page buttons style */
.top-right-links .btn {
  display: inline-block;
  background-color: #111; /* dark button to match aesthetic */
  color: #b20000; /* red text */
  font-family: "Old English Text MT", gothic, serif; /* matches your heading font */
  text-decoration: none;
  padding: 6px 12px;
  margin: 0 5px;
  border: 1px solid #b20000;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.top-right-links .btn:hover {
  background-color: #b20000;
  color: #111;
  border-color: #111;
}

/* Social links style */
.top-right-links .social-links a {
  display: block;
  margin-top: 5px;
  color: #b20000;
  text-decoration: none;
  font-family: monospace; /* like your main text */
  font-size: 14px;
}

.top-right-links .social-links a:hover {
  text-decoration: underline;
}

/* --- Candle Gif --- */
.corner-candle {
  position: fixed;   /* overlay, doesn’t affect text layout */
  top: 10px;
  left: 10px;
  width: 60px;       /* or whatever fits best */
  height: auto;
  z-index: 1000;     /* sits above everything */
  pointer-events: none; /* so you can click links underneath */
}

/* --- Collage Section --- */
.collage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  margin: 40px auto;
  /* background and border removed for floating effect */
  overflow: hidden;
  z-index: 1;
}

/* Common styles for all pieces */
.collage .piece {
  position: absolute;
  max-width: 200px;
  filter: grayscale(100%) contrast(150%);
  box-shadow: 5px 5px 0 #eee;
}

/* Individual positioning & rotation */
.piece.one   { top: 50px;  left: 30px;  transform: rotate(-8deg); }
.piece.two   { top: 180px; left: 220px; transform: rotate(5deg); }
.piece.three { top: 320px; left: 100px; transform: rotate(-12deg); }
.piece.four  { top: 250px; left: 400px; background: white; color: black; padding: 10px; max-width: 250px; transform: rotate(7deg); }
.piece.five  { top: 100px; left: 600px; background: white; color: black; padding: 10px; max-width: 200px; transform: rotate(-6deg); }

/* --- Responsive Adjustments (Mobile + Tablet) --- */
@media (max-width: 768px) {
  /* Collage tweaks */
  .collage {
    height: auto;
  }
  .collage .piece {
    max-width: 120px;
    position: relative;
    display: block;
    margin: 10px auto;
    transform: rotate(0deg);
    box-shadow: 3px 3px 0 #eee;
  }

  /* Top links + candle tweaks */
  .top-right-links {
    position: static;
    text-align: center;
    margin-bottom: 20px;
  }
  .top-right-links .btn {
    display: block;
    margin: 5px auto;
  }
  .corner-candle {
    width: 40px;
  }
  body {
    padding: 10px;
  }
}
