@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Libre+Baskerville&family=UnifrakturCook:wght@700&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #583C2E;
  color: #f2eee6;
  font-family: 'Libre Baskerville', serif;
}

#header {
  position: relative;
  background: url('images/head.jpg'), url('images/bg1.jpg');
  background-repeat: no-repeat, repeat-x;
  background-position: center;
  height: 577px;
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "❦ ❧ ❦";
  color: rgba(198,162,122,0.4);
  font-size: 18px;
  letter-spacing: 10px;
  flex: 1;
  text-align: center;
  opacity: 0.5;
  transition: 0.3s;
}

.divider::before { margin-right: 12px; }
.divider::after { margin-left: 12px; }

.divider span {
  color: rgba(198,162,122,0.6);
  font-size: 20px;
  letter-spacing: 2px;
  padding: 0 10px;
}

a, b, strong, i, em {
  position: relative;
  color: #e6d8c3;
  text-decoration: none;
  font-weight: inherit;
  font-style: inherit;
}

a {
  padding: 0 2px;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #c6a27a, transparent);
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.3s ease;
  opacity: 0.6;
}

a:hover {
  color: #ffffff;
}

a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

a::before {
  content: "✧";
  font-size: 10px;
  margin-right: 6px;
  color: rgba(198,162,122,0.6);
  transition: 0.3s;
}

a:hover::before {
  content: "✦";
  color: #c6a27a;
}

b, strong {
  color: #f0e6d6;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 1px rgba(255,255,255,0.1), 0 0 6px rgba(198,162,122,0.15);
}

b::before, strong::before { content: "❦"; margin-right: 6px; color: rgba(198,162,122,0.5); font-size: 12px; }
b::after, strong::after { content: "❦"; margin-left: 6px; color: rgba(198,162,122,0.5); font-size: 12px; }

i, em {
  color: #d8cbb5;
  font-style: italic;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

i::before, em::before { content: "❧"; margin-right: 6px; color: rgba(198,162,122,0.4); font-size: 12px; }
i::after, em::after { content: "❧"; margin-left: 6px; color: rgba(198,162,122,0.4); font-size: 12px; }

#layout-container {
  display: flex;
  margin: -30px auto 0 auto;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
  padding: 60px;
  position: relative;
  z-index: 5;
  width: 70%;
}

#navigation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 370px;
  padding: 50px;
  background: linear-gradient(180deg, #120f0d, #0a0807);
  border: 1px solid rgba(198,162,122,0.15);
  position: relative;
  opacity: 0.5;
  border-radius: 34px;
}

#navigation::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #6b4c2e, transparent);
}

#navigation a::after { content: none; }

#navigation a {
  position: relative;
  display: block;
  padding: 14px 18px 14px 38px;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f2eee6;
  background: linear-gradient(180deg, #1a1512, #0f0c0a);
  border: 1px solid rgba(198,162,122,0.18);
  transition: transform 0.35s ease, background 0.35s ease, border 0.35s ease, color 0.3s ease;
  border-radius: 10px;
}

#navigation a::before {
  content: "✢";
  position: absolute;
  left: 12px;
  color: #6b4c2e;
  font-size: 11px;
  transition: 0.35s ease;
}

#navigation a:hover {
  color: #fff;
  background: linear-gradient(180deg, #221a16, #120e0c);
  border: 1px solid rgba(198,162,122,0.35);
  transform: translateX(-6px) translateY(-2px) rotate(-1deg);
}

#navigation a:hover::before {
  content: "✦";
  color: #c6a27a;
  transform: rotate(-10deg);
}

#navigation a.active {
  background: linear-gradient(180deg, #2a201a, #16110e);
  border: 1px solid rgba(224,195,161,0.5);
  color: #e8d3b0;
}

#navigation a.active::before {
  content: "✧";
  color: #e8d3b0;
}

.contentx {
  flex: 1;
  padding: 50px 45px;
  font-size: 21px;
  line-height: 1.9;
  text-align: justify;
  color: #e8e0d4;
  margin-top: -100px;
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 52px;
  text-align: center;
  color: #f5e9d6;
  margin: 60px 0 40px 0;
  position: relative;
  letter-spacing: 0.12em;
  display: inline-block;
  text-shadow: 0 0 6px rgba(198,162,122,0.25), 0 0 18px rgba(198,162,122,0.15);
  transition: transform 0.4s ease;
}

h1:hover { transform: translateY(-8px) scale(1.02); }

h1 span { display: inline-block; transition: transform 0.3s ease; }

h1:hover span:nth-child(odd) { animation: waveUp 0.6s ease forwards; }
h1:hover span:nth-child(even) { animation: waveDown 0.6s ease forwards; }

@keyframes waveUp { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
@keyframes waveDown { 0% { transform: translateY(0); } 50% { transform: translateY(4px); } 100% { transform: translateY(0); } }

h1:hover span { animation-duration: 0.6s; }
h1:hover span:nth-child(1) { animation-delay: 0s; }
h1:hover span:nth-child(2) { animation-delay: 0.05s; }
h1:hover span:nth-child(3) { animation-delay: 0.1s; }
h1:hover span:nth-child(4) { animation-delay: 0.15s; }

blockquote {
  margin: 70px auto;
  padding: 50px 70px;
  max-width: 650px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid #c6a27a;
  font-size: 22px;
  line-height: 1.7;
  color: #ddd3c3;
  position: relative;
}

blockquote::before {
  content: "“";
  font-size: 70px;
  position: absolute;
  top: -25px;
  left: 15px;
  color: rgba(198,162,122,0.2);
}

blockquote::after {
  content: "❧";
  position: absolute;
  bottom: -20px;
  right: 20px;
  color: rgba(198,162,122,0.25);
  font-size: 28px;
}

textarea, input, select {
  width: 40%;
  padding: 1.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(198,162,122,0.3);
  border-radius: 4px;
  color: #f2eee6;
  font-family: 'Libre Baskerville', serif;
}

#footer {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: #c6a27a;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.2em;
  position: relative;
}

#footer::before { content: "✦ ✧ ✦"; display: block; margin-bottom: 15px; opacity: 0.5; }
#footer::after { content: "✦ ✧ ✦"; display: block; margin-top: 15px; opacity: 0.5; }

#footer a { color: #e8d3b0; }
#footer a:hover { color: #ffffff; }

@media (max-width: 1024px) {
  #layout-container { width: 90%; flex-direction: column; align-items: center; gap: 40px; padding: 40px 20px; margin: 0 auto; }
  #navigation { min-width: 70%; }
  .contentx { width: 90%; padding: 35px 25px; font-size: 20px; }
  textarea, input, select { width: 70%; }
  h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  #layout-container { width: 95%; gap: 30px; padding: 30px 15px; }
  #navigation { min-width: 90%; }
  .contentx { width: 95%; font-size: 18px; }
  textarea, input, select { width: 85%; }
  h1 { font-size: 32px; }
  blockquote { padding: 30px; font-size: 18px; }
}

input, textarea, option, select { 
background-color: #583C2E; 
}