@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
}

a {
  text-decoration: none;
}

.light-text {
  color: #000;
}

.dark-text {
  color: #fff;
}

.light-navbar {
  background-color: #f8f9fa;
  border-right: solid 1px #6e6e6e;
}

.dark-navbar {
  border-right: #7f7f7f solid 1px;
  background: rgb(18, 18, 18);

}

.title {
  text-align: center;
  font-size: 300%;
  margin-bottom: 5%;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  min-height: 100vh;
  position: relative;
  width: 100vw;
  overflow-x: hidden;
}

.light-background {
  background: linear-gradient(90deg, rgba(245, 245, 246, 1) 0%, rgba(245, 245, 246, 1) 8%, rgba(243, 244, 245, 1) 16%, rgba(233, 235, 241, 1) 50%, rgba(230, 233, 239, 1) 100%);
}

.dark-background {
  background-color: #070406;
}

.light-hamburger {
  background-color: rgb(19, 19, 19);

}

.dark-hamburger {
  background-color: #ededef;
}

.light-block {
  background-color: #f8f9fa;
  -webkit-box-shadow: 0px 5px 25px 0px rgba(45, 45, 64, 1);
  -moz-box-shadow: 0px 5px 25px 0px rgba(45, 45, 64, 1);
  box-shadow: 0px 5px 15px -5px rgba(45, 45, 64, 1);
  color: #000;
}

.dark-block {
  background-color: rgb(19, 19, 19);
  -webkit-box-shadow: 0px 0px 15px -5px #000000;
  -moz-box-shadow: 0px 0px 15px -5px #000000;
  box-shadow: 0px 0px 15px -5px #000000;
  color: #f8f9fa;
}

header {
  height: 7vh;
  display: flex;
  align-items: center;
  /* position: sticky; */
  top: 0;
  z-index: 10;
}


nav {
  margin: 0px auto;
  width: 95vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 5px;
}

nav.show {
  animation: showNavbar 0.5s;
}

@keyframes showNavbar {
  from {
    margin-top: -11vh;
  }

  to {
    margin-top: 0vh;
  }

}

.nav-div {
  display: flex;
  align-items: center;
  min-width: 20%;
  justify-content: end;
  gap: 10%;
}

main {
  padding-top: 4vh;
  min-height: 84vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding-bottom: 5vh;
  overflow: hidden;
  /* height: 100%; */
}

.light-main {
  background-image: url("../images/01.png");
}

.dark-main {
  background-image: url("../images/82.png");
}

.lowOpacity {
  opacity: 0.33;
}

.user-interface {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100vh;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  z-index: 2;
  border-right: none;
  border-left: solid 1px #6e6e6e;
}

.user-interface.dark-navbar {
  border-left: #7f7f7f solid 1px;
}

.user-interface>* {
  margin-right: 1%;
  display: flex;
  gap: 15px;
  font-size: 100%;
}

.user-interface .user-content:first-child {
  display: flex;
  flex-direction: column;
  width: 95%;
}

.user-interface .user-content:last-child {
  margin-bottom: 5%;
}

.user-content:first-child div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item {
  font-size: 150%;
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  margin-right: 2%;
}

.dropdown-item img {
  height: 100%;
}

.logOut {
  margin-right: 1vw;
}

#darkMode {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  margin: 0;
}

.name {
  padding: 1.5vh;
  border-radius: 15px;
  white-space: nowrap;
}

.light-line {
  stroke: #d5a9a9;
}

.dark-line {
  stroke: #d5a9a9;
}

.light-char-diagram {
  fill: black;
  stroke: black;
  color: black;
}

.dark-char-diagram {
  fill: white;
  stroke: white;
  color: white;
}

.mods {
  margin-left: -100%;
}

.profilePicture {
  border-radius: 50%;
  height: 6vh;
  cursor: pointer;
}

.smallerProfilePicture {
  border-radius: 50%;
  height: 50px;
}

.profileName {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 2%;
}

.a-logo {
  width: 150px;
  display: inline-block;
}

.fi {
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  width: 16px;
  display: block;
}

.fi::before {
  width: 16px;
  display: block;
}

@keyframes slowShow {
  from {
    width: 0;
  }

  to {
    width: 20%;
  }
}

@keyframes slowHide {
  from {
    margin-left: 0vw;
  }

  to {
    margin-left: -20vw;
  }

}

@keyframes slowHideRight {
  from {
    margin-right: 0vw;
  }

  to {
    margin-right: -22vw;
  }
}

.navbar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100vh;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.navbar div>* {
  margin: 5% 2% 0 2%;
}

.navbar div .navbar-top-conatnier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2%;
}

.navbar-top-conatnier button,
.user-interface button,
.close-hint {
  background: none;
  border: none;
  font-size: 150%;
  font-weight: 700;
  cursor: pointer;
  padding: 2% 4%;
  background-color: #d9e0e0;
  border-radius: 15px;
}

.navbar-top-conatnier button:hover,
.user-interface button:hover,
.close-hint:hover {
  transition: 0.4s ease;
  color: #0046d5;
}

.navbar-bottom-conatnier {
  display: flex;
  justify-content: space-between;
  padding: 0 5% 5% 0;
}

.menu-icon {
  width: 35px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  margin: 0 2vh;
}

.menu-icon div {
  width: 100%;
  height: 5px;
}

.navbar.show {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation-name: slowShow;
  animation-duration: 0.4s;
}

.navbar.hide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation-name: slowHide;
  animation-duration: 0.4s;
}

.user-interface.show {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  animation-name: slowShow;
  animation-duration: 0.4s;
}

.user-interface.hide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  animation-name: slowHideRight;
  animation-duration: 0.4s;
}

a.back-button {
  position: fixed;
  bottom: 5%;
  left: 4%;
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #3B82F6;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
}

a.back-button:hover {
  background-color: #2563EB;
  transform: translateY(-3px);
}

a.back-button:active {
  background-color: #1D4ED8;
  transform: translateY(0);
}

.classForm {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
}

.select2-selection__rendered {
  font-size: 150% !important;
  font-weight: 700 !important;
}

.select2-results__option {
  font-size: 110% !important;
  color: #000;
}

.delete {
  cursor: pointer;
  border: none;
  width: fit-content;
  margin-left: 25%;
  background-color: transparent;
}

.tutorial-container {
  width: 80%;
  position: absolute;
  z-index: 15;
  top: 6%;
  left: 10%;
}

.tutorial {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
  height: fit-content;
  border-radius: 25px;
  min-height: 84vh;
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  padding: 2% 0;
  border-bottom: solid #d9e0e0 1px;
}

.close-hint {
  cursor: pointer;
  padding: 1% 2%;
}

.tutorial-header h2 {
  font-size: 200%;
  font-weight: 700;
}


.tutorial .main-img {
  width: 80%;
}

.info-tutorial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin-top: 5%;
  border-bottom: solid #d9e0e0 1px;
  padding-bottom: 3%;
}

.info-tutorial:nth-child(2) {
  flex-direction: column;
}

.info-tutorial:nth-child(3) {
  flex-direction: row-reverse;
}

.info-tutorial:last-child {
  margin-bottom: 2%;
  border-bottom: none;
}

.info-tutorial img {
  width: 20%;
}

.info-tutorial h3 {
  width: 60%;
}

.info-tutorial:nth-child(2) h3 {
  margin-top: 5%;
  width: 100%;
}

.hint {
  cursor: pointer;
}

.buttonToTop {
  position: fixed;
  bottom: 5%;
  right: 2%;
  z-index: 1000;
  cursor: pointer;
  border-radius: 50%;
  padding: 1%;
  border: none;
  background-color: #0046d5;
}

@media screen and (width <=1024px) {

  .user-interface,
  .navbar {
    width: 40%;
  }

  @keyframes slowShow {
    from {
      width: 0;
    }

    to {
      width: 40%;
    }
  }

  @keyframes slowHide {
    from {
      margin-left: 0vw;
    }

    to {
      margin-left: -40vw;
    }

  }
}

@media screen and (width <=900px) {
  header {
    height: fit-content;
  }

  nav {
    width: 90%;
  }

  .nav-div {
    width: 100%;
    justify-content: end;
    font-size: 80%;
  }

  .a-logo h3 {
    text-align: center;
  }

  .mods {
    margin-left: 0;
  }

  .mods-div {
    margin-right: 0;
  }

  .tutorial-container {
    top: 8%;
  }

  .info-tutorial,
  .info-tutorial:nth-child(2) {
    flex-direction: column;
  }

  .info-tutorial:nth-child(3) {
    flex-direction: column;
  }

  .info-tutorial h3 {
    width: 100%;
  }

  .info-tutorial img {
    width: 80%;
  }

  .tutorial .main-img {
    width: 100%;
  }
}

@media screen and (width <=600px) {

  .user-interface,
  .navbar {
    width: 100%;
    border: none;
    border-radius: 0;
    height: 100dvh;
  }

  .buttonToTop{
    padding: 5%;
  }

  main {
    min-height: calc(83vh + 4px);
  }

  .tutorial-container {
    top: 0%;
    width: 100%;
    left: 0%;
    padding-bottom: 0;
  }

  .tutorial {
    border-radius: 0;
  }

  @keyframes slowShow {
    from {
      width: 0;
    }

    to {
      width: 100%;
    }
  }

  @keyframes slowHide {
    from {
      margin-left: 0vw;
    }

    to {
      margin-left: -100vw;
    }

  }

  @keyframes slowHideRight {
    from {
      margin-right: 0vw;
    }

    to {
      margin-right: -100vw;
    }

  }
}

.dark-main .custom-checkbox:hover input~.checkmark:not(:checked),
.dark-main .checkmark:not(:checked):hover {
  background-color: #3d4a4a;
}

.dark-main .checkmark:not(:checked) {
  background-color: #232b2b;
}
