html, body {
        height: 100%;
        margin:0;
}

body {
  background-color: #F3F3EB;
}


#navigation {
    position: relative;
    width: 68%;
    margin: 10px auto 0 auto; 
    padding: 20px 20px;
    background-color: rgba(44, 47, 52, 0.9); 
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    border-top: 6px solid #bfa76f;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 10;
}

#navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    color: #f5e6c8;
    background-color: #3f3844;
    border-radius: 30px;
    padding: 12px 28px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
    position: relative;
}

#navigation a::before {
    content: "★";
    font-size: 18px;
    margin-right: 6px;
    color: #d6c690;
    transition: transform 0.3s ease;
}

#navigation a:hover {
    background-color: #5a4e5f;
    color: #fff4dd;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7);
}

#navigation a:active {
    transform: scale(0.97);
    background-color: #2e2a33;
    color: #e7dcc8;
}

#navigation a i {
    font-size: 20px;
    color: #d6c690;
    transition: transform 0.3s ease, color 0.3s ease;
}

#navigation a:hover i {
    transform: scale(1.2);
    color: #ffdf85;
}

#header {
        background-image: url('images/hp.jpg');
        background-repeat: no-repeat, repeat;
        background-position: top; 
        height:648px;
        width:100%;
        margin-top:30px;
}




a:link, a:visited {
    color: #c9bfa4;
    font-size: 22px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    position: relative;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

a:hover {
    color: #AB3C2E;
    border-bottom: 2px solid #a28b6c;
    text-shadow: 0 0 10px rgba(255, 246, 220, 0.3);
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.05), transparent 70%);
    transform: translateY(-2px);
}

a:active {
    color: #decfa6;
    transform: scale(0.97);
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 100%;
    background: #bfa76f;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


i, em {
    color: #c7bdcf;
    font-style: italic;
    font-family: 'Georgia', serif;
    background: linear-gradient(to right, #2b2b2f, #393342);
    padding: 4px 7px;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    font-size: 1.05em;
}

i:hover, em:hover {
    background: linear-gradient(to right, #443d4d, #534b5d);
    color: #f2e7d5;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

b, strong {
    color: #efe6d0;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
    background-color: #3d3a45;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow:
        inset 0 0 6px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

b:hover, strong:hover {
    background-color: #544d5c;
    color: #fdf6e3;
}




#content {
        float:center;
        margin-right:0px;
        margin-top:0px;
        margin-bottom:80px;
            width:72%;

}

.contentx {
    background: radial-gradient(circle at top left, #f7f1eb, #e5dacb);
    border: 10px double #6b5a3c;
    padding: 25px 35px 60px 35px;
    line-height: 1.8;
    font-size: 17px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    text-align: justify;
    color: #1c140a;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 40px 70px 40px 70px;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.3),
        inset 0 0 12px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(191, 167, 111, 0.3);
    position: relative;
    z-index: 5;
}

.contentx::before {
    content: "✦";
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    color: #bfa76f;
    position: absolute;
    top: -25px;
    left: 30px;
}

.contentx::after {
    content: "✦";
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    color: #bfa76f;
    position: absolute;
    bottom: -25px;
    right: 30px;
}

blockquote {
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'), linear-gradient(to bottom right, #fbf8f1, #e9e2d3);
    padding: 25px 40px;
    font-style: italic;
    font-family: 'Georgia', serif;
    border-left: 6px solid #bfa76f;
    border-right: 6px solid #bfa76f;
    border-radius: 40px;
    box-shadow: 
        0 0 15px rgba(0,0,0,0.2),
        inset 0 0 20px rgba(255,255,255,0.1);
    color: #3b2f1e;
    text-align: justify;
    position: relative;
    margin: 40px auto;
    max-width: 800px;
}

blockquote::before,
blockquote::after {
    content: '“';
    font-family: 'Cinzel Decorative', serif;
    font-size: 50px;
    color: #d4b886;
    position: absolute;
    opacity: 0.6;
}

blockquote::before {
    top: -10px;
    left: 20px;
}

blockquote::after {
    content: '”';
    bottom: -10px;
    right: 20px;
}


h1 {
    color: #b03a48;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 44px;
    text-shadow:
        0 0 10px rgba(255, 228, 225, 0.5),
        2px 2px #e5cbb3;
    letter-spacing: 2px;
    text-align: center;
    padding: 20px;
    position: relative;
    margin: 40px 0 20px;
}

h1::before,
h1::after {
    font-family: 'Cinzel Decorative';
    font-size: 28px;
    color: #d6b57c;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

h1::before {
    content: '⚯';
    left: -40px;
}

h1::after {
    content: '✧';
    right: -40px;
}

.contentx input,
.contentx textarea,
.contentx select {
    background: linear-gradient(to bottom, #fdfaf5, #f2eee7);
    border: 3px solid #c2958a;
    color: #3b2f1e;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow:
        inset 0 0 6px rgba(255,255,255,0.3),
        0 0 10px rgba(191,167,111,0.1);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 500px;
    display: block;
    margin-bottom: 20px;
}

.contentx input:focus,
.contentx textarea:focus,
.contentx select:focus {
    border-color: #ea3665;
    box-shadow:
        0 0 15px rgba(234, 54, 101, 0.5),
        inset 0 0 10px rgba(255,255,255,0.3);
    outline: none;
    background-color: #fff9f4;
}

.wand-glow {
    position: relative;
    transition: all 0.3s ease;
}

.wand-glow::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: sparkle 1.5s infinite ease-in-out;
    font-size: 16px;
    opacity: 0.7;
}

@keyframes sparkle {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-5px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}


a.gryffindor:hover { color: #ae0001; }
a.slytherin:hover  { color: #2a623d; }
a.ravenclaw:hover  { color: #0e1a40; }
a.hufflepuff:hover { color: #ecb939; }

.wand-button {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  padding: 12px 24px;
  color: #fff;
  background: linear-gradient(to right, #5e4b73, #3a2f4f);
  border: none;
  border-radius: 40px;
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.wand-button::after {
  content: '✨';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  animation: sparkle 1.5s infinite ease-in-out;
}

.wand-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(191, 167, 255, 0.5);
  background: linear-gradient(to right, #6f5a8a, #4d3b6a);
}

@keyframes sparkle {
  0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: rotate(20deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
}

