/* background-color: #222;
*/
.navbar {
  background-color: var(--main-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  width: 18rem;
  box-sizing: border-box;
  flex-wrap: nowrap;
  position: relative;
  left: 0;
  transition: 0.2s all ease;
  z-index: 9999;
  grid-area: navbar;
}

.navbar .school {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 14rem;
  margin: 0;
  box-sizing: border-box;
  color: white;
}
.outline-primary {
  color: white;
  //border-color: #007bff;
  //border-color: #28a745;
  border-color: white;
  font-weight: bold;
  animation-name: example;
  animation: example 2s infinite;
  border-radius: 25% 10%;
}

@keyframes example {
  from {
    border-color: transparent;
  }
  to {
    border-color: white;
    border: solid;
  }
}

.navbar .plantel {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

.navbar .school svg {
  height: 8rem;
  width: 8rem;
}

.navbar nav ul {
  padding: 0;
}

.navbar > nav:nth-child(2) {
  height: 100%;
  padding: 1rem;
  overflow-y: scroll;
  margin-right: 0.2rem;
}

.navbar > nav:nth-child(2)::-webkit-scrollbar {
  width: 0.5rem;
}

.navbar > nav:nth-child(2)::-webkit-scrollbar-track {
  background: var(--main-color);
}

.navbar > nav:nth-child(2)::-webkit-scrollbar-thumb {
  background-color: white;
  border: 3px solid transparent;
}

.navbar > nav:nth-child(2) li {
  margin-bottom: 0.5rem;
  display: flex;
}

.navbar > nav li a,
.navbar > nav li button {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background-color: transparent;
  white-space: normal;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--paragraph-size);
}

.navbar > nav li a:hover,
.navbar > nav li button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
}

.navbar > nav:nth-child(3) {
  border-top: 0.1rem solid var(--text-color);
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.navbar > nav:nth-child(3) li {
  width: 100%;
  box-sizing: border-box;
  display: flex;
}

.navbar ul {
  list-style: none;
}

.navbar a,
.navbar p,
.navbar button {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.4rem;
  text-align: left;
  margin: 0;
}

.navbar a svg,
.navbar button svg {
  height: 1.4rem;
  width: 1.4rem;
  margin-right: 1rem;
}

.navbar .user-navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.navbar .user-navbar p {
  font-size: 1.3rem;
}

.navbar-user-image {
  padding-right: 1rem;
  margin: 0;
}

.navbar-user-image img {
  height: 6rem;
  width: 6rem;
  border-radius: 50%;
}

.warning-color {
  color: var(--warning-color);
}

.warning-color a:hover {
  background-color: (var(--warning-color));
  color: var(--main-color);
}

.navbar nav .dropdown {
  width: 100%;
}

.navbar nav .dropdown-menu {
  position: relative;
  background-color: var(--main-color);
  color: var(--text-color);
  transform: initial;
  top: initial;
  border-bottom: 0.1rem solid Var(--text-color);
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar .btn-check:focus + .btn-secondary,
.navbar .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
#dropdownMenuTutorial {
  padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background-color: transparent;
    white-space: normal;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--paragraph-size);
}
#dropdownMenuTutorial:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
}
/* MODAL DE "BUSCAR ESTUDIANTE" #searchStudent  */

#main-student-option {
  position: absolute;
  left: 0;
  right: 0;
  box-shadow: 0.1rem 0.1rem 0.6rem rgb(0 0 0 / 20%);
  background: white;
  max-height: 15rem;
  overflow-y: auto;
}

#main-student-option .text-button {
  box-shadow: none;
  text-align: left;
  align-items: flex-start;
}

#main-student-option .option-selected {
  color: var(--main-color) !important;
  background-color: #1e2a4d2c;
}

#student-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

#student-info .input-wrapper {
  margin-bottom: 0;
}

#student-info img,
#student-info figure {
  height: 12rem;
  width: 12rem;
}

#student-info table {
  margin-bottom: 1rem;
  width: 100%;
  border-collapse: collapse;
}

#student-info table th {
  border: 0.1rem solid #a7a7a7;
  background-color: #a7a7a7;
  color: white;
  padding: 0 0.5rem;
}

#student-info table tr:hover {
  background-color: transparent !important;
}

#student-info table td {
  border: 0.1rem solid #a7a7a7;
  padding: 0.2rem 0.5rem;
}

#student-info form {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (max-width: 680px) {
  #student-info {
    grid-template-columns: 1fr;
  }

  #student-info fieldset div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    gap: 1rem;
  }
}

.btn {
  font-size: var(--paragraph-size);
}

.btn-outline-primary {
  color: var(--main-color);
  border-color: var(--main-color);
}

.btn-outline-primary:hover {
  background-color: var(--light-main-color);
  border-color: var(--light-main-color);
}

.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  color: #fff;
  background-color: var(--main-color);
  border-color: var(--main-color);
}

@media screen and (max-width: 1024px) {
  .navbar {
    position: fixed;
    top: 0;
    /* left: 21rem; */
    bottom: 0;
    width: 0;
    overflow: hidden;
  }

  .navbar > nav:nth-child(2) {
    width: 100%;
  }

  .close-navbar-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9998;
  }

  .close-navbar-section-show {
    display: initial;
  }

  .show-navbar {
    /* left: 0rem !important; */
    /* width: 40rem; */
    width: 75vw;
  }

  .close-navbar-section-show::after {
    content: "Cerrar";
    display: block;
    background-color: var(--main-color);
    color: white;
    width: 7rem;
    margin-left: 75vw;
    aspect-ratio: 1;
    font-size: var(--paragraph-size);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    animation: showCloseButton 0.2s ease;
  }

  @keyframes showCloseButton {
    from {
      margin-left: 0;
    }

    to {
      margin-left: 75vw;
    }
  }
}

@media print {
  .navbar {
    display: none;
  }
}

.file-select {
  position: relative;
  display: inline-block;
}

.file-select::before {
  background-color: var(--main-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  content: "Seleccionar";
  /* testo por defecto */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.file-select input[type="file"] {
  opacity: 0;
  width: 12rem;
  height: 3rem;
  display: inline-block;
}

#src-file1::before {
  cursor: pointer;
  content: "Cambiar foto";
}
