@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');





/*  */
/* GLOBAL */
/*  */

body {
    color: darkslategray;
    background-color: rgb(60, 100, 50);;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

h1,h2 {
    color: darkgreen;
    font-family: 'Patrick Hand', cursive;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

main {
    margin-top: 180px;
}



/* Footer */

footer {
    background-color: darkgreen;
    color: white;
    height: 30px;
    padding: 1px;
    box-sizing: border-box;
    text-align: center;
}

footer p {
    margin: 0;
}



/* Header */

header {
    position: fixed;
    background-color: whitesmoke;
    margin: 0;
    z-index: 10;
    width: 100%;
    top: 0;
}

header h1 {
    margin: 10px 0 0 100px;
    font-size: 3rem;
}

header p {
    margin: 0 0 0 100px;
}

header nav {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

header nav a,#plant-selector {
    background-color: darkgreen;
    color: mintcream;
    text-decoration: none;
    height: 30px;
    display: inline-block;
    width: 10%;
    min-width: 90px;
    padding: 5px;
    box-sizing: border-box;
    margin: 0 2%;
    transition: 250ms;
    user-select: none;
    border-radius: 0.5vh 0.5vh 0 0;
}

.menuitem {
    padding: 5px;
}

#activenav {
    background-color: rgb(60, 100, 50);
}

#plant-selector {
    position: relative;
    display: inline-block;
}

.plant-dropdown {
    display: none;
    position: absolute;
    background-color: darkgreen;
    z-index: 1;
    left: 0;
}

.plant-dropdown a {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

#plant-selector:hover .plant-dropdown {
    display: block;
}

header nav a:hover,#activenav:hover {
    background-color: rgb(70, 110, 60);
}


/*  */
/* Homepage */
/*  */

/* Aboutbox */

#aboutbox {
    display: block;
    text-align: center;
    max-width: 75%;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5%;
    border-radius: 1vh;
    box-shadow: 0 0 5vh rgba(0,0,0,0.1);
}

#aboutbox p {
    font-size: 1rem;
    margin: 1%;
    color: white;
}



/* Infobox */

#infobox-container {
    width: 100%;
    height: 50vh;
    align-items: center;
    display: flex;
}

#infobox {
    width: 70vw;
    min-width: 504px;
    min-height: 180px;
    height: 25vw;
    background-color: beige;
    padding: 10px;
    box-sizing: border-box;
    margin: auto;
    margin-top: 5vh;
    border-radius: 1vh;
    overflow: hidden;
}

#infobox h2 {
    margin: 0.5vw;
    font-size: 2vw;
}

#infobox p {
    margin: 0.8vw;
    font-size: max(1.25vw, 0.8vh);
}

#infobox a {
    color: rgb(100, 100, 100);
}

#infobox article {
    width: calc(45vw);
    display: inline-block;
    height: 100%;
}

#infobox aside {
    display: inline-block;
    position: absolute;
    height: 25vw;
    width: 25vw;
    min-height: 180px;
    min-width: 180px;
    right: 15vw;
    border-radius: 0 1vh 1vh 0;
    margin: -10px -10px 0 0;
    background-image: url('./img/Forside-hoejbed1.jpg');
    background-position: center;
    background-size: cover;
}



/* Newest plant box */

#feature-background-container {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    background-image: url('./img/Forside-hoejbed2.jpg');
    background-position: center;
    background-size: cover;
    bordeR: solid black;
    border-width: 10px 0 0 0;
}

#newest-plants-container {
    text-align: center;
    padding: 15px;
    background-color: oldlace;
    width: min(max(400px, 40%), 100%);
    margin: auto;
    margin-top: 20vh;
    border-radius: 1vh;
}

#newest-plants-container h3 {
    margin: 2%;
}

#newest-plants-container a {
    text-decoration: none;
    color: mediumseagreen;
}

#newest-plants-container a:visited {
    text-decoration: none;
    color: mediumseagreen;
}

#newest-plants-container ul li div {
    width: 100%;
    height: 82%;
    margin: auto;
    border-radius: 0 0 1vh 1vh;
}

#newest-plants-container ul li {
    display: inline-block;
    margin: 5% 1%;
    text-align: center;
    font-size: 16px;
    background-color: beige;
    width: 30%;
    height: min(max(400px, 20vw), 36vh);
    border-radius: 1vh;
}



/*  */
/* Plant info page */
/*  */

/* Plant name and headers */

.plantinfo-headers {
    width: 100%;
    width: 95%;
    margin: auto;
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 1vh;
}

.plantinfo-headers h2,.plantinfo-headers h3 {
    margin: 0;
}



/* Plant general info box */

.plantinfo-general {
    width: 95%;
    margin: auto;
    box-sizing: border-box;
    padding: 20px;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 1vh;
}

#plantinfo-general-desc {
    width: 100%;
}

#plantinfo-general-fri,#plantinfo-general-for {
    display: inline-block;
    width: 49%;
    box-sizing: border-box;
    padding: 10px;
    margin: auto;
}

#plantinfo-general-fri h4,#plantinfo-general-for h4 {
    margin: 5px;
}

#plantinfo-general-fri p,#plantinfo-general-for p {
    margin: 5px;
}



/* Plante detalje & billede box */

.plantinfo-details {
    margin: auto;
    margin-bottom: 10px;
    width: 95%;
    box-sizing: border-box;
    border-radius: 1vh;
}

#plantinfo-details-factbox {
    display: inline-block;
    margin: 0 0 0 0;
    padding: 10px;
    box-sizing: border-box;
    width: 74%;
}

#plantinfo-details-factbox article {
    display: inline-block;
    width: 24%;
    margin: 3px;
    vertical-align: top;
}

.plantinfo-details img {
    width: 15%;
    display: inline-block;
    vertical-align: bottom;
    border-radius: 1vh 0 0 1vh;
}

.plantinfo-details h6 {
    font-size: 1rem;
    margin: 10px;
}

.plantinfo-details p {
    margin: 10px;
}

.plantinfo-details p span {
    font-weight: bold;
}



/* Farver for plante info sider */

/* Primær boks farve */

.plantinfo-headers,.plantinfo-general,.plantinfo-details {
    background-color: beige;
}

/* Sekundær boks farve */

#plantinfo-details-factbox article,#plantinfo-general-fri,#plantinfo-general-for {
    background-color: antiquewhite;
}



/*  */
/* Kontakt side */
/*  */

.generic-infobox {
    width: 90%;
    background-color: beige;
    margin: 1% auto;
    padding: 1%;
    border-radius: 1vh;
}

.generic-infobox p {
    margin: 0.5%;
}

.generic-infobox h2 {
    margin: 0.5%;
}

form div {
    background-color: antiquewhite;
    padding: 0.5%;
    margin: auto;
    display: inline-block;
    border-radius: 0.5vh;
}

#contactinfo-box {
    text-align: center;
}

#contactinfo-box>* {
    margin: auto 0.2%;
}

#contact-message {
    display: block;
    margin: 1% auto;
}

#contact-message label,#contact-message input {
    width: 90%;
    margin: 0 auto;
    display: block;
}

#contact-message input {
    height: 20vh;
}

form button {
    background-color: white;
    min-width: max-content;
    width: 10%;
    display: block;
    margin: auto;
}