body {
    font-family: "Monaco", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    font-size: 16px;
}

header, section header, .section__header {
    background-color: #570218;
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

header a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

header a:hover h1 {
    color: #ffcc00;
}


nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #838383;
    color: #fff;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: #000;
    text-transform: capitalize;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 15px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #6c757d;
    color: #ffcc00;
}

.navlink.active {
    background-color: #6c757d;
    color: #570000;
}
main {
    padding: 80px 20px 20px;
}

section {
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
    color: #333;
}

section article h3 {
    color: #000;
    margin: 0 0 10px 0;
    font-weight: normal;
}

strong {
    color: #a51a39;
    font-weight: bold;
    text-decoration: underline;
}

em {
    font-style: italic;
    color: #a51a39;
    text-transform: lowercase;
}

aside {
    background-color: #ececec;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
}

code {
    background-color: #facccc;
    color: #390202;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    display: block;
    white-space: pre-wrap;
    margin: 10px 0;
    line-height: 1.4;
}

blockquote {
    border-left: 5px solid #8a0e2c;
    padding-left: 10px;
    margin: 20px 0;
    font-style: italic;
    background-color: #f1f1f1;
}

q {
    quotes: "«" "»";
}

footer {
    background-color: #838383;
    color: #000;
    text-align: center;
    padding: 10px;
    margin-top: 0;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
    text-transform: uppercase;
}

.assortment__container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.assortment__item {
    text-align: center;
    width: 30%;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 400;
    background-color: #ecebeb;
    color: #333;
    padding: 10px;
    margin: 10px 0;
    text-transform: capitalize;
}

.assortment__item-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.wine-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wine-table th,
.wine-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #000;
}

.wine-table thead th {
    background-color: #570218;
    color: #fff;
    font-weight: bold;
}

.wine-table tbody tr:nth-child(odd) {
    background-color: #fff;
}

.wine-table tbody tr:nth-child(even) {
    background-color: #ecebeb;
}

.wine-table th, .wine-table td {
    width: calc(100% / 3);
}


@media screen and (max-width: 800px) {
    nav ul {
        flex-direction: column;
    }

    .assortment__item {
        width: 100%;
    }

    .hidden-on-small {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .wine-table th, .wine-table td {
        display: block;
        width: 100%;
    }

    .wine-table thead {
        display: none;
    }

    .wine-table tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }
}

form {
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
    color: #333;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

form fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

form legend {
    font-weight: bold;
    color: #570218;
}

form input[type="checkbox"] {
    margin-right: 5px;
}

form button {
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #570218;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #a51a39;
}

#filteredResults {
    margin-top: 20px;
    font-size: 1em;
    color: #333;
}

form input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2);
    accent-color: #570218;
}

.slider {
    position: relative;
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.button_slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 3px;
    user-select: none;
}

.button_slider:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.preloader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading {
    display: block;
}
.review {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

form input[type="text"], form input[type="email"], form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Submit Button */
form button[type="submit"] {
    background-color: #600000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #800000;
}
