* {
    margin: 0;
    padding: 0;
    border: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.navbar {
    height: 60px;
    background-color: #0F1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.nav-logo {
    height: 50px;
    width: 114px;
}

.logo {
    height: 50px;
    width: 100%;
    background-image: url(amazonlogo.jpg);
    background-size: cover;

}

.border:hover {
    border: 2px solid white;
    border-radius: 4px;
}

.add-first {
    color: #CCCCCC;
    font-size: 0.85rem;
    margin-left: 15px;
}

.add-sec {
    color: #FFFFFF;
    font-size: 1rem;
    display: inline-block;
}

.address-icon {
    align-items: center;
}

.nav-search {
    display: flex;
    justify-content: space-evenly;
    width: 800px;
    height: 40px;
    border-radius: 4px;
}

.nav-search:hover {
    border: 2px solid orange;
}

#search {
    width: 100%;
    border: none;
    font-size: 1rem;
}

#options {
    background-color: #E6E6E6;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    width: 50px;
    text-align: center;
    border: none;
}

option {
    background-color: white;
    font-weight: 450;
}

.search-icon {
    width: 45px;
    background-color: #febd68;
    color: #0F1111;
    display: flex;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem
}

.nav-lang {
    display: flex;
    align-items: flex-end;
}

#language {
    border-radius: 4px;
}

span {
    font-size: 0.8rem;
}

.nav-sec {
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-cart i {
    font-size: 30px;
}

.nav-cart {
    font-size: 0.85rem;
    font-weight: 700;
}

.panel {
    display: flex;
    align-items: center;
    height: 40px;
    background-color: #222f3d;
    justify-content: space-evenly;
}

.panel-opt {
    width: 95%;
    font-size: 1rem;
}

.panel-all {
    color: white;
}

.panel-opt a {
    height: 100%;
    text-decoration: none;
    color: white;
    margin-left: 20px;
}

.hero-section {
    height: 400px;
    background-image: url(heroimage.jpg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-msg {
    background-color: white;
    color: black;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    width: 90%;
    margin-bottom: 25px;
}

.hero-msg a {
    text-decoration: none;
    color: #007185;
}

.hero-msg a:hover {
    color: #004f5d;
}

.shopping-section {
    display: flex;
    justify-content: space-evenly;
    background-color: #e2e7e6;
    flex-wrap: wrap;
}

.box1,
.box2,
.box3,
.box4,
.box6,
.box7,
.box5,
.box8 {
    height: 400px;
    width: 23%;
    background-color: white;
    border-radius: 5px;
    padding: 20px 0px 15px;
    margin-top: 15px;
}

.box1-content,
.box2-content,
.box3-content,
.box4-content,
.box5-content,
.box6-content,
.box7-content,
.box8-content {
    margin-left: 1rem;
    margin-right: 1rem;
}

.box1-img {
    background-image: url(box1.jpg);
    background-size: cover;
    background-repeat: none;
    height: 300px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

p a {
    text-decoration: none;
    color: #007185;

}

.s22 {
    margin-left: 4.2rem;
}

.s231 {
    margin-left: 4.9rem;
}

.s232 {
    margin-left: 5.6rem;
}

.s241 {
    margin-left: 7.9rem;
}

.s242 {
    margin-left: 7.5rem;
}

.box1-content p,
.box5-content p,
.box6-content p,
.box7-content p,
.box8-content {
    font-size: 0.85rem;
}

.box2-content p,
.box3-content p,
.box4-content p {
    margin-top: 2.5rem;
    font-size: 0.85rem;
}

.box2-img1,
.box2-img2,
.box2-img3,
.box2-img4 {
    height: 100px;
    width: 100%;
}

.box2-imgs1,
.box2-imgs2 {
    display: flex;
    justify-content: center;
}

.box2-content span {
    margin-bottom: 3rem;
}

.box2-img2 {
    margin-left: 0.5rem;
    background-image: url(box2-2.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box2-img1 {
    margin-right: 0.5rem;
    background-image: url(box2-1.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box2-img4 {
    margin-left: 0.5rem;
    background-image: url(box2-4.jpg);
    background-size: cover;
    margin-top: 2rem;
}

.box2-img3 {
    margin-right: 0.5rem;
    background-image: url(box2-3.jpg);
    background-size: cover;
    margin-top: 2rem;
}

.box3-img1,
.box3-img2,
.box3-img3,
.box3-img4 {
    height: 100px;
    width: 100%;
}

.box3-imgs1,
.box3-imgs2 {
    display: flex;
    justify-content: center;
}

.box3-content span {
    margin-bottom: 3rem;
}

.box3-img2 {
    margin-left: 0.5rem;
    background-image: url(box3-2.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box3-img1 {
    margin-right: 0.5rem;
    background-image: url(box3-1.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box3-img4 {
    margin-left: 0.5rem;
    background-image: url(box3-4.jpg);
    background-size: cover;
    margin-top: 2rem;
}

.box3-img3 {
    margin-right: 0.5rem;
    background-image: url(box3-3.jpg);
    background-size: cover;
    margin-top: 2rem;
}


.box4-img1,
.box4-img2,
.box4-img3,
.box4-img4 {
    height: 100px;
    width: 100%;
}

.box4-imgs1,
.box4-imgs2 {
    display: flex;
    justify-content: center;
}

.box4-content span {
    margin-bottom: 3rem;
}

.box4-img2 {
    margin-left: 0.5rem;
    background-image: url(box4-2.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box4-img1 {
    margin-right: 0.5rem;
    background-image: url(box4-1.jpg);
    background-size: cover;
    margin-top: 0.5rem;
}

.box4-img4 {
    margin-left: 0.5rem;
    background-image: url(box4-4.jpg);
    background-size: cover;
    margin-top: 2rem;
}

.box4-img3 {
    margin-right: 0.5rem;
    background-image: url(box4-3.jpg);
    background-size: cover;
    margin-top: 2rem;
}

.box5-img {
    background-image: url(box5.jpg);
    background-size: cover;
    background-repeat: none;
    height: 280px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.box6-img {
    background-image: url(box6.jpg);
    background-size: cover;
    background-repeat: none;
    height: 280px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.box7-img {
    background-image: url(box7.jpg);
    background-size: cover;
    background-repeat: none;
    height: 280px;
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
}

.box8-img {
    background-image: url(box8.jpg);
    background-size: cover;
    background-repeat: none;
    height: 280px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

footer {
    margin-top: 15px;
}

.foot-panel1 {
    background-color: #37475a;
    color: white;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.foot-panel1 a {
    color: white;
    text-decoration: none;
}

.foot-panel1:hover {
    background-color: #4a5f79;
}

.foot-panel2 {
    display: flex;
    justify-content: space-evenly;
    background-color: #222f3d;
    height: 300px;
}

ul {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

ul p {
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

ul a {
    text-decoration: none;
    color: #dddddd;
    font-size: 0.85rem;
    margin-top: 3px;
    margin-bottom: 3px;
}

ul a:hover {
    text-decoration: underline;
}

.foot-panel3 {
    height: 100px;
    background-color: #222f3d;
    border-top: 0.1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.im {
    background-image: url(amazonlogo.jpg);
    background-size: cover;
    height: 50px;
    width: 100px;
    margin-right: 3rem;
}

.d {
    display: flex;
    color: #CCCCCC;
}

.d1,
.d2,
.d3 {
    border: 2px solid #c0c2c1;
    border-radius: 3px;
}

.d1 {
    margin-left: 3rem;
    margin-right: 1rem;
}

.d2,
.d3 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.d i {
    font-size: 1rem;
    margin-right: 0.2rem;
}

.foot-panel4 {
    background-color: #131b22;
    height: 300px;
    display: flex;
    justify-content: space-around;
}

.foot-panel4 a {
    text-decoration: none;
    color: #c0c2c1;
    font-size: 0.85rem;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 0.3em;
    margin-right: 0.3rem;
}

.foot-panel4 a:hover {
    text-decoration: underline;
}

.foot-panel4 p {
    color: #c0c2c1;
    font-size: 0.8rem;
    text-align: center;
}

.foot-panel4 div {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.foot-panel4 div p:nth-child(1) {
    font-weight: 600;
}

.foot-panel5 {
    background-color: #131b22;
    height: 100px
}

.pg {
    text-align: center;
    padding-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.foot-panel5 a {
    text-decoration: none;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    font-size: 0.85rem;
    color: #c0c2c1;
}

.foot-panel5 p {
    text-align: center;
    color: #c0c2c1;
    font-size: 0.85rem;


}

.foot-panel5 a:hover {
    text-decoration: underline;
}



@media (max-width: 1024px) {
  .nav-search {
    width: 60%;
  }

  .shopping-section {
    justify-content: center;
  }

  .box1, .box2, .box3, .box4,
  .box5, .box6, .box7, .box8 {
    width: 45%;
    margin: 10px;
    height: auto; /* remove fixed height */
  }
}

/* Mobile landscape & portrait */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    justify-content: space-between;
  }

  .nav-search {
    width: 100%;
    margin-top: 10px;
  }

  .box1, .box2, .box3, .box4,
  .box5, .box6, .box7, .box8 {
    width: 90%;
    height: auto;
  }

  .hero-section {
    height: 250px;
    background-position: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-msg {
    font-size: 0.75rem;
    width: 95%;
  }

  .panel-opt a {
    font-size: 0.8rem;
    margin-left: 10px;
  }

  .foot-panel2 {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 20px;
  }

  .foot-panel4 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }
}
