html, body {
  height: 100%;
  margin: 0;}


body {
background-image: url('premade/bg.jpg');
        background-repeat:repeat;
}

#header {
        background-image: url('premade/head.jpg');
        background-repeat: no-repeat;
        background-position: center; 
        height:646px;
        width:100%;
        margin-top:-4px;
}


.content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(
    135deg,
    #8a753e,
    #f0d98c,
    #c6a95c,
    #f0d98c,
    #8a753e
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

input,
textarea,
select {
  width: 50%;
  max-width: 600px;
  padding: 14px 18px;
  margin: 14px 0;
  font-family: 'Lora', serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #f4e9b8;
  background: linear-gradient(
    145deg,
    rgba(40, 35, 20, 0.95),
    rgba(55, 45, 25, 0.95)
  );
  border: 1px solid rgba(214, 180, 90, 0.4);
  border-radius: 12px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 12px rgba(255, 230, 150, 0.08);
  backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #f0d98c;
  box-shadow:
    0 0 16px rgba(240, 217, 140, 0.6),
    inset 0 0 14px rgba(240, 217, 140, 0.15);
  background: linear-gradient(
    145deg,
    rgba(50, 45, 25, 0.95),
    rgba(65, 55, 30, 0.95)
  );
}

textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 18px;
}

select {
  appearance: none;
  background: linear-gradient(to right, rgba(90, 75, 40, 0.9), rgba(130, 110, 60, 0.9));
  cursor: pointer;
  border-radius: 6px; 
}

select option {
  background: #3b3320;
  color: #f4e9b8;
  font-family: 'Lora', serif;
  padding: 10px;
}

#navigation {
  position: sticky; 
  top: 0;
  width: 100%;
  padding: 18px 0;
  margin: 0 auto 40px auto;
  background: rgba(255, 245, 210, 0.08); 
  border-radius: 18px;
  border: 1px solid rgba(240, 217, 140, 0.35);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(240, 217, 140, 0.15),
    inset 0 0 20px rgba(255, 250, 220, 0.05);
  backdrop-filter: blur(12px) saturate(160%);
  text-align: center;
  z-index: 999;
  overflow: hidden;
}

#navigation::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(
    circle at center,
    rgba(240, 217, 140, 0.15),
    transparent 70%
  );
  animation: ethereal-glow 12s linear infinite;
  pointer-events: none;
}

@keyframes ethereal-glow {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

#navigation a {
  display: inline-block;
  font-family: 'Cinzel Decorative', serif;
  font-size: 17px;
  text-transform: uppercase;
  color: #f8eebd;
  margin: 0 16px;
  padding: 10px 22px;
  border-radius: 12px;
  letter-spacing: 2px;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

#navigation a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(120deg, #f0d98c, transparent, #f0d98c);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.85);
}

#navigation a:hover::after {
  opacity: 0.8;
  transform: scale(1);
}

#navigation a:hover {
  color: #fff8dc;
  text-shadow: 0 0 12px rgba(255, 245, 200, 0.6);
}

h1 {
  font-family: 'Uncial Antiqua', 'Cinzel Decorative', serif;
  font-size: 48px;
  text-align: center;
  letter-spacing: 2px;
  margin: 60px auto 40px;
  padding: 20px 50px;
  color: #f8eebd;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: rgba(255, 245, 210, 0.08); 
  border-radius: 16px;
  border: 2px solid rgba(240, 217, 140, 0.35);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(240, 217, 140, 0.25),
    inset 0 0 20px rgba(255, 250, 220, 0.08);
  backdrop-filter: blur(12px) saturate(160%);
  overflow: hidden;
  z-index: 1;
}

h1::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(
    circle at center,
    rgba(240, 217, 140, 0.12),
    transparent 70%
  );
  animation: ethereal-h1-glow 15s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes ethereal-h1-glow {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  background: linear-gradient(to right, transparent, #f0d98c, transparent);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 245, 200, 0.4);
}

blockquote {
  background: linear-gradient(135deg, rgba(55, 45, 25, 0.95), rgba(70, 55, 35, 0.9));
  border-radius: 28px;
  padding: 25px 35px;
  font-style: italic;
  font-family: 'EB Garamond', serif;
  font-size: 23px;
  color: #f4e9b8;
  box-shadow:
    inset 0 0 12px rgba(240, 217, 140, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.6);
  border-left: 5px solid #c0a450;
  max-width: 700px;
  margin: 40px auto;
  line-height: 1.9;
  backdrop-filter: blur(3px);
  position: relative;
}

blockquote::before,
blockquote::after {
  content: '❝';
  font-size: 60px;
  color: #aa9555;
  opacity: 0.15;
  position: absolute;
  font-family: serif;
}

blockquote::before {
  top: 8px;
  left: 16px;
  transform: rotate(-8deg);
}

blockquote::after {
  bottom: 8px;
  right: 16px;
  transform: rotate(170deg);
}


#content {
  position: relative;
  width: 1000px;
  max-width: 67%;
  margin: -100px auto; 
  padding: 60px 50px;
  border-radius: 40px 18px 28px 18px;
  backdrop-filter: blur(8px);
  font-size: 18px;
  font-family: 'Lora', serif;
  color: #f4e9b8;
  line-height: 2.2;
  z-index: 1;
  overflow: hidden;border: 3px solid #523A20;
  transition: all 0.4s ease-in-out;
}

.contentx {
  opacity: 0.9;
  padding: 40px;
  border-radius: 28px 12px 40px 18px;
  font-size: 18px;
  font-family: 'Lora', serif;
  color: #f4e9b8;
  text-align: justify;
  backdrop-filter: blur(6px);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  line-height: 2.2;
}

a {
  color: #f0d98c;
  font-size: 18px;
  font-family: 'Lora', serif;
  letter-spacing: 1.2px;
  text-decoration: none;
  border-radius: 4px;
  position: relative;
  padding: 6px 4px;
  transition: all 0.4s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #c0a450; 
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #e6d4a0;
}

b, i {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #e8dba4, #f0d98c, #c6a95c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  cursor: default;
  transition: color 0.6s ease;
}

b::after, i::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, #8a753e, #f0d98c, #8a753e);
  opacity: 0.5;
  transition: width 0.5s ease;
}

b:hover::after,
i:hover::after {
  width: 100%;
}

b:hover, i:hover {
  text-shadow: 0 0 6px rgba(255, 240, 180, 0.4);
  background-size: 200% 200%;
  background-position: 100% 50%;
  transition: background-position 1s ease;
}


@media (max-width: 1024px) {
  #content {
    width: 95%;
    padding: 0 10px;
  }

  #header {
    width: 90%;
    height: auto;
    border-radius: 30px;
  }

  h1 {
    font-size: 34px;
    padding: 12px 20px;
  }

  blockquote {
    margin: 30px 10px;
    padding: 20px 25px;
  }
}

@media (max-width: 768px) {
  .contentx {
    padding: 25px;
    border-radius: 25px;
    font-size: 16px;
  }

  #navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    border-radius: 30px;
  }

  #navigation a {
    margin: 6px 8px;
    padding: 8px 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  blockquote {
    padding: 18px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contentx {
    padding: 20px 15px;
    border-radius: 20px;
    font-size: 15px;
  }

  #navigation {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
  }

  #navigation a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 4px 0;
    padding: 8px 0;
    font-size: 13px;
    border-radius: 20px;
  }

  h1 {
    font-size: 24px;
    padding: 8px 10px;
  }

  blockquote {
    margin: 20px 0;
    padding: 15px;
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
    #main-container {
        width: 85%;
        padding: 30px;
    }

    #navigation {
        width: 90%;
    }

    header {
        height: 220px;
    }
}

@media (max-width: 768px) {
    #main-container {
        width: 95%;
        padding: 20px;
    }

    #navigation {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    #navigation a {
        padding: 10px;
        font-size: 13px;
    }

    header {
        height: 180px;
    }

    .contentx {
        padding: 20px;
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    header {
        height: 150px;
    }

    #navigation a {
        font-size: 12px;
    }

    .contentx h1 {
        font-size: 20px;
    }
}