* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background-color: #f1f1f1;
  --main-color: #101318;
  --dark-gray: #3a4c59;
  --light-gray: #b0c4cc;
  --mint-green: #c4e0d1;
  --light-beige: #e2b97f;
  --dusty-blue: #4c6d7c;
  --extra-light-gray: #b0b0b0;
}

.toast-container {
  position: fixed;
  top: 80px;
  z-index: 1009;
  opacity: 80%;
  transition: opacity 0.5s ease-in-out;
}

.toast-container:hover {
  opacity: 100%;
}

html {
  background: var(--background-color);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--background-color);
  min-width: 320px;
}

#page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 3rem;
}

#content-wrap {
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  padding: 20px;
  max-width: calc(100% - (10vw - 50px));
  display: flex;
  flex-direction: column;
}

/* Bar */

.bar-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  top: 0;
  z-index: 1010;
  padding: 1rem;
}

.navbar {
  padding: 0.7rem;
  width: 100%;
  padding: 5px !important;
  border-radius: 13px;
  -webkit-box-shadow: 0px 11px 35px -4px rgb(0 0 0 / 0.23);
  -moz-box-shadow: 0px 11px 35px -4px rgb(0 0 0 / 0.23);
  box-shadow: 0px 11px 35px -4px rgb(0 0 0 / 0.23);
  background: rgba(0, 0, 0, 0.8);
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffffff;
}

.navbar .nav-link {
  color: #ffffff;
}

.navbar .nav-link.active {
  color: #ffffff;
  font-weight: bold;
}

.navbar .nav-link:hover,
.navbar-brand:hover {
  color: #828282;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler i {
  font-size: 1.2rem;
}

.user-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
}

.user-btn:hover {
  color: var(--extra-light-gray);
}

.right-elements {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 2px;
  margin-top: 6px;
  margin-right: 14px;
}

.user-dropdown-menu {
  background: #212529 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  min-width: 200px !important;
  font-size: 14px !important;
}

.user-dropdown-menu a,
.user-dropdown-menu .dropdown-item {
  background: transparent !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  transition: background-color 0.2s ease !important;
  border: none !important;
  width: 100% !important;
  text-align: left !important;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu .dropdown-item:hover {
  background: #39393b !important;
  color: #ffffff !important;
}

/* User badge button */
.user-badge-btn {
  background: #212529 !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.375rem 0.75rem !important;
  transition: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.user-badge-btn:hover,
.user-badge-btn:focus,
.user-badge-btn:active,
.user-badge-btn.show {
  background: #212529 !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.user-badge-avatar {
  background: #6c757d;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-weight: bold;
}

.user-badge-name {
  font-size: 14px;
}

.language-selector {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #555;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 0.8rem;
}

.language-selector:focus {
  outline: none;
  border-color: #888;
}

.user-badge-icon {
  font-size: 10px;
}

li a {
  font-size: 1rem;
}

/* Footer Container */
footer {
  background: linear-gradient(
    180deg,
    var(--background-color) 0%,
    rgba(196, 188, 255, 0.1) 13%,
    rgba(196, 188, 255, 0.3) 33%,
    rgba(196, 188, 255, 0.6) 100%,
    rgba(196, 188, 255, 0.7) 100%
  );
  backdrop-filter: blur(10px); /* Ajusta el valor del blur */
  padding: 11rem 0 0 0;
}

.footer_container {
  max-width: 1500px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.main_logo,
.main_logo img {
  height: 5rem;
  margin: 0 auto 10px;
  display: block;
}

#udc-logo {
  flex: 2;
}

.footer_images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 2rem;
}

.footer_images a {
  width: auto;
  height: 6rem;
}

.footer_images img {
  height: 100%;
}

@media (max-width: 768px) {
  .bar-container {
    padding: 0;
  }

  .navbar {
    border-radius: 0;
    background-color: #101318;
  }

  #page-container {
    overflow-x: hidden;
  }

  main {
    margin: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    text-align: center;
  }

  .container {
    padding: 10px;
    background-color: transparent;
    box-shadow: none;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  main {
    margin: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    text-align: center;
  }

  .navbar .form-group {
    width: 100%;
  }

  .navbar .btn {
    width: 100%;
  }
}
