
* {
    margin: 0;
    padding: 0;}


body {width: auto;}

header a img {
    display: none;
    width: 100%;}

/* <------------------- */
/* Navigation */

nav li {position: relative;}

/* <------------------- */
/* Positioning of Menu-btn and Open and Close Pictures */

nav .menu-btn, nav>img {
    height: 50px;
    width: 50px;
    position: fixed;
    top: 5px;
    right: 10px;}
nav>img {z-index: 6;}

/* <------------------- */
/* Switching between Opening and Closing Main-Menu (On Phone) */

nav .menu-btn ~ .menuicon {display: block;}
nav .menu-btn:checked ~ .menuicon  {display: none;}

nav .menu-btn ~ .closeicon {display: none;}
nav .menu-btn:checked ~ .closeicon  {display: block;}

/* <------------------- */
/* Main-Menu */

nav .menu-btn { /* <--- Botton */
    display: block;
    z-index: 7;
    opacity: 0;
    cursor: pointer;}
nav .menu-btn ~ ul {
    display: none;
    background-color: hsl(120, 100%, 30%);
    position: fixed;
    width: 100%;
    list-style-type: none;
    text-transform: uppercase;
    font-size: 24px;
    padding-top: 50px;
    height: 100%;}
nav .menu-btn ~ ul h2, h2>a {
    height: 50px;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 24px;
    cursor: pointer;}
nav .menu-btn:checked ~ ul {display: block;}
nav .menu-btn ~ ul img {
    display: none;
    position: absolute;
    top: 0;
    left: 80px;
    height: 50px;
    width: 50px;}
nav .menu-btn:checked ~ ul img  {display: block;}

/* <------------------- */
/* Sub-Menu */

.submenu-btn {
    cursor: pointer;
    position: absolute;
    top: 0;
    display: block;
    opacity: 0;
    width: 100%;
    height: 50px;}
nav .submenu-btn ~ ul {
    display: none;
    width: 100%;
    height: 100%;
    line-height: 50px;
    text-align: center;
    flex-direction: column;
    align-items: flex-end;
    list-style-type: none;
    background-color: hsl(118, 82%, 39%);}
nav .submenu-btn ~ ul li {width: 100%;}
nav .submenu-btn ~ ul li a {
    display: flex;
    flex: auto;
    padding-top: 10px;
    justify-content: center;
    color: darkslategrey;
    text-decoration: none;}
nav .submenu-btn:checked ~ ul {display: flex;}

/* <------------------- */
/*Main*/

main {
    margin: 0rem 2rem;
    padding-top: 32px;
    padding-bottom: 32px;}
    main section {
        background-color:  hsl(0, 0%, 95%);
        padding: 0 1rem;
        margin: auto;
        width: auto;}
        main section>img {
            display: block;
            width: 100%;
            height: 100%;}
        main section ul { /* <--- Nyeste Planter I Databasen (Pictures) */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly;
            list-style-type: none;
            padding-bottom: 32px;}
            main ul>div {
                display: flex;
                justify-content: center;
                background-color: hsl(0, 0%, 85%);
                margin-top: 32px;}
                .opacity:hover {opacity: 0.8;}
            main section li p a { /* <--- Nyeste Planter I Databasen (Text) */
                display: flex;
                width: auto;
                height: 32px;
                text-decoration: none;
                justify-content: center;
                color: darkgreen;}

/* <------------------- */
/* Classes */

.links {color: green;} /* <--- Visible Links*/
    .links:visited {color:red;}
    .links:hover {color: darkslategray;}
    .links:active {color: red;}

/* <------------------- */
/* Footer */

footer {
    width: 100%;
    height: 40px;
    background-color: darkgreen;
    display: flex;
    justify-content: right;
    align-items: baseline;}

/* <------------------- */
/* All Text */

h1, h2, h3 {line-height: 4rem;}
h1, h2, h3, h4, h5, h6 {
    font-family: "Patrick Hand";
    font-weight: 700;
    Color: darkgreen;}
h4, h5, h6 {line-height: 2rem;}
h5, h6 {font-size: 1rem;}

/* 1 Text */

h1 {font-size: 3rem;}
h2 {font-size: 2rem;}
h3 {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    text-shadow: -2px -2px silver;
    background-color: hsl(0, 0%, 80%);}
h4 {font-size: 1.2rem;}

p {
    font-family: "Open Sans";
    font-weight: 400;
    Color: darkslategray;
    line-height: 2rem;}

/* <------------------- */
/*Grøntsager*/

.grøntsager {
    display: flex;
    flex-direction: column;}
.grøntsager h1, h2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;}
.grøntsager img {
    max-width: 300px;
    max-height: 500px;}
/* <------------------- */
/* Kontak os */

.kontakt {
    display: flex;
    flex-direction: column;}
.kontakt li {
    list-style-type: none;
    position: relative;}

.kontakt main, .kontakt section {height: 100%;}
.kontakt article {padding: 1rem 0;}

label {
    display: inline-block;
    width: 10rem;
    font-family: "Open Sans";
    font-weight: 400;
    Color: darkslategray;}

textarea {
    height: 100px;
    background-color: lightgrey;
    width: 141px;}

.kontakt input {background-color: lightgrey;}
.kontakt input[type=text], input[type=email], textarea {width: 8rem;}
.kontakt input[type=number], input[type=submit], select {width: 5rem;}
.kontakt input[type=submit] {
    cursor: pointer;
    margin-left: 1.5rem;}

.plantesubmenu-btn {
    cursor: pointer;
    height: 15px;
    width: 15px;}
.plantesubmenu-btn ~ ul {display: none;}
.plantesubmenu-btn:checked ~ ul {display: block;}
.plantesubmenu-btn:checked ~ .submit{margin-left: 31.6rem;}

/* <------------------- */

@media only screen and (min-width: 1024px) {
    
    header a img {display: flex;}

    /* <------------------- */
    /* *Positioning of Menu-btn and Open and Close Pictures */

    nav .menu-btn ~ .menuicon, nav .menu-btn, nav .submenu-btn {display: none;}

    /* <------------------- */
    /* Navigation */

    nav {
        top: 0;
        position: sticky;
        height: 50px;
        background-color: darkgreen;
        line-height: 50px;}
        
    nav .menu-btn ~ ul li:hover .submenu-btn ~ ul {display: block;}
    
    /* <------------------- */
    /* Main-Menu */

    nav .menu-btn ~ ul {
        display: flex;
        justify-content: space-evenly;
        position: absolute;
        background: none;
        padding-top: 0px;
        height: 0;}
    nav .menu-btn ~ ul li {
        flex: auto;
        margin-top: 0;}

    /* <------------------- */
    /*Sub-Menu */

    nav .submenu-btn ~ ul {
        display: none;
        position: absolute;
        background-color: hsl(120, 100%, 30%);
        text-transform: none;
        height: auto;
        font-size: 20px;
        margin-top: 0;}
    nav .submenu-btn ~ ul li:hover {background-color: hsl(120, 100%, 25%);}
    nav .submenu-btn ~ ul li a {
        padding-top: 0;
        color: black;}

    /* <------------------- */
    /* Main */

    main section {width: 1000px;}
    main section>img {display: block;}
    main section ul {flex-direction: row;}

    /* <------------------- */
    /*Grøntsager*/

    .grøntsager {
        align-items: flex-start;
        flex-direction: column;} 
    .grøntsager section>div {
        display: flex;
        flex-direction: row;}
    .grøntsager .grøntsageroverskrift {
        display: flex;
        flex-direction: column;}
    .grøntsager img {
        max-width: 400px; /*400*/
        max-height: 566px; /*566*/}
    .grøntsager article {padding-left: 1rem;}

    /* <------------------- */
    /* Kontakt-os / Kontakt-Besked */

    .kontakt, .kontaktbesked, html {height: 100vh;}
    .kontakt body, .kontaktbesked body {
        display: flex;
        flex-direction: column;
        height: 100%;}

    .kontakt, .kontaktbesked, header, nav, footer{flex-shrink: 0;}

    .kontakt, .kontaktbesked main, section {height: 100%;}

    .kontakt label {width: 25rem;}

    .kontakt input[type=text], input[type=email], textarea {width: 15rem;}
    .kontakt input[type=number], input[type=submit], select {width: 7rem;}
    .kontakt input[type=submit] {
    cursor: pointer;
    margin-left: 4.5rem;}

    /* <------------------- */
    
}


/* Notor */
/*<p></p> = px default 13.3px*/
/* margin: 0rem 3rem; 1rem = 16px 2rem = 32px */
