@import url('https://fonts.googleapis.com/css?family=Averia+Libre:400|Noto+Sans+JP:400,700&display=swap');

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.3rem;
    font-family: 'Noto Sans JP', 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
    margin: auto;
    text-align: center;
    background-image: url("../images/layout/rorschach-white.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #000;
}

/* format */
b, strong {font-weight: bold;}
i, em {font-style: italic;}
u {text-decoration: underline;}
blockquote {margin: 10px 20px 10px 0;}

img {
    max-width: 100%;
}

a {
    color: #8f1313;
    text-decoration: none;
    transition-duration: .8s;
    cursor: pointer;
    position: relative;
}
/* stain effect on hover */
    .news a::after,
    .aux-page a::after {
        content: "";
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        position: absolute;
        transition-duration: .3s;
        opacity: 0;
        background-image: url('../images/layout/strike.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 0;   
    }
    .news a::after img,
    .aux-page a::after img {
        background: none;  
    }

a:hover {
    color: #000;
    text-shadow: 0px 0px 6px #000;
    transition-duration: .3s;
}
    /* stain effect on hover */
    .news a:hover::after,
    .aux-page a:hover::after {
        opacity: .65;
        transition-duration: .8s; 
    }

main {
    margin: auto;
    text-align: center;
}

.content-width {
max-width: 800px;
margin: auto;
}

h1 {
    font-size: 2rem;
    font-family: 'Averia Libre', 'Bookman', 'Arial Black', sans-serif;
    padding: 18px;
    line-height: 2.15rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: bold;
    padding: 8px;
    line-height: 1.8rem;
}

.title {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: #fff;
    background-image: url('../images/layout/rorschach-splash.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom; 
    margin-bottom: -7px;
}
.index-menu {
    list-style: none;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 0px 5px 7px;
    border-style: solid;
    border-width: 15px 15px 0;
    border-color: transparent;
    border-image: url('../images/layout/border.png') 18 stretch;
    border-image-outset: 3px;
    border-radius: 17px 17px 0px 0px;
}
    .index-menu img {
        max-height: 38px;
        width: auto;
    }
    .index-menu a::after {
        content: "";
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        position: absolute;
        transition-duration: .15s;
        opacity: 0;
        background-image: url('../images/layout/underline.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 2;   
    }
    .index-menu a:hover::after {
        opacity: 1;
        transition-duration: .15s; 
    }



    /* Grid! */
.center-content {grid-area: centerContent;}
.left-content {grid-area: leftContent;}
.right-content {grid-area: rightContent;}
.content-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-column-gap: 10px;
    grid-template-areas: "leftContent centerContent rightContent";
}

.page { grid-area: comicPage;
    width: fit-content;
    position: relative;
    margin: auto;
    background-color: #000;
    padding: 10px 0 15px;
    text-align: center;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.95), 0 0 10px 2px rgba(0, 0, 0, 0.6), 0 0 20px 3px rgba(0, 0, 0, 0.4), 0 0 40px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#index-warning {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background: #fff;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    z-index: 1;
    padding-top: 25px;
    border-style: solid;
    border-width: 0 15px 15px;
    border-color: transparent;
    border-image: url('../images/layout/border.png') 18 stretch;
    border-image-outset: 3px;
    border-radius: 0px 0px 17px 17px;
}
#proceed_btn {
    cursor: pointer;
    margin-top: 5px;
    background-image: url('../images/layout/filterbg.png');
    background-color: #ffffff;
    border-radius: 6px;
    transition-duration: .3s;
}
#proceed_btn:hover {
    background-color: #ea3c20;
}

ul.comic-nav {
    height: 50px;
    margin: 6px auto 0px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    padding: 0;
}
    ul.comic-nav img {
        max-height: 36px;
        width: auto;
    }
        ul.comic-nav li {
            display: inline;
            margin: 8px;
            min-height: 40px;
            min-width: 45px;
        }

.news-header {
    color: #fff;
    font-family: 'Averia Libre', 'Bookman', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: #353535;
    padding: 12px 20px;
    position: relative;
    z-index: 1;
}

.news .news-text {
    color: #000;
    text-align: left;
    background-color: #fff;
    padding: 20px;
}

.social-media-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    margin: 15px;
    max-width: 115px;
    border: 15px solid transparent;
    border-image: url('../images/layout/border.png') 24 round;
    border-image-outset: 2px;
    border-radius: 15px;
}
.social-media-panel a {
    margin: 6px;
}
.social-media-panel img {
    max-height: 100%;
}
.social-media-panel a img {
    position: relative;
    transition-duration: .3s;
    background-image: url('../images/layout/filterbg.png');
    border-radius: 15px;
    overflow: visible;
}
.social-media-panel a {
    margin: 6px;
}
.social-media-panel a:hover img.instagram {
    background-color: rgb(172, 0, 220);
    /* background: linear-gradient(150deg, 
    rgba(18,0,205,1) 0%, 
    rgba(87,0,255,1) 16%, 
    rgba(255,56,105,1) 49%, 
    rgba(224,119,56,1) 81%, 
    rgba(255,194,0,1) 100%); */
}
.social-media-panel a:hover img.kofi {
    background-color: rgb(255, 132, 157);
    /* background: radial-gradient(circle, rgba(252,70,107,1) 22%, 
    rgba(81,206,255,1) 32%); */
}
.social-media-panel a:hover img.patreon {
    background-color: #e85b46;
}
.social-media-panel a:hover img.twitter {
    background-color: #1da1f2;
}


.comments {
    padding: 20px;
    background-color: #222222;
}

#footer {
    color: #fff;
    margin: 10px auto 4px;
}
    #footer a:hover {
        color: #8c8c8c;
    }

/* Auxilery pages */

.aux-page {
    background-color: #fff;
    border-style: solid;
    border-width: 0 15px 15px;
    border-color: transparent;
    border-image: url('../images/layout/border.png') 18 round;
    border-image-outset: 3px;
    border-radius: 0px 0px 25px 25px;
}
#aux-page-header {
    background-color: #222222;
    padding: 8px;
}
.aux-page .text {
    padding: 20px;
}

.chapter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    padding: 0px 20px 10px;
} 

.archive a {
    padding: 10px 15px;
    position: relative;
    z-index: 2;
} 

.mobile-only {
    display: none;
}


@media only screen and (max-width: 1000px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-column-gap: 10px;
        grid-template-areas: "centerContent"
                              "leftContent"
                              "rightContent";
    }
    .social-media-panel {
        flex-direction: row;
        justify-content: space-evenly;
        margin: auto;
        width: 100%;
        max-width: 800px;
        height: 115px;
        border-image: none;
        border: none;
        border-radius: 0;
        padding: 6px;
    }
    .social-media-panel img {
        max-height: 80px;
    }
  }

  @media only screen and (max-width: 650px) {
    .mobile-only {
        display: inline-block;
    }
    .no-mobile {
        display: none;
    }
    body {
        background-image: url("../images/layout/mobilebg.jpg");
        background-repeat: repeat-x;
    }
    .title {
        padding: 0;
        background-image: none;
    }
    .index-menu img {
        max-height: 25px;
        width: auto;
    }
    .news-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news-title {
        padding-bottom: 5px;
    }
    .news-date {
        font-size: 1rem;
        color: gray;
    }

    .index-menu,
    .aux-page,
    .social-media-panel {
        border: none;
        border-radius: 0;
        padding: 8px;
    }
    .aux-page {
        padding: 0;
    }
  }