body {
    background-image: url('https://okamawizard.neocities.org/backgrounds/purplegalaxy.gif');
    background-repeat: repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    color: #4a4a4a;
    text-align: center;
}

.pokemon-banner-aligned-left {
    width: 150px;
}

@media screen and (max-width: 768px) {
    .pokemon-banner-aligned-left {
        display: none;
    }
    .left-aside {
        display: none;
    }
    .right-aside {
        display: none;
    }
    .fixed-bottom-right-image {
        display: none;
    }
}

.page-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: rgba(230, 204, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.4);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.page-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px dashed #9370db;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 3em;
    color: #9900ff;
    text-shadow: 2px 2px #4b0082;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2em;
    color: #4b0082;
}

.main-content-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}

.sidebar {
    flex-shrink: 0;
    width: 120px;
    padding: 10px;
    background-color: rgba(221, 160, 221, 0.7);
    border: 2px solid #800080;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.sidebar h2 {
    font-size: 1.2em;
    color: #4b0082;
    text-shadow: 1px 1px #dda0dd;
    margin-bottom: 5px;
    border-bottom: 1px dotted #9932cc;
    padding-bottom: 5px;
    width: 100%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar ul li a {
    color: #483d8b;
    text-decoration: underline;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #800080;
}

.sidebar-banner {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin-top: 5px;
    box-shadow: none;
}

.main-text-area {
    flex-grow: 1;
    max-width: 700px;
    padding: 20px;
    background-color: rgba(240, 230, 255, 0.9);
    border: 2px solid #9932cc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(153, 51, 204, 0.5);
}

.main-text-area h2 {
    font-size: 2em;
    color: #9900ff;
    margin-bottom: 15px;
    text-align: center;
}

.main-text-area p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1em;
    color: #4b0082;
}

.main-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: none;
    box-shadow: none;
}

.image-caption {
    text-align: center;
    font-size: 0.9em;
    color: #4b0082;
    margin-top: -10px;
    margin-bottom: 20px;
}

.scrolling-banner-container {
    width: 100%;
    overflow: hidden;
    background-color: rgba(128, 0, 128, 0.7);
    border: 2px solid #4b0082;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 20px;
}

.scrolling-content {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    animation: scroll-left 25s linear infinite;
    width: max-content;
}

.stamp {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    border: 1px solid #fff;
    border-radius: 3px;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.homepage-link {
    margin: 20px auto;
    background-color: #9370db;
    padding: 10px;
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.6);
    display: inline-block;
}

@media (max-width: 900px) {
    body {
        font-family: "Chalkboard SE", sans-serif;
    }
}

@media (max-width: 600px) {
    .main-content-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 90%;
        max-width: 300px;
        display: none;
    }

    .main-text-area {
        width: 95%;
        max-width: none;
    }
}

.fixed-bottom-right-image {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: -1;
}