/*======= COLOR THEME
dark green modern designer theme
#b1d2db  	rgb(177, 210, 219)
#007261
#1c4a47
#1b2e28
#202020
========*/

:root{
    --color1: #b1d2db;
    --dark: #202020;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;    
}
html{
  overflow-x: hidden;
}
.hidden{ 
  height: 0;
  overflow-y: hidden;
}
.hide{
    display: none;
}
a{
    text-decoration: none; 
    transition: color .3s;
}
a:hover{
    color: #007261;
}
li{
    list-style: none;
}
body{
    background-image: url(img/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;    
    background-position: fixed;
}
.container{
    width: 75%;  
    margin: 0 auto;
    background: rgba(177, 210, 219, .8);     
}


/*--- Navigation Section ---*/
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;    
    position: fixed;    
    top: 0;
    right: 12.5%;
    left: 12.5%;
    z-index: 1030;
    background: #b1d2db;
}
.nav-brand{
    height: 3rem;
}
.nav-brand img{
    max-height: 100%;
    margin-left: 1rem;
    padding: .2rem;
}
.nav-collapse{
    display: none;
}
ul.navbar-nav{
    display: flex;
    margin-right: 1rem;
}
ul.navbar-nav li{
    margin: .4rem;
}
ul.navbar-nav li a{
    padding: .2rem;
    letter-spacing: .18em;
}
#navbar-nav-small{
    display: none;
}


/* --- Main Section --- */

.main-section::before{
    display: block;
    content: "";
    height: 3rem;
}
.main-section{   
  display: grid;
  grid-template: auto auto / 3fr 1fr;  
  margin: 0 auto;    
}
.header{  
    grid-column: 1 / 3;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: .15em;
    padding: 10px;
}
article, section, aside{
  margin: 1rem;
  padding: .3rem;
}
section h2{
  border-bottom: 1px dotted #001400;
}
span{
  cursor: pointer;
}
section li{
    margin-left: .3rem;
    list-style: square inside;
}
    /* --- Aside Section ---*/
    aside img{
        max-width: 100%;
        border-radius: 50%;
        object-fit:cover; 
        padding: .2rem;
    }
    aside p{
        text-align: justify;
        padding: .2rem;
        margin-bottom: 1rem;
    }
    .social-icons{
        display: flex;
        justify-content: center;    
    }
    .social-icons a{
        color: var(--dark);
        margin: 0 .8rem;
    }
    .social-icon:hover *{
        transition: color .5s;
    }
    .social-icon:hover *{
        color: #007261;
    }

/* --- footer --- */
footer{
    text-align: center;
    margin: 2rem auto 0;
    padding-bottom: 2rem;
}
footer a{
    border-bottom: 1px dotted #001400;
}



/* --- Main Section for Posts --- */

article{
  border-bottom: 1px dotted #001400;
    margin-bottom: 2rem;
}
article h2{
    padding: 1rem 0;
}
article p{
    padding: .2rem 0;
}
article a{
    border-bottom: 1px dotted #001400;
}
article img{
    max-width: 80%;
    max-height: 100vh;
    transition: .3s;
}
article .link-image{
    border-bottom: none;
}
article .link-image:hover img{
    opacity: .8;     
}
article pre {
    background: white;
    border: 1px solid #b1d2db ;
    border-left: 3px solid #007261;
    color: #666;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: .9em;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    padding: 1em 1.5em;
    display: block;    
}
.date-and-tags{
  margin: .2rem 1rem;
}
.date-and-tags a{
  margin: auto .5rem;
  font-style: italic;
  font-size: small;
  border-bottom: 1px dotted #001400;
}
.date{
  font-weight: 100;
  color: #007261;
}
/* --- Post navigation: prev, next and home --- */
.postsNav{
  margin: 2rem .3rem .3rem;
  display: flex;
  justify-content: space-between;
    align-items: center;
}
.postsNav a{
  padding: .5rem;
  letter-spacing: .2rem;
}
.postNavItem *, .postsNav a{
  transition: color .3s linear;
}
.icon{
  margin: 0 .4rem;
}
.postNavItem:hover *, .postsNav a:hover{
  color: #007261;  
}


/* ==== Media Queries ==== */

@media (max-width: 768px){
    
    .nav-collapse{
        display: block;
        margin-right: 1rem;
    }
    .nav-collapse:hover, #close-menu{
        cursor: pointer;
    }
    .nav-collapse *, #close-menu{
        transition: color .3s;
    }
    .nav-collapse:hover *, #close-menu:hover{
        color: #007261;
    }
    .navbar-nav-small{
       position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #b1d2db;
        text-align: center;
        text-transform: uppercase;
        font-size: 2em;
        letter-spacing: .1em;
        padding: 2rem;
        z-index: 1000;
    }
    .navbar-nav-small li{
        padding: .5em;
    }
    .navbar{
        display: none;
    }
    .main-section{
        display: block;
    }
    .header h1{
        font-size: 1.8rem;
        
    }
    .main-section > *:nth-child(2){
        margin-bottom: 3rem;
    }
    .main-section aside{
        display: grid;
        justify-items: center;
    }
    .main-section aside img{
        max-height: 30vh;
    }
    article pre{
        font-size: .8em;
    }
}
   


/*======= COLOR THEME
dark green modern designer theme
#b1d2db  	rgb(177, 210, 219)
#007261
#1c4a47
#1b2e28
#202020
========*/
/*======= MEDIA QUERIES
Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
========*/

/* dodać do wszytskich elementów z font awesome dodatkową klasę, żeby razem im nadać rtansition i zmianę koloru po najechaniu?

zmienić kolory w fas - bo jak się normalnie doda jak człowiek to, haha , można je sobie dowolnie ostylować... kuuuur...
*/
