/*---General settings---*/

*{  font-family: Arial, Helvetica, sans-serif;
    font-size:30px;
    color:black;
    margin:0%;
    padding:0%;
    box-sizing:border-box;
}

body {
    background-color: #81a974;
}

@media (min-width:800px){
    #body {overflow:hidden;}
}

#wrapper {
    /*main grid*/
    display: grid;
    grid-template-areas:
    "header" /* header */
    "nav" /*navigation*/
    "main" /* main content */
    "footer"; /* footer */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 3fr 1fr;
    overflow: scroll;
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #wrapper {
    font-size: larger;
    display:grid;
    grid-template-areas: 
    "header" /* header */
    "nav" /*navigation*/
    "main" /* main content */
    "footer"; /* footer */
    grid-template-columns: 1fr;
    grid-template-rows: minmax(100px,auto) minmax(100px,auto) minmax(500px,auto) minmax(100px,auto);
    overflow: hidden; 
}

a {
  text-decoration:none;
}

/*---Header settings---*/

}
/* Header including subtitle*/
header {
    grid-area: header;
    display: grid;
    grid-template-areas: "logoimage"
                        "description";
    grid-template-columns:1fr;
    grid-template-rows: minmax(auto, auto) minmax(auto, auto);
    background-color: white;

}

/* Logo- */
#logoimage {
    grid-area: logoimage;
    display: block;
    align-items: center;
    width: 75%;
    max-width: 782px;
    margin: 10px auto;

}

.logoimage > * {
    max-width: 100%;
}

/* Quick description */
h1 {
    text-align: center;
    font-size:16px;
    color: #0e662a;
    padding-bottom: 1%;
    font-style: italic;
}

/* For screens larger than 800px wide*/
@media (min-width:800px) {
h1 {
    text-align: center;
    font-size: 22px;
    color: #0e662a;
    padding-bottom: 1%;
    font-style: italic;
    }
}


/*---Navigation settings---*/
nav{
    grid-area: nav;
    background-color: black;

}

#navmenu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    list-style-type: none;
    align-items: center;
    padding: 1%;
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
#navmenu {
display: flex;
flex-direction: row;
justify-content: space-around;
list-style-type: none;
align-items: center;
padding: 1%;
    }
}

.link {
    color: white;
    font-size: 2vw;
}

.link:hover {
    color: #072711;
    font-weight: bold;
}

a:visited {
    color: pink;
}
/*---Main settings---*/

main {
    grid-area: main;
    background-color: #cfd3c4;
}

@media (min-width:800px) { 
    #main{
        min-height: 500px;
    }
}

/*---Main settings Home Page---*/

#mainhome{
    background-image: url(../images/npurplestar.jpg);
    /*---Image taken by developer---*/
    background-repeat: no-repeat;
    background-size: cover;
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #mainhome{
    background-image: url(../images/npurplestar.jpg);
    /*---Image taken by developer---*/
    background-repeat: no-repeat;
    background-size:cover;
    height: 100%;
        }
}

#hometext {
    color: aliceblue;
    font-style: italic;
    font-weight: bold;
    font-size: 1em;
    padding: 1%;
    text-align: center;
    text-wrap: inherit;
    text-shadow: 0px 0px 5px #000;
}

.subheadings {
    color: black;
    padding: 1%;
    font-size: 0.5vw;
    font-weight: bold;
}
/*---Main Settings Contact Us--*/

#contactmain {
    grid-area: main;
    display: grid;
    grid-template-areas: "contact space" ;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
}

#contactform {
    grid-area: contact;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    padding: 1%;

}

/*---Main Settings Perth Soils--*/
#soiltypes {
    grid-area: main;
    display: grid;
    grid-template-areas:"soil1"
                        "soil2";
    grid-template-columns: minmax(100px,auto);
    grid-template-rows: 1fr 1fr;
    padding:1%;
}

#soil1 {
    grid-area: soil1;
}

#soil2 {
    grid-area: soil2;
}

.soildescriptions{
    font-style: italic;
    padding: 1%;
    font-size: 1em;
    color: #072711;
}

#soiltypes h2,h3 {
    font-style: italic;
    padding: 2%;
    font-size: 1.5em;
    text-align: center;
    color: #072711;
}

/*---Main settings Plants for Perth---*/
#plantsperth {
    grid-area: main;
    display: grid;
    grid-template-areas:"title title"
                        "picture1 description1"
                        "picture2 description2"
                        "picture3 description3"
                        "picture4 description4";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    padding: 0%;
    
}

#planttext {
    grid-area: title;
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #plants {
    grid-area: main;
    padding: 1%;
        }
    }        

/*---Main settings irrigation---*/
#irrigation {
    grid-area: main;
    display: grid;
    grid-template-areas:"title title"
                        "newsarticle ctitle1"
                        "newsarticle course1"
                        "newsarticle ctitle2"
                        "newsarticle course2"
                        "newsarticle stitle"
                        "newsarticle services";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 0%;
    
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #irrigation {
    grid-area: main;
    padding: 1%;
    min-height:500px;
        }
    }  

/*---Main settings Links and Events---*/
#perthlinks {
    grid-area: main;
    display: grid;
    grid-template-areas:"title title"
                        "link1 description1"
                        "link2 description2"
                        "link3 description3";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    padding: 0%;
    
}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #perthlinks {
    grid-area: main;
    padding: 1%;
    min-height:500px;
        }
    }

/*---Main settings Gallery--*/

#gallerymain {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

}

.gallerypic {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; padding: 1%;
    border: #9791ac;
    border-radius: 20px;
    border-style: double;

}

/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #gallerymain {
        flex-direction: row;
    }
}

/*---Footer settings---*/

footer {
    grid-area: footer;
    background-color: black;
    text-align: center;
}

/* For screens less than than 800px wide*/
#fmenu {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    list-style-type: none;
    padding: 1%;
    font-size: 1em;
}


/* For screens larger than 800px wide*/
@media (min-width:800px) { 
    #fmenu {
    font-size:1em;
    display:flex;
    justify-content: space-around;
    flex-direction: row;
    list-style-type: none;
    padding: 1%;
    }
}

.flink {
    color: white;
}

.flink:hover {
    color: #9791ac;
    font-weight: bold;
}

#gotop {
    color: white;
    display: block;
    padding: 1%;
}

#ftext {
    color: white;
    padding: 1%;
    font-size: 1vw;
}

em {
    font-size: 1vw;
    color: white;
}