@font-face { font-family: Spectral; src: url(/fonts/Spectral-Medium.ttf);}

:root {
    --BG: #514354;
    --DivBG: #e4e0cd;
    --TextColor: #191919;

    --Accent1: #b087ca; /* Headers, NavBG */
    --Accent2: #a558b3;/* Bold, a:hover */
    --StatColor: #b087ca;
    --Linebreak: #b087ca;
    --Padding: 2em 3em;
}

@media (prefers-color-scheme: dark) {
:root {
        --BG: #2d2e30;
        --DivBG: #2d2e30;
        --TextColor: #c6c6c6;
        --Accent1: #b087ca; /* Headers, NavBG */
        --Accent2: #b087ca;/* Bold, a:hover */
        --Linebreak: #aaaaaa;
    }
}

* {padding: 0; margin: 0; box-sizing: border-box;}

html {
    background-color: var(--BG);
    background-image: var(--BGImg);
    scrollbar-gutter: auto;
    /* scrollbar-color: var(--Accent1) var(--BG); */
    transition: all 0.6s;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--TextColor);
    line-height: 1.6;
}

p:not(:last-child) {
    margin-bottom: 1.6em;
}

b, strong {color: var(--Accent1); }

h1, h2, h3, h4 {
    font-family: 'Times New Roman', Times, serif;
    color: var(--Accent1);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

a {
    color: var(--Accent1);
    text-decoration: none;
}

a, button {font-family: inherit; cursor: pointer;}
img { max-width: 100%;}


blockquote {
    font-size: 0.95rem;
    padding: 0.5em 1em;
    border-left: 5px solid var(--StatColor);
    /* background-color: var(--Blockquote); */
}

li {
    margin-bottom: 1em;
}

/* ------------------------------------------------ */
/* ----------- INDEX > RULES + BLOGROLL ----------- */
/* ------------------------------------------------ */

#rules-column {
    column-count: 2;
    column-gap: 50px;
    & .rule {
        font-family: 'Times New Roman', Times, serif;
        font-size: 1.5rem;
        color: var(--DivBG);
        background-color: var(--Accent1);
        padding: 5px 7px;
        margin-right: 5px;
    }
}

.muselist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* border-bottom: 1px solid var(--Accent2); */
    & .muse {
        text-align: center;
        color: var(--Accent2);
        padding-bottom: 50px;
        & .muse-name {
            color: var(--StatColor);
            text-transform: uppercase;
            font-weight: bold;
            letter-spacing: 1px;
        }
        & .muse-info {
            font-size: 0.95rem;
            text-align: center;
            font-style: italic;
            color: var(--Accent2)
        }
        & .muse-desc {
            text-align: center;
            color: var(--TextColor);
            font-size: 0.95rem;
            max-width: 300px;
            margin: 0 auto 10px auto;
        }
        & a {
            /* border: 1px solid var(--Accent1); */
            border-radius: 30px;
            font-size: 0.9rem;
            letter-spacing: 1px;
            padding: 5px 10px;
            background-color: var(--DivBG);
            color: var(--Accent1);
            text-transform: lowercase !important;
            &::before {
                content: '❥';
                padding-right: 5px;
            }
        }
        & a:hover {
            background-color: var(--Accent1);
            color: var(--DivBG);
        }
        & img {
            height: 100px; aspect-ratio: 3/1;
            /* border: 5px solid var(--Linebreak);
            outline: 5px solid var(--Accent2); */
            /* border-radius: 100%; */
        }
    }
}

.newmuse {
    display: grid;


}

/* ------------------------------------------------ */
/* ----------------- MAIN WRAPPER ----------------- */
/* ------------------------------------------------ */

#column-flex {
    font-size: 1.1rem;
    background-color: var(--DivBG);
    width: 60dvw; margin: 5dvh auto;
    display: flex;
    flex-flow: column nowrap;
    & section {
        display: flex;
        flex-flow: column nowrap;
        height: 0; /* To prevent layout shift during transition */
        overflow: hidden;
        margin: auto;
    }
    & section.active {
        height: auto; 
        animation: fadeIn 0.5s ease-in;
    }
    & article {
        /* border: 1px solid teal; */
        padding: var(--Padding);
    }
    & h1 {
        font-weight: 500;
        font-size: 2.5rem;
    }
    & h2 {
        font-weight: 500;
        &::before {
            content: "⟡";
            padding-right: 15px;
        }
    }
    & h1:before {
        content: "⟡ — ";
    }
}


footer {
    width: 100%; height: 15dvh;
    text-align: center;
    & a {
       color: var(--DivBG);
       /* text-decoration: underline; */
    }
}

nav {
    background-color: var(--DivBG);
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    gap: 50px;
    padding-top: 5px; 
    border-top: 2px solid var(--Linebreak);
    & a, button {
        width: 100px;
        padding: 10px 0; margin: 0 10px;
        background-color: var(--DivBG);
        color: var(--TextColor);
        font-size: 0.8em;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        border: none; 
        transition: letter-spacing 0.3s;
    }
    & a:hover, button:hover {
        color: var(--Accent2);
        letter-spacing: 2px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

/* ------------------------------------------------ */
/* ------------------ FIRST DIV ------------------- */
/* -----  basic styling for a char overview  ------ */

#intro-div {
    width: 55dvw; height: 72dvh;
    margin: 0 auto;
    display: block;
    position: relative;
    line-height: 1.8;
    & #intro-flex {       /* Muses > side img + Text */
        background-color: var(--DivBG);
        border: 1px solid var(--Linebreak);
        max-height: 400px; margin-top: 13dvh;
        display: flex; 
        flex-flow: row nowrap;
        & h1 {
            text-transform: lowercase;
            padding-top: 0.3em;
            /* writing-mode: vertical-lr;
            text-orientation: upright; */
        }
        & .cornerimg {
            transform: scale(1.3);
            position: absolute;
            top: -15px; right: -41px;
            image-rendering: crisp-edges;
        }
    }
}

.profile {
    font-size: 1rem;
    display: grid; 
    grid-template-columns: 300px 1fr;
    grid-template-rows: 300px fit-content;
    gap: 20px; 
    & #profilepic {
        grid-row: 1; grid-column: 1;
        & img {
            display: block;
            max-width: 100%; height: auto;
        }
    }
    & #charstats {   /* char name, age, etc. */
        grid-row: 1; grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 3fr;
    }
    & #synopsis {
        grid-row: 2; grid-column: 1/3;
    }
}

.stat {
    padding: 3px;
    margin-right: 10px;
    color: var(--StatColor);
    text-transform: uppercase; 
    font-weight: bold;
}

/* ------------------------------------------------ */
/* -----  CENTERED W/ QUOTATION MARKS  ------ */

.quote {
    display: block; text-align: center;
    font-size: 1.15rem;
    &::before {
        font-family: Georgia, "Times New Roman", Times, serif;
        content: open-quote; color: var(--StatColor);
        font-weight: bold; font-size: 2em; 
        padding-right: 5px;
    }
    &::after {
        font-family: Georgia, "Times New Roman", Times, serif;
        content: close-quote; color: var(--StatColor);
        font-weight: bold; font-size: 2em; 
        padding-left: 5px;
    }
}


/*  Used for side images in muse bios  */
.flexbox {
    display: flex; flex-flow: row nowrap;
    gap: 50px; 
    & img {
        max-width: 25%; height: auto;
    }
}

/*  Used for perssonality traits  */
.trait {
    position: relative;
    border-radius: 15px;
    border: 1px solid var(--Accent1);
    margin-bottom: 1em;
    padding: 0 1em;
    & span {
        position: absolute; top: -1em; left: 20px;
        background-color: var(--Accent1);
        color: var(--DivBG);
        padding: 0 1em; border-radius: 5px;
    }
}

/* ------------------------------------------------ */
/* --------------- MOBILE STYLING ----------------- */
/* ------------------------------------------------ */
@media only screen and (max-width: 800px) {
    .flexbox {
        flex-flow: column nowrap;
    }
}

@media only screen and (max-width: 600px) {
    body {
        line-height: 1.6;
    }
    h1 {
        color: var(--StatColor); 
    }
    .stat {
        line-height: 1.6;
    }
    #rules-column {column-count: 1;  & .rule {font-size: 1rem;}}
    aside {
        width: 90dvw; margin: 5dvh auto;
        & #intro {
            max-height: fit-content;
            flex-flow: column nowrap;
            & h1, p { padding-left: 15px;}
        }
        & h1 { font-size: 1.5em; }
        & .cornerimg { display: none };
    }
    #column-flex, #intro-div {
        width: 100%; margin: 0 auto 30dvh auto;
        font-size: 1rem;
        & section {width: 100%;}
        & article { width: 100%; padding: 1.5em; }
        & h1 { font-size: 1.95em; }
    }
    /* article nav {
        background-color: red;
        display: flex;
        flex-flow: row nowrap !important;
    } */
    .profile {
        grid-template-columns: 100%;
        grid-template-rows: fit-content 1fr 7rem;
        & #profilepic { grid-column: 1; grid-row: 1; margin: 0 auto;}
        & #charstats { grid-column: 1; grid-row: 2; line-height: 1.5; }
        & #synopsis { grid-column: 1; grid-row: 3; line-height: 1;}
    }
    section nav {
        padding-bottom: 5dvh;
        width: 100dvw;
        display: flex; flex-flow: row wrap; 
        justify-content: space-evenly;
        gap: 0; margin: 0; padding: 0;
    }
    .muselist {
        display: flex;
        flex-flow: column nowrap;
        & .muse {
            padding-bottom: 2em;
            & .muse-desc {margin: 10px auto 15px auto;}
            & a {
                border-radius: 50px;
                border: 1px solid var(--Accent1);
            }
        }
        & .muse:not(:last-child) {
           border-bottom: 1px solid var(--Accent2); 
        }
    }
}
