/* made by samiran */
* {
  margin: 0;
  font-family: Arial;
  border: border-box;
}
body {
  max-width: 100vw;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navbar */
.navbar {
  justify-content: space-evenly;
  height: 60px;
  background-color: #0f1111;
  color: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.nav-logo {
  height: 50px;
  width: 113px;
}
.logo {
  background-image: url("amazon_logo.png");
  align-items: center;
  background-size: cover;
  height: 50px;
  width: 100%;
}

.border {
  border: 1.5px solid transparent;
  padding: 10px;
}
.border:hover {
  border: 1.6px solid rgba(255, 255, 255, 0.703);
  border-radius: 1.5px;
}

/* Location Box */
.nl-first {
  color: #cccccc;
  margin-left: 15px;
}
.nl-second {
  color: #ffffff;
  margin-left: 2px;
}
.nav-upper {
  font-size: 0.8rem;
}
.nav-lower {
  font-size: 1rem;
  font-weight: 700;
}
.location-logo {
  display: flex;
  align-items: center;
}

/* Search Box */
.nav-search {
  justify-content: space-evenly;
  display: flex;
  width: 630px;
  height: 40px;
  align-items: center;
  color: black;
  background-color: rgb(255, 213, 0);
  border-radius: 5px;
}
.nav-search:hover {
  border: 1.5px solid orange;
}
.search-input {
  width: 530px;
  height: 35px;
  border: none;
  font-size: 1rem;
}
.search-select {
  background-color: #f0eded;
  color: #130e0e;
  width: 53px;
  height: 37px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border: none;
  text-align: center;
}
.search-icon {
  display: flex;
  width: 45px;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Cart Box */
.nav-cart i {
  font-size: 30px;
}
.nav-cart {
  display: flex;
}
.cart-text {
  margin-top: 15px;
}

/* Pannel */
.pannel {
  display: flex;
  background-color: #222f3d;
  width: 100%;
  flex-wrap: wrap; /* Allow pannel items to wrap on smaller screens */
}
.pannel-all,
.pannel-options {
  color: white;
  text-decoration: none;
  padding: 16px;
}
.op {
  width: 77%;
}

/* Hero Section */
.hero-section {
  background-image: url("hero.jpg");
  align-items: center;
  background-size: cover;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-message {
  background-color: #f5f6f6;
  color: black;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1%;
  width: 95%;
  font-size: 0.85rem;
}
.hero-message a {
  text-decoration: none;
  color: blue;
}

/* Shop Section */
.shop-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  background-color: #93e5f6;
}
.box {
  height: 400px;
  width: 22.5%;
  background-color: white;
  padding: 20px 0px 15px;
  margin: 15px;
}
.gaming_section {
  text-wrap: nowrap;
}
.pannel-all {
  display: flex;
  gap: 5px;
}
.box-img {
  height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.box-content {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
}
.box-content p {
  color: blue;
  font-size: 0.8rem;
}

/* Footer */
footer {
  margin-top: 15px;
}
.foot-pannel1 {
  background-color: #374758;
  color: white;
  height: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foot-pannel2 {
  display: flex;
  justify-content: space-evenly;
  background-color: #222f3d;
  color: white;
  height: 300px;
  flex-wrap: wrap; /* Allow footer links to wrap */
}
ul {
  margin-top: 30px;
}
ul a {
  display: block;
  font-size: 0.85rem;
  margin-top: 10px;
  color: #dddddd;
}
.foot-pannel3 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222f3d;
  color: white;
  border-top: 0.5px solid white;
}
.logo {
  background-image: url("amazon_logo.png");
  align-items: center;
  background-size: cover;
  height: 50px;
  width: 100px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column; /* Stack navbar items vertically */
    align-items: flex-start;
    padding: 10px;
    height: auto;
  }
  .nav-logo,
  .nav-location,
  .nav-search,
  .nav-signIn,
  .nav-order,
  .nav-cart {
    width: 100%;
    margin-bottom: 10px; /* Add space between elements */
    padding: 10px 0;
    border: none; /* Remove border for a cleaner look */
  }

  .nav-search {
    width: 100%; /* Full width on mobile */
  }
  .search-input {
    width: 80%; /* Adjust input width on mobile */
  }
  .search-select {
    width: 20%;
  }
  .pannel {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .pannel-options {
    width: 100%;
    padding: 10px 0;
    border: none;
  }
  .shop-section {
    flex-direction: column; /* Stack boxes vertically */
  }
  .box {
    width: 90%; /* Full width on mobile */
    margin: 10px auto;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .foot-pannel2 {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 20px 0;
  }
  .foot-pannel3 {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .nav-search {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .search-input {
    width: 90%;
    margin: 5px 0;
  }
  .search-select,
  .search-icon {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}

