*{
    margin:0;
    font-family: Arial;
    box-sizing: border-box;
}
.navbar{
    height: 60px;
    width: 100%;
    background-color: #0F1111;
    display: flex;
    align-items: center;
    color: white;
}

/* box1 */

.logo{
    background-image:url(amazon_logo.png);
    background-size: cover;
    height: 50px;
    width: 120px;
    margin-right: 10px;
}
.border{
    border: 2px solid transparent;
}
.border:hover{
    border-color: white;
}

/* box 2 */

.location{
    display: flex;
    flex-direction: row;
    padding-left: 10px;
    padding-right:10px;
}
.loc-icon{
    margin-right: 5px;
    margin-top: 15px;
}
.add1{
    color: #cccccc;
    font-size: 12px;
    margin-top: 5px;
}
.add2{
    font-weight: bold;
}
.loc-text{
    display: flex;
    flex-direction: column;
}

/* box 3 */

.search-bar{
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-left: 10px;
}
.search{
    width: 780px;
    height: 40px;
    border: none;
    font-size: 14px;
    padding-left: 5px;
}
.cat{
    height: 40px;
    width: 55px;
    padding-left: 5px;
    border: 1px solid rgb(197, 197, 197);
    background-color: rgb(197, 197, 197);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.magnifying-glass{
    background-color: #ffce12;
    padding-top: 11px;
    padding-bottom: 13px;
    padding-left: 11px;
    padding-right: 13px;
    border-right: 2px solid #ffce12;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #0F1111;
}

/* language */
.extra-container{
    border: 1px solid #0F1111;
}
.extra{
    background-color: #0F1111;
    color: white;
    font-weight: bold;
    padding: 2px;
    border: 1px solid #0F1111;
    padding-left: 5px;
}
.extra-container:hover{
    border-color: white;
    margin-left: 10px;
    margin-right: 10px;
}


/* box4 */

.acc{
    display: flex;
    flex-direction: row;
}
.col{
    display: flex;
    flex-direction: column;
}
.hello, .returns-and-orders{
    font-size: 0.9em;
    margin-left: 20px;
    margin-right: 20px;
    padding: 5px;
}
.hello:hover{
    border: 2px solid white;
}
.returns-and-orders:hover{
    border: 2px solid white;
}


/* box5 */

.box5{
    margin-top: 5px;
}
.cart{
    transform: scale(1.4);
}
.cart-text{
    padding-top: 20px;
    font-size: 0.9em;
    font-weight: bold;
    padding-top: 15px;
}
.box5:hover{
    border: 2px solid white;
    padding: 8px;
}


.header2{
    display: flex;
    flex-direction: row;
    background-color: #222F3D;
    color: white;
    height: 40px;
    width: 100%;
    align-items: center;
}
.nav-items{
    margin-left: 18px;
    font-size: 0.9em;
    padding: 5px;
}
.nav-items:hover{
    border: 2px solid white
}
.all{
    font-size: 1.05em;
}

/* hero-section */

.hero{
    background-image:url(hero_image.jpg);
    background-size: cover;
    height: 310px;
    width: 100%;
}
.hero-msg{
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 40px;
    position: relative;
    width:97%;
    font-size: 14px;
    top:250px;
}

/* shop-section */

.shop{
    background-color:rgb(213, 213, 213);
}
.shoprow1{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.shoprow2{
    display: flex;
    flex-direction: row;
}
.shopbox{
    height: 400px;
    width: 400px;
    background-color: white;
    margin: 10px;
    padding: 15px;
}
.shop-box-img{
    height: 300px;
    width: 320px;
}
.shopmsg{
    font-size: 21px;
    padding-bottom: 5px;
    padding-top: 5px;
}
.see-more{
    font-size: 13px;
    padding-bottom: 10px;
    margin-top: 15px;
    color: #2162A1;
}

/* recommandation */

.recommandation{
    background-color: white;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
}
.rec1{
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}
.rec-button{
    background-color: #ffce12;
    height: 30px;
    width: 250px;
    border: none;
    border-radius: 15px;
}
.rec2{
    margin-top: 5px;
    font-size: 11px;
}

.top-link{
    height: 50px;
    width: 100%;
    background-color:#34485d;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 13px;
    text-decoration: none;
}

.footerlinks{
    background-color:#222F3D;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding-left: 200px;
    padding-right: 200px;
}
.footerlinks ul{
    list-style: none;
    display: flex;
    flex-direction: column;
}
.footerlinks ul li{
    font-size: 14px;
    margin: 6px;
}
.footerlinks ul li:first-child{
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.footerlinks ul li a{
    color: white;
    text-decoration: none;
    color: #c3c9cd;
}
.footerlinks ul li a:hover{
    text-decoration: underline;
}
.footer-ul{
    margin-top: 35px;
}

/* footer-options */

.footer-options{
    display: flex;
    flex-direction: row;
    height: 70px;
    background-color: #222F3D;
    color: white;
    border-top: 0.5px solid white;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}
.footer-logo{
    height: 48px;
    width: 90px;
    margin-right: 70px;
}
.us-flag{
    height: 15px;
    width: 18px;
}
.foot-lang{
    background-color: transparent;
    color: white;
    padding: 6px;
    margin: 4px;
    border: 1px solid white;
    border-radius: 3px;
}
.foot-currency{
    background-color: transparent;
    color: white;
    padding: 8px;
    margin: 4px;
    border: 1px solid white;
    border-radius: 3px;
}
.foot-country{
    background-color: transparent;
    color: white;
    padding: 8px;
    margin: 4px;
    border: 1px solid white;
    border-radius: 3px;
}
.final-panel{
    background-color: #131A22;
    color: white;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
.final-list ul{
    list-style: none;
    display: flex;
    flex-direction: row;
}
.final-list ul li{
    margin: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    *{
        max-width:100vw
    }
    .navbar {
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo {
        width: 80px;
        height: 40px;
        margin-right: 5px;
    }

    .location {
        padding-left: 5px;
        padding-right: 5px;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
        order: 3;
    }

    .search {
        width: calc(100% - 110px);
    }

    .extra-container {
        margin-left: 5px;
        margin-right: 5px;
    }

    .acc {
        flex-direction: column;
        margin-left: 10px;
    }

    .hello, .returns-and-orders {
        margin-left: 0;
        margin-right: 0;
        padding: 5px 10px;
    }

    .box5 {
        margin-left: 10px;
    }

    .header2 {
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
    }

    .nav-items {
        margin-left: 10px;
        margin-bottom: 5px;
    }

    .hero {
        height: 200px;
    }

    .hero-msg {
        top: 150px;
        width: 95%;
        font-size: 12px;
    }

    .shop {
        padding: 0 10px;
    }
    .shoprow1, .shoprow2 {
        flex-direction: column;
        align-items: center;
    }

    .shopbox {
        width: 90%;
        height: auto;
        margin: 10px 0;
        padding: 10px;
    }

    .shop-box-img {
        width: 100%;
        height: 200px;
    }

    .recommandation {
        height: auto;
        padding: 20px;
    }

    .rec1 {
        font-size: 18px;
    }

    .rec-button {
        width: 200px;
    }

    .footerlinks {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
    }

    .footer-ul {
        margin-top: 20px;
        text-align: center;
    }

    .footer-options {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .footer-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .final-panel {
        height: auto;
        padding: 20px;
    }

    .final-list ul {
        flex-direction: column;
        align-items: center;
    }

    .final-list ul li {
        margin: 5px 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }
    .logo {
        width: 60px;
        height: 30px;
    }
    .location {
        padding-left: 2px;
        padding-right: 2px;
    }
    .add1 {
        font-size: 10px;
    }
    .add2 {
        font-size: 12px;
    }
    .search {
        width: calc(100% - 100px);
    }
    .cat {
        width: 50px;
    }
    .extra {
        padding-left: 3px;
    }
    .hello, .returns-and-orders {
        font-size: 0.8em;
        margin-left: 5px;
        margin-right: 5px;
    }
    .header2 {
        padding: 5px;
    }
    .nav-items {
        margin-left: 5px;
        font-size: 0.8em;
    }
    .hero {
        height: 150px;
    }
    .hero-msg {
        top: 100px;
        font-size: 11px;
    }
    .shopbox {
        width: 95%;
        padding: 10px;
    }
    .shop-box-img {
        height: 200px;
    }
    .rec1 {
        font-size: 16px;
    }
    .rec-button {
        width: 150px;
        height: 25px;
    }
    .footerlinks {
        padding-left: 10px;
        padding-right: 10px;
    }
    .footer-ul {
        margin-top: 15px;
    }
    .footer-options {
        padding: 10px;
    }
    .footer-logo {
        width: 60px;
        height: 30px;
    }
    .final-panel {
        padding: 10px;
    }
}
