body {
    width: 96vw;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #fff;
    color: #2d1919;
}

header {
    width: 100%;
    height: 52px;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    background-color: #fff;
    position: sticky;
    z-index: 1;
    top: 0;
}

header .left {
    width: 24%;
    display: flex;
    flex-flow: row;
    justify-content: left;
    align-items: center;
}

header .left .logo {
    width: 80%;
    height: 24px;
    border: 4px solid #2d1919;
    border-radius: 8px;
    background-color: #2d1919;
}

header .right {
    width: 76%;
    margin: 0 auto;
    margin-right: 12px;
    display: flex;
    flex-flow: row;
    justify-content: right;
}

nav ul{
    gap: 12px;
    margin-right: 24px;
    display: flex;
    flex-flow: row;
}

ul li {
    list-style: none;
}

li a, li a:visited {
    text-decoration: none;
    color: #2d1919;
}

li a:hover, li a:focus {
    text-decoration: underline;
}

.user {
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
}

.user img {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    margin-right: 16px;
}

.form {
    margin: auto 0;
    margin-right: 68px;
}

#search-input {
    height: 28px;
    padding: 8px;
    font-size: 16px;
    color: #2d1919;
    background-color: #fff;
    border: 2px solid #2d1919;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

header button {
    height: 28px;
    font-size: 16px;
    padding: 0 16px;
    position: absolute;
    background-color: #2d1919;
    color: #fff;
    border: 1px solid #2d1919;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

header button:hover {
    opacity: 70%;
    border: 2px solid #000;
}

header .hidden, .menu {
    display: none;
}

main {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-top: 40px;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    font-size: 18px;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h6 {
    font-size: 18px;
}

.first {
    width: 100%;
    height: 560px;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    justify-content: top;
    align-items: center;
    text-align: center;
    background-image: url(images/istockphoto-1366569235-612x612.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.first p {
    padding: 0 220px;
}

main button {
    width: 100%;
    height: 36px;
    margin: 0 auto;
    padding: 0 16px;
    border: 2px solid #2d1919;
    border-radius: 8px;
    background-color: #2d1919;
    color: #fff;
    font-weight: 600;
}

main button:hover {
    background-color: #fff;
    color: #2d1919;
}

.second {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-top: -100px;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
}

.second img {
    width: 32%;
    height: 248px;
    margin: 0 auto;
    border-radius: 20px;
    border-top: 8px solid #2d1919;
}

.third {
    width: 88%;
    height: max-content;
    margin: 0 auto;
    margin-top: 20px;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
}

.third .paragraph {
    width: 24%;
    height: 388px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #2d1919;
    color: #fff;
}

.third .grid {
    width: 76%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
}

.third .grid img {
    width: 32%;
    border-right: 8px solid #2d1919;
    border-radius: 8px;
}

.third .grid img:nth-child(1) {
    height: 380px;
}

.third .grid img:nth-child(2) {
    height: 400px;
}

.third .grid img:nth-child(3) {
    height: 448px;
}

.categories {
    width: 88%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
}

.categories div {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-top: 12px;
    display: flex;
    flex-flow: row;
    justify-content:center;
    gap: 80px;
    /* animation: categories 20s calc(1); */
}

@keyframes categories {
   0% {
        transform: translateX(-100%);
        opacity: 0;
   }
   100% {
        transform: translateX(0);
        opacity: 1;
   }
}

.categories div a {
    border: 2px solid #2d1919;
    border-radius: 8px;
    padding: 2px 12px;
    color: #2d1919;
    text-decoration: none;
}

.categories div a:hover {
    background-color: #2d1919;
    color: #fff;
}

.fourth {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-top: 40px;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
}

.fourth h2 {
    margin-bottom: 28px;
}

.fourth .item-container {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-bottom: 24px;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
}

.fourth .item {
    width: 28%;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

.fourth .item img {
    width: 88%;
    height: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.fourth .item p span {
    font-weight: 600;
}

.fourth .product-page {
    margin-top: 40px;
    color: #2d1919;
    font-weight: 600;
}

.fourth .product-page:hover {
    transform: scaleX(1.1);
    opacity: 70%;
    text-decoration: none;
}

.fifth {
    width: 96%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
}

.advert {
    width: 44%;
    height: max-content;
    margin: auto 0;
    padding: 2px 8px;
    display: flex;
    flex-flow: column;
}

.advert .date {
    margin-bottom: -20px;
}

.advert h2 {
    font-size: 68px;
}

.advert .bold {
    font-weight: 600;
}

.advert div {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}

.advert div h4 {
    text-align: center;
    border: 16px solid #2d1919;
    border-radius: 100px;
    background-color: #2d1919; 
    color: #fff; 
}

.advert .percentage {
    font-size: 28px;
    margin-top: -16px;
    font-weight: 600;
}

.advert button {
    width: 32%;
    background-color: #fff;
    color: #2d1919;
}

.advert button:hover {
    background-color: #2d1919;
    color: #fff;
}

.fifth .grid {
    width: 52%;
    height: max-content;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    flex-flow: column;
    background-color: #2d1919;
}

.fifth .grid img {
    width: 320px;
    border: 2px solid #2d1919;
    border-radius: 8px;
}

.one, .two {
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
}

.fifth .grid .one img:nth-child(1), .fifth .grid .two img:nth-child(2) {
    height: 320px;
}

.fifth .grid .one img:nth-child(2), .fifth .grid .two img:nth-child(1) {
    height: 240px;
}

.review-container {
    width: 96%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
}

.reviews {
    width: 100%;
    height: max-content;
    margin: 0 auto;
    margin-top: 20px;
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
}

.review {
    width: 32%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    animation: review 4s calc(1);
}

@keyframes review {
    0% {
         transform: translateY(100%);
         opacity: 0;
    }
    100% {
         transform: translateY(0);
         opacity: 1;
    }
}

.rating img {
    width: 20px;
    height: 20px;
}

a, button, img {
    cursor: pointer;
}

img:hover {
    transform: scale(1.04);
}

.second, .third, .fourth, .fifth {
    margin-bottom: 24px;
}

footer {
    width: 96%;
    height: max-content;
    margin: 0 auto;
    padding: 0 12px;
    margin-top: 20px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    background-color: #2d1919;
    color: #fff;
    border-radius: 8px;
    bottom: 0;
}

footer, footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer h6 {
    margin-bottom: 12px;
}

footer .top {
    width: 96%;
    height: max-content;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}

footer .top .left, footer .top .right {
    width: 48%;
    margin: 0 auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    text-align: center;
}

.services, .link-container, .social-container, .contact-container {
    width: 50%;
    margin: 0 auto;
    justify-content: space-between;
}

.services div, .social, .phone, .link {
    display: flex;
    flex-flow: column;
    gap: 8px;
}

.contact-container {
    display: flex;
    flex-flow: column;
}

.contact {
    gap: 8px;
    height: max-content;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
}

.contact div {
    display: flex;
    flex-flow: row;
    justify-content: left;
    gap: 8px;
}

.contact img {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
}

.contact .phone-container {
    align-items: center;
}
.contact .phone {
    display: flex;
    flex-flow: column;
}

footer .bottom {
    width: 96%;
    margin: 0 auto;
    margin-top: 28px;
    display: flex;
    flex-flow: column;
    align-items: center;
}

@media screen and (max-width: 1280px) {
    .first p {
        border:  8px solid #ffffff90;
        background-color: #ffffff90;
    }
     
    .third {
        width: 96%;
        flex-flow: column;
    }

    .third .paragraph {
        width: 88%;
        height: max-content;
        margin: 0 auto;
    }

    .third .grid {
        width: 100%;
        margin-top: 12px;
    }

    .third .grid img {
        width: 32%;
        border-top: 8px solid #2d1919;
        border-right: 0;
        border-radius: 8px;
    }

    .third .grid img:nth-child(1), .third .grid img:nth-child(2), .third .grid img:nth-child(3) {
        height: 280px;
    }

    .categories div {
        gap:  40px;
    }

    .categories div a{
        padding: 4px 8px;
    }

    .fifth .grid .one img:nth-child(1), .fifth .grid .two img:nth-child(2) {
        width: 36%;
        height: 240px;
    }
    
    .fifth .grid .one img:nth-child(2), .fifth .grid .two img:nth-child(1) {
        width: 48%;
        height: 320px;
    }
}

@media screen and (max-width: 920px) {
    header .left, header .right {
        width: max-content;
        align-items: center;
    }

    header .left, header .right, header .left img {
        margin: 0;
    }

    header .hidden {
        display: flex;
        flex-flow: column;
    }

    header .hidden img:nth-child(1), header .hidden img:nth-child(2) {
        width: 24px;
        background-color: #fff;
        border: 2px solid #fff;
        border-radius: 8px;
    }

    header .hidden button {
        border: 2px solid #fff;
    }
    
    header .search #search-input {
        height: 28px;
        padding: 8px;
        font-size: 16px;
        color: #2d1919;
        background-color: #fff;
        border: 2px solid #fff;
    }

    header .user, header .form {
        display: none;
    }

    .menu {
        display: flex;
        flex-flow: row;
        width: 28px;
        height: 24px;
        margin: 0 auto;
        margin-right: 0;
        border-radius: 2px;
    }

    #menuList {
        transition: all 0.02s;
    }

    nav ul {    
        position: absolute;
        overflow: hidden;
        z-index: 1;
        width: 100%;
        height: 96vh;
        margin: 0 auto;
        margin-right: -20px;
        right: 0;
        top: 52px;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        background-color: #000;
    }

    ul li {
        margin-top: 20px;
    }

    ul li a, ul li a:visited {
        color: #fff;   
    }
    
    .categories div {
        flex-flow: row wrap;
        gap:  8px;
    }

    .fifth {
        flex-flow: column;
    }

    .fifth .advert, .fifth .grid  {
        width: 96%;
    }

    .fifth .advert button {
        width: 48%;
        margin-bottom: 40px;
    }

    .advert div h4 {
        font-size: 24px;
    }

    .fifth .grid .one img:nth-child(1), .fifth .grid .two img:nth-child(2) {
        width: 36%;
        height: 240px;
    }
    
    .fifth .grid .one img:nth-child(2), .fifth .grid .two img:nth-child(1) {
        width: 52%;
        height: 320px;
    }
}

@media screen and (max-width: 812px) {
    header button {
        margin-left: 20%;
    }
}

@media screen and (max-width: 768px) { 
    header button {
        margin-left: 36%;
    }
 
    .first {
        height: 360px;
    }
    
    .first h1 {
        font-size: 20px;
    }

    .first p {
        width: 92%;
        padding: 0;
    }

    .second {
        justify-content: center;
    }

    .second img {
        height: 120px;
    }

    .fourth .item img {
        height: 200px;
    }

    .fifth .advert button {
        width: 32%;
        margin-bottom: 20px;
    }

    .reviews {
        flex-flow: column;
    }
    
    .review {
        width: 88%;
    }
    
    .services, .link-container, .social-container, .contact {
        width: 48%;
        margin: 0 auto;
        justify-content: space-between;
    }

    .contact div {
        display: flex;
        flex-flow: row;
        justify-content: center;
    }

    .third, .categories, .fourth, .fifth, .fifth .grid, .review-container {
        width: 96%;
        margin: 0 auto;
        margin-top: 80px;
    }

    footer {
        padding: 0;
        flex-flow: column;
    }

    footer .top {
        flex-flow: column;
    }

    footer .top .left, footer .top .right {
        width: 96%;
        margin: 0 auto;
        display: flex;
        flex-flow: row;
        justify-content: space-between;
        text-align: center;
    }
}

@media screen and (max-width: 720px)  {
    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 20px;
    }

    .second {
        margin-top: -48px;
    }
}

@media screen and (max-width: 560px) {
    header .left .logo {
        width: 40%;
        height: 20px;
        flex-shrink: 0;
    }

    header .left p {
        font-size: 12px;
    }

    header #search-input {
        margin-left: -100px;
    }

    header button {
        margin-left: 32%;
    }

    .advert h2 {
        font-size: 40px;
    }

    .advert div h4 {
        text-align: center;
        border: 12px solid #2d1919;
        margin-right: -12px;
        font-size: 16px;
    }

    .fifth .advert button {
        width: 40%;
        margin-bottom: 0;
    }
    
    .fifth .grid .one img:nth-child(1), .fifth .grid .two img:nth-child(2) {
        width: 40%;
        height: 240px;
    }
    
    .fifth .grid .one img:nth-child(2), .fifth .grid .two img:nth-child(1) {
        width: 56%;
        height: 304px;
    }

    footer .top .left, footer .top .right {
        flex-flow: column;
    }

    .services, .link-container, .social-container, .contact-container {
        width: 96%;
    }
}

@media screen and (max-width: 420px) {
    header button, main button {
        font-size: 12px;
        padding: 0 8px;
    }
    .second {
        margin-top: 2px;
    }
  
    .second img {
        height: 88px;
        margin-top: -40px;
    }

    .fourth .item img {
        height: 148px;
    }

    .fifth .grid .one img:nth-child(2), .fifth .grid .two img:nth-child(1) {
        height: 304px;
    }
}

@media screen and (max-width: 320px) {
    .second img {
        margin-top: 0;
    }

    .third .grid img:nth-child(1), .third .grid img:nth-child(2), .third .grid img:nth-child(3) {
        height: 160px;
    }
}






