body {
    background: #151515;
    color: navajowhite;
    max-width: 800px;
    margin: auto;
    padding: 0 16px;
    margin-bottom: 100px;
    scrollbar-color: gray #151515;
    font-family: sans-serif;
    line-height: 1.4;
}

::-webkit-scrollbar {
    width: 0.66vw;
    background-color: #151515;
}

::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: 5px;
}

a {
    color: gold;
    text-decoration: none;
}

a:visited {
    color: darkgoldenrod;
}

a:hover {
    color: beige;
}

h1 {
    border-style: solid;
    border-width: 0px 0px 2px 0px;
    text-align: center;
    color: tomato;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

h2 {
    color: tomato;
    text-align: center;
    margin: 10px 0;
}

footer {
    text-align: center;
    border-style: solid;
    border-width: 2px 0px 0px 0px;
    padding: 1em;
    margin-top: 30px;
}

.tagline {
    text-align: center;
    color: #888;
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    margin: 15px 0;
    flex-wrap: wrap;
    padding: 0;
}

nav a {
    padding: 5px 12px;
    background: #222;
    border-radius: 15px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background: #333;
    color: gold;
}

.search-container {
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

#search {
    all: unset;
    background: #222;
    color: #fff;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: calc(50% - 190px);
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.recipe-list {
    margin-top: 1.5rem;
}

.recipe-list-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-list-item:hover {
    background-color: #222;
}

.recipe-list-item h3 {
    margin: 0;
    color: gold;
    font-size: 1.1rem;
}

.recipe-list-item p {
    margin: 0.3rem 0 0 0;
    color: #aaa;
    font-size: 0.9rem;
}

.recipe-list-item .arrow {
    color: tomato;
    font-size: 1.2rem;
}

.category-header {
    color: tomato;
    margin: 1.5rem 0 0.8rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.uk-flag {
    display: inline-block;
    margin-left: 8px;
}

.difficulty {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
}

.difficulty.easy {
    background-color: #2a9d8f;
    color: white;
}

.difficulty.medium {
    background-color: #e9c46a;
    color: #333;
}

.difficulty.hard {
    background-color: #e63946;
    color: white;
}

.logo {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
    margin-bottom: -20px;
    margin-top: 5px;

}

.recipe-detail {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
}

.recipe-detail h2 {
    font-size: 1.6rem;
    margin: 0 0 0.8rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
    text-align: left;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin: 0 0 1rem 0;
    color: #888;
    font-size: 0.85rem;
    flex-wrap: wrap;
    padding: 0.8rem;
    background: #222;
    border-radius: 5px;
    justify-content: center;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ingredients,
.instructions {
    margin-bottom: 1.2rem;
}

.ingredients h3,
.instructions h3 {
    font-size: 1.2rem;
    margin: 0 0 0.6rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #333;
    color: gold;
    display: flex;
    align-items: center;
    gap: 8px;
}

ul,
ol {
    padding-left: 1.2rem;
    margin: 0;
    color: #ccc;
}

li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.back-button {
    margin-bottom: 1rem;
    color: gold;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    width: fit-content;
    font-size: 0.9rem;
    display: inline-block;
}

.back-button:hover {
    background: #222;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
        margin-bottom: 80px;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .search-icon {
        left: 15px;
    }

    #search {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    .logo {
        max-width: 150px;
    }
}