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

:root {
  --secondary-opt-1: #ff9914;
  --secondary-opt-2: #02020A
    /* #1488cc */
  ;
  --dark-gray: #50514F;
}

nav.navbar img {
  max-width: 100px;
  height: auto;
}

nav.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  /* background-color: rgba(0, 0, 0, 0.068); */
  padding: 25px 0px;
  text-align: center;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease-in-out;

  &::before {
    content: "";
    position: absolute;
    top: 110%;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
  }

  &:hover {
    color: #fff;
  }

  &:hover::before {
    transform: scaleX(1);
  }
}

.active {

  &::before {
    content: "";
    position: absolute;
    top: 110%;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transform: scaleX(1);
    transition: transform 0.3s ease-in-out;
  }
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-right: 30px;
}

.navbar .user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.navbar .user-info p {
  margin-right: 15px;
}

.navbar .user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.image-container {
  display: inline-block;
  position: relative;
}

.image-container img {
  display: block;
  width: 200px;
  height: auto;
  transition: box-shadow 0.3s ease;
}

.image-container:hover img {
  box-shadow: 0 0 0 3px var(--secondary-opt-2);
}



body {
  min-height: 100vh;
  position: relative;
  flex-direction: column;
  background: #020617;
  background-image: 
    linear-gradient(to right, rgba(71,85,105,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71,85,105,0.15) 1px, transparent 1px),
    radial-gradient(circle at 50% 60%, rgba(236,72,153,0.15) 0%, rgba(168,85,247,0.05) 40%, transparent 70%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

/* Magenta orb grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  background-image: 
    linear-gradient(to right, rgba(71,85,105,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71,85,105,0.15) 1px, transparent 1px),
    radial-gradient(circle at 50% 60%, rgba(236,72,153,0.15) 0%, rgba(168,85,247,0.05) 40%, transparent 70%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  z-index: -1;
  pointer-events: none;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

section#flashcards {
  width: 100%;
  height: auto;
  /*   overflow: hidden; */
}

/*-----------------------------------------------------------------------------------------------------------------waves*/

section#waves {
  position: relative;
  width: 100%;
  bottom: 0;
  /*  margin-top: auto; */
}

section#waves .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url(../img/wave.png);
  background-size: 1000px 100px;
}

section#waves .wave.wave1 {
  animation: animate 30s linear infinite;
  z-index: 1000;
  opacity: 1;
  animation-delay: 0s;
  bottom: 0;
}

section#waves .wave.wave2 {
  animation: animate2 15s linear infinite;
  z-index: 999;
  opacity: 0.5;
  animation-delay: -5s;
  bottom: 10px;
}

section#waves .wave.wave3 {
  animation: animate 30s linear infinite;
  z-index: 998;
  opacity: 0.2;
  animation-delay: -2s;
  bottom: 15px;
}

section#waves .wave.wave4 {
  animation: animate2 15s linear infinite;
  z-index: 997;
  opacity: 0.7;
  animation-delay: -5s;
  bottom: 20px;
}

@keyframes animate {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: 1000px;
  }
}

@keyframes animate2 {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -1000px;
  }
}

/* ---------------------------------------------------------------------------------------flashcards section */

section#flashcards {
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  color: white;
  min-height: 100vh;
  padding: 130px 100px;
}

section#flashcards .flashcard-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-bottom: 40px;
}

.no-sets-container {
  position: absolute;
  top: 350px;
  left: 180px;
}

.no-sets-container h1 {
  font-family: "Shadows Into Light", cursive;
  font-size: 52px;
  color: #000;
  transform: rotate(-10deg);
}

.no-sets-container img {
  width: 120px;
  height: auto;
  transform: rotate(280deg);
}

.cards {
  padding: 20px 0px;
  /* margin-top: 20px; */
  display: flex;
  text-align: center;
  align-items: center;
  list-style: none;
  justify-content: flex-start;
  gap: 15px;
  overflow: auto;
}

.cards li {
  position: relative;
  vertical-align: middle;
  display: inline-block;
  min-width: 16rem;
  border-radius: 10px;
  height: 9rem;
  transition-duration: 0.5s;
  cursor: pointer;
}

.cards a {
  text-decoration: none;
  color: white;
}

section#flashcards ::-webkit-scrollbar {
  height: 0.5rem;
  width: 10px;
  background: #ecefeb;
  border-radius: 1rem;
  top: 20px;
}

section#flashcards ::-webkit-scrollbar-thumb {
  background: var(--secondary-opt-2);
  border-radius: 9.99rem;
}

.cards li .card-content {
  background-clip: border-box;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-clip: border-box;
}

.cards li:hover {
  transition-delay: 0.3s;
  min-width: 20rem;
  height: 11rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px;
  justify-content: space-between;
  border-radius: 10px;

  /* this could be personalized or generated*/
  background-size: 100% 100%;
  background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
  background-image: repeating-linear-gradient(315deg,
      #00ffff2e 92%,
      #073aff00 100%),
    repeating-radial-gradient(75% 75% at 238% 218%,
      #00ffff12 30%,
      #073aff14 39%),
    radial-gradient(99% 99% at 109% 2%, #00c9ffff 0%, #073aff00 100%),
    radial-gradient(99% 99% at 21% 78%, #7b00ffff 0%, #073aff00 100%),
    radial-gradient(160% 154% at 711px -303px, #2000ffff 0%, #073affff 100%);
}

.new-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  justify-content: center;
  border-radius: 10px;
  border: 4px dotted white;
  height: 144px;
  width: 100px;
  font-size: 40px;
  transition-duration: 0.5s;
}

.new-card-btn:hover {
  font-size: 60px;
}

.card-content .card-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
  gap: 2px;
}

.card-content .card-creator {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card-content .card-creator img {
  width: 25px;
  height: auto;
  border-radius: 50%;
  margin-right: 10px;
}

.circle-pfp {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 10px;
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: bold;
}

.middle-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.middle-circle:hover {
  transform: scale(1.1);
  border: 2px solid black;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.middle-circle.active-pfp {
  border: 2px solid black;
}

/* profile nav*/

.navigation__group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navigation__group>.icon {
  cursor: pointer;
  width: 36px;
  height: 36px;
  transition: all 0.2s ease-in-out;
}

.navigation__group>.icon:hover {
  transform: scale(1.1);
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: var(--text);
}

.profile {
  display: block;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid #f7f7f7;
  filter: drop-shadow(-20px 0 10px rgba(0, 0, 0, 0.1));
}

.profile:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}

.email {
  color: black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.dropdown__wrapper {
  z-index: 10000;
  font-family: "Montserrat", sans-serif;
  width: 240px;
  top: 80px;
  right: 1rem;
  position: absolute;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeOutAnimation ease-in-out 0.3s forwards;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown__wrapper--fade-in {
  animation: fadeInAnimation ease-in-out 0.3s forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

.none {
  display: none;
}

.hide {
  opacity: 0;
  visibility: hidden;
  animation: fadeOutAnimation ease-in-out 0.3s forwards;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    visibility: hidden;
    width: 160px;
  }

  100% {
    opacity: 1;
    visibility: visible;
    width: 240px;
  }
}

@keyframes fadeOutAnimation {
  0% {
    opacity: 1;
    width: 240px;
    visibility: visible;
  }

  100% {
    opacity: 0;
    width: 160px;
    visibility: hidden;
  }
}

.dropdown__group {
  padding: 12px;
}

.divider {
  width: 100%;
  padding: 0;
  margin: 0;
}

nav>ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

nav>ul>li {
  height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding-left: 8px;
  width: 100%;
}

nav>ul>li>img {
  height: 24px;
  width: 24px;
}

nav>ul>li:hover {
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------------- footer section */

footer {
  font-family: "Montserrat", sans-serif;
  bottom: 0;
  background-color: white;
  min-width: 18rem;
  width: 100%;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.footer-wrapper {
  display: flex;
  background: white;
  flex-direction: column;
  max-width: 80rem;
  padding: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  padding: 1rem 0px;
  justify-content: space-between;
}

/* .footer-line {
    display: block;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(
        90deg,#5da8ff,
        #605dff 50%,#ad63f6
    );
} */

/*? footer subscribe */
.footer-subscribe {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-subscribe>input {
  border: 1px solid gray;
  color: #333;
  min-height: 2.25rem;
  font-size: 1.2rem;
  flex: 1 0 8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.footer-subscribe>button {
  cursor: pointer;
  background: var(--text-color);
  border-radius: 0.5rem;
  color: white;
  font-size: 1.25rem;
  min-width: 8rem;
  min-height: 2.25rem;
  flex: 1 0 5rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border: 0;
  outline: none;
}

/*? footer columns */
.footer-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  flex: 2 0 140px;
  width: 100%;
  gap: 1rem;
  padding: 1.5rem 0.5rem 1rem 0.5rem;
  margin: 0 auto;
  border-top: 1px solid gray;
}

.footer-columns ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-columns ul a {
  color: #333;
  text-decoration: none;
}

.footer-columns ul a:hover {
  text-decoration: underline;
}

.footer-columns ul li {
  margin-bottom: 1rem;
}

.footer-columns h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-centering {
  margin: 0 auto;
}

.footer-columns>section {
  min-width: 9rem;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  min-width: 12rem;
  gap: 0.5rem;
}

/*? Footer bottom */

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--text-gray);
  margin-top: 3rem;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 1rem 0px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-bottom>small {
  font-size: 1rem;
  margin: 0 0.25rem;
}

.footer-headline>h2 {
  margin: 0;
}

.footer-headline>p {
  margin: 0.75rem 0px;
}

/*? socials */

.social-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.social-links img {
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.social-links img:hover {
  transform: scale(1.1);
}

/*? mobile */

@media (max-width: 800px) {
  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem 2rem 0.5rem;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: space-between;
    justify-content: center;
    margin: 0 auto;
  }
}