* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: cursive, fantasy;
}

body {
  overflow-y: scroll;
}

nav {
  border-bottom: 1px solid gray;
}
#mobile-input{
  display: none;
}
.first_nav {
  width: 95%;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.first_nav>div {
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.first_nav>div:nth-child(2) {
  padding: 0 2px;
  border-radius: 10px;
  border: 1px solid gray;
  background-color: wheat;
}

.first_nav>div>h2 h3 {
  cursor: pointer;
}

.search_icon {
  margin-left: 10px;
}

.first_nav>div>input {
  width: 30vw;
  padding: 12px 5px;
  border: none;
  outline: none;
  border-right: 1px solid gray;
  border-radius: 10px;
}

.first_nav>div>img {
  width: 25px;
  margin-right: 10px;
  cursor: pointer;
}

.cart-ref>img {
  width: 25px;
  margin-right: 10px;
  cursor: pointer;
}

.cart-ref {
  text-decoration: none;
}

.logo1 {
  color: crimson;
  cursor: pointer;
  text-decoration: none;
}

.logo2 {
  color: brown;
  cursor: pointer;
  text-decoration: none;
}

.menu {
  color: brown;
}

#menu-options {
  display: flex;
  margin: auto;
  justify-content: space-around;
  padding: 10px 0px;
  border-bottom: 1px solid gray;
  color: brown;
}

#menu-options>div>h4 {
  cursor: pointer;
}

#slideshow {
  margin: 15px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slideshow>img {
  width: 100%;
  height: 85vh;
}

#trending>div>div {
  width: 95%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 25px;
}

#trending>div>div>div {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

#mobiles>div>div:first-child>img {
  width: 85%;
  padding-left: 40px;
}

#trending>div>div>div>img {
  width: 100%;
}

#trending>div>div>div>h3 {
  font-weight: 100;
}

#trending>div>h2 {
  text-align: center;
  margin: 35px 0px;
  color: brown;
}

#container {
  padding: 35px 0px;
}

h1 {
  text-align: center;
  color: brown;
  margin-top: 20px;
}

#sorting {
  border-bottom: 1px solid gray;
  display: flex;
  margin: auto;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
}

#sorting>select {
  border-radius: 10px;
  padding: 5px;
  cursor: pointer;
  border: 1 px solid gray;
  font-weight: 100;
}

#sorting>select:hover {
  border: 1px solid cyan;
}

#searchContainer {
  width: 95%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  gap: 25px;
  margin-top: 50px;
  margin-bottom: 50px;
}

#searchContainer>div {
  display: flex;
  justify-content: space-around;
  border: 1px solid #f6f6f6;
}

#searchContainer>div>img {
  width: 20%;
  cursor: pointer;
}

#searchContainer>div>div {
  width: 50%;
  padding: 30px;
  border-radius: 10px;
  line-height: 30px;
  cursor: default;
}

.price {
  font-size: 25px;
  font-weight: 100;
}

#des_img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 25vw;
  height: 70vh;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  overflow: hidden;
}

#des_img>img {
  width: 100%;
  border-radius: 5px;
  transition: 0.5s all ease-in-out;
}

#des_img img:hover {
  transform: scale(1.5);
}

.des_content {
  display: flex;
  margin: auto;
  margin-top: 50px;
  justify-content: space-around;
  align-items: center;
}

#prod_details {
  background-color: aliceblue;
  border-radius: 10px;
  width: 60vw;
  height: 60vh;
  padding: 20px;
}

#prod_details>div:nth-child(2) {
  width: 10rem;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  margin: 40px 0px;
}

#prod_details>div:nth-child(2)>button {
  border-radius: 10px;
  cursor: pointer;
  font-size: 25px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: coral;
  outline: none;
  border: none;
}

#prod_details>div:nth-child(2)>button:hover {
  background-color: tomato;
}

.cart_btn {
  padding: 10px;
  background-color: chocolate;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.cart_btn:hover {
  background-color: tomato;
}

.registration-form {
  margin: auto;
  margin: 50px 0px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 25px;
}

.registration-form>div {
  border: 1px solid gray;
  width: 40%;
  margin: auto;
  padding: 20px;
  gap: 30px;
  text-align: center;
}

.registration-form>div>form {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 25px;
}

.registration-form>div>form>input {
  padding: 5px;
  overflow: hidden;
}

.registration-form>div>form>button {
  padding: 3px;
  cursor: pointer;
  font-weight: 300;
  font-size: 20px;
}

.usr_details {
  width: 30%;
  margin: auto;
  margin-top: 50px;
  border: 1px solid grey;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.usr_details>form {
  display: grid;
  padding: 30px;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  gap: 15px;
}

.usr_details>form input {
  padding: 3px;
}

.usr_details>form>button {
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  background-color: chocolate;
  color: white;
  border: 1px solid gray;
}

.usr_details>form>button:hover {
  background-color: tomato;
}

footer {
  border-top: 1px solid grey;
  padding: 20px;
  margin-top: 200px;
  position:relative;
  bottom: 0;
  width: 100%;
}

.sociallink {
  display: flex;
  width: 10%;
  margin: auto;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
}

.sociallink>div>a>img {
  width: 40px;
  cursor: pointer;
}

.terms {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 30%;
  margin: auto;
  margin-bottom: 20px;
}

.terms>div {
  text-decoration: underline;
  cursor: pointer;
  color: #6b389a;
}

.credits {
  display: flex;
  width: 50%;
  margin: auto;
  justify-content: space-evenly;
  margin-bottom: 20px;
}

.credits>div {
  text-decoration: underline;
  cursor: pointer;
  color: #6b389a;
}

.admin {
  display: flex;
  width: 10%;
  margin: auto;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.admin>div {
  text-decoration: underline;
  color: #6b389a;
  cursor: pointer;
}

.h2 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 50px;
  color: blue;
}

#adminTable {
  width: 95%;
  display: flex;
  margin: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

td>button {
  cursor: pointer;
  padding: 2px 5px;
}

@media (max-width:720px){
  #trending>div>div{
    grid-template-columns: repeat(2,1fr);
  }
  #menu-options{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
  }
  .first_nav{
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .first_nav>div:first-child{
    width: 50vw;
    display: flex;
    justify-content: left;
    align-items: center;
  }

  #cart-link{
    width: 100vw;
    display: flex;
    justify-content: end;
    align-items: center;
  }
  #mobile-input {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
    border-radius: 10px;
    border: 1px solid gray;
    background-color: wheat;
  }
  
  #mobile-input>input {
    width: 80vw;
    padding: 12px 5px;
    border: none;
    outline: none;
    border-right: 1px solid gray;
    border-radius: 10px;
  }
  
  #mobile-input>img {
    width: 25px;
    cursor: pointer;
  }
  .first_nav>div:nth-child(2){
    display: none;
  }

  #slideshow>img{
    height: 250px;
  }
  .des_content{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: auto;
    gap: 20px;
  }
  #des_img{
    width: 90%;
    margin: auto;
  }
  #prod_details{
    width: 90%;
    margin: auto;
    height: auto;
  }
  #searchContainer>div>img {
    height: auto;
    width: 50%;
  }
  .registration-form{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: auto;
    row-gap: 50px;
  }
  .registration-form>div{
    width: 100%;
  }
  .usr_details{
    width: 95%;
  }
  .sociallink{
    width: 50%;
  }
  .terms{
    width: 80%;
  }
  .credits{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: auto;
    gap: 20px;
    text-align: center;
  }
}