html {
  height: 100%;
  
}
h1 {
  text-align: center;
}
body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  /* background */
  background: linear-gradient(to top, rgb(130, 47, 18), rgb(81,56,44)) no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-clip: padding-box; /* makes sure background doesn't hide border */
  /* border image */
  border: 40px solid transparent;
  border-image: url("border.png") 50 stretch;
  box-sizing: border-box;
}
nav {
  margin-top: 40px;
  margin-left: 25px;
  width: 90%;
  height: max-content;
  box-sizing: border-box;
  background-color: rgb(209,202,198);
  font-size: 2.5vw;
  text-transform: capitalize;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  border: 5px solid grey;
}
.center-suprise,
nav img {
  height: 80px;    /* adjust size */
  margin: 0 10px;  /* spacing between icons */
  vertical-align: middle;
}
a:link {
color:black
}
a:visited{
color:black
}
.header-box {
  width: 80%;              /* Adjust to fit your layout */
  min-height: 40px;            /* Match the visual height */
  padding: 10px;
  margin: 20px auto 0;     /* Push it down and center it */
  border: 2px solid white; /* Thin white border */
  background-color: rgba(255, 255, 255, 0.05); /* Slight fill for visibility (optional) */
  box-sizing: border-box;
}
h3 {
  margin: 0 0 10px;
  font-size: 24px;
  margin-left: 25px;
  color: #ffc278; /* Soft orange or cream for contrast */
}
.header {
  position: relative; /* this makes it the "anchor" for absolute children */
}
.main-area {
  width: 45%;                 /* Adjust size as needed */
  height: fit-content;                /* Adjust height as needed */
  margin: 40px;                 /* Space around the box */
  border: 8px solid #c2551a;    /* Strong orange border */
  outline: 3px solid #632f0c;
  box-shadow: inset 0 0 10px #ff7b3e; /* Inner orange glow */
  box-sizing: border-box;
}

.main-frame {
  width: 500px;
  padding: 20px;
  margin: 40px;
  background-color: #4d2f1d;       /* Dark brown interior */
  border: 8px solid #c2551a;       /* Orange border */
  box-shadow: inset 0 0 10px #ff7b3e;
  box-sizing: border-box;
  color: white;                    /* Make text readable */
  font-family: sans-serif;
}

.post-image {
  width: 90%;
  padding-left: 50px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.2s;
}
.post-image:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}


.post-title {
  margin: 0 0 10px;
  font-size: 24px;
  margin-left: 25px;
  color: #ffc278; /* Soft orange or cream for contrast */
}

.post-text {
  font-size: 16px;
  line-height: 1.5;
  margin-left: 35px;
}
.character-container {
  position: relative;
  bottom: 0;
  right: 15%;  /* smaller offset so it doesn’t overflow */
  max-width: 30%; /* keeps it responsive */
  margin-right: auto;
  float: right;
}

.char-base {
  width: 100%;
  display: block;
}

.char-speech {
  position: absolute;
  top: 50px;           /* adjust depending on your bubble's size */
  left: 200px;         /* move to the side if needed */
  width: 300px;         /* or auto */
  height: auto;
  opacity: 0;
  pointer-events: none; /* prevents it from blocking the hover */
  transition: opacity 0.3s ease;
  z-index: 1001;        /* makes sure it's above the character */
}

.character-container:hover .char-speech {
  opacity: 1;
}
.border-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;

  box-sizing: border-box;
  border: 40px solid transparent;
  border-image: url("border.png") 50 stretch;

  pointer-events: none;
  z-index: 9999; /* stays above nav and elements */
  background: transparent; /* make sure nothing fills inside */
}
.image-viewer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.image-viewer img {
  max-width: 90%;
  max-height: 80vh;
  border: 5px solid #000000;
  border-radius: 10px;
}

.contact-banner {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 40px; /* adds breathing room below the image */
}

.contact-banner img {
  height: 50px;  /* adjust to taste */
  transition: transform 0.2s ease;
}

.contact-banner img:hover {
  transform: scale(1.1);
}
.category-container {
  text-align: center;
  padding: 20px;
  color: #ffc278;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.category-grid img {
  width: 200px;
  height: auto;
  border: 4px solid black;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.category-grid img:hover {
  transform: scale(1.05);
}
#comments-section {
  max-width: 600px;
  margin: 40px auto; /* centers the section */
  padding: 20px;
  background: #ad4306;
  border: 2px solid #532c06;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#comments-section h3 {
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.4rem;
  color: #333;
}

#comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* space between comments */
  margin-bottom: 20px;
}

.comment {
  padding: 12px 15px;
  background: #a7a7a7;
  border-radius: 8px;
  border: 1px solid #4d4d4d;
}

.comment strong {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}

#comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#comment-form input,
#comment-form textarea {
  padding: 10px;
  border: 1px solid #6d6d6d;
  border-radius: 6px;
  font-size: 1rem;
  width: 90%;
}

#comment-form button {
  padding: 10px;
  background: #331d00;
  color: rgb(100, 100, 100);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

#comment-form button:hover {
  background: #bd8c05;
}
.pagination {
  text-align: center;
  margin: 20px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background: #4d2f1d;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.pagination a.active {
  background: #ff8800;
  font-weight: bold;
}
#admin-link {
  position: absolute;
  bottom: 50px;   /* adjust so it overlaps the goblin */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 120px;
  opacity: 0;   /* invisible */
  cursor: pointer;
  z-index: 10;  /* sits above images but below borders */
}
