#projects {
  background-color: #f8bbbe;
  margin: 2rem;
  display: block;
}

.github-link {
  text-align: center;
  margin-bottom: 20px;
  display: block;
}

.github-link:hover {
  scale: 1.1;
  transition: 100ms;
}

.github-link a {
  text-decoration: none;
  color: #dc3545; /* Change this to your preferred color */
  font-size: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.github-link .github-text {
  margin-bottom: 5px;
}

.github-link i {
  font-size: 24px;
  transition: transform 0.3s;
}

.github-link a:hover i {
  transform: translateY(5px);
}

.bloglink {
  color: #dc3545;
  font-size: larger;
  text-decoration: none;
}

.pencil {
  position: relative;
  width: 300px;
  height: 40px;
  transform-origin: center;
  transform: rotate(135deg);
  animation: pencil-animation 5s infinite;
}
@keyframes pencil-animation {
  0% {
    transform: rotate(135deg);
  }
  20% {
    transform: rotate(315deg);
  }
  45% {
    transform: translateX(300px) rotate(315deg);
  }
  55% {
    transform: translateX(300px) rotate(495deg);
  }
  100% {
    transform: rotate(495deg);
  }
}
.pencil__ball-point {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #d53509;
  height: 10px;
  width: 10px;
  border-radius: 50px;
}
.pencil__cap {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  clip-path: polygon(20% 40%, 100% 0%, 100% 100%, 20% 60%);
  background: #232123;
  width: 12%;
  height: 100%;
}
.pencil__cap-base {
  position: absolute;
  left: 12%;
  top: 0;
  height: 100%;
  width: 20px;
  background: #232123;
}
.pencil__middle {
  position: absolute;
  left: calc(12% + 20px);
  top: 0;
  height: 100%;
  width: 70%;
  background: #d53509;
}
.pencil__eraser {
  position: absolute;
  left: calc(12% + 70% + 20px);
  top: 0;
  height: 100%;
  width: 11%;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background: #232123;
}

.line {
  position: relative;
  top: 80px;
  right: 103px;
  height: 10px;
  width: 1000px;
  z-index: -1;
  border-radius: 50px;
  background: #d53509;
  transform: scaleX(0);
  transform-origin: center;
  animation: line-animation 5s infinite;
}
@keyframes line-animation {
  20% {
    transform: scaleX(0);
  }
  45% {
    transform: scaleX(0.6);
  }
  55% {
    transform: scaleX(0.6);
  }
  100% {
    transform: scaleX(0);
  }
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#main-content {
  display: none;
}
