:root {
  --green: rgb(42, 252, 152);
  --blue: rgb(41, 121, 255);
  --bg-1: #250b0b;
  --bg-2: #520707;
  --blog-color: #00ffcc;
}

html {
  font-family: "Rubik", sans-serif;
}

body {
  background: linear-gradient(to bottom right, var(--bg-1), var(--bg-2));
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#title {
  text-align: center;
  color: var(--blog-color);
  font-size: 50px;
}

.blog-link {
  font-size: 20px;
}

.blog-link:hover {
  color: rgb(152, 255, 228);
  transition-duration: 0.8s;
}

#about {
  color: rgba(225, 37, 37, 0.694);
}

#about:hover {
  background: rgb(225, 37, 37);
  background-clip: text;
  -webkit-background-clip: text;
  transition-duration: 0.2s;
}

::selection {
  color: var(--green);
}

a {
  overflow: hidden;
  position: relative;
  display: inline-block;
  cursor: crosshair;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  vertical-align: top;
  cursor: crosshair;
}

a::before,
a::after {
  content: '';
  position: absolute;
  width: 100%;
  left: 0;
  cursor: crosshair;
}

a::before {
  background-color: rgb(32, 65, 55);
  height: 2px;
  bottom: 0;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
  cursor: crosshair;
}

a::after {
  content: attr(data-replace);
  height: 100%;
  top: 0;
  transform-origin: 100% 50%;
  transform: translate3d(200%, 0, 0);
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
  color: white;
  cursor: crosshair;
}

a:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
  cursor: crosshair;
}

a:hover::after {
  cursor: crosshair;
  transform: translate3d(0, 0, 0);
}

a span {
  display: inline-block;
  cursor: crosshair;
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
}

a:hover span {
  transform: translate3d(-200%, 0, 0);
  cursor: crosshair;
}

/* Presentational Styles */
body {
  display: grid;
  font-family: 'Poppins', sans-serif;
  font-size: 27px;
  line-height: 1.5;
  place-items: center;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2f0000;
  transition: opacity 0.5s, visibility 0.5s;
  z-index: 100;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader::after {
  content: "";
  width: 75px;
  height: 75px;
  border: 15px solid var(--bg-2);
  border-top-color: var(--bg-1);
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}

@keyframes loading {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

::selection {
  color: #00ffcc;
}


/* ============= */
/* ============= */
/* ============= */
/*  STYLES FOR BLOGS  */
/* ============= */
/* ============= */
/* ============= */


h2 {
  color: var(--blog-color);
  text-align: center;
}

#blog {
  background-color: #52070773;
  color: white;
  margin: 50px;
  padding-left: 10px;
  padding-right: 10px;
  border: 2px solid var(--blog-color);
  border-radius: 8px;
}

#back {
  color: rgba(152, 255, 228, 0.32);
}

#back:hover {
  color: var(--blog-color);
  transition-duration: 0.8s;
}