body {
    font-family: Arial, sans-serif;
    background-color: burlywood;
    color: darkred;
    margin: 0;
}

h1, #recipes-heading, .recipe-titles, .main-titles, .profile-intro {
    text-align: center;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 1em;
    padding: 1em;
    border-bottom: 1px solid black;
    background-color:maroon;
}

#logo {
    font-size: 3em;
    font-weight: bold;
    color: chocolate;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 2em;
    font-size: 1.25em;
}

#user {
    margin: 0em;
    font-weight: bold;
    color: chocolate;
    gap: 0.5em;
}

a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

a:hover {
    color: chocolate;
}

.recipe-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 2em;
}

.recipe-box {
    border: 3px solid black;
    padding: 1em;
    margin: 1em 0;
    text-align: left;
    width: 40%;
    background-color: rgba(255, 248, 220, 0.8);
}

.recipe-info, .recipe-columns {
    margin: 0 2em;
}

.recipe-rating-summary {
    margin: 1em 0;
}

.star-display {
    color: gold;
    font-size: 1.4em;
    letter-spacing: 0.1em;
    margin: 0.2em 0;
}


.search-block {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    margin: 2em 0;
}

.login-form, .login-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.reviews-section {
    max-width: 900px;
    margin: 3em auto;
    padding: 0 2em 3em;
}

.review-form, .review-card {
    background-color: rgba(255, 248, 220, 0.8);
    border: 2px solid maroon;
    border-radius: 12px;
    padding: 1.25em;
    margin-bottom: 1.5em;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.review-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 7em;
    padding: 0.75em;
    box-sizing: border-box;
}

.review-helper-text {
    margin: -0.2em 0 0;
    font-size: 0.95em;
    color: #5e1f00;
}

.review-form button {
    width: fit-content;
    padding: 0.6em 1em;
    font-weight: bold;
    background-color: maroon;
    color: blanchedalmond;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.review-form button:hover {
    background-color: chocolate;
}

.star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.2em;
}

.star-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-picker label {
    font-size: 2rem;
    color: #8b5a2b;
    cursor: pointer;
    transition: color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
    color: gold;
}

.star-picker label:hover {
    transform: scale(1.06);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.review-date {
    margin-top: 0.2em;
    font-size: 0.95em;
    color: #5e1f00;
}

.reviews-toggle {
    margin-top: 1em;
}

.reviews-toggle summary {
    display: inline-block;
    list-style: none;
    padding: 0.6em 1em;
    font-weight: bold;
    background-color: maroon;
    color: blanchedalmond;
    border-radius: 999px;
    cursor: pointer;
}

.reviews-toggle summary::-webkit-details-marker {
    display: none;
}

.reviews-toggle[open] summary {
    background-color: chocolate;
    margin-bottom: 1em;
}

@media (max-width: 700px) {
    .recipe-box {
        width: calc(100% - 4em);
    }

    .recipe-columns {
        margin: 0 1em;
    }

    .review-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

