* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: white;
  background: linear-gradient(to right, black, rgb(177, 216, 250));
}
.logo {
  float: left;
  height: 50px;
}
h1 {
  font-family: serif;
  position: absolute;
  left: 4%;
}
.navbar {
  background-color: aliceblue;
  color: black;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-link {
  list-style-type: none;
  display: flex;
  gap: 30px;
}

ul a {
  font-size: 20px;
  text-decoration: none;
  color: black;
  cursor: pointer;
}
ul a:hover {
  border: 1px solid;
  /* background: linear-gradient(120deg, skyblue, purple); */
  border-radius: 5px;
  padding: 6px 9px;
  color: aliceblue;
  background: linear-gradient(to right, black, grey);
  box-shadow: 0 0 10px;
}
#toggle {
  display: none;
}
.menu-icons {
  display: none;
  cursor: pointer;
  font-size: x-large;
  color: royalblue;
}
h3 {
  text-align: center;
  padding-top: 50px;
  font-size: 2.5rem;
}
.about-section {
  padding: 40px;
  margin: 30px;
  border: 1px solid white;
  border-radius: 10px;
  text-align: center;
}
.about-section:hover {
  background: linear-gradient(to right, black, grey);
  box-shadow: 0 0 10px;
}

.slider {
  width: 100%;
  height: 500px;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  display: flex;
  border: 10px ridge rgb(227, 240, 252);
  border-radius: 10px;
}
.slides {
  width: 600vw;
  height: 100%;
  display: flex;
  animation: slide 30s infinite;
}
.slides img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}
.slider:hover {
  border: 10px groove black;
}
.imgw {
  width: 100vw;
}
@keyframes slide {
  0%,
  10% {
    transform: translateX(0);
  }
  15%,
  25% {
    transform: translateX(-100vw);
  }
  30%,
  40% {
    transform: translateX(-200vw);
  }
  45%,
  55% {
    transform: translateX(-300vw);
  }
  60%,
  70% {
    transform: translateX(-400vw);
  }
  75%,
  85% {
    transform: translateX(-500vw);
  }
  90%,
  100% {
    transform: translateX(0);
  }
}
.main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px;
}
.main > div {
  width: 45%;
  border: 1px solid white;
  margin: 10px;
  border-radius: 10px;
  padding: 20px;
}
.main > div:hover,
.cart > img:hover {
  box-shadow: 0 0 10px;
  background: linear-gradient(to right, black, grey);
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: auto;
}
.cart {
  background-color: black;
  border: 2px solid rgba(0, 0, 0, 0.295);
  box-shadow: 0 0 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  transition: 0.5s;
}

.cart > img {
  width: 300px;
  height: 200px;
  border-radius: 5px;
  cursor: pointer;
}

/* ===== Quote of the Day ===== */
.featured-quote {
  text-align: center;
  padding: 40px;
  margin: 30px;
  border: 2px dashed white;
  border-radius: 10px;
}

/* ===== Categories ===== */
.categories {
  text-align: center;
  padding: 30px;
}

.category-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.category-box div {
  padding: 12px 22px;
  border: 1px solid white;
  border-radius: 20px;
  cursor: pointer;
}

.category-box div:hover {
  background: black;
  box-shadow: 0 0 10px;
}

/* ===== Authors ===== */
.authors {
  text-align: center;
  padding: 30px;
}

.authors ul {
  list-style: none;
}

.authors li {
  font-size: 18px;
  padding: 8px;
}

/* ===== Subscribe ===== */
.subscribe {
  text-align: center;
  padding: 40px;
}

.subscribe input {
  padding: 10px;
  width: 260px;
  border-radius: 5px;
  border: none;
}

.subscribe button {
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
}
.signin-section {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  text-align: center;
  border: 1px solid white;
  border-radius: 10px;
}

.signin-section input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
}

.signin-section button {
  width: 50%;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  background: rgb(177, 216, 250);
}

.signin-section span {
  color: yellow;
  cursor: pointer;
}
.footer {
  background-color: aliceblue;
  color: black;
  padding: 10px;
  text-align: center;
  margin-top: 50px;
  /* position: fixed;
  bottom: 0; */
  width: 100%;
  font-weight: 900;
}
/* responsive styles */
@media only screen and (max-width: 600px) {
  h1 {
    font-size: 20px;
    margin-left: 30px;
  }
  .menu-icons {
    display: block;
  }
  .nav-link {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgb(177, 216, 250);
  }
  #toggle:checked ~ .nav-link {
    display: flex;
  }
  .nav-link li {
    margin-bottom: 10px;
    text-align: center;
  }
  ul a {
    text-align: center;
    background: linear-gradient(to right, black, grey);
    font-size: 15px;
    color: aliceblue;
    padding: 5px 9px;
    border-radius: 3px;
    cursor: pointer;
  }
  .slider {
    height: auto;
  }
  .main > div {
    width: 100%;
  }
}
