@import url("https://fonts.googleapis.com/css?family=Nunito:400,600,700");

* {
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    padding: 20px 20px 80px;
    min-height: 100vh;
    background-image: url(https://images.unsplash.com/photo-1538137524007-21e48fa42f3f?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ac9fa0975bd2ebad7afd906c5a3a15ab&auto=format&fit=crop&w=1834&q=80);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

h1, h2 {
    color: #55311c;
    text-align: center;
}

.rating-form {
    padding: 20px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin: 10px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffd700;
}

.rating-list {
    padding: 20px;
}

.rating-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-photo {
    max-width: 100%;
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.recommended-list {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #8c7569;
}

.recommended-item {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.error {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.success {
    color: #388e3c;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sort-controls {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-block {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: 0.3s;
    flex: 1;
}

.input-block input,
.input-block textarea {
    outline: 0;
    border: 0;
    padding: 4px 0 0;
    font-size: 14px;
    font-family: "Nunito", sans-serif;
}

.input-block textarea {
    resize: vertical;
    min-height: 100px;
}

.input-block input::placeholder,
.input-block textarea::placeholder {
    color: #ccc;
    opacity: 1;
}

.input-block:focus-within {
    border-color: #8c7569;
}

.input-label {
    font-size: 11px;
    text-transform: uppercase;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: #8c7569;
    transition: 0.3s;
}

.input-block:focus-within .input-label {
    color: rgba(140, 117, 105, 0.8);
}

.input-button {
    padding: 8px 12px;
    outline: none;
    border: 0;
    color: #fff;
    border-radius: 4px;
    background: #8c7569;
    font-family: "Nunito", sans-serif;
    transition: 0.3s;
    cursor: pointer;
}

.input-button:hover {
    background: #55311c;
}

.action-button {
    padding: 6px 10px;
    margin: 0 5px;
    font-size: 12px;
}

select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: "Nunito", sans-serif;
}

.average-rating {
    margin-bottom: 20px;
    font-size: 16px;
    color: #55311c;
    text-align: center;
}

.logout-form {
    text-align: center;
    margin-bottom: 20px;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.85);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.nav-button {
    background: none;
    border: none;
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-button:hover,
.nav-button.active {
    color: #8c7569;
}

.nav-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.star-button.starred {
    background: #ffd700;
}

.account-info {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.account-form {
    padding: 20px;
}

@media(max-width: 750px) {
    .container {
        width: 90%;
    }
    .star-rating label {
        font-size: 24px;
    }
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-button {
        font-size: 12px;
    }
    .nav-button svg {
        width: 20px;
        height: 20px;
    }
    .rating-photo {
        width: 150px;
    }
}