@font-face {
    font-family: 'CourierPrimeCustom';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/CourierPrime-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Impact';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Sans MS';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/Comic%20Sans%20MS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#site-container {
    width: 100%;
    max-width: 900px;
    background-color: #212121;
    margin: 0 auto;
    box-shadow: 
        -20px 0 40px rgba(0, 0, 0, 0.8),
         20px 0 40px rgba(0, 0, 0, 0.8);
}

.top-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.marquee-container {
    width: 100%;
    height: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);;
    color: white;
    text-shadow:
    0 0 4px rgba(255, 255, 255, 0.7),
    0 0 8px rgba(255, 255, 255, 0.7);
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.nav a {
    font-family: 'CourierPrimeCustom', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.3rem);
    color: #db2e0b;
    font-weight: bold;
    text-decoration: none;
    padding: clamp(6px, 1.2vw, 12px) clamp(14px, 3vw, 28px);
    background: linear-gradient(to bottom, #eb7f1a, #ffbd08);
    text-shadow: 1px 1px 0px black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    display: inline-block;
}

.nav a:nth-child(odd) {
    transform: rotate(-3deg);
}

.nav a:nth-child(even) {
    transform: rotate(3deg);
}

.nav a:nth-child(odd):hover {
    transform: rotate(3deg);
}

.nav a:nth-child(even):hover {
    transform: rotate(-3deg);
}

.page-content {
    padding: 10px 20px 30px 20px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: white;
    margin-top: 40px;
}

@media (max-width: 820px) {
    #site-container {
        width: 95%;
    }

    .banner,
    .marquee-container {
        width: 100%;
    }
}

.news-post {
    position: relative;
    width: 100%;
    margin: 10px 0 40px 0;
    padding-top: 40px;
}

.pagedoll {
    position: absolute;
    bottom: -50px;
    right: -30px;
    width: clamp(120px, 12vw, 180px);
    aspect-ratio: 1 / 1;
    background-image: url("https://f2.toyhou.se/file/f2-toyhou-se/images/94175838_HCKj3rcyBMYHuYE.gif");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    z-index: 2;
    pointer-events: none;
}

.news-bg {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    transform-origin: center;
    width: 90%;
    min-height: 100%;
    background: linear-gradient(to bottom, #361db3, #2a56db);
    z-index: 1;
    overflow: hidden;
}

.news-bg::before,
.news-bg::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: clamp(30px, 4vw, 60px);
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/side%20pattern.png");
    background-repeat: repeat-y;
    background-size: contain;
    background-position: top;
    z-index: 2;
    pointer-events: none;
}

.news-bg::after {
    right: -15px;
}

.news-bg::before {
    left: -15px;
    transform: scaleX(-1);
}

.news-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ff1a1a;
    text-align: center;
    text-shadow: 0 3px 3px rgba(0,0,0,0.9);
    z-index: 3;
}

.news-title::before,
.news-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(30px, 4vw, 50px);
    aspect-ratio: 1 / 1;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/SVG/star-svgrepo-com(1).svg");
    background-size: contain;
    background-repeat: no-repeat;
    filter:
        brightness(0) invert(1)
        drop-shadow(0 0 6px white);
    animation: spinStar 6s linear infinite;
    transform: translateY(-50%);
}

.news-title::before {
    right: 110%;
}

.news-title::after {
    left: 110%;
}

@keyframes spinStar {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.news-content {
    position: relative;
    z-index: 2;
    width: 85%;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: white;
    text-shadow: 0 2px 2px rgba(0,0,0,0.9);
}

.page-section {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding: 20px 0;
}

.bg-rectangle {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, darkblue, blue);
    transform: rotate(-2deg);
    z-index: 1;
    border-radius: 8px;
}

.mini-banner {
    max-width: 500px;
    width: 75%;
    padding: clamp(8px, 1.5vw, 14px);
    margin: 20px auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/polka-pattern2.png");
    background-size: 40%;
    background-repeat: repeat;
    box-shadow: 8px 8px 0px rgba(255,189,8,1);
    color: #ffbd08;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.mini-banner p {
    color: #ffbd08;
    font-weight: bold;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    margin: 0;
    text-align: center;
}

.mini-banner-link {
    text-decoration: none;
    display: block;
}

.mini-banner-link:visited {
    color: inherit;
}

.updates-layout {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
}

.updates-main {
    width: 90%;
}

.updates-side {
    width: 10%;
    position: relative;
}

.updates-section {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding-top: 80px;
    padding-bottom: 60px;
}

.updates-bg {
    position: absolute;
    inset: 60px 0 0 0;
    width: 95%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    background-color: #c10000;
    border-radius: 50% / 45%;
    box-shadow: 10px 10px 0px 0px rgba(255,255,255,1);
    z-index: 1;
}

.updates-bg::before,
.updates-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}

.updates-bg::before {
    width: clamp(60px, 8vw, 120px);
    aspect-ratio: 1 / 1;
    background-color: #ffbd08;
    top: 8%;
    left: 6%;
}

.updates-bg::after {
    width: clamp(35px, 5vw, 70px);
    aspect-ratio: 1 / 1;
    background-color: #2a56db;
    bottom: 6%;
    right: 8%;
}

.updates-content {
    position: relative;
    z-index: 2;
    width: 85%;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: white;
    text-shadow: 0 2px 2px rgba(0,0,0,0.9);
}

.updates-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffbd08;
    text-shadow: 0 3px 3px rgba(0,0,0,0.9);
    z-index: 3;
}

.updates-title::before,
.updates-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(36px, 3.5vw, 52px);
    aspect-ratio: 1 / 1;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/SVG/exclamation-svgrepo-com.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    filter: drop-shadow(2px 2px 0 white);
    animation: exclaimBlink 1.2s steps(1) infinite;
    pointer-events: none;
}

.updates-title::before {
    right: 110%;
}

.updates-title::after {
    left: 110%;
}

@keyframes exclaimBlink {
    0% {
        filter:
            brightness(0) invert(0)
            drop-shadow(2px 2px 0 white);
    }
    50% {
        filter:
            brightness(0) invert(1)
            drop-shadow(2px 2px 0 black);
    }
}

.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.warning-box {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to bottom, #c10000, #f2590c);
    padding: 20px;
    display: flex;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    transform: rotate(-2deg);
}

.warning-text {
    width: 85%;
    text-align: center;
    font-family: Impact, sans-serif;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.warning-link {
    text-decoration: none;
    display: block;
}

.aboutbox {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(16px, 3vw, 40px);
    overflow: hidden;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
    --link-color: inherit;
    --link-hover: inherit;
    --link-visited: inherit;
}

.aboutbox a {
    color: #eb7f1a;
    text-decoration: underline;
    text-shadow: 1px 1px 0 black;
}

.aboutbox a:hover {
    color: #db2e0b;
    text-shadow: 1px 1px 0 black;
}

.aboutbox a:visited {
    color: #361db3;
    text-shadow: 1px 1px 0 black;
}

.aboutbox-img {
    width: clamp(100px, 15vw, 225px);
    height: auto;
    margin: 0 clamp(12px, 2vw, 25px) clamp(12px, 2vw, 15px) 0;
}

.aboutbox-img.left {
    float: left;
    filter: drop-shadow(-3px 4px 0px orange);
}

.aboutbox-img.right {
    float: right;
    margin: 0 0 clamp(12px, 2vw, 15px) clamp(12px, 2vw, 25px);
}

.aboutbox-title {
    margin: 0 0 clamp(10px, 2vw, 20px);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-family: Impact, sans-serif;
    text-shadow: 2px 2px 0 rgba(0,0,0,1);
}

.aboutbox-content p {
    font-family: 'CourierPrimeCustom', monospace;
    font-weight: bold;
    font-size: clamp(0.75rem, 2.2vw, 1.2rem);
}

.aboutbox-yellow {
    background: #ffbd08;
    color: black;
}

.aboutbox-yellow .aboutbox-title {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: red;
    transform: rotate(2deg);
}

.aboutbox-blue {
    background: linear-gradient(to bottom, #361db3, #2a56db);
    color: white;
}

.blue-title {
    color: #ffbd08;
    text-align: center;
    margin-bottom: 15px;
    transform: rotate(-2deg);
}

.aboutbox-content p {
    font-family: 'CourierPrimeCustom', monospace;
    font-weight: bold;
}

.aboutbox-socials {
    margin-top: clamp(15px, 3vw, 25px);
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    align-items: center;
    color: linear-gradient(to bottom, #c10000, #f2590c);
}

.aboutbox-socials img {
    width: clamp(24px, 4vw, 30px);
    height: auto;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(3px 3px 0px black);
}

.aboutbox-socials a:hover img {
    transform: scale(1.15) rotate(-5deg);
    filter: brightness(1.2);
}

.characters-page {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.character-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 5vw, 80px);
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .character-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

.character-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-icon {
    width: clamp(120px, 18vw, 200px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #ffbd08;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 0px white;
    overflow: hidden;
}

.character-icon:hover {
    transform: scale(1.08);
}

.character-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.character-name {
    margin-top: -10px;
    font-family: Impact, sans-serif;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: #db2e0b;
    text-shadow: 2px 2px 0 black;
    transform: rotate(-5deg);
}

.character-menu.hidden {
    display: none;
}

.character-profile {
    display: none;
    flex-direction: column;
    gap: 60px;
    animation: fadeIn 0.3s ease;
}

.character-profile.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(30px, 4vw, 60px);
    width: 100%;
    overflow: visible;
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

.profile-left {
    display: flex;
    flex-direction: column;
    gap: 80px;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
}

.profile-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(6px 6px 0px black);
}

@media (min-width: 1100px) {
    .profile-image-wrapper {
        transform: scale(1.3);
        transform-origin: top left;
    }
}

.profile-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.profile-name {
    font-family: Impact, sans-serif;
    font-size: clamp(3rem, 5vw, 4rem);
    color: #db2e0b;
    text-shadow: 3px 3px 0 black;
    align-self: center;
    position: relative;
    z-index: 2;
    transform: rotate(-3deg) translateY(20px);
}

.profile-info-box {
    width: min(300px, 100%);
    margin: 0 auto;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/polka-pattern2.png");
    background-size: 50%;
    background-repeat: repeat;
    z-index: 3;
    padding: 15px;
    display: flex;
    justify-content: center;
    box-shadow: 6px 6px 0px #ffbd08;
}

.profile-info-content {
    width: 95%;
    font-family: 'CourierPrimeCustom', monospace;
    font-weight: bold;
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    color: #ffbd08;
    line-height: 1.6;
}

.profile-description {
    background: #111;
    padding: 40px;
    background: linear-gradient(to bottom, #361db3, #2a56db);
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: white;
    text-shadow: 0 2px 2px rgba(0,0,0,0.9);
    line-height: 1.6;
    box-shadow: 3px 3px 6px black;
    position: relative;
}

.profile-back {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-back img {
    width: 40px;
    height: 40px;
    filter: invert(1) drop-shadow(3px 3px 2px black);
}

.profile-back:hover {
    transform: translateX(-5px);
}

@media (min-width: 1100px) {
    .profile-back img {
        width: 50px;
        height: 50px;
    }
}

.gallery-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-subfolders {
    display: flex;
    justify-content: center;
}

.gallery-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-family: Impact, sans-serif;
    filter: drop-shadow(3px 3px 2px black);
}

.gallery-folder img {
    width: clamp(60px, 8vw, 120px);
    filter: brightness(0) invert(1);
}

.gallery-folder span {
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 30px);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 3px 3px 3px black;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-pagination {
    font-family: 'CourierPrimeCustom', monospace;
    color: white;
    font-size: clamp(0.8rem, 2.5vw, 1.3rem);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    text-shadow: 2px 2px 0px black;
}

.gallery-pagination button {
    font-family: 'CourierPrimeCustom', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.3rem);
    color: #db2e0b;
    font-weight: bold;
    text-decoration: none;
    padding: clamp(6px, 1.2vw, 12px) clamp(14px, 3vw, 28px);
    background: linear-gradient(to bottom, #eb7f1a, #ffbd08);
    text-shadow: 1px 1px 0px black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    display: inline-block;
}

.gallery-pagination button:hover {
    background: #db2e0b;
    color: white;
}

.gallery-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-subgallery {
    display: none;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(20px, 4vw, 60px);
    animation: fadeIn 0.3s ease;
}

.gallery-subgallery.active {
    display: flex;
}

.gallery-back {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-back img {
    width: 40px;
    height: 40px;
    filter: invert(1) drop-shadow(3px 3px 2px black);
}

.gallery-back:hover {
    transform: translateX(-5px);
}

.subgallery-description {
    font-family: 'CourierPrimeCustom', monospace;
    color: white;
    font-weight: bold;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
}

.gallery-main.hidden {
    display: none;
}

.stories-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 3vw, 40px);
    justify-items: center;
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-card {
    width: 75%;
    background: #ffbd08;
    padding: clamp(10px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: 3px 3px 3px black;
}

.story-card:hover {
    transform: scale(1.05) rotate(-3deg);
}

.story-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0px black;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    margin-top: clamp(10px, 2vw, 15px);
    font-family: 'CourierPrimeCustom', monospace;
    font-weight: bold;
    font-size: clamp(0.7rem, 2.5vw, 1.2rem);
    color: #db2e0b;
    text-align: center;
    text-shadow: 1px 1px 0 black;
}