/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0 0 1rem 0;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
}

.search-form button,
#refresh-button {
    padding: 0.5rem 1rem;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover,
#refresh-button:hover {
    background-color: #777;
}

.display-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.display-count label {
    font-size: 0.9em;
}

.display-count input[type="number"] {
    padding: 0.3rem;
    width: 50px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

main {
    padding: 1rem;
    max-width: 900px;
    margin: 1rem auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.tags-container h2,
.instructions-container h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.tags-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-item {
    background-color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9em;
}

.tag-item:hover {
    background-color: #ccc;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.instruction-item:last-child {
    border-bottom: none;
}

.instruction-item p {
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.instruction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.instruction-tag {
    background-color: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.instruction-tag:hover {
    background-color: #ddd;
}

.error-message {
    color: #d9534f;
    font-weight: bold;
    text-align: center;
}

#loading-message,
#no-results-message {
    text-align: center;
    color: #777;
    padding: 1rem;
}

