/* Reset some default browser styles */
body, h1, h2, h3, p, ul, li, button, input, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #35424a;
    color: #ffffff;
    padding-top: 30px;
    padding-bottom: 15px;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

.search-bar {
    margin-top: 15px;
}

.search-input {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}

.inputTitle {
	padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 16px;
	margin-bottom: 15px;
}

textarea {
	width: 100%;
	padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 16px;
	padding-bottom: 15px;
}

button, input::file-selector-button, #newRecipeRating, #editRecipeRating, #newRecipeNr, #editRecipeNr, #newGinTonic, #editGinTonic, #newGinRating, #editGinRating, #newGinNr, #editGinNr, .searchFor {
    border: none;
    background-color: #58af9b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
	margin-bottom: 10px;
    font-size: 16px;
}

.removeIngredient, #deleteButton, #cancleUploadGinButton, #cancleUploadRecipeButton {
	background-color: #A1142E;
}

.recipe button:hover, .gin  button:hover {
    background-color: #45a085;
}

.upload-form, .edit-form, .index-form {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
}

.ingredient {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ingredient input {
    flex: 1;
    margin-right: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#recipeList, #ginList {
    display: flex;
    flex-direction: column;
    align-items: center;
	padding-left: 10%;
}

.recipe, .gin {
    background-color: #ffffff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recipe img, .gin img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

.recipe h2, .gin h2 {
    color: #35424a;
    margin-bottom: 10px;
}

.recipe p, .gin p {
    margin-bottom: 15px;
}

.recipe ul, .gin ul{
    margin-bottom: 15px;
	margin-left: 15px;
}

.addIngredientButton, #uploadRecipeButton, #saveEditButton, .removeIngredient {
    margin-top: 10px;
}

#showAddRecipeFormButton, #showAddGinFormButton {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #35424a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#showAddRecipeFormButton:hover, #showAddGinFormButton:hover {
    background-color: #2c3e50;
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    display: none; /* Hidden by default */
}

#backToTopBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}

#goToAddRecipeBtn {
    position: fixed;
    bottom: 80px; /* Adjust based on your layout */
    right: 30px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: #58af9b; /* Green background */
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 4px;
}
/*
.gin {
	min-width: 40%;
	max-width: 40%;
	margin-right: 2%;
	margin-top: 2%;
}

#ginList {
    display: flex;
    align-items: center;
    flex-direction: column;
	padding-left: 10%;
}*/