html, body {
    height: 100%;
    margin: 0;
}

body {
    background-image: url("https://thorgal.org/wp-content/themes/thorgal/images/bg.jpg");
    background-repeat: repeat;
    background-size: cover;
    color: #7a7a7a;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    text-align: justify;
    overflow-x: hidden;
    background-blend-mode: multiply;
}

::selection {
    color: #fff;
    background-color: #29425a;
}

a {
    color: #b28700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #29425a;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #b28700;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

b, strong {
    color: #b28700;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(178, 135, 0, 0.4);
}

i, em {
    color: #2D8CA0;
    font-style: italic;
    opacity: 0.9;
}

u {
    font-weight: 700;
    color: #29425a;
    text-decoration: underline wavy #29425a;
    padding: 3px 10px;
    background-color: rgba(41, 66, 90, 0.08);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

u:hover {
    background-color: rgba(41, 66, 90, 0.2);
    transform: scale(1.02);
}

/* WordPress Containers */
#content, #primary, .site-content {
    width: 65%;
    float: left;
    margin-top: 80px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 8px rgba(191, 135, 0, 0.2);
    transition: all 0.3s ease;
}

#content:hover, #primary:hover, .site-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Sidebar / Widgets */
#secondary, .widget-area, .sidebar-widget {
    width: 30%;
    float: right;
    margin-top: 120px;
    padding: 20px 25px;
    background: linear-gradient(to bottom right, #d4c9a0, #f0e8d0);
    border-radius: 32px 18px 40px 22px;
    border: 2px solid #a97c1b;
    box-shadow: 0 0 12px rgba(170, 130, 40, 0.6), inset 0 0 14px rgba(210, 190, 110, 0.2);
    font-family: 'IM Fell English SC', serif;
    color: #3b2f1f;
    text-shadow: 1px 1px 0 #bcae6d;
}

.widget:hover, .sidebar-widget:hover {
    background: linear-gradient(to bottom right, #c8b479, #e6d9a4);
    box-shadow: 0 0 18px rgba(170, 130, 40, 0.8), inset 0 0 20px rgba(210, 190, 110, 0.3);
}

/* Main layout */
#site-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

#content {
    flex: 3; /* Main content takes 3/4 */
    background-color: rgba(41,66,90,0.05);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

#sidebar {
    flex: 1; /* Sidebar takes 1/4 */
    background: linear-gradient(to bottom right, #d4c9a0, #f0e8d0);
    border-radius: 12px;
    padding: 20px;
}

/* Responsive */
@media only screen and (max-width:1024px) {
    #site-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    #content, #sidebar {
        width: 100%;
    }
}

/* Sidebar list items */
.widget ul li, .sidebar-widget ul li {
    background: linear-gradient(135deg, #f7f0c4 0%, #d9c77f 100%);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.widget ul li:hover, .sidebar-widget ul li:hover {
    background: linear-gradient(135deg, #e0c77a, #c9b35f);
    color: #fffde0;
    box-shadow: 0 0 15px rgba(191, 166, 87, 0.8);
    transform: scale(1.02);
}

/* Headings - adventure style */
h1, h2, h3 {
    font-family: 'IM Fell English SC', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

h1 {
    font-size: 24px;
    color: #326F83;
    padding: 18px 24px;
    border-radius: 24px;
    background: linear-gradient(to right, #a3c9f1, #f9e79f);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 14px rgba(191, 166, 87, 0.5);
}

h2 {
    font-size: 20px;
    padding: 12px 20px;
    border-radius: 18px;
    background: linear-gradient(to right, #a48f45, #bfa657);
    color: #29425a;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(191, 166, 87, 0.4);
}

h3 {
    font-size: 18px;
    color: #3D859D;
    margin-bottom: 12px;
    border-bottom: 2px dashed rgba(191, 166, 87, 0.7);
}

/* Post content */
.entry-content, .post-content {
    font-size: 16px;
    line-height: 26px;
    color: #2f3a45;
}

.entry-content img, .post-content img, .widget img {
    border-radius: 14px;
    filter: sepia(40%) saturate(120%) hue-rotate(20deg);
    box-shadow: 0 4px 12px rgba(178, 135, 0, 0.3);
    transition: all 0.3s ease;
}

.entry-content img:hover, .post-content img:hover, .widget img:hover {
    filter: none;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(106, 140, 168, 0.5);
}

/* Blockquotes */
.entry-content blockquote, .post-content blockquote {
    background: rgba(47, 51, 58, 0.85);
    border-left: 5px solid #bfa657;
    padding: 18px 22px;
    font-style: italic;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(191, 166, 87, 0.25);
}

/* Footer */
.site-footer, #colophon {
    background: linear-gradient(to right, #a8d0ff, #fff8b5);
    padding: 30px 0;
    border-radius: 0 0 24px 24px;
    text-align: center;
    font-family: 'Imbue', serif;
    color: #4a5a7a;
    opacity: 0.8;
}

 /* Mystical runes in sidebar */
#secondary::before, .widget-area::before {
    content: "ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛋ ᛏ ᛒ ᛖ ᛗ";
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    font-family: 'IM Fell English SC', serif;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.15);
    text-align: center;
    letter-spacing: 12px;
    user-select: none;
    pointer-events: none;
}

#secondary::after, .widget-area::after {
    content: "ᛟ"; 
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-size: 28px;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Runes in sidebar list items */
.widget ul li::before, .sidebar-widget ul li::before {
    content: "ᚦ";
    font-family: 'IM Fell English SC', serif;
    margin-right: 8px;
    color: rgba(191,166,87,0.3);
    transition: all 0.3s ease;
}

.widget ul li:hover::before, .sidebar-widget ul li:hover::before {
    color: #fffde0;
    transform: rotate(-10deg) scale(1.2);
}

/* Curved corners & floating glow for sidebar */
#secondary, .widget-area {
    border-radius: 36px 18px 48px 24px;
    box-shadow: 0 0 16px rgba(170, 130, 40, 0.6),
                inset 0 0 20px rgba(210, 190, 110, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

#secondary:hover, .widget-area:hover {
    box-shadow: 0 0 22px rgba(191, 166, 87, 0.9),
                inset 0 0 24px rgba(210, 190, 110, 0.35);
}

/* Rune decorations for headings */
h1::before, h1::after {
    content: "⛥";
    font-size: 20px;
    margin: 0 8px;
    color: rgba(0,0,0,0.25);
}

h2::before {
    content: "🛡️ ";
    margin-right: 6px;
    color: rgba(191,166,87,0.6);
}

h2::after {
    content: " ⚔️";
    margin-left: 6px;
    color: rgba(191,166,87,0.6);
}

h3::before {
    content: "⚓ "; 
    margin-right: 5px;
    color: rgba(191,166,87,0.6);
}

/* Floating animation for sidebar runes */
@keyframes floatRunes {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

#secondary::before, #secondary::after,
.widget-area::before, .widget-area::after {
    animation: floatRunes 6s ease-in-out infinite;
}

/* Subtle scroll fade-in for posts */
.entry-content, .post-content, .widget {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.entry-content.visible, .post-content.visible, .widget.visible {
    opacity: 1;
    transform: translateY(0px);
}


/* -------------------------------
   Header Image & Overlay Styles
---------------------------------*/
.header-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-overlay {
    background-color: rgba(41, 66, 90, 0.45); /* semi-transparent overlay */
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    color: #f9e79f;
    box-shadow: 0 4px 15px rgba(178, 135, 0, 0.5);
    backdrop-filter: blur(3px);
}

.site-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 36px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.site-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin: 8px 0 0;
    letter-spacing: 1px;
    color: #f0e6b9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive adjustments for mobile */
@media only screen and (max-width:768px) {
    .header-image {
        height: 220px;
    }

    .header-overlay {
        padding: 15px 20px;
    }

    .site-title {
        font-size: 28px;
    }

    .site-description {
        font-size: 14px;
    }
}


/* -------------------------------
   Fancy Welcome Adventure Banner
---------------------------------*/
.welcome-header {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 6px solid #bfa34a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    animation: fadeIn 1.5s ease-in-out;
}

.welcome-overlay {
    text-align: center;
    padding: 30px 50px;
    background: rgba(0,0,0,0.45);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(191, 135, 0, 0.7);
    backdrop-filter: blur(3px);
    color: #f9e79f;
    animation: slideUp 1s ease-out forwards;
}

.welcome-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.welcome-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin: 12px 0 20px;
    letter-spacing: 1px;
    color: #f0e6b9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.welcome-button {
    font-family: 'Ceviche One', cursive;
    font-size: 16px;
    color: #1b2431;
    background: linear-gradient(135deg, #b28700, #f9e79f);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(178, 135, 0, 0.5);
    transition: all 0.3s ease;
}

.welcome-button:hover {
    background: linear-gradient(135deg, #f9e79f, #b28700);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(178, 135, 0, 0.7);
}

/* Animations */
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes slideUp {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* Responsive adjustments */
@media only screen and (max-width:768px) {
    .welcome-header {
        height: 320px;
    }
    .welcome-title {
        font-size: 32px;
    }
    .welcome-subtitle {
        font-size: 16px;
    }
    .welcome-overlay {
        padding: 20px 25px;
    }
}