.moon-header-container {
    text-align: center;
    padding: 200px 0;
    position: relative; 
}
        
        .moon-title-text {
           font-family:"scotland";
			font-weight:400;
			font-size:380px;
            color: var(--color-main);
            text-transform: lowercase;
            position: relative;
            z-index: 1;
            margin: 0;

        }
        
        .moon-haunted-and {
            display: block;
        }
        
        .moon-holy {
            display: block;
			margin-top:-100px;
        }
        
        .moon-svg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 420px;
            height: 420px;
            z-index: 3;
        }

        
         .moon-svg svg {
            width: 100%;
            height: 100%;
            display: block;
            fill: var(--color-accent3);
        }

.moon-subtitle-left {
    position: absolute;
    top: 47%;
    left: 41%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: 260px;
    text-align: right;
}
 .moon-subtitle-style-1 {
            background: var(--color-accent1);
            color: var(--color-main);
            padding: 4px 12px;
            font-size: 12px;
            margin-bottom: 6px;
            display: inline-block;
            width: auto;
	 font-family: var(--main-font);
	             text-transform: uppercase;
	 font-weight:400;
}
 .moon-subtitle-style-1 b {
	 font-weight:800;
	 font-style:italic;
 }


.moon-subtitle-right {
    position: absolute;
    top: 51%;
    left: 51%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: 260px;
    text-align: left;
}

.moon-subtitle-style-2 {
 background: var(--color-accent1);
            color: var(--color-main);
            padding: 4px 12px;
            font-size: 12px;
            margin-bottom: 6px;
            display: inline-block;
            width: auto;
	 font-family: var(--main-font);
	             text-transform: uppercase;
	 font-weight:400;
}

.moon-subtitle-style-2 b {
    font-weight: 800;
    font-style: italic;
}


body.scroll-up .title-upper,
body.scroll-up .small-title {
	animation-name: slideInLeft;
	animation-duration: var(--animation-duration);
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	opacity: 1;
}

body.scroll-up .title-lower .lower-main,
body.scroll-up .title-lower:after {
	animation-name: slideInRight;
	animation-duration: var(--animation-duration);
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

body.scroll-down .title-upper,
body.scroll-down .small-title {
	animation-name: slideOutLeft;
	animation-duration: var(--animation-duration);
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	opacity: 1;
}

body.scroll-down .title-lower .lower-main,
body.scroll-down .title-lower:after {
	animation-name: slideOutRight;
	animation-duration: var(--animation-duration);
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.title-lower {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: -30px;
	position: relative;
}

.title-lower a {
	text-decoration: none;
	color: var(--color-main);
}

.title-lower:after {
	content: "";
	position: absolute;
	top: calc(50% - 0.25em);
	left: calc(100% + 20px);
	width: calc(100% + 20vw);
	height: 1px;
	font-size: 11px;
	background: var(--color-accent1);
}

.small-title {
	font-family: var(--main-font);
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 600;
	line-height: 1em;
	position: relative;
	padding-top: 10px;
}

.small-title:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: calc(100% + 40vw);
	height: 1px;
	background: var(--color-accent1);
}

.small-title .accent {
	font-size: 11px;
	color: var(--color-accent1);
}

@keyframes slideOutLeft {
	0% {
		transform: translateX(0);
		pointer-events: all;
	}
	100% {
		transform: translateX(-100vw);
		pointer-events: none;
	}
}

@keyframes slideInLeft {
	0% {
		transform: translateX(-100vw);
		pointer-events: none;
	}
	100% {
		transform: translateX(0);
		pointer-events: all;
	}
}

@keyframes slideOutRight {
	0% {
		transform: translateX(0);
		pointer-events: all;
	}
	100% {
		transform: translateX(100vw);
		pointer-events: none;
	}
}

@keyframes slideInRight {
	0% {
		transform: translateX(100vw);
		pointer-events: none;
	}
	100% {
		transform: translateX(0);
		pointer-events: all;
	}
}

