/* Animations */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes fade-in-header {
  0% {
    transform: translateY(-25%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes borderRun {
  from {
    width: 0%;
    opacity: 0%;
  }
  to {
    width: 95%;
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-5%);
    opacity: 0%;
  }
  to {
     transform: translateX(5%);
     opacity: 100%;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(-50%);
  }

  100%  {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  0% {
    opacity: 0;
    transform: translateX(+25%)
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

/*body, html {
  overflow-x: hidden;
}*/

/* Elements */
body.dark-theme {
  background-color: rgba(10, 10, 10, 1);
  color: white;
}

body.light-theme {
  background-color: white;
  color: black;
}

body.light-theme header h1 {
  color: rgb(30, 144, 200);
}

/* canvas */
#background {
  width: 100%; 
  height: 100%;
  position: fixed;
  z-index: 0;
}

.cursorBlink {
  letter-spacing: 3rem;
  color: white;
  animation: blink 1s infinite;
}

header {
  width: auto;
  margin: auto;
  margin-top: 2%;
  margin-bottom: 1%;
}

header h1 {
  margin: 0px;
  border: 0px;
  padding: 0px;
  width: auto;
  height: auto;
  color: white;
  text-align: center;
  text-shadow: 0px 0px 0px black, 0 0 100px rgba(150, 150, 150, 0.1);
  font-family: Arial, sans-serif;
  font-size: 10rem;
  animation: fade-in-header 3s forwards;
}

.border_division {
  width: 80%;
  height: 0.5vh;
  margin: auto;
  background-color: rgba(50, 50, 100, 1);
  animation: borderRun 5s forwards;
}

#menu_area {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 3%;
  margin: auto;
  text-align: center;
  animation: fade-in 4s forwards;
}

#menu_area a {
  color: rgba(45, 70, 70, 1);
  font-family: Arial, sans-serif;
  font-size: 3.5rem;  
  text-decoration: none;
  text-shadow: 0 0 0 transparent;
  transition: font-size 300ms, text-shadow 300ms;
}

#menu_area a:hover  {
  text-decoration: none;
  text-shadow: 0px 0px 0px black, 0 0 5rem blue, 0 0 5rem darkblue;
}

.about_site {
  width: 80%;
  height: auto;
  margin-top: 3%;
  position: relative;
  z-index: 1;
  text-align: center;
  animation: slideRight 5s forwards;
}

#welcome_output {
  margin: 0;
  padding: 0;
  color: green;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 5rem;
  font-weight: bolder;
  font-style: normal;
}

.about_site p {
  margin-top: 2%;
  font-family: Arial, sans-serif;
  font-size: 3rem;
}

/*
.hidden-rb {
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 2s, transform 2s;
}

.fade-in-rb {
  opacity 1;
  transform: translateY(0); 
  transition: opacity 3s ease, transform 2s ease;
}
*/

.hidden-rb {
  display: none;
}

.slide-up {
  animation: slideUp 6.5s forwards;
}

#read_blogs {
  position: relative;
  margin: auto;
  margin-top: 5%;
  text-align: center;
}

#read_blogs h2 {
  margin: 0px;
  padding: 0px;
  color: purple;
  font-family: Arial, sans-serif;
  font-size: 4rem;
}

#read_blogs p {
  font-family: Arial, sans-serif;
  font-size: 2rem;
}

.slide-left-3s {
  animation: slideLeft 3s forwards;
}

.slide-left-5s {
  animation: slideLeft 5s forwards;
}

#use_tools {
  position: relative;
  margin: auto;
  text-align: center;
}

#use_tools h2 {
  margin: 0px;
  padding: 0px;
  font-family: Arial, sans-serif;
  font-size: 4rem;
  /*color: rgba(50, 200, 80, 1);*/
  color: dodgerblue;
}

#use_tools p {
  font-family: Arial, sans-serif;
  font-size: 2rem; 
}

footer {
  width: 50%;
  height: auto;
  margin: auto;
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5%;
}

.icons_footer {
  width: 50px;
  height: auto;
  cursor: pointer;
}

footer p {
  font-family: Tahoma, Verdana, sans-serif;
  font-weight: bold;
}

/* to devices with the window less than or equal to: max-width 800px */

@media (max-width: 800px) {

  @keyframes slideRight {
    from {
      transform: translateX(-10%);
      opacity: 0%;
    }
    to {
      transform: translateX(0);
      opacity: 100%;
    }
  }

  header h1 {
    font-size: 6rem;
  }

  #menu_area a {
    font-size: 3rem;
  }

  .about_site {
    width: auto;
    height: auto;
    margin: auto;
    margin-top: 5%;
    position: relative;
    z-index: 1;
    animation: slideRight 5s forwards;
  }

  #welcome_output {
    font-size: 2.5rem;

  }
  .about_site p {
    margin-top: 5%;
    font-size: 2rem;
    text-align: center;
  }   

  #read_blogs h2 {
    font-size: 3rem;
  } 
 
  #read_blogs p {
    margin-top: 4%;
  }

  #use_tools h2 {
    font-size: 3.5rem;
  }

  #use_tools h2 {
    font-size: 3rem;
  }

  #use_tools p {
    margin-top: 4%;
  }

/* to devices with the window less than or equal to: max-width 500px */
@media (max-width: 500px) {
  @keyframes slideRight {
    from {
      transform: translateX(-5%);
      opacity: 0%;
    }
    to {
      transform: translateX(0);
      opacity: 100%;
    }
  }
  header h1 {
    font-size: 6rem;
  }

  #menu_area a {
    font-size: 2.5rem;
  }

  .about_site {
    width: auto;
    height: auto;
    margin: auto;
    margin-top: 5%;
    position: relative;
    z-index: 1;
    animation: slideRight 5s forwards;
  }
  #welcome_output {
    font-size: 3rem;
  }
  .about_site p {
    margin-top: 5%;
    font-size: 2rem;
    text-align: center;
  }   
  #read_blogs h2 {
    font-size: 3.5rem;
  }  
  #read_blogs p {
    margin-top: 4%;
  }
  #use_tools h2 {
    font-size: 3.5rem;
  }
  #use_tools p {
    margin-top: 4%;
}

@media (max-width: 400px) {
  @keyframes slideRight {
    from {
      transform: translateX(-5%);
      opacity: 0%;
    }
    to {
      transform: translateX(0);
      opacity: 100%;
    }
  }
  header h1 {
    font-size: 4rem;
  }

  #menu_area a {
    font-size: 2rem;
  }

  .about_site {
    width: auto;
    height: auto;
    margin: auto;
    margin-top: 5%;
    position: relative;
    z-index: 1;
    animation: slideRight 5s forwards;
  }

  #welcome_output {
    font-size: 2rem;
  }

  .about_site p {
    margin-top: 5%;
    font-size: 1.5rem;
    text-align: center;
  }

  #read_blogs h2 {
    font-size: 2rem;
  }

  #read_blogs p {
    margin-top: 4%;
    font-size: 1.5rem;
  }

  #use_tools h2 {
    font-size: 2rem;
  }

  #use_tools p {
    margin-top: 4%;
    font-size: 1.5rem;
}
