html{
    height: 100%;
    margin: 0%;
}

body{
    height: 100%;
    margin: 0;
    font-family: verdana;
    background-size: cover;
}

div.grid-container{
    display: grid;
    height: 100%;
    grid-template-columns: 20% auto 250px;
    grid-template-rows: 75px 40px auto 150px;
    column-gap: 0%;
    row-gap: 0%;
    grid-template-areas: 'header header header''article article nav''article article nav' 'footer footer footer';
}

header{
    grid-area: header;
    width: 100%;
    background-color: rgb(53, 53, 53);
    border-bottom: 2px solid rgb(0, 255, 217);
}

div.nav{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-area: nav;
    overflow-x: scroll;
    scrollbar-width: 0;

    background-color: rgb(53, 53, 53);
    border-left: 2px solid rgb(0, 255, 217);
}

div.nav a{
    text-decoration: none;
    text-align: center;
    height: 50px;
    padding: 5%;
    box-sizing: border-box;
    font-weight: bolder;
    color: white;
    background-color: rgb(93, 93, 93);
}

div.nav a:hover{
    background-color: rgb(0, 255, 217);
}

div.nav a:active{
    background-color: rgb(0, 203, 167);
}

div.nav a:visited{
    color: white;
}

article{
    display: block;
    grid-area: article;
    box-sizing: border-box;
    
    color: white;
    background-color: rgb(13, 13, 13)
}

footer{
    display: block;
    grid-area: footer;

    color: white;
    background-color: rgb(33, 33, 33);
    border-top: 2px solid rgb(0, 255, 217);
}

/**/

h1{
    color: white;
    margin-left: 5%;
    box-sizing: border-box;
    align-self: center;
}

h2{
    color: rgb(0, 255, 217);
    margin: 1% 5% 1% 5%;
    display: flex;
    align-items: center;
}

h2 img{
    margin: 0% 1% 0% 1%;
    height: 50px;
}

h3{
    color: rgb(0, 255, 217);
    margin: 1% 5% 1% 5%;
    border-bottom: 2px solid rgb(0, 255, 217);
}

h3.contents{
    border-bottom: none;
}

h4{
    margin: 1% 5% 1% 5%;
}

p{
    margin: 2% 5% 2% 5%;
}

p a{
    text-decoration: none;
    color: rgb(0, 255, 217);
    font-weight: bolder;
}

p a:visited{
    color: rgb(0, 255, 217);
}

p b{
    color: rgb(20, 255, 20);
}

p.code{
    display: block;
    border-left: 2px solid gray;
    background-color: black;
    box-sizing: border-box;
    margin: 2% 5% 2% 5%;
    padding: 0% 5% 0% 5%;
}

ul{
    color: white;
    list-style: disc;
    margin: 2% 5% 2% 5%;
}

img{
    margin: 2% 5% 2% 5%;
    max-width: 90%;
}

div.clickable-gallery{
    margin: 0% 5% 0% 5%;
    display: flex;
    flex-wrap: wrap;
    
}

div.clickable-gallery a{
    width: 100px;
    height: 100px;
    text-decoration: none;
    background-color: rgb(93, 93, 93);
    color: white;
    margin: 10px 10px 20px 10px;
    box-sizing: border-box;
    text-align: center;
}

div.clickable-gallery a:hover{
    background-color: rgb(0, 255, 217);
    color: rgb(0, 255, 217);
    font-weight: bolder;
}

div.clickable-gallery a:active{
    background-color: rgb(0, 205, 167);
    color: rgb(0, 205, 167);
}

div.clickable-gallery img{
    height: 100%;
}

ul.contents{
    border-left: 2px solid rgb(0, 255, 217);
    list-style: none;
    margin: 2% 5% 2% 5%;
}

ul.contents li a{
    text-decoration: none;
    color: rgb(0, 255, 217);
}

ul.contents li a:visited{
    color: rgb(0, 255, 217);
}

div.date{
    float: right;
    margin-right: 5%;
    margin-top: 1%;
    font-weight: bold;
    border-bottom: 1px solid white;
}

@media screen and (max-width: 600px) {
    header{ grid-area: 1 / span 3;}
    div.nav{
        grid-area: 2 / span 3;
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid rgb(0, 255, 217);
    }
    div.nav a{
        padding: 8px;
        height: 38px;
        width: 100px;
    }
    article{grid-area: 3 / span 3;}
    footer{grid-area: 4 / span 3;}
}

@media screen and (min-width: 600px) {
    header{ grid-area: 1 / span 3;}
    div.nav{
        grid-area: 2 / span 3;
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid rgb(0, 255, 217);
    }
    div.nav a{
        padding: 8px;
        height: 38px;
        width: 100px;
    }
    article{grid-area: 3 / span 3;}
    footer{grid-area: 4 / span 3;}
}

@media screen and (min-width: 768px) {
    header{grid-area: header;}
    div.nav{
        grid-area: nav;
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid rgb(0, 255, 217);
    }
    div.nav a{
        padding: 5%;
        height: 50px;
        width: auto;
    }
    article{grid-area: article;}
    footer{grid-area: footer;}
}

@media screen and (min-width: 992px) {
    header{grid-area: header;}
    div.nav{
        grid-area: nav;
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid rgb(0, 255, 217);
    }
    div.nav a{
        padding: 5%;
        height: 50px;
        width: auto;
    }
    article{grid-area: article;}
    footer{grid-area: footer;}
}

@media screen and (min-width: 1200px) {
    header{grid-area: header;}
    div.nav{
        grid-area: nav;
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid rgb(0, 255, 217);
    }
    div.nav a{
        padding: 5%;
        height: 50px;
        width: auto;
    }
    article{grid-area: article;}
    footer{grid-area: footer;}
}