body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.main-content {
    display: flex;
}

.sidebar {
    width: 250px; /* Atur lebar sidebar */
    margin-right: 20px;
    border-radius: 8px;
    box-sizing: border-box; /* Memastikan padding dihitung dalam lebar total */
}

.sidebar input[type="text"],
.sidebar select {
    width: 100%; /* Pastikan input dan dropdown mengisi 100% dari lebar sidebar */
    max-width: 100%; /* Mencegah lebar melebihi lebar sidebar */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Memastikan padding dihitung dalam lebar total */
}


.sidebar input[type="text"]:focus,
.sidebar select:focus {
    border-color: #007bff;
    outline: none; /* Remove outline on focus */
}

.content {
    flex: 1;
}

.recipe-list {
    display: flex;
    flex-direction: column;
}

.recipe-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    padding: 15px;
}

.recipe-card img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

.details {
    flex: 1;
}

h1 {
    color: #333;
}

h2 {
    color: #007bff;
    margin: 0px;
}

p {
    color: #555;
}

strong {
    color: #333;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 600px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
    }

    .recipe-card {
        flex-direction: flex;
        align-items: center;
        
    }
    
    .recipe-card img {
        width: 150px;
        height: auto;
        border-radius: 5px;
    }

    .modal-content {
        flex-direction: column;
        align-items: center;
      
    }
}
