/* Global  */
* {
  margin: 0;
  list-style: none;
  text-decoration: none;
  color: #FFFFFF;
  font-family: "Noto Sans", sans-serif;
}

body {
  background-color: #030a15;

}



/* Utility Classes */
nav {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5em;
  font-size: 1.22rem;
  font-family: "Noto Sans", sans-serif;
  flex-wrap: wrap;
  /* Allow navigation items to wrap on smaller screens */
  padding: 1em 0;
  /* Add some padding for smaller screens */

}

h1 {
  margin-bottom: 0.5rem;
  font-family: "Winky Sans", sans-serif;
  font-size: 2.5rem;
  /* Base font size for h1 */
}




/* Subject Specific ID */
#navItems ul {
  display: flex;
  flex-wrap: wrap;
  /* Allow nav items to wrap */
  justify-content: center;
  /* Center nav items when they wrap */
  padding: 0;
  /* Remove default ul padding */
}

#navItems ul li a:hover {

  color: #9590f2;
}

#navItems ul li {
  margin: 0px 25px;
}

#allPages a {
  display: flex;
}

#allPages img {
  width: 20px;
  height: 20px;
}


#btn {
  position: relative;
  font-family: "Winky Sans", sans-serif;

  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: ghostwhite;
  overflow: hidden;
  margin-top: 3em;
}

#btn svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
}

#btn span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em 0.8em 1.05em;
}

#btn::before,
#btn::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#btn::before {
  content: "";
  background: #000;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

#btn:hover::before {
  transform: translate3d(100%, 0, 0);
}

#btn:active {
  transform: scale(0.95);
}


#loginNavBtn {
  display: flex;
  justify-content: center;
  margin-top: 1em;
  /* Adjust margin for smaller screens */
}





/* Subject Specific Classes */
.mid {
  text-align: center;
  margin-top: 5em;
  font-size: 1.5em;
}

.app-content {
  display: none;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  --color: hsl(0, 0%, 87%);
  --animation: 2s ease-in-out infinite;
  flex-wrap: wrap;
  /* Ensure circles wrap if too many */
}

.loader .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  height: 20px;
  border: solid 2px var(--color);
  border-radius: 50%;
  margin: 0 10px;
  background-color: transparent;
  animation: circle-keys var(--animation);
}

.loader .circle .dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color);
  animation: dot-keys var(--animation);
}

.loader .circle .outline {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: outline-keys var(--animation);
}

.circle:nth-child(2) {
  animation-delay: 0.3s;
}

.circle:nth-child(3) {
  animation-delay: 0.6s;
}

.circle:nth-child(4) {
  animation-delay: 0.9s;
}

.circle:nth-child(5) {
  animation-delay: 1.2s;
}

.circle:nth-child(2) .dot {
  animation-delay: 0.3s;
}

.circle:nth-child(3) .dot {
  animation-delay: 0.6s;
}

.circle:nth-child(4) .dot {
  animation-delay: 0.9s;
}

.circle:nth-child(5) .dot {
  animation-delay: 1.2s;
}

.circle:nth-child(1) .outline {
  animation-delay: 0.9s;
}

.circle:nth-child(2) .outline {
  animation-delay: 1.2s;
}

.circle:nth-child(3) .outline {
  animation-delay: 1.5s;
}

.circle:nth-child(4) .outline {
  animation-delay: 1.8s;
}

.circle:nth-child(5) .outline {
  animation-delay: 2.1s;
}

@keyframes circle-keys {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dot-keys {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes outline-keys {
  0% {
    transform: scale(0);
    outline: solid 20px var(--color);
    outline-offset: 0;
    opacity: 1;
  }

  100% {
    transform: scale(1);
    outline: solid 0 transparent;
    outline-offset: 20px;
    opacity: 0;
  }
}




.auth-button {
  --primary-color: #4d44f2;
  --secondary-color: #fff;
  --hover-color: #111;
  --arrow-width: 10px;
  --arrow-stroke: 2px;
  box-sizing: border-box;
  border: 0;
  border-radius: 20px;
  color: var(--secondary-color);
  padding: 1em 1.8em;
  background: var(--primary-color);
  display: flex;
  transition: 0.2s background;
  align-items: center;
  gap: 0.6em;
  font-weight: bold;
  height: 3rem;

}

.auth-button .arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-button .arrow {
  margin-top: 1px;
  width: var(--arrow-width);
  background: var(--primary-color);
  height: var(--arrow-stroke);
  position: relative;
  transition: 0.2s;
}

.auth-button .arrow::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border: solid var(--secondary-color);
  border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
  display: inline-block;
  top: -3px;
  right: 3px;
  transition: 0.2s;
  padding: 3px;
  transform: rotate(-45deg);
}

.auth-button:hover {
  background-color: var(--hover-color);
  cursor: pointer;
}

.auth-button:hover .arrow {
  background: var(--secondary-color);
}

.auth-button:hover .arrow:before {
  right: 0;
}


#logoutBtn {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: white;
  background-color: #171717;
  padding: 1em 2em;
  border: none;
  border-radius: .6rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

#logoutBtn span:not(:nth-child(6)) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 30px;
  width: 30px;
  background-color: #0c66ed;
  border-radius: 50%;
  transition: .6s ease;
}

#logoutBtn span:nth-child(6) {
  position: relative;
}

#logoutBtn span:nth-child(1) {
  transform: translate(-3.3em, -4em);
}

#logoutBtn span:nth-child(2) {
  transform: translate(-6em, 1.3em);
}

#logoutBtn span:nth-child(3) {
  transform: translate(-.2em, 1.8em);
}

#logoutBtn span:nth-child(4) {
  transform: translate(3.5em, 1.4em);
}

#logoutBtn span:nth-child(5) {
  transform: translate(3.5em, -3.8em);
}

#logoutBtn:hover span:not(:nth-child(6)) {
  transform: translate(-50%, -50%) scale(4);
  transition: 1.5s ease;
}








#message {
  padding: 0px 5rem;
  padding-top: 3rem;
  line-height: 2em;
}

#message a{
  text-decoration: underline;
}