body {
    background-image: url(../../img/bg/graphbg2.png);
    background-size: 70px;
}

* {
    box-sizing: border-box;
}

.container {
    margin: auto;
    display: grid;
    column-gap: 25px;
    max-width: 630px;
    grid-template-areas: 
    'header header'
    'left main'
    'left main';
    grid-template-columns: 0.50fr 1fr;
}

.header {
    grid-area: header;
    margin-bottom: 3px;
    text-align: right;
    font-family: nico;
    font-size: 30px;
    line-height: 0;
}

.header p {
    margin-right: 15px;
    color: #fff;
    text-shadow: -1px 0 #0070BB, 0 1px #0070BB, 1px 0 #0070BB, 0 -1px #0070BB, 0 0;
    font-weight: bold;
}

/* ======= left ======= */

.left {
    grid-area: left;
    height: fit-content;
}

.nav {
    border: 1px solid #0070BB;
    height: 42px;
    border-radius: 13px 3px 13px 3px;
    background-color: #fff;
    margin-bottom: 5px;
    box-shadow: 0px 0px 3px 1px #c5e6ff;
}

.nav p {
    font-family: go;
    line-height: 0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    
}

.navscroll {
    padding-top: 3px;
    padding-bottom: 3px;
    border: 1px solid #0070BB;
    max-height: 400px;
    box-shadow: 0px 0px 3px 1px #c5e6ff;
    border-radius: 13px 3px 13px 3px;
    background-color: #fff;
}

#postlink {
    border-radius: 5px;
    background-color: #F5F5F5;
    background-image: linear-gradient(to top, #F6F6F6 0%, #DADADA 50%, #F6F6F6 51%);
    text-shadow: -1px 0 #0070BB, 0 1px #0070BB, 1px 0 #0070BB, 0 -1px #0070BB, 0 0;
    color: white;
    box-shadow: 0px 0px 3px 1px #a5a5a5;
    border: 1px solid #fff;
    outline: 1px solid #C0C0C0;

    margin: auto;
    width: 90%;
    transition: .5s;
    display: block;
    padding-top: 4px;
    padding-bottom: 4px;
    filter: grayscale(70%);
    margin-bottom: 5px;
    margin-top: 5px;

    font-size: 17px;
    font-family: fsquare;
    text-align: center;
    font-weight: normal;
    text-decoration: none;
}


#postlink:hover {
    text-decoration: underline;
    filter: none;
    transform: rotate(-2deg);
}

/* ======= main ======= */

.main {
    grid-area: main;
    border: 1px solid #0070BB;
    background-color: #fff;
    height: 600px;
    box-shadow: 0px 0px 3px 1px #c5e6ff;
    border-radius: 15px 3px 15px 3px;
    overflow-y: auto;
}

.blogpost {
    background-color: white;
    border-radius: 10px;
    height: fit-content;
    width: 95%;
    border: 1px solid #0070BB;
    margin: auto;
    margin-top: 8px;
    margin-bottom: 8px;
}

.blogpost h1 {
    font-size: 26px;
    font-family: nico;
    line-height: 19px;
    margin-left: 10px;
}

.blogpost p {
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    font-family: fpixel;
    line-height: 17px;
}

/* ======= mobile ======= */

@media only screen and (max-width: 540px) {

    .container {
        display: grid;
        row-gap: 5px;
        margin: auto;
        max-width: 100%;
        min-width: 310px;
        grid-template-areas: 
        'header'
        'left'
        'main';
        grid-template-columns: 100%;
    }

    .header {
        margin-top: -7px;
        margin-bottom: -10px;
        grid-area: header;
        line-height: 20px;
        font-size: 28px;
    }

    .header p {
        margin-right: 15px;
    }

    /* ======= left ======= */

    .left {
        grid-area: left;
        border: 1px solid;
    }


    .nav {
        height: 40px;
    }

    .navscroll {
        height: 150px;
    }

    .nav p {
        font-family: go;
        line-height: 0;
        text-align: center;
        font-size: 20px;
    
    }

    /* ======= main ======= */

    .main {
        grid-area: main;
        border: 1px solid;
        height: 800px;
    }

}



/* ======= other ======= */

.homebutton {
    background-color: #F5F5F5;
    background-image: linear-gradient(to top, #F6F6F6 0%, #DADADA 50%, #F6F6F6 51%);
    text-shadow: -1px 0 #0070BB, 0 1px #0070BB, 1px 0 #0070BB, 0 -1px #0070BB, 0 0;
    border: 1px solid #fff;
    outline: 1px solid #C0C0C0;
    color: #fff;
    box-shadow: 0px 0px 3px 1px #a5a5a5;

    border-radius: 10px;
    display: block;
    position: absolute;
    padding-left: 2px;
    height: 30px;
    width: 33px;
    transition: .5s;

    font-size: 20px;
    text-align: center;
    font-family: fsquare;
    text-decoration: none;
    line-height: 28px;
    
}

.homebutton:hover {
    transform: scale(110%);
}
