/* Reset default browser styles */
body {
    font-family: Arial, sans-serif;
    background-color: #F5F5F5;
    color: #333333;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/images/background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: cover;
}

.image {
    display: inline-block;
    overflow: hidden;
}
.image img {
    transition: transform 0.3s ease;
}
.image img:hover {
    transform: scale(0.9); 
    cursor: pointer; 
}

.image-container {
    display: flex;
    justify-content: center; /* Centers the images horizontally */
    gap: 10px; /* Adds space between the images */
    margin-bottom: 20px; /* Adds some margin below the container */
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
    max-width: 85%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 4%;

    background-image: url('/images/secondery-background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: cover;
}

.image-container img {
    border:2px solid #000000;  /* img border */
    height: 400px; /* Sets a fixed height for the images */
    width: auto; /* Allows the width to adjust proportionally */
    border-radius: 10px; /* Adds border radius to the images */
    object-fit: cover; /* Ensures the image covers the space without distortion */
    margin: 30px;
}

.image-container h3{
    text-align: center;
    font-size: 2em;
    color: rgb(0, 179, 3);
}

.recipe-card{
    background-image: url('/images/secondery-background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: cover;
}
header {
    background-color: #2E8B57;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
}


header h1 {
    margin: 0;
    font-size: 2.5em;
}

header span {
    color: #FFD700;
}
.centered-search-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
}
.search-container input[type="text"] {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}
.search-container input[type="text"]:hover,
.search-container input[type="text"]:focus {
    cursor: text; /* Changes cursor to I-beam */
}
.search-container button {
    padding: 5px 10px;
    font-size: 16px;
    margin-left: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.navbar{
    text-align: right;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    background-color: #207645;
    padding: 11px;
    border:2px solid #000000; 
    border-radius: 10px;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #155932;
    color: #FFD700;
}

main {
    padding: 20px;
}
.box-size{
    width: 300px;
    height: auto;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #2E8B57;
    font-size: 2em;
    text-align: center;
    margin-top: 0;
    -webkit-text-stroke: 2px black;
}

footer {
    background-color: #2E8B57;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Animation example */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.recipe-card {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 4%
}

.recipe-card img {
    max-width: 100%;
    border-radius: 10px;
}

.recipe-card h3 {
    color: #d7bc22;
    font-size: 1.8em;
    -webkit-text-stroke: 1px black;
}

.recipe-card h4 {
    color: #d7bc22;
    font-size: 1.5em;
    margin-bottom: 10px;
    -webkit-text-stroke: 1px black;
}

.recipe-card ul, .recipe-card ol {
    margin: 0;
    padding-left: 20px;
}
.button{
    background-color: #007bff;
    border: none;
    transition: transform 0.3s ease;
    padding: 10px;
    margin-left: 45%;
    margin-right: 45%;
    color: #DDDDDD;
    font-size: 20px;
}
.button:hover {
    transform: scale(1.1); /* Slight zoom */
    cursor: pointer; /* Changes cursor to hand */
}

.button-container {
    display: inline-block;
    overflow: hidden;
    margin-top: 20px;
}
.button-container button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
}
.button-container button:hover {
    transform: scale(1.1); /* Slight zoom */
    background-color: #0056b3; /* Darker blue */
}

.corner-button{
    border-radius: 4px;
    background-color: #0056b3;
    color: #FFD700;
    border: none;
    font-size: 28px;
    transition: all 0.5s;
    cursor: pointer;
    margin-bottom: 4%;
}

.left{
    background-color: gray;
    color: #ffffff;
}

.left span {
    cursor: pointer;
    position: relative;
    transition: 0.5s;
}

.left span:before {
    content: '\00ab'; 
    opacity: 0;
    top: 0;
    left: -20px;
    position: absolute;
    transition: 0.5s;
}

.left:hover span {
    padding-left: 25px;
}

.left:hover span:before {
    opacity: 1;
    left: 0;
}

.right{
    margin-left: 87%;
}

.right span {
    cursor: pointer;
    position: relative;
    transition: 0.5s;
}
  
.right span:after {
    content: '\00bb';
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}
  
.right:hover span {
    padding-right: 25px;
}

.right:hover span:after {
    opacity: 1;
    right: 0;
}

.comment-section {
    margin-top: 40px;
    margin-bottom: 4%;
    padding: 20px;
    border-top: 1px solid #ccc;
}
.comment-form {
    display: flex;
    flex-direction: column;
}
.comment-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    resize: vertical;
}
.comment-list {
    margin-top: 20px;
}
.comment {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.comment-section h2 {
    color: #000000;
    font-size: 30px;
    text-align: left;
    -webkit-text-stroke: 0px;
}
