
/* General Styles */
body {
    font-family: 'Garamond', serif;
    margin: 0;
    padding: 0;
    background-color: #f5f0e1; /* Parchment */
    color: #3e3e3e; /* Dark text */
}

header {
    background-color: #6e4b5b; /* Dark brown */
    color: #f5f0e1; /* Parchment text */
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #d9534f; /* Red accent */
}

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

main {
    padding: 20px;
    padding-bottom: 80px;
    position: relative;
}

.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero h2 {
    color: #6e4b5b; /* Dark brown */
    font-size: 2em;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.form-section {
    background-color: #f0e4d7; /* Light parchment */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    color: #3e3e3e; /* Dark text */
}

input[type="text"],
input[type="number"],
select {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #6e4b5b; /* Dark brown border */
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #d9534f; /* Red */
}

button {
    padding: 10px 15px;
    background-color: #6e4b5b; /* Dark brown */
    color: #f5f0e1; /* Parchment */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite; /* Animation added */
}

button:hover {
    background-color: #4b3a3f; /* Darker brown */
}

button:active {
    transform: scale(0.98);
}

@keyframes pulse {
    0% {
        background-color: #6e4b5b; /* Dark brown */
    }
    50% {
        background-color: #4b3a3f; /* Darker brown */
    }
    100% {
        background-color: #6e4b5b; /* Dark brown */
    }
}

#results {
    margin-top: 20px;
}

#recipe-list li {
    margin-bottom: 10px;
}

footer {
    background-color: #6e4b5b; /* Dark brown */
    color: #f5f0e1; /* Parchment text */
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 2px solid #d9534f; /* Red accent */
}

footer p {
    margin: 0;
}

/* Grimoire Flip Animation */
.grimoire {
    position: relative;
    perspective: 1000px;
}

.grimoire.flip .page {
    transform: rotateY(180deg);
}

.page {
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
    position: absolute;
}

.bookmark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 40px;
    background-color: #d9534f; /* Red bookmark */
    border-radius: 5px;
}
