img {
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.1s ease;
}

a:hover {
  color: inherit;
}

ul {
  list-style: none;
}

body {
  width: 100wv;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: rgb(27, 27, 27);
  background-color: whitesmoke;
}

.main-page {
  width: 80%;
  margin: 50px auto;
}

.flash {
  width: 80%;
  margin: 20px auto;
}

.flash.home {
  margin: 0 auto;
}

.pagination .page-item.active .page-link {
  background-color: rgb(74, 0, 170);
  border: rgb(74, 0, 170) 1px solid;
  color: rgb(243, 243, 243);
}

.pagination .page-item.disabled .page-link {
  color: rgb(158, 158, 158);
}

.pagination .page-item .page-link {
  color: rgb(74, 0, 170);
}

/*------------------------------------------BOUTONS----------------------------------------------*/

.btn-primary {
  background-color: rgb(74, 0, 170);
  border: rgb(74, 0, 170) 1px solid;
}

.btn-outline-primary {
  border: rgb(74, 0, 170) 1px solid;
  color: rgb(74, 0, 170);
}

.btn:hover {
  background-color: rgb(111, 27, 221);
  color: rgb(243, 243, 243);
  border: rgb(111, 27, 221) 1px solid;
}

.button-back {
  margin-bottom: 20px;
}

.button-back:hover {
  background-color: #e4e4e4;
  border: 1px solid #e4e4e4;
  color: inherit;
}

.btn-dark:hover {
  background-color: #363636;
  border: 1px solid #363636;
}

.btn-danger:hover {
  background-color: #e7192e;
  border: 1px solid #e7192e;
}

.btn-light:hover {
  background-color: #e4e4e4;
  border: 1px solid #e4e4e4;
  color: inherit;
}

.btn-success {
  background-color: rgb(14, 180, 14);
  border: 1px solid rgb(14, 180, 14);
}

.btn-success:hover {
  background-color: rgb(58, 216, 58);
  border: 1px solid rgb(58, 216, 58);
}

.btn-warning:hover {
  background-color: #fdcc38;
  border: 1px solid #fdcc38;
  color: inherit;
}

/*------------------------------------------------------NAV-------------------------------------------------*/

nav h4 {
  font-family: "Sansita", sans-serif;
}

#menu .nav-link:hover,
#admin:hover {
  color: rgb(74, 0, 170);
}

nav .btn:hover {
  font-weight: 400;
}

.user-name {
  height: 100%;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.55);
}

ul img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 100%;
}

/*------------------------------------------------FOOTER---------------------------------------------------------*/
footer {
  background-color: rgb(29, 29, 29);
  color: rgb(243, 243, 243);
  display: flex;
  padding: 50px;
}

footer h4,
footer span {
  font-family: "Sansita", sans-serif;
}

footer p {
  margin-top: 20px;
}

footer .first-div {
  width: 65%;
  margin-right: 10%;
}

footer ul {
  padding-left: 0;
}

footer a:hover {
  font-style: italic;
  color: inherit;
}

footer ul:last-child li {
  font-size: 0.8em;
}

footer ul:last-child li span {
  color: #f1d57f;
}

/* ------------------------------------------MOBILE RESPONSIVE---------------------------------------------- */

@media screen and (max-width: 768px) {
  nav .dropdown-menu.show {
    position: absolute;
    left: 25%;
    top: 50%;
  }
  footer {
    flex-direction: column;
  }

  footer .first-div {
    width: 100%;
  }

  footer ul {
    padding-left: 0;
  }
}
