@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root {
    --black: #000000;
    --grass: #7ed957;
    --off-white: #edeced;
    --just-dark: #303030;
    --shy-dark: #a1a1a14e;
    --dark-grass: #52a32f;
    --date-dark: #7c7c7c;
}

* {
    /* border: 1px solid red; */
    box-sizing: border-box;
}

/*---------------------- Beginning of custom scrollbar--------------- */
/* width */
::-webkit-scrollbar {
    width: 0.6rem;
}

/* Track */
::-webkit-scrollbar-track {
    background: #3030302b;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #555;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--grass);
    cursor: pointer;
}

 body.about-page>div.post-body::-webkit-scrollbar-track {
    background: var(--shy-dark);
    background: #4e4d4d13;
}

/* body.about-page>div.post-body::-webkit-scrollbar-thumb {
    background: var(--dark-grass);
} */ 

/*--------------------- End of custom scrollbar-------------------- */

.layout {
    width: 100%;
    /*change this later*/
    color: var(--black);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: grid;
    column-gap: 1.5rem;
    grid-template-columns: 10% minmax(0, 1fr) 20%;
    grid-template-rows: 2fr 3fr 2fr;
    padding-top: 5%;
}

.index {
    background: var(--black);
    overflow: hidden;
}

.cont {
    height: 100vh;
    display: grid;
    grid-template-columns: 3fr 2fr 3fr;
    grid-template-rows: repeat(3, 1fr);
}

.spread {
    font-size: 7rem;
    color: var(--off-white);
    font-family: 'Open Sans';
    font-weight: 800;
    text-align: center;
    grid-area: 2/1/3/4;
    align-self: flex-start;
    z-index: 100;
}

.mid-rect {
    grid-area: 2/2/3/3;
    background: var(--grass);
}

.button-group {
    grid-area: 3/2/4/3;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.index-btn {
    color: var(--off-white);
    font-family: 'Open Sans';
    padding: 1rem;
    border: 0.1rem solid var(--dark-grass);
    margin: 0.8rem;
}

.index-btn:hover {
    border: 0.1rem solid var(--off-white);
    color: var(--dark-grass);
}

.advisory {
    color: var(--off-white);
    font-family: 'Noto Sans JP';
    font-size: 2rem;
    grid-area: 3/3/4/4;
    height: 100%;
}

body.title-page {
    background: var(--black);
    color: var(--off-white);
}

body.about-page {
    background: var(--off-white);
    color: var(--black);
}

body.posts-page {
    background: var(--off-white);
    color: var(--black);
    grid-template-columns: 10% minmax(0, 2fr) minmax(0, 3fr) 20%;
}

.title {
    font-size: 5rem;
    line-height: 4.2rem;
    font-family: 'Open Sans';
    font-weight: 800;
}

div.post-body {
    grid-area: 1/2/-1/3;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: 'Open Sans';
    font-weight: 400;
    line-height: 1.6rem;
    padding-bottom: 5rem;
}

div.post-body>h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 3.3rem;
}

div.post-body>h2 {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 2rem;
}

div.post-body>h3 {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.6rem;
}

div.post-body>blockquote {
    border-left: 0.2rem solid var(--grass);
    padding-left: 0.5rem;
}

ol.list-container {
    word-wrap: break-word;
}

img.start-pic {
    height: 25rem;
    width: 100%;
    object-fit: cover;
    /* change to contain if the image becomes too cropped in prod) */
}

div.post-body>img {
    display: block;
    width: 100%;
}

div.rect {
    grid-area: 1/3/-1/-1;
    background: var(--grass);
    width: 55%;
    height: 95%;
    margin: auto;
}

div.right-text {
    grid-area: 2/3/2/-1;
    /* font-size: 5rem; */
    /* line-height: 4.2rem; */
    z-index: 100;
    margin: auto;
    /* font-family: 'Open Sans'; */
    /* font-weight: 800; */
}

#rect-posts {
    grid-area: 1/4/-1/-1;
}

#right-text-posts {
    grid-area: 2/4/2/-1;
}

div.left-nav {
    grid-area: 1/1/-1/2;
    width: 90%;
    height: 95%;
    margin: auto;
    display: flex;
    justify-content: end;
    align-items: flex-end;
    padding-right: 1rem;
    flex-flow: column nowrap;
    padding-bottom: 4rem;
    font-family: 'Open Sans';
    font-size: 1.3rem;
}

/* div.left-nav-posts {
    grid-area: 1/1/-1/2;
    width: 90%;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: end;
    align-items: flex-end;
    padding-right: 1rem;
    flex-flow: column nowrap;
    padding-bottom: 4rem;
    font-family: 'Open Sans';
    font-size: 1.3rem;
} */

p#point {
    width: fit-content;
    margin: 0;
    display: block;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

div.post-body>a{
    text-decoration: underline;
}

div.button2 {
    padding: 0.5rem;
    height: max-content;
    font-family: 'Open Sans';
    font-weight: bold;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    /* align-items: flex-start; */
    /* justify-content: ; */
    /* height: 5rem;  */
}

div.button2:hover {
    cursor: pointer;
    background: var(--dark-grass);
}

div.bflex {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    width: 100%;
    font-weight: bold;
    color: var(--dark-grass);

}

div.bflex:hover {
    /* background: var(--just-dark); */
    cursor: pointer;
    color: var(--grass);
}


.arrow {
    position: relative;
    top: .2rem;
    width: 2rem;
    height: 2rem;
    /* animation: arrow 700ms linear infinite; */
    /* animation: 700ms linear 200ms 2 alternate slidein; */
}

/* .arrow::after,
.arrow::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 10px;
    right: -8px;
    background-color: var(--off-white);
} */

/* .arrow::after {
    top: -12px;
    transform: rotate(45deg);
}

.arrow::before {
    top: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .2);
    transform: rotate(-45deg);
} */

#arrow_p_home,
#arrow_p_about {
    display: none;
}

#posts_about,
#posts_home {
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
}

.blacktext {
    color: var(--black) !important;
}

.posts-header {
    height: fit-content;
    width: fit-content;
    align-self: flex-start;
    grid-area: 1/2/-1/4;
}

div.list-body {
    grid-area: 1/2/-1/4;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-flow: column nowrap;
    position: relative;
    top: 6rem;
    padding-bottom: 8rem;
}

.thumbnail-box {
    width: 22rem;
}

img.thumbnail {
    width: 100%;
    height: 11rem;
    object-fit: contain;
}


.single-post {
    display: flex;
    flex-direction: row nowrap;
    font-family: 'Open Sans';
    justify-content: space-between;
    margin-bottom: 2rem;
}

.post-details {
    width: 28rem;
    height: 11rem;
    display: flex;
    flex-flow: column nowrap;
}

.post-title {
    font-size: 1.3rem;
    height: 5.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; 
}

.post-author {
    font-weight: 600;
}

.post-date {
    font-weight: 600;
    color: var(--date-dark);
}

.tag-list {
    display: flex;
    flex-flow: row wrap;
}

.tag {
    border: 0.1rem solid var(--date-dark);
    padding: 0.1rem 0.2rem;
    margin-right: 0.3rem;
    font-weight: 400;
}

.enter-post > div:hover {
    background: var(--grass);
    cursor: pointer;
    font-weight: 800;
}

#ind-pos {
    background: var(--dark-grass);
}

#ind-pos:hover {
    color: var(--black);
}

pre {
    background: #5c5c5c3f;
    font-family: monospace;
    padding: 0.5rem 1rem
}

code {
    font-family: monospace;
    background: #5c5c5c3f;
    border: 0.01rem solid var(--shy-dark);
    border-radius: 0.01rem;
    padding: 0.01rem
}

span.comment {
    display: inline;
    color: rgb(10, 179, 55);
}