* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #ff9966, #ff5e62);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

h1 {
    color: white;
    font-size: 60px;
    margin-bottom: 30px;
}

.search-bar {
    margin-bottom: 40px;
}

input {
    width: 300px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: #ff5e62;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

button:hover {
    background-color: #f1f1f1;
}

.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.recipe-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.recipe-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-card h3 {
    padding: 15px;
    color: #333;
}
.recipe-card button{
    margin: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background-color: #ff5e62;
    color: white;
    font-size: 14px;
    cursor: pointer;
}
.recipe-card button:hover {
    background-color: #ff7e82;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;

    width: 70%;
    max-width: 600px;

    border-radius: 12px;

    max-height: 80vh;
    overflow-y: auto;
}

#close-modal {
    float: right;

    font-size: 30px;

    cursor: pointer;
}