@import url(reset.css); /*reset browser styles*/
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand+SC&family=Square+Peg&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap');


html{
    
    font-family: Arial, Helvetica, sans-serif;
    font-size: 62.5%; /*wyjściowo 18px, 62.5 % daje około
                        10px i łatwo przliczać*/ 
}

body{
    width:800px;
    margin: 10px auto;
    background-color: white;
    
}

h1{
    font-size: 2.6rem;
    line-height: 3.4rem;
    color: #679A01;
    margin: 2rem 0;
}

h2{
    font-size: 2.2rem;
    line-height: 3.2rem;
     margin: 2rem 0;
}

h3{
    font-size: 2.0rem;
    line-height: 2.8rem;
    margin: 2rem 0;
}

strong{font-weight: bold;}

a{
    text-decoration:none;
    color: #679A01;
}

blockquote{
    font-family: 'Roboto Slab', serif; 
    font-style: italic; /*font-weight: bold;*/
    font-size:2rem; 
    line-height: 3rem;
}
blockquote span.cancelstyle{font-style: normal;}

q{font-size:1.6rem;/*font-style: italic;font-stretch: semi-condensed;*/}


header, article, aside {
    font-size: 1.8rem;
    line-height: 2.4rem;
    color: #666;
}

footer{
    font-size: 1.3rem;
    color: #666;
    line-height: 1.7rem;
    border-top-style: solid;
    border-top-color: #679A01;
    margin-top: 2rem;
    padding-top: 1rem;
}

.logonav .checkbox, .display-atlas-list .checkbox{
    height: 4rem;
    width: 4.1rem;
    margin: 1.5rem 2rem;
    display: none;
    opacity: 0;
    cursor: pointer;
}

#atlas_list, #hamburger_menu{
    
    border-radius: 5px;
    padding: 0.5rem;
    margin: 1.5rem 2rem;
    background: #FFF;
    height: 3rem;
    width:3rem;
    
    -webkit-box-shadow: 1px 1px 6px 0px #999;
    box-shadow: 2px 2px 6px 0px #999;
    
    display: flex; /*to center text verticaly*/
    justify-content: center;
    align-items: center;
    
    display: none; 

    
}
.material-symbols-outlined{color:#679A01;} /*color icons*/

/*hamburger and atlas icon */
.logonav .menu-icons{
    
    height: 3rem;
    width: 3rem;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 1.5rem 2rem;
    background: #FFF;
    position: fixed;
    top: 0;
    right: 0;
    
    /*to center hamburger menu and close icons verticaly and horizontaly*/
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 99998;
    
    -webkit-box-shadow: 1px 1px 6px 0px #999;
    box-shadow: 2px 2px 6px 0px #999;
    
    display: none;

}

.display-atlas-list .menu-icons{
    
    height: 3rem;
    width: 3rem;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 1.5rem 2rem;
    background: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    
    /*to center hamburger menu and close icons verticaly and horizontaly*/
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 99998;
    
    -webkit-box-shadow: 1px 1px 6px 0px #999;
    box-shadow: 2px 2px 6px 0px #999;
    
    display: none;

}

.menu-icons .icon1 {
display: none;
}

.menu-icons .icon2 {
    display: block;
}


.logonav * { /* asterisk * all children, ?no difference with >* all direct children? */
    display: inline;
  
}
.logonav img{ 
    float:left;
    width:18.375%;
}

nav {
    width:81.625%;
    margin-right: 0px;
}

nav ul li{
    float:right;
    padding-top: 80px;
}

nav ul li a{
    font-size: 1.6rem;
    padding: 5px;
}

.currentpath{
    clear: both; /*clears in .logonav display inline and float for the content below*/
    background-image: url(_img/baner/akacja_140.jpg);
    height: 105px;
}

.currentpath li{float:left}

.currentpath a{
    color: #FFF;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.8);
    padding: 80px 4px 0;
    display:block;
    font-size: 2.2rem;
}

main{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


aside{
    width: 25rem;
    margin-top: 4rem;
}

aside p:first-child{font-size: 2rem; margin-bottom: 2rem; text-decoration: underline;}

/*hide lists od plants beginning with other letters*/
.hoverme ul{display: none;}
/*display a list of plants beginning with the same letter*/
.hoverme:hover ul{display: block;}

article{
    width: 66.25%;
    margin-top: 2rem;
}

article > header > figure{
    padding: 0 2rem 0 0;
    margin: 0 auto; 
    float: left;
}

article > header > h1{
    padding: 0;
    margin: 0;
    float: right;
} 

article ul{
    padding: 2rem 0 2rem 5rem;
}

article p, blockquote {
    margin: 2rem 0;
   /* padding: 2rem 0;*/
}

article a img{margin: 5rem auto;}
article > figure{
    width: 500px;
    margin: 0rem auto;
    padding: 1.3rem;
    border-style: solid;
    border-width: thin;
    border-color: #888;
    -webkit-box-shadow: 1px 1px 3px 2px #999;
    box-shadow: 2px 2px 4px 0px #999;
    
    -webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	-ms-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}


article > figure:nth-child(3n) {
	-webkit-transform: rotate(0.5deg);
	-moz-transform: rotate(0.5deg);
	-o-transform: rotate(0.5deg);
	-ms-transform: rotate(0.5deg);
	transform: rotate(0.5deg);
}

article > figure:nth-child(3n+1) {
	-webkit-transform: rotate(-1deg);
	-moz-transform: rotate(-1deg);
	-o-transform: rotate(-1deg);
	-ms-transform: rotate(-1deg);
	transform: rotate(-1deg);
}

article > figure {
	-webkit-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-o-transform: scale(1.05);
	-ms-transform: scale(1.05);
	transform: scale(1.05);
	position: relative;
	z-index: 10;
}

article > figure:nth-child(3n+2) {
	-webkit-transform: rotate(1deg);
	-moz-transform: rotate(1deg);
	-o-transform: rotate(1deg);
	-ms-transform: rotate(1deg);
	transform: rotate(1deg);
}

figure figcaption{
    color: #333;
    font-family: 'Patrick Hand SC', cursive;
    font-family: 'Square Peg', cursive;
    font-size: 3.2rem;
    line-height: 3.5rem;
    text-align: center;
    font-weight: bold;
    color: #555;
}

#currentplant, #currentletter{
    color: #666;
}



figure{
    padding: 1rem 0;
}

ol{
    list-style-type: decimal;
}

a[href="#gora_strony"]{
    display: block;
    width: 100%;
    text-align: center;
}


footer .right {
    float:right;
}

footer ul li{
    padding:0 5px;
    border-left-style: solid;
    border-left-width: thin;
    border-left-color: #666;
    display:inline;
}

footer ul li a{
    color: #666;
}

footer ul li:last-child{
    border-right-style: solid;
    border-right-width: thin;
    border-right-color: #679A01; 
}

footer address{
    padding: 2rem 0 1rem 0;
    float:right;
}

footer .fb_likes{
    position:absolute;
    padding: 2rem 0 2rem 0;
    
}


@media all and (max-width: 840px) {

    .logonav img, .navigation, aside{display: none;}
        
    body{
        width:100%;
        margin:0;
    }
    
    article, footer{
        width: 80%;
        margin: 0 auto;
    }
    
    footer div.right ul, footer div.right address, footer p.copyright{display: none;}
   
    /*for displaying main menu and atlas menu*/
    
    .logonav .checkbox{
        
       display: flex;
       position: fixed;
       top: 0;
       right: 0;
       z-index: 99999;
    }   
    
    .display-atlas-list .checkbox{
        
       display: flex;
       position: fixed;
       top: 0;
       left: 0;
       z-index: 99999;
    }
    
    .logonav .menu-icons, .display-atlas-list .menu-icons {display: flex;}
    
    .logonav nav ul{  
        
        display: flex;
        flex-direction: column-reverse;
        padding: 3rem 0;
        width: 25rem;

        position: fixed;
        top: .5rem;
        right: .5rem;
        z-index: 9999;
        
        background: #FFF;
       /* border: 1px solid #ccc;*/
        border-radius: .3rem;
        -webkit-box-shadow: 1px 1px 2px 0px #999;
        box-shadow: 1px 1px 2px 0px #999;
    }
    
    nav ul li{

        text-align: right;
        padding: 0rem 3rem 0 0;
        margin-bottom: .5rem;
        margin-right: 8rem; 
        
        background: url(assets/leafGreen.svg) right center no-repeat;
        background-size: contain;
        line-height: 2.5rem;

    }
    
    aside{  
        
        padding: 6rem 3rem 2rem 3rem; 
              
        position: fixed;
        top: -3.5rem;
        left: .5rem;
        z-index: 9999;
        
        background: #FFF;
        /*border: 1px solid #ccc;*/
        border-radius: .3rem;
        -webkit-box-shadow: 1px 1px 2px 0px #999;
        box-shadow: 1px 1px 2px 0px #999;
    }
    
    /*don't display the title "Rosnący Atlas Drzew"*/
    aside p:first-child{display: none;}
    
/*display main menu by clicking hamburger menu*/
    
    .logonav input[type="checkbox"]:checked ~ .navigation{ 
        display: block; 
    }

    .logonav input[type="checkbox"]:checked ~ .menu-icons .icon1 {
      display:block;
    }

    .logonav input[type="checkbox"]:checked ~ .menu-icons .icon2 {
      display: none;
    }

/*display atlas menu*/
    .display-atlas-list input[type="checkbox"]:checked ~ aside{ 
        display: block; 
        width: auto;
        max-height: 85vh;/* 85% of screen hight*/
        overflow: auto;/*to scroll the hidden part*/
    }

    .display-atlas-list input[type="checkbox"]:checked ~ .menu-icons .icon1 {
      display:block;
    }

    .display-atlas-list input[type="checkbox"]:checked ~ .menu-icons .icon2 {
      display: none;
    }
    


}

@media all and (max-width: 688px) {
    article, footer{
        width: 90%;
        margin: 0 5%;
    }
    
    
}

@media all and (max-width: 620px) {
    
    ul.currentpath li{display: none;}
    
    article, footer{
        width: 100%;
        margin: 0;
        text-align: center;
        
    }
    
    article > header{
        clear: both; /*clear float left and right*/
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
       
    }
    
    article > header > figure{
        /*display: flex;*/
        padding: 0;
        margin: 0 auto;
    }
    
    article > figure{width: 90%;}
    article > figure img{
        width: 100%;
        height: auto;
    }
    article a img{
        width: 100%; 
        height: auto;
    }
    article ol{margin-left: 3rem; text-align: left;}
    article ul{padding: 0;}
    
}