@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;600;800&display=swap");

* {
  font-family: "Nunito Sans", sans-serif;
}

body {
  --accent-color: #6a00ff;
  --background-color: white;
  --main-text-color: black;
  --button-text-color: var(--background-color);
  --transition-delay: 1s;
  --card-items-text-colour: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* height:100vh; */
  margin: 0;
  transition: var(--transition-delay);
  overflow-x: hidden;
  text-align: center;
  background-color: var(--background-color);
  color: var(--main-text-color);
}

.ul {
  display: list-item !important;
  margin-left: 2em;
}

.li {
  display: list-item;
  margin-left: 2em;
  list-style-type: circle !important;
}
.li ::marker {
  text-indent: 10px !important;
}

.navbar {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--accent-color);
  color: var(--card-items-text-colour);
}

.brand-title {
  font-size: 1.5rem;
  margin: 0.5rem;
  width: 250px;
  display: inline-flex;
}

.navbar-links {
  width: 90%;
  height: 100%;
}

.navbar-links ul {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-evenly;
}

.navbar-links li {
  list-style: none;
}

.navbar-links li a {
  text-decoration: none;
  color: var(--card-items-text-colour);
  padding: 1rem;
  text-align: center;
}

.navbar-links li:hover {
  background-color: var(--background-color);
  height: 100%;
}

.navbar-links li a:hover {
  color: var(--main-text-color);
}

.menu-close {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  display: none;
  font-size: 2rem;
}

.toggle-button {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  display: none;
  /*     flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height:21px; */
  font-size: 2rem;
}

/* .toggle-button .bar{
    height:3px;
    width:100%;
    background-color: white;
    border-radius: 10px;
} */

@media (max-width: 615px) {
  .toggle-button {
    display: flex;
  }
  .menu-close {
    display: none;
  }

  .toggle-button[expanded="true"] {
    display: none;
  }
  .menu-close[visible="true"] {
    display: block;
  }

  .navbar-links {
    display: none;
    /* position: fixed; */
    /* padding:min (10vh,m 10rem) 2em; */
    width: 100%;
    transform: translateX(-100%);
    transition: transform 350ms ease-out;
  }

  .navbar-links[data-visible="true"] {
    transform: translateX(0%);
    display: flex;
    background-color: var(--accent-color);
    color: var(--card-items-text-colour);
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links ul {
    flex-direction: column;
    width: 100%;
  }

  .navbar-links li {
    text-align: center;
  }

  .navbar-links.active {
    display: flex;
  }
}

/* @media (min-width:400px) and (max-width:890px) {
    .navbar-links {
        padding-inline: clamp(0rem, 20vw,100rem);
    }
}

@media (min-width:890px){
    .navbar-links {
        padding-inline: clamp(1rem, 1rem + 400vw,20rem);
        align-items: center;
    }

    .navbar-links ul{
        gap:clamp(0rem, 1rem + 30vw,7rem);
    }
} */

.card {
  margin: 1rem 0;
  padding: 1rem;
  /*display: flex;*/
  justify-content: space-between;
  align-items: flex-end;
  box-shadow: 5px 5px 10px 5px #000000;
  border-radius: 6px;
  background-color: #a5ffa1;
  color: #000000;
}

.listItem {
  /* list-style: none; */
  margin: 1em;
  padding: 1em;
  width: inherit;
  height: inherit;
}

.image {
  float: right;
  padding: 5px;
  z-index: 10;
  border-radius: 20px;
  margin: 10px 10px 10px 0;
}

.clearFix::after {
  content: "";
  clear: both;
  display: table;
}

/* div{
    height:100%;
} */

.box {
  position: relative;
  width: 80%;
  /* height:100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 20px;
  flex-direction: column;
  margin: 10px 0 10px 10px;
}

.box::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 90%;
  background: linear-gradient(to right, #0900ff, #02ff02);
  animation: animate 5s linear infinite;
}
.box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent-color);
  border-radius: 16px;
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.box h2,
.box p,
.box br,
.box ul,
.box a {
  position: relative;
  color: var(--card-items-text-colour);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.dark .box {
  color: black;
}
p {
  margin-block-start: 0px;
  margin-block-end: 0px;
}

body.dark {
  --accent-color: #b1ff9c;
  --background-color: #22014f;
  --main-text-color: white;
  --card-items-text-colour: black;
}

.title {
  margin: 0;
  margin-bottom: 0.5rem;
}

.theme-toggle-button {
  background-color: var(--accent-color);
  fill: var(--background-color);
  color: var(--button-text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0.5em 1em;
  border-radius: 0.3em;
  border: none;
  outline: none;
  transition: var(--transition-delay);
  transform: scale(1);
}

.theme-toggle-button:hover,
.theme-toggle-button:focus {
  transform: scale(1.1);
}

.theme-toggle-button .icon {
  margin-right: 0.5em;
  color: var(--button-text-color);
}

.sun-moon-container {
  --rotation: 0;

  position: relative;
  /* top:-475px; */
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transform: rotate(calc(var(--rotation) * 1deg));
  transition: transform var(--transition-delay);
}
.sun,
.moon {
  position: absolute;
  transition: opacity, fill, var(--transition-delay);
  width: 30px;
  height: 30px;
  fill: var(--accent-color);
}

.sun {
  /* top:22rem; */
  opacity: 1;
}

.dark .sun {
  opacity: 0;
}

.moon {
  /* bottom:22rem; */
  opacity: 0;
  transform: rotate(180deg);
}

.dark .moon {
  opacity: 1;
}

button ~ a,
button ~ a:visited {
  background-color: var(--main-text-color);
  background-image: linear-gradient(to right, #03fc24, #0589f5, #6a00ff);
  background-size: 100%;
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.test::after {
  content: "This is the after pseudo selector in action";
  color: #03fc24;
}

/* .box div a {
  position: relative;
  background-color: var(--main-text-color);
  background-image: linear-gradient(to right, #00bfff, #ff0000);
  background-size: 100%;
  font-weight: 800;
  z-index: 900;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
} */

.funky {
  position: relative;
  background-color: var(--main-text-color);
  background-image: linear-gradient(to right, #00bfff, #ff0000);
  background-size: 100%;
  font-weight: 800;
  z-index: 900;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.ResourceLink {
  position: relative;
  background-color: rgb(255, 145, 1);
  background-size: 100%;
  font-weight: 1000;
  z-index: 900;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}
