@font-face {
    font-family: 'Constantia-Bold';
    src: url('./constantia-font/CONSTANB.TTF');
}
@font-face {
    font-family: 'Constantia';
    src: url('./constantia-font/CONSTAN.TTF');
}

body {
    font-family: 'Constantia';
    display: flex;
    justify-content: space-evenly;
    margin: 0;
    background-image: linear-gradient(to right, lightgray, calc(50% - 900px), white, white, white, calc(50% + 900px), lightgray);
}

#centerlined {
    justify-content: space-evenly;
    max-width: 908px;
    display: flex;
    flex-direction: column;
}

h1,h2,h3,h4,h5,str{
    font-family: 'Constantia-Bold';
    font-weight: normal;
}

#about {
    scrollbar-color: rgb(230, 220, 205) rgb(180, 166, 148);
    background-color: rgb(230, 220, 205);
    display: flex;
    flex-direction: column;
    align-items: center;
    div {
        width: calc(70%);
        padding: 12px;
        background-color: rgb(204, 190, 175);
        h2 {
            background-color: rgb(180, 166, 148);
            margin: 2px -12px;
            margin-top: -12px;
            padding: 2px 6px;
            text-align: right;
        }
    }
    max-height: 800px;
}

.info {
    text-decoration: underline;
    cursor: help;
}

#banner {
    margin: 8px;
    aspect-ratio: 227/50;
    max-width: 908px;
}

#banner-title {
    width: calc(500% / 42);
    aspect-ratio: 281 / 74;
    max-width: 120px;
    transform: translate(55%,-27%);
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 908px;
}

#banner,#nav,#comic-nav,#news-box,#bottom-side,.boxes,.article,.thumbs,.holder {
    background-color: #AAD1D0;
}

#news-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 450px;
    margin: 8px;
    position: relative;
    #l-news-backing,#r-news-backing {
        position: absolute;
        height: inherit;
    }
    #l-news-backing {
        left: 0;
    }
    #r-news-backing {
        right: 0;
    }
    
}

#news {
    background-color: lightcyan;
    background-color: rgb(217, 237, 236);
    width: calc(100% - 200px);
    height: 400px;
    margin: 0 20px;
    font-size: 20px;
    .article {
        margin: 18px 10px;
        h3 {
            font-family:'Constantia-Bold';
            font-weight: normal;
            margin: 8px 0;
            font-size: inherit;
        }
        p {
            font-size: 14px;
        }
        border: 2px solid black;
        padding: 8px;
    }
}

#banner,#nav,#comic-nav,#news-box,#news,#about,#bottom-side {
    border: 2px solid black;
}


#comic-nav {
    margin: 8px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border: 2px solid black;
    padding: 4px;
}


aside {
    display: flex;
    flex-direction: column;
    width: 152px;
    margin: 0 ;
    .sides {
        width: 152px;
    }
}

#comic {
    max-width: 580px;
    width: calc(100%);
    aspect-ratio: auto;
}

#characters {
    background-color: #BFE3DC;
    padding-top:0;
    padding-bottom:0;
    .holder {
        border: 2px solid #778A7B;
        border-width: 0 1px 1px;
        .character-bio,h2,h3 {
            border: inherit;
            border-width: 1px 0 0 0;
        }
    }
    h2 {
        background-color: rgba(10,70,60,0.25);
    }
    .palette {
        background-color: #6EE67B;
    }
    h2,h3 {
        padding: 1% 0;
        text-align: center;
        margin: 0;
    }
    .character-bio {
        text-align: justify;
        font-size: 90%;
        height: fit-content;
        padding: 2%;
        .character-portrait {
            float: left;
            border: 1px solid black;
            width: 22%;
            aspect-ratio: 2 / 3;
            margin: 0 1% 0;
        }
        .name {
            margin-top: -0.4%;
        }
        .palette {
            display: flex;
            justify-content: space-between;
            align-items: center;
            float: left;
            height: 10px;
            width: fit-content;
            padding: 1px;
            .swatch {
                float: left;
                aspect-ratio: 1;
                height: calc(80%);
                border: 0.5px solid black;
                margin: 1px;
            }
            .swatch.dark {
                border-color: whitesmoke;
            }
        }
    }
}

#archive {
    font-size: 80%;
    width: calc(100% - 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#archive-container {
    width: 80%;
}

#archive,#news,#about,#characters {
    overflow-y: scroll;
    scrollbar-width: auto;
}
details.chapterHead {
    summary {
        font-family: 'Constantia-Bold';
    }
    div {
        font-family: 'Constantia';
        margin-left: 2%;
    }
}

details.chapterHead > summary {
    display: block;
}
details.chapterHead > summary > sum::after {
    display: inline-block;
    content: '▸';
}
sum {
    cursor: pointer;
    user-select: none;
}
details.chapterHead[open] > summary > sum::after {
    transform: rotate(90deg);
}
details.chapterHead::before {
    
}

details.chapterHead[open] {
    span {
        display: none;
    }
    a {
        div {
            float: left;
            max-width: 10%;
            background-color: #A0C9B3;
            padding: 4px;
            margin: 0%;
            text-align: center;
            aspect-ratio: 2 / 3;
            img {
                aspect-ratio: auto;
                max-height: 90%;
                max-width: 100%;
            }
        }
    }
}

article {
    background-color: white;
    border: 2px solid black;
    padding: 10px;
    width: calc(100% - 152px);
    min-height: calc(900px);
    max-width: 696px;
}

#vote {
    margin: 8px;
    display: flex;
    justify-content: center;
}

.vote-link {
    width: 100%;
    border: 2px solid black;
    border-radius: 2px;
}

#p-nav {
    /*background-image: url('./img/pagenav-sidebar.png');*/
    background-repeat: no-repeat;
    background-size: contain;
    /*height: 367px;*/
    width: 152px;
    padding: 0;
}

nav {
    margin: 0 8px;
    height: 367px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    hr {
        border-style: solid;
    }
}



.glowy {
    height: 79%;
    width: 92.5%;
    border-radius: 6px;
    outline: 0px solid black;
    z-index: 2;
}

.nav-btn {
    position: relative;
    color: black;
    text-decoration: none;
    z-index: 1;
    height: 8.2%;
    margin: 2px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav {
    border: 2px solid black;
    border-radius: 3px;
}

.ends {
    font-family: 'Constantia-Bold';
    /*height: 10.25%;*/
    .glowy{
        height: 26px;
    }
}


.nav-btn:hover {
    cursor: pointer;
    .glowy{
        background-color: rgba(255, 255, 255, 0.25);
    }
}

.contact {
    height: 11%;
    /* margin-top: 8px; */
}

.donate:hover {
    cursor: pointer;
    .glowy{
        background-color: rgba(255, 233, 159, 0.25);
    }
}

.contact:hover {
    cursor: pointer;
    .glowy{
        outline: 0px solid rgba(255, 12, 12, 0.25);
        background-color: rgba(255, 159, 159, 0.25);
    }
}


.forums {
    color: dimgray;
}


.sides {
    height: 100%;
}

div.boxes {
    width: calc(100% - 20px);
    margin: 0 8px;
    border: 2px solid black;
    border-radius: 2px;
    height: calc(100% - 4px);
}

#comic-holder {
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#page-inf {
    text-align: center;
    width: calc(100%);
    height: 18px;
    padding: 7px 0;
}

#bottom-side {
    margin: 8px;
    margin-bottom: 0;
    display: flex;
    aspect-ratio: 227/50;
    max-width: 908px;
}


.thumbs {
}

footer {
    text-align: center;
    margin: 8px;
    margin-top: 0;
    padding: 8px;
    border: 2px solid black;
    p {
        margin: 4px;
        color: dimgray;
        user-select: none;
        font-size: 14px;
    }
}

@media screen and (min-width: 908px) {
    .graded {
        background-image: linear-gradient(to top, rgba(0,25,50,0.5), 150px, rgba(0,0,0,0), 400px, rgba(0,0,0,0));
    }
    #bottom-side {
        display: none;
    }
}
@media screen and (max-width: 907px) {
    #archive {
        font-size: 1.5vw;
    }
    #archive-container {
        width: 65vw;
    }
    .graded {
        background-image: linear-gradient(to top, rgba(0,25,50,0.5), 20vw, rgba(0,0,0,0), 50vw, rgba(0,0,0,0));
    }
    #right-side {
        display:none;
    }
    #left-side {
        font-size: calc(2vw - 1px);
        width: 20%;
        .sides {
            width: 100%;
        }
    }
    #comic {
        max-width: 100%;
    }
    #comic-holder {
        height: fit-content;
    }
    article {
        min-height: 116vw;
        width: 100%;
    }
    #about,#archive,#fanart {
        max-width: 80%;
        height: 100vw;
        overflow-y: auto;
    }
    #about {
        font-size: calc(1.25vw + 4px);
        div {
            width: calc(80%);
            padding: 2vw;
            font-size: calc(1.0 + 1px);
            h2 {
                margin: 2px -2vw;
                margin-top: -2vw;
                padding: 2px 6px;
                text-align: right;
            }
            div {
                height: 23px;
                transform: translate(0, -7px);
            }
        }
    }
    #p-nav {
        width: 100%;
    }
    #nav {
        width: calc(100% - 20px);
    }
    #comic-nav,#page-inf {
        font-size: calc(2vw - 0px);
    }
    footer {
        font-size: calc(1.5vw + 4px);
        font-family: 'Constantia-Bold';
        p {
            font-size: calc(1vw + 3px);
            color: black;
        }
    }
    main {
        padding-right: 8px;
    }
    nav {
        width: calc(100% - 8px);
        height: calc(45vw);
    }
    .vote-link {
        width: calc(100% - 4px)
    }
    #news-box {
        height: 70vw;
        width: calc(100vw - 16px);
    }
    #news {
        height: 65vw;
        width: calc(75vw - 16px);
        .article {
            font-size: calc(3vw - 2px);
            p {
                font-size: calc(3vw - 4px);
            }
        }
    }
}