/** General **/
*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.wrapper {
  width: 80%;
  margin: 0 auto;
}

body {
  height: 100vh;
}
h1 {
  font-size: 1.3em;
  padding: 25px 0 25px 5px;

}
header {
  justify-content: start;
  border-bottom: 1px solid grey;
}
.basket {
  display: flex;
  align-items: center;
}
.basket-img {
  width: 25px;
  margin: 5px;
}
.total-card {
  padding-left: 10px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
}
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Alert */
.alert {
  display:none;
  bottom: 0;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  animation: fadeup 2s ease-in-out, move 1s ease-in-out;
  -webkit-animation: fadeup 2s ease-in-out, move 1s ease-in-out;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  -ms-border-radius: 0.25rem;
  -o-border-radius: 0.25rem;
}
.close-alert {
  position:absolute;
  top:0;
  right: 0;
  top: 0;
  text-decoration: none;
  font-size: 0.8em;
  color: #000;
}

.alert-show {
  display: block;
}
.alert-hidden {
  display: block;
}
.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}


@keyframes fadeup {
  from {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    -webkit-transform: translateY(-20px);
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -o-transform: translateY(-20px);
  }
}
main {
  display: flex;
  flex-direction: column;
}
table {
  width: 100%;
}
table thead tr th {
  border: 1px solid grey;
}
table tbody tr th:nth-child(6) {
  display:flex;
  flex-direction: column;
}
table tbody tr th:nth-child(6) a {
  border:1px solid grey;
  padding:5px 0 5px 0;
  margin-top:5px;
  font-size:10px;
}

/* container btn */
table {
  display: table;
  width: 100%;
}
table tr {
  display: table-row;
}
table tr th {
  display: table-cell;
  border: 1px solid grey;
  padding: 5px;
}
table a {
  list-style-type: none;
  text-decoration: none;
  color:#000;
}

table tfoot th {
  border:none;
}
table tfoot tr th:nth-child(1)  {
  padding:10px;
  border: none;

}
table tfoot tr th:nth-child(2)  {
  padding:10px;
  border:1px solid grey;

}
table tfoot tr th:nth-child(3)  {
  padding:10px;
  border:1px solid grey;

}
table tfoot tr th:nth-child(4)  {
  padding:10px;
  border:1px solid grey;

}
table tfoot tr th:nth-child(5)  {
  border:1px solid grey;

}
table tfoot tr th:nth-child(5) a {
  display:flex;
  flex-direction: column;
  padding:5px;
  border: 1px solid grey;
  font-size:10px;
}



.div-btn {
  display:flex;
  justify-content: end;

  width:80%;
  padding:10px;

}
.div-btn a {
  padding:5px;
  list-style-type: none;
  text-decoration: none;
  color:#000;
  border:1px solid #000;
}
/*////////////////////////////////*/
.sidenav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 20px 0 20px 0;
}
.sidenav ul li {
  font-size: 1.2em;
  text-align: center;
  padding: 0 10px 0 10px;
}

.hidden-sidenav {
  left: -80%;
}

.show-sidenav {
  position: fixed;
  left: 0;
}
/* burger */
.burger-icon {
  margin-right: 15px;
}
.burger-icon span {
  display: none;
  width: 35px;
  height: 5px;
  background-color: grey;
  border: 1px solid #fff;
  margin: 4px 0;
}

/* Close cross */
.close-icon {
  position: absolute;
  display: none;
  right: 0;
  top: 0;
  text-decoration: none;
  font-size: 1.5em;
  color: #fff;
  padding: 5px;
}

/*//////////////////////////////*/

form,
form p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}
form p label {
  display: flex;
  flex-direction: column;
  padding: 5px;
}
p {
  /*box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;*/
}
/* container btn */
p:nth-last-child(1) {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}
p:nth-last-child(1) input {
  height: 50%;
  margin: 5px;
}
#submit-btn {
  background-color: rgb(211, 243, 157);
  height: 2em;
  padding: 5px;
  border: none;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* input number */
/* source https://stackoverflow.com/questions/45396280/customizing-increment-arrows-on-input-of-type-number-using-css*/

/*table tbody tr th form input[type="number"] {
    appearance: textfield;
  }*/
.number-input {
  border: 1px solid grey;
  width: 100px;
  display: inline-flex;
}

.number-input a {
  outline: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  padding: 10px;
  width: 3rem;
  height: 1.5rem;
  cursor: pointer;
  position: relative;
}

.number-input a:after {
  display: inline-block;
  position: absolute;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f077";
  transform: translate(-50%, -50%) rotate(180deg);
}
.number-input a.up:after {
  transform: translate(-50%, -50%) rotate(0deg);
}


/*footer {
  position: absolute;
  display: flex;
  justify-content: space-around;
  bottom: 0;
  left: 0;
  text-align: center;
  width: 80%;
}
footer section {
  border: 1px solid grey;
  width: 33%;
}
footer section:nth-child(1) {
    text-align:left;
}*/
/* Responsive*/
@media screen and (min-width: 319px) and (max-width: 420px) {
  table {
    width: 100%;
  }
  .wrapper {
    width: 100%;
  }
  h1 {
    font-size: 1.1em;
  }
  section {
    width: 100%;
  }
  .new-product {
    display: flex;
    flex-direction: column;
  }
  header {
    justify-content: start;
  }
  .basket {
    display: flex;
    align-items: center;
  }
  .basket-img {
    width: 25px;
    margin: 5px;
  }
  .total-card {
    padding-left: 10px;
  }
  main {
    width: 100%;
    /*display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;*/
  }
  .new-product form {
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(174, 172, 172);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    padding: 15px 15px 25px 15px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }
  /* Premier et dernier enfant du form*/
  form p:nth-child(1) {
    min-height: 50px;
  }
  form p:nth-child(2) {
    min-height: 50px;
  }
  form p:nth-child(3) {
    min-height: 50px;
  }
  form p:nth-last-child(1) {
    min-height: 50px;
    z-index: 1;
  }
  p:nth-last-child(1) {
    min-height: 50px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: end;
  }
  /* Sidenav */
  .sidenav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 1;
    background-color: grey;

    border-radius: 0 0 15px 0;
    border: 1px solid #fff;
    transition: left 0.5s ease;
    -webkit-border-radius: 0 0 15px 0;
    -moz-border-radius: 0 0 15px 0;
    -ms-border-radius: 0 0 15px 0;
    -o-border-radius: 0 0 15px 0;
  }

  /** Navlink **/
  .sidenav ul {
    display: block;
  }
  /* Link */
  .sidenav ul li {
    text-align: left;
  }
  .sidenav ul li a {
    color: #fff;
    list-style-type: none;
    text-decoration: none;
  }
  /* Close cross */
  .close-icon {
    display: block;
  }
  /* Burger */
  .burger-icon {
    position: fixed;
    top: 0;
    right: 0;
    margin: 5px 15px 0 0;
    z-index: 1;
  }
  .burger-icon span {
    display: block;
  }

  .alert {
    width: 100%;
  }

  footer {
    flex-direction: column;
    width: 100%;
  }
  footer section {
    width: 100%;
  }
}

/*@media screen and (min-width: 319px) and (max-width: 420px) {
}
@media screen and (min-width: 420px) and (max-width: 520px) {
}
@media screen and (min-width: 520px) and (max-width: 620px) {
}
@media screen and (min-width: 620px) and (max-width: 720px) {
}
@media screen and (min-width: 720px) and (max-width: 820px) {
}
@media screen and (min-width: 820px) and (max-width: 920px) {
}
@media screen and (min-width: 920px) and (max-width: 1020px) {
}
@media screen and (min-width: 1020px) and (max-width: 1120px) {
}
@media screen and (min-width: 1120px) and (max-width: 1220px) {
}
@media screen and (min-width: 1220px) and (max-width: 1420px) {*/
