:root {
 --sidebar-width: 120px;
 --rotation-angle: 0deg;
 --primary-color: #f1f1f1;
 --secondary-color: #40866f;
 --tertiary-color: #ff5050;
 --quaternary-color: #8a8a8a;
}

* {
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;
}

html,
h1,
h2,
h3 {
 margin: 0;
 padding: 0;
}

body {
 background-color: #1e1e1e;
 font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
 font-size: medium;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: row;
 justify-items: space-between;
 width: 100vw;
 overflow: hidden;
}

html,
body {
 height: 100%;
 margin: 0;
 padding: 0;
 overflow: hidden;
 scroll-behavior: smooth;
}

a {
 text-decoration: none;
 color: inherit;
 &:hover {
  text-decoration: none;
 }
 &:visited {
  text-decoration: none;
 }
}

sidebar[data-state="open"] {
 left: 0;
 opacity: 1;
}

sidebar[data-state="closed"] {
 opacity: 0;
}

sidebar {
 position: fixed;
 display: flex;
 top: 0;
 backdrop-filter: blur(10px);
 height: 100vh;
 width: var(--sidebar-width);
 flex-direction: column;
 justify-content: space-between;
 align-items: center;
 padding-top: 4rem;
 padding-bottom: 1rem;
 box-sizing: border-box;
 transition: all 0.3s;

 #about {
  display: flex;
  flex-direction: column;
  align-items: center;
  #name {
   color: #fff;
   font-size: 1.5rem;
   margin: 0;
   padding: 0;
   text-align: center;
  }
  #matrno {
   color: #d4d4d4;
   font-size: 1rem;
   margin: 0;
   padding: 0;
  }
 }
 ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: 1rem;
  a {
   color: #fff;
   text-decoration: none;
   margin: 0 1rem;
   cursor: pointer;
   transition: all 0.3s;
   &:hover {
    color: gray;
   }
  }
 }
}

.rotateArrow {
 transform: rotate(-180deg);
}

#toggle {
 position: fixed;
 left: 40px;
 transform: translateX(-50%);
 top: 1.5rem;
 width: 30px;
 height: 30px;
 z-index: 1;
 background-color: rgb(221, 221, 221);
 border-radius: 50%;
 font-size: x-large;
 display: grid;
 place-items: center;
 img {
  cursor: pointer;
  transition: all 0.3s;
 }
}

@keyframes show {
 from {
  left: -100%;
 }
 to {
  left: 0;
 }
}

@keyframes hide {
 from {
  left: 0;
 }
 to {
  left: -100%;
 }
}

.hide {
 animation-name: hide;
 animation-duration: 0.3s;
 left: -100%;
}

.show {
 animation-name: show;
 animation-duration: 0.3s;
}

.cursor {
 position: fixed;
 width: 50px;
 height: 50px;
 border-radius: 50%;
 backdrop-filter: blur(10px) saturate(5) hue-rotate(90deg) brightness(1.5);
 pointer-events: none;
 /* transform: translate(-50%, -50%); */
 opacity: 0.2;
 transition: transform 0.1s linear;
 z-index: 1000;
}

.dot {
 position: fixed;
 width: 8px;
 height: 8px;
 border-radius: 50%;
 backdrop-filter: blur(10px);
 filter: invert(1) saturate(5);
 pointer-events: none;
 transform: translate(-50%, -50%);
 z-index: 1001;
}

.download {
 border: 2px transparent solid;
 border-radius: 1rem;
 padding: 0.5rem 1rem;
 transition: all 0.3s;
 cursor: pointer;
 &:hover {
  border: 2px var(--secondary-color) solid;
  color: var(--secondary-color);
 }
}
