/* 
CSS is how you can add style to your website, such as colors, fonts, and positioning of your HTML content. 
To learn how to do something, just try searching Google for questions like "how to change link color." 
*/

/*---------*/
/*  BASIC  */
/*---------*/

/* Default Colors and Fonts idk */
body {
  font-family: Verdana;
  color: black;
  margin: 0;
  
/* Set Up for the star Background */
  background-color: var(--bg);
  background-image: url("Hub Folder Photos and Gifs/Background Layers/StarFall.png");
  background-repeat: repeat;
  background-position: 0 0;
  animation: bg-scroll 50s linear infinite;
}

/* Creating the star animation */
@keyframes bg-scroll {
 from { 
   background-position: 0 0;
 }
 
 to {
   background-position: 1000px 1000px;
 }
}

/*-------------------*/
/*  PARALLAX EFFECT  */
/*-------------------*/
.parallax {
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax__layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.parallax__layer img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parallax__layer--base {
  transform: translateZ(-1px) scale(2);
  z-index: 3;
}

.parallax__layer--back {
  transform: translateZ(-2px) scale(3);
  z-index: 2;
}

.parallax__layer--deep {
  transform: translateZ(-3px) scale(4);
  z-index: 1;
}

.parallax__group {
  position: relative;
  height: 100vh;
  transform-style: preserve-3d;
}
