@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka One', sans-serif;
  background-color: #fff;
  color: #000;
  padding: 0 100px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.container {
  display: flex;
  position: relative;
  min-height: 100vh;
}

.main {
  flex: 1;
  padding: 30px;
  position: relative;
}

.profile-pic {
  position: fixed !important;
  top: 20px !important;
  right: 30px !important;
}


.sidebar {
  width: 250px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #75c5dceb; 
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.sidebar.active {
  transform: translateX(0);
}

body.dark .sidebar {
  background-color: #1e1e1e;
}

.nav-btn {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 20px;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease-in-out;
}
.nav-btn:first-child {
  margin-top: 50px;
}

.nav-btn:hover,
.nav-btn.active {
  background-color: #2fc900d4;
  color: #000;
}

body.dark .nav-btn {
  background-color: #2e2e2e;
  color: white;
}

body.dark .nav-btn:hover,
body.dark .nav-btn.active {
  background-color: #00d755;
  color: #000;
}

.sidebar-toggle {
  position: fixed;
  top: 30px;
  left: 25px;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1500;
  color: black;
}

body.dark .sidebar-toggle {
  color: white;
}

.sidebar-toggle span {
  width: 100%;
  height: 4px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.sidebar.active ~ .main .sidebar-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.sidebar.active ~ .main .sidebar-toggle span:nth-child(2) {
  opacity: 0;
}

.sidebar.active ~ .main .sidebar-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

body.dark {
  background-color: #121212;
  color: white;
}
.sidebar-tip {
  position: fixed;
  top: 30px;
  left: 70px;
  background-color: #ffd000;
  color: black;
  padding: 12px 20px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 1;
  animation: fadeOut 1s ease-in-out 4s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
  }
}
