/******************************************************************************
 * 1. GLOBAL RESETS & BASE STYLES
 ******************************************************************************/
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
   Animated tiling texture (64×64px):
   Diagonal scroll over 240s from (0,0) to (1280px, -1280px).
*/
html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #2e2e49;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100%;

    background-image: url("/static/shrines/music/background_icon.png");
    background-repeat: repeat;
    background-size: 32px 32px;

    animation: scrollTexture 240s linear infinite;
}

a {
    color: #ff156b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #a30054;
}

@keyframes scrollTexture {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1280px -1280px;
    }
}

.hidden {
    display: none !important;
}

/******************************************************************************
 * 2. SHARED SITE STYLES
 ******************************************************************************/
.header-box,
.nav-box,
.content-box,
.footer-box {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    z-index: 1;
}

.content-box h1 {
    color: #ff156b;
}

.content-box h2 {
    color: #ff156b;
}

.content-box h3 {
    color: #ff156b;
}

/* HEADER */
.header-box {
    text-align: center;
    padding: 1rem 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    background-color: #2e2e49;
    border: 1px solid #a30054;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
}

.header-box h1 {
    font-size: 1.8rem;
    color: #ff156b;
    /* margin: 0.5rem 0; */
    letter-spacing: 0.5px;
}

/* Make the site name a link without changing h1 style */
.header-box h1 a {
    color: #ff156b;
    text-decoration: none;
}

.header-box h1 a:hover {
    text-decoration: underline;
}

.header-box h2 {
    font-size: 1.2rem;
    color: #cccccc;
}

.header-box h2 a {
    color: inherit;
    text-decoration: none;
}

.header-box h2 a:hover {
    text-decoration: underline;
}

/******************************************************************************
 * 3. NAV BOX
 ******************************************************************************/
.nav-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2e2e49;
    border: 1px solid #a30054;
    border-radius: 4px;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-box a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: #ff156b;
    border-radius: 4px;
    margin: 0 0.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-box a:hover {
    background-color: #2e2e49;
    color: #a30054;
}

/******************************************************************************
 * 4. CONTENT AREA
 ******************************************************************************/
.content-box {
    position: relative;
    z-index: 1;
    border: 1px solid #a30054;
    background-color: #2e2e49;
    color: #cccccc;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.content-box h2 {
    font-size: 1.6rem;
    color: #cccccc;
    margin-bottom: 1rem;
}

.content-box p {
    margin-bottom: 1rem;
    color: #cccccc;
}

.content-box ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-box ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

.content-box pre:has(code) {
    font-family: "Courier New", Courier, monospace;
    background-color: #2e2e49;
    color: #ffffff;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;

    position: relative;
    margin: 1rem 0;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
}

.content-box pre:has(code) button {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;

    padding: 0.25rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    background-color: transparent;
    color: #ff156b;

}

.content-box pre:has(code) button:hover {
    color: #a30054;
    background-color: #f0efff;
}

.content-box img {
    border-radius: 4px;
    display: block;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.content-box iframe {
    border-radius: 4px;
    display: block;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.content-box hr {
    border: none;
    border-top: 1px solid #ff156b;
    margin: 1rem 0;
}

.content-box .toc {
    margin-bottom: 1rem;
}

.content-box .toc ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 1rem;
}

.content-box .toc li {
    margin-bottom: 0.25rem;
}

/******************************************************************************
 * 5. FOOTER
 ******************************************************************************/
.footer-box {
    text-align: center;
    padding: 0.5rem 0;
    background-color: #2e2e49;
    border: 1px solid #a30054;
    border-radius: 4px;
    box-shadow: none;
    color: #cccccc;
    margin-bottom: 1rem;
}

.footer-nav {
    margin-top: 0.25rem;
}

.footer-nav a {
    text-decoration: none;
    color: #ff156b;
    font-size: 0.85rem;
    margin: 0 0.25rem;
    transition: color 0.2s ease-in-out;
}

.footer-nav a:hover {
    color: #a30054;
}

.footer-icon {
    width: 16px;
    filter: invert(21%) sepia(51%) saturate(4823%) hue-rotate(325deg) brightness(102%) contrast(107%);
}

.footer-icon:hover {
    filter: invert(8%) sepia(100%) saturate(5795%) hue-rotate(322deg) brightness(89%) contrast(100%);
}
