@charset "utf-8";
/*styles main body of pages with background and font colour*/
body {
    margin: 0px;
    padding: 0px;
    font-family: sans-serif;
    color: #333333;
    background-color: #f0f0f0; 
}

/*styles all forms*/
form {
    font-size: medium;
    color: #333333;
    margin: 20px;
    padding: 20px;
    background-color: #ffffff; 
    /*makes corners rounded*/
    border-radius: 8px;
}

/*styles all forms, padding*/
input, textarea, select {
    padding: 10px;
    /*font matches the pages*/
    font-family: inherit !important;
    font-size: medium;
    background-color: #f9f9f9; 
    border: 1px solid #cccccc;
    border-radius: 4px;
}

/*styles submit and reset buttons*/
input#reset, input#submit {
    margin: 10px 0px 10px 0px;
    padding: 10px;
    border-radius: 4px;
    color: white;
    border: none;
}

/*styles the header for all pages (bit with the title of the page)*/
div#head {
    margin: 0px 0px 30px;
    padding: 30px;
    background-color: #FF69B4; 
    text-align: center;
}

/*styles all h1 font withing the header*/
div#head h1 {
    margin: 0px;
    font-size: 2.5em;
    color: white;
}


/*styles main content section*/
div#container {
    font-size: medium;
    color: #333333;
    margin: 20px;
    padding: 20px;
    /*gives it a light pink background*/
    background-color: #fef3f9; 
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/*personalised welcome message styling*/
div.welcome-message {
    margin: 0px 0px 0px;
    padding: 5px;
    /*different background colour to main header so stands out more*/
    background-color: #fbb2d6; 
    color: white;
    text-align: left;
}

/*styles post blocks*/
div.post {
    margin: 20px 0px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}


/*styles both success and error messages*/
div.error, div.success {
    font-size: medium;
    color: #333333;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
}

/*makes all hyperlinks pink*/
a {
    text-decoration: none;
    color: #FF69B4; 
}

/*on hover, links become underlined (used this as it's a convention in websites)*/
a:hover {
    text-decoration: underline;
}

/*styles all of the recuoes cards*/
div.recipe {
    margin: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    width: 300px;
    height: auto;  
    display: inline-block;
    box-sizing: border-box;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 150px;  
}


/*makes title ofeach recipe bright pink*/
div.recipe .title {
    font-size: 1.4em;
    font-weight: bold;
    color: #FF69B4; 
}

/*makes actual recipes grey and italic*/
div.recipe .article {
    font-style: italic;
    color: #555555;
    margin-top: 15px;
}

/*styles the name of author of recipe, buts it at the right of box in italic*/
div.recipe .postedBy {
    font-size: 14px;
    color: #888888;
    margin-top: 10px;
}

/*main container is a flexible box, meaning fits with responsive requiremnt*/
#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly; 
    gap: 20px; 
}

/*styles logout button so always fixed in bottom right corner, this is on all pages*/
#logout-btn {
    position: fixed;
    bottom: 20px;    
    right: 20px;     
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*styles myrecipe button to match log out but on opposite side*/
#myRecipes-btn{
    position: fixed;
    bottom: 20px;    
    left: 20px;     
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*styles dashboard button to be exactly the same as myrecipes button (these never appear on same page)*/
#dashboard-btn{
    position: fixed;
    bottom: 20px;    
    left: 20px;     
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*styles form for adding and editing recipes*/
.recipe-form {
    width: 350px;
    margin: 40px auto;
    padding: 20px;
    background: #f2f2f2;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/*styles addrecipe button*/
#addRecipe-btn {
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*editrecipe button matches the format of add recipes*/
#editRecipe-btn {
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*also matcehs add and edit buttons*/
.delete-btn {
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/*styles buttons for admin to edit other users recipes*/
#editUsers-btn {
    position: fixed;
    bottom: 20px;    
    left: 20px;     
    padding: 10px 20px;
    background-color: #FF69B4; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}