body, html, * {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Lilita One', cursive;
    color: #e68a00;
    /* cursor: url('Media/purple-cursor.png'), auto; */
    cursor: url('Media/cursor.cur'),auto;
}

.background-image {
    width: 100%;
    height: 100vh;
    position: absolute;
    object-fit: cover;
    z-index: -1;
    overflow: hidden;
}

h1 {
    font-size: 4rem;
    z-index: 10;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.25rem;
}


/*
    HEADS-UP DISPLAY
*/

.heads-up-display {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 3rem 4rem;
}

.game-title {
    position: absolute;
    top: 6%;
    left: 5%;
}

.game-data {
    position: absolute;
    top: 6%;
    left: 84%;
    z-index: 10;
}

#game-title, #game-data {
    opacity: 0;
    transition: 0.4s;
}



/*
    GAME-OVER DISPLAY
*/

#game-over-display {
    visibility: hidden;
    transition: 1s all;
}

#start-playing-message {
    opacity: 1;
    transition: 0.4s;
}

#complete-game-message {
    visibility: hidden;
}

#start-playing-message p {
    font-size: 1.5rem;
}

#small-screen-message {
    visibility: hidden;
}

.game-over-display {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    justify-content: center;
    text-align: center;
    transform: translate(-50%, -50%);
    background: radial-gradient(#ffb84d 5%, #e68a00);
    z-index: 50;
    
}

.game-over-display h1, .game-over-display p, .game-over-display h2 {
    margin: 1rem;
    color: black;
}

.game-over-display span {
    color: black;
}

.game-over-display h3  {
    color: #fff5e6;
}


.play-again-button {
    margin: 1rem 0 1rem 0;
    background-color: black;
    transition: 0.4s;
    padding: 0.5rem 0.75rem;
}

.play-again-button:hover {
    color: black;
    background-color: #fff5e6;
}

.play-again-button:hover h3 {
    color: black;
    transition: 0.4s;

}

a {
    text-decoration: none;
}









/*
    SPACE SHIP
*/

#space-ship {
    width: 70px;
    position: absolute;
    transition: /*1.5s ease-out*/ 0.1s  ease-out; 
    z-index: 5;
    padding: 2rem;
    display: none;
}

#flame-1 {
    animation: flame 1s ease-in-out infinite;
    transform-origin: center;
}

#flame-2 {
    animation: flame 1s ease-in-out infinite;
    transform-origin: center;
}

#flame-3 {
    animation: flame-3 1s ease-in-out infinite;
    transform-origin: center;
}

#flame-4 {
    animation: flame-4 1s ease-in-out infinite;
    transform-origin: center;
}

@keyframes flame {
    0% {
        scale: 1;
       
    }
    50% {
        scale: 1.1;
        transform: translateY(-20px);
    }
    100% {
        scale: 1;
    }
}


@keyframes flame-3 {
    0% {
        opacity: 0.75;
        scale: 1;
    }
    50% {
        opacity: 1;
        scale: 1.1;
    }
    100% {
        opacity: 0.75;
        scale: 1;
    }
}


@keyframes flame-4 {
    0% {
        opacity: 0.25;
        scale: 1;
    }
    50% {
        opacity: 1;
        scale: 1.1;
    }
    100% {
        opacity: 0.25;
        scale: 1;
    }
}



/*
    ASTEROID
*/

.asteroid {
    position: absolute;
    left: 50%;
    top: -15%;
    width: 40px;
    height: 40px;
    border: 1px solid #4d1a00;
    border-radius: 50%;
    box-shadow: inset 0 0px 15px 1px #4d1a00, 0px -10px 15px 7px #ffbb99, 0 -25px 35px 10px white, 0 -30px 40px 15px #4d1a00;
    animation: falling-asteroid 7s linear forwards, rotate 2s linear infinite; 
    background:
    radial-gradient(#802b00 15%, transparent 26%) 0 0,
    radial-gradient(#993300 35%, transparent 26%) 8px 8px,
    radial-gradient(#cc4400, transparent 20%) 0 1px,
    radial-gradient(#cc4400, transparent 20%) 8px 9px;
    background-color:#b33c00;
    background-size:16px 16px;
    /* Background manipulated from - https://projects.verou.me/css3patterns/ */
}


@keyframes falling-asteroid {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(2000px);
    }
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* 
    TESTING AND STYLING FOR THE EXPLOSION
*/

#test-cargo {
    width: 50px;
    height: 40px;
    position: absolute;
}

#explosion {
    position: absolute;
    left: -100px;
    width: 70px;
    height: 70px;
}


#explosion-1  {
    animation: explode 0.8s 1 linear forwards;
    opacity: 0;
    transform-origin: center;
}

#explosion-2  {
    animation: explode 0.7s 1 linear forwards;
    animation-delay: 0.05s;
    opacity: 0;
    transform-origin: center;
}

#explosion-3, #explosion-3-V2  {
    animation: explode 0.6s 1 linear forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transform-origin: center;
}

#explosion-4  {
    animation: explode 0.5s 1 linear forwards;
    animation-delay: 0.15s;
    opacity: 0;
    transform-origin: center;
}


@keyframes explode {
        0% {
            opacity: 0;
            scale: 0.75;
        } 
        15% {
            opacity: 1;
            scale: 1;
        }
        50% {
            opacity: 1;
            scale: 1;
        }
        100% {
            opacity: 0;
            scale: 0.5;
        }
}






/*
    ANIMATED BACKGROUND STARS
*/


.star {
    position: absolute;
    top: -5%;
    left: 1%;
    height: 1px;
    width: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 10s linear infinite;
    z-index: 1;
}


.star-1 {
    position: absolute;
    top: -15%;
    left: 10%;
    height: 2px;
    width: 2px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px white;
    animation: moving-star 11s linear infinite;
    z-index: 1;
}

.star-2 {
    position: absolute;
    top: -35%;
    left: 20%;
    height: 1px;
    width: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 12s linear infinite;
    z-index: 1;
}

.star-3 {
    position: absolute;
    top: -5%;
    left: 30%;
    height: 1px;
    width: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 15s linear infinite;
    z-index: 1;
}

.star-4 {
    position: absolute;
    top: -25%;
    left: 40%;
    height: 1.5px;
    width: 1.5px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px white;
    animation: moving-star 14s linear infinite;
    z-index: 1;
}

.star-5 {
    position: absolute;
    top: -15%;
    left: 55%;
    height: .5px;
    width: .5px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 16s linear infinite;
    z-index: 1;
}

.star-6 {
    position: absolute;
    top: -5%;
    left: 70%;
    height: 1px;
    width: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 14s linear infinite;
    z-index: 1;
}

.star-7 {
    position: absolute;
    top: -5%;
    left: 85%;
    height: 0.25px;
    width: 0.25px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px white;
    animation: moving-star 15s linear infinite;
    z-index: 1;
}

.star-8 {
    position: absolute;
    top: -5%;
    left: 95%;
    height: 1px;
    width: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 2px white;
    animation: moving-star 13s linear infinite;
    z-index: 1;
}


@keyframes moving-star {
    from {
        transform: translateY(0px) ;
    } 
    to {
        transform: translateY(1900px) ;
    }
    }


.one {
    margin-left: 100px;
    animation-delay: 3s;
    animation-duration: 13s;
}

.two {
    margin-left: 200px;
    animation-delay: 4s;
    animation-duration: 14s;
}

.three {
    margin-left: 300px;
    animation-delay: 6s;
    animation-duration: 16s;
}

.four {
    margin-left: 400px;
    animation-delay: 8s;
    animation-duration: 18s;
}

.five {
    margin-left: 500px;
    animation-delay: 2s;
    animation-duration: 20s;
}

.six {
    margin-left: 600px;
    animation-delay: 10s;
    animation-duration: 22s;
}



@media screen and (max-width: 1400px) {
    body, html, * { 
        font-size: 12px;
    }

    body span {
        font-size: 24px;
    }
    
}



