/* GENERAL */
html{
    height:100%;
    font-family: "Abel", sans-serif;
    font-size: 20px;
    color:#2e2f31;
    background-color: #f5f5f5;
}
body{
    padding: 0;
    margin: 0;
    min-height: 100%;
}
a{
    text-decoration: inherit;
    color: #86C232;
}
a.button{
    color: #222629;
    background-color: #86C232;
    padding:6px;
    border: #ddd 1px solid;
}
a.button:hover{
    background-color: rgb(142, 206, 53);
}

.dark
{
    background-color: #222629;
    color:#ddd;
}

.container{
    display:grid;

    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(auto, auto);

    justify-items: stretch;
    align-items: stretch;
}
#snippet-menu{
    position: fixed;
    height: 60px;
    width: 100%;
    z-index: 1000;
    grid-auto-rows: 1fr;
    box-shadow: 0px 6px 12px #00000036;
}

#snippet-footer{
    position: fixed;
    bottom:0;
    width: 100%;
    height:40px;
    z-index: 1000;
    box-shadow: 0px -4px 4px #00000036;
}

/* HEADER */
.container.header{
    grid-column: 1/13;
    grid-template-columns: 420px 1fr 1fr;

    border-bottom: 3px #86C232 solid;
}
.container.menu{
    grid-template-columns: repeat(3, 155px);
}
.container.menu > a{
    font-size: 25px;
    padding-top: 12px;
    justify-self: center;
}
div.button-line{
    margin-left: 50%;
    width: 0%;
    opacity: 0;

    padding-top: 3px;
    border-bottom: 2px solid;

    color:#ddd;

    -webkit-transition: width 0.4, margin-left 0.4, opacity 0.4; 
    -moz-transition: width 0.4s, margin-left 0.4s, opacity 0.4s;
    transition: width 0.4s, margin-left 0.4s, opacity 0.4s;
}
div.button-line.focus{
    margin-left: 0%;
    width: 100%;
    opacity: 1;

    -webkit-transition: width 0.4, margin-left 0.4, opacity 0.4; 
    -moz-transition: width 0.4s, margin-left 0.4s, opacity 0.4s;
    transition: width 0.4s, margin-left 0.4s, opacity 0.4s;
}
div.button-caption{
    -webkit-transition: color 0.4; 
    -moz-transition: color 0.4s;
    transition: color 0.4s;
}
div.button-caption.focus{
    color: #ddd;
    -webkit-transition: color 0.4; 
    -moz-transition: color 0.4s;
    transition: color 0.4s;
}

#title-site{
    font-size: 30px;
    grid-column: 1;
    padding-top: 8px;

    justify-self: right;
}
#title-site-sub{
    font-size: 15px;
    padding: 22px 0px 0px 18px;
    grid-column: 2;
    letter-spacing: 0.3px;
}

/* CENTER */
.container.center
{
    grid-column: 1/13;
    grid-row: 2;
    grid-template-columns: 1fr;
    grid-template-rows: 120px 60px 1fr;
    overflow: auto;
    background: radial-gradient(#f5f5f5 50%, #e0e0e0);

    padding-top: 50px;
    padding-bottom:50px;
}
#title-page{
    grid-row:1;
    font-size: 48px;
    justify-self: center;
    align-self: end;
}
#title-page-sub{
    grid-row:2;
    font-size: 20px;
    justify-self: center;
    align-self: start;
    padding: 0px 0px 0px 18px;
}
.container.content{
    grid-row: 3;
    grid-template-rows: minmax(auto, auto);
}

/* FOOTER */
.container.footer{
    grid-column: 1/13;
    grid-row: 3;
    grid-template-columns: 1fr; 
}
#footer-site{
    align-self: center;
    justify-self: center;
    font-size: 16px;
    letter-spacing: 0.3px;
}

/*DEBUG DISPLAY*/
/* .container > div 
{
    background: #bbb;
}
.container > div:nth-child(odd){
    background: #aaa;
}
 */

/* RESPONSIVE QUERIES */
/* If the screen size is 600px wide or less*/
@media only screen and (max-width: 1260px) {
    #snippet-menu{
        display: grid;
        height: 75px;
        grid-template-columns: 380px 1fr;
        grid-template-rows: 1fr 1fr;
    }
    #title-site{
        height:30px;
    }
    .container.menu{
        grid-row: 1/3;
        justify-self: center;
        align-self: center;
        padding: 0px;
        margin-left: 50px;
    }

    #title-site-sub{
        grid-column: 1;
        grid-row: 2;
        padding:6px 0px 0px;
        justify-self: right;
    }
    .container.center{
        padding-top: 70px;
    }
/*     .container.main{
        height:100vh;
        grid-auto-rows: 80px 1fr 40px;
    } */
    .container.menu > a{
        padding-top: 0px;
    }
}

/* If the screen size is 600px wide or less*/
@media only screen and (max-width: 900px) {
    #snippet-menu{
        display: grid;
        height: 110px;
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
    }

    #title-site{
        justify-self: center;
    }
    #title-site-sub{
        justify-self: center;
        border-bottom: 1px solid #ddd;
        
    }
    div.button-line{
        margin-left: 50%;
        width: 0%;
        opacity: 0;
    
        padding-top: 0px;
        border-bottom: 2px solid;
    }
    .container.center{
        padding-top: 100px;
    }
/*     .container.main{
        height:100vh;
        grid-auto-rows: 120px 1fr 40px;
    } */
    .container.menu{
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: repeat(3, 100px);
        margin-left: 0px;
    }
    .container.menu > a{
        padding-top: 0px;
        font-size: 20px;
    }
}

/* If the screen size is 600px wide or less*/
@media only screen and (max-width: 370px) 
{
    #title-site-sub{
        font-size: 13px; 
        height: 28px;       
    }

    .container.menu{
        margin-bottom: 5px;
    }
}