/* global tags */
h2 {
    line-height:0.1;

}

h3 {
    line-height:0.1;
}

body {
    font-family: sans-serif;
    line-height: 1.5;
}

header {
    background-color: #263d36;
    background-image: url("https://img.bestrecipes.com.au/XUbAY9Wf/br/2019/06/pancakes-952756-1.jpg");
    background-position: center -125px;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1.2;
    padding: 10vw 2em;
    text-align: center;
    background-color: #efe9dc;
    border-style: solid none;
    border-width: 2px;
    border-color: #8a806b;
}

span {
    color: red;
}

label, input, textarea {
    display: inline-block;
    font-weight: bold;
}

/* nav and footer */

.navbar {
    z-index: 1;
    top: 0; /* Stay at the top */
    background: #e3d8c1; 
    font-weight: bold;
    margin-bottom: 20px;
    position: sticky;
    border-bottom: 2px double #464141;
    display: flex; 
    justify-content: space-between;
}

.navbar a {
    padding: 10px 15px;
    font-size: 16px;
    color: #464141;
}

.navbar a:hover{
    background-color: #8a806b;
    color: #ffffff;
}

#navHomepage {
    color: white; /* main colour of title nav */
    font-size: 30px;
    float: left;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #464141; /* the outline of title nav */
}

.dropdownMenu {
    justify-content: flex-end;
    overflow: hidden;
    float: right;
}

.dropdownMenu:hover {
    background-color: #8a806b;
}

.dropdownMenu #dropdownBtn {
    font-size: 30px;  
    border: none;
    outline: none;
    color: #464141; /* the colour of the icon */
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdownContent {
    display: none;
    position: absolute;
    right: 0px;
    background-color: #e7decb; /* background colour of dropdown content menu */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdownContent a {
    float: none;
    color: black; /* the colour of the text in dropdown content menu */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdownContent a:hover {
    background-color: #8a806b; /* background colour of dropdown item when hovered */
    border: 2px double #464141; /* border of dropdown item when hovered*/
}


.dropdownMenu:hover .dropdownContent {
    display: block;

}

#footerNav {
    background: #e3d8c1;
    padding-top: 10px;
    padding-bottom: 5px;
    margin-top: 0px;
    margin-bottom: -10px;
    width: 100%;
    font-weight: bold;
    text-align: center;
    position: absolute;
}

#footerNav a {
    color: #464141;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    vertical-align: auto;
}

#footerNav a:hover {
    color: #000000;
    text-decoration: none;
}

#copyrightDisclaimer {
    padding: 0px 15px;
    float: right;
    font-size: 12px;
    line-height: 0px;
}

#footerCredit {
    padding: 0px 15px;
    float: left;
    font-size: 14px;
    line-height: 0px;
}

/* classes and ids */

#submitRecipeTitle {
    height: 25px;
    width: 300px;
    font-size: 1.6em;
    line-height: 1px;
    background-color: #efe9dc;
    padding-top: 25px;
    margin: auto;
    border: #000000;
    border-radius: 20px;
    border-style: solid none;
    border-width: 1px;
}

.recipeForm { /* the entire div */
    border-collapse: collapse;
    border-radius: 10px;
    border-style: none double;
    border-width: 2px;
    margin: 20px auto;
    padding-top: 1px;
    padding-bottom: 20px;
    width: 40%;
    background-color: #efe9dc;
    /* text-align: center; */
}

.recipeForm label {
    font-size: 18px;
}

.recipeForm input, .recipeForm textarea, .recipeForm select {
    font-family: Arial, Helvetica, sans-serif;
    padding: 5px 5px;
    font-weight: normal;
    font-size: 16px;
}

.formInput {
    /* display: inline; */
    margin-left: 20px;
}

#title {
    width: 50%;
    height: 20px;
}

#ingredients {
    width: 60%;
    height: 100px;   
}

#method, #notes {
    width: 80%;
    height: 150px;
}

.formLabel {
    display: block;
    padding-left: 20px;
    padding-top: 20px;
}

.formComments {
    padding-left: 20px;
    display: block;
    font-size: 12px;
}

#submitButton {
    margin: 20px 20px;
    cursor: pointer;
    border: none;
    padding: 10px;
    border-radius: 10px;
    background-color: #dfd3b9;
    font-weight: bold;
}

#submitButton:hover {
    background-color: #e3d8c1;
}
