body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; 
}
/* Header Styling */
header {
    background-color: #eef0f7; 
    color: white;
    padding: 1.5em 0; 
    text-align: center;
    letter-spacing: 2px;
    word-spacing: 5px;
    font-size: larger;

}
h2{
    text-align: center;
    color: rgb(143, 145, 148);
}
.quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em; /* Smaller size for the quote */
    margin: 0;
    padding: 1em; /* Added padding for spacing */
    text-align: center; 
    background-color: #800080; 
    color: white;
}
nav {
    display: flex;
    justify-content: flex-end; 
    gap: 1.5em; /* Increased gap for better spacing */
    margin-bottom: 2em; 
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    padding: 0.75em 1.5em; /* Larger buttons for better usability */
    background-color: #FFD700; 
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s; 
}

nav a:hover {
    background-color: #FFC300; 
    transform: translateY(-2px); /* Lift effect on hover */
}
.container {
    max-width: 1200px; 
    margin: auto;
    padding: 2em;
    background-color: #fff; /* White background for the main content */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.container {
    padding: 2em;
}

.recipe-list {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    gap: 2em; /* Increased gap */
}

.recipe {
    width: 220px;
    text-align: center;
    background-color: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); 
    transition: transform 0.2s; /* Add transition for scale effect */
}

.recipe:hover {
    transform: scale(1.05); /* Scale up on hover */
}

.recipe img {
    width: 100%;
    border-radius: 8px 8px 0 0; /* Rounded corners for the top of the image */
}

.recipe-form {
    background-color: #ffffff; 
    border-radius: 8px;       
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    max-width: 400px;         
    margin: 20px auto;        
    padding: 2em;             
}
.recipe-form h2 {
    color: #4B0082;          
    text-align: center;       
    margin-bottom: 1em;       
}
.recipe-form label {
    font-weight: bold;       
    margin-top: 1em;         
    display: block;           
}
.recipe-form input,
.recipe-form textarea {
    width: 100%;              
    padding: 0.5em;          
    margin-top: 0.5em;       
    border: 1px solid #ccc;  
    border-radius: 5px;    
    transition: border-color 0.3s; 
}
.recipe-form input:focus,
.recipe-form textarea:focus {
    border-color: #4B0082;   
    outline: none;          
}

.recipe-form button {
    padding: 0.75em;        
    background-color: #4B0082; 
    color: white;            
    border: none;           
    border-radius: 5px;      
    cursor: pointer;        
    font-weight: bold;       
    transition: background-color 0.3s; 
}
.recipe-form button:hover {
    background-color: #3e0060;
}

.recipe-form textarea {
    resize: none;           
}
.recipe-card {
    width: 280px; 
    padding: 1.5em; 
    background-color: #fff; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    margin: 1em auto; 
    text-align: left; 
    transition: transform 0.2s; 
}

.recipe-card:hover {
    transform: scale(1.03);
}
.recipe-card h2 {
    color: #4B0082; 
    margin-bottom: 0.5em; 
    font-size: 1.5em;
    text-align: center;
}
.recipe-card p {
    color: #555; 
    margin: 0.5em 0; 
    line-height: 1.6; 
}
.delete-button {
    background-color: #FF4B4B; /* Red background for delete button */
    color: white; 
    border: none;
    padding: 0.5em 1em; 
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; 
    font-weight: bold; 
    transition: background-color 0.3s; /* Smooth transition on hover */
}

.delete-button:hover {
    background-color: #D43F3F; /* Darker red on hover */
}
