/* CSS Reset */
*{
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Lato', sans-serif, Brush Script MT;
}


.overlaying {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  background-repeat:no-repeat;
  background-size: cover;
}


.overlaying-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlaying a {
  padding: 8px;
  text-decoration: none;
  font-size: 26px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlaying a:hover, .overlaying a:focus {
  color: #f1f1f1;
}

.overlaying .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}
@media screen and (max-height: 450px) {
  .overlaying a {font-size: 20px}
  .overlaying .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

/* Sky Styling */
.sky {
    width: 100vw;
    height: 100vh;
    background-image: url(../images/sky2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
}

/* Tree Styling and positioning */
.tree {
    height: 100vh;
    background-image: url(../images/tree-removebg-preview.png);
    background-repeat:no-repeat;
    background-size: cover;
}

/* Logo Styling and positioning */
.logo {
    /*height: 100vh;*/
    background-image: url(../images/FFC_resized_500.png);
    background-repeat:no-repeat;
    background-size: cover;
    width: 17.3rem;
    height: 13.3rem;
    position: absolute;
    top: 40px;
    left: 25px;
}

.aboutText {
    height: 100vh;
    background-repeat:no-repeat;
    background-size: cover;
    position: absolute;
    top: 75px;
    left: 800px;
    width: 50rem;
    height:25rem;
    color: yellow;
    font-size: 16px;
    line-height: 40px;
    text-shadow: 1px 1px #000000;
}


/* Track Styling and positioning */
.track {
    background-image: url(../images/track.jpeg);
    background-repeat: repeat-x;
    position: absolute;
    bottom: 0px;
    width: 1000vw;
    height: 20vh;
    animation: trackanimation 6s linear;
}

/* Car Styling and positioning */
.car {
    background-image: url(../images/Food_Truck.png);
    background-repeat: no-repeat;
    background-size: cover; 
    width: 49.6rem; 
    height: 22rem;
    /*width: 200vw;
    height: 75vh;*/
    position: absolute;
    cursor: pointer;
    bottom: 25px;
    left: 0;
    animation: caranimation 6s linear;
}

/* Wheel's Styling and positioning */
.wheel {
    position: absolute;
    animation: wheelanimation linear 6s;
}
.wheel1 {
    background-image: url(../images/wheel1-removebg-preview.png); /* right wheel */
    background-size: cover;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    bottom: 40px;
    left: 645px;
}
.wheel2 {
    background-image: url(../images/wheel2-removebg-preview.png); /* left wheel */
    background-size: cover;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    bottom: 40px;
    left: 200px;
}

.confidentiality {
    text-align:center;
    font-size: 16px;
}

/* Rotation of the wheels */
@keyframes wheelanimation{
    100% {
        transform: rotate(360deg);
    }
}

/* Moving the track backwards */
@keyframes trackanimation {
    100% {
        transform: translate(-500vw);
    }
}