@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* html {
    font-size: 16px;
} */

/* :root {
    --doc-height: 100%;
   } */

body {
    /* font-family: 'Anton', sans-serif; */
    /* font-family: 'Poppins', sans-serif; */
    font-family: Verdana, Geneva, Tahoma, sans-serif, serif;
    /* font-size: 1.5rem; tijdelijk */
    color: rgb(238, 231, 231);
    letter-spacing: .3rem;
    background: linear-gradient(90deg, rgb(0, 1, 19) 0%, rgb(13, 13, 114) 35%, rgb(25, 20, 94) 100% );
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    height: 100vh; /* fallback for Js load */
    /* height: var(--doc-height); */
}

.header {
    overflow-x: hidden;
    margin: 0;
    
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}
.navbar-wrapper {
    position: static;
}

.navbar-links ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a {
    text-decoration: none;
    color: white;
    padding: 1rem;
    display: block;
}

.navbar-links li:hover {
    background-color: purple;
}

.toggle-button {
    position: absolute;
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    

}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

.nav-div {
    margin: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.intro {
    display: flex;
    justify-content: right;
    
}

.p-intro {
    color: white;
    text-shadow: 1px 1px black;
    /* font-size: 1.4rem; */
    text-align: left;
    width: 80%;
    margin: 20px auto;
}

.menu {
    /* display: none; */
}
.nav-item {
    margin: 20px 40px;
    text-shadow: 1px 1px 1px black;
    
}

.menu-list {
    display: none;
    /* display: flex;
    justify-content: left; */
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    color: rgb(186, 144, 235)
}
.span1 {
    font-size: 60px;
    color: rgb(52, 52, 168);
    /* -webkit-text-stroke: 1px white; */
    text-shadow:
    -1px -1px 0 white,  
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
}

.rocket {
    color: rgb(177, 43, 182);
    text-shadow: 4px 4px 8px black;
    font-size: 4rem;
    margin: 0.8rem;
}

.menu {
    font-size: 2.6rem;
}

.launch {
    animation-name: launchShip;
    animation-timing-function: linear;
    animation-duration: 12s;
    animation-fill-mode: forwards;
    z-index: 1;
    
    font-size: 4.3rem;
    text-shadow: -33px 13px 8px black;
} 
/*flex on flying rocket div to provide the z-index*/
.rocket-flex {
    display: flex;
    /* overflow-x: hidden; */
    
}

.wrapper {
    position: absolute;
    /* width: 100%; removed these tw0 100% width because they prevented responsiveness
    height: 100%; */
    /* overflow: hidden; this causes many problems*/
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    /* overflow: hidden; */
}

.img-wrap {
    height: 200px;
}

.card-container {
    position: static;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* margin: auto; */
    font-size: 1rem;
    color: rgb(31, 30, 30);
}

.card {
    background: white;
    width: 270px;
    /* height: 400px; */
    margin: 10px;
    border: 1px solid white;
    border-radius: 2%;
    flex-shrink: 0;
}

.z-index {
    position: relative;
}

.card:hover {
    background-color: rgb(115, 56, 133);
    color: white;
    cursor: pointer;
    transform: scale(1.02);
    transition: all 0.4s ease;
}

.card a {
    background-color: black;
    color: white;
    padding: 15px 20px;
    display: block;
    font-size: 1rem;
    text-align: center;
    margin: 20px 50px;
    text-decoration: none;
}

.card p {
    margin: 20px;
    font-size: 1.6rem;
    text-shadow: none;
}

.card h2 {
    font-size: 2rem;
    text-shadow: none;
}

.card-image {
    height: 170px;
    margin-bottom: 15px;
    background-size: cover;
    border-radius: 2%;
    border: 1px solid white;
}

.card-1 {
    background-image: url(/images/img1.jpg);
}

.card-2 {
    
    background-image: url(/images/rps_screen.png);
    /* z-index: -1; */
}

.card-3 {
    background-image: url(/images/hangman5.png);
}

.card-4 {
    background-image: url(/images/memoryscreen.png);
}

a {
    color: rgb(225, 216, 228);
    text-decoration: none !important;
    font-size: 2rem;
}

.logo {
    border: 1px solid white;
    margin-right: 20px;
}

h2 {
    /* font-size: 30px; */
    
    text-align: center;
    text-shadow: 1px 1px black;
}

h3 {
    text-align: center;
    font-size: 1rem;
    text-shadow: 2px 2px 2px #0000;
}

.footer {
    text-align: center;
}

.rocket-active {
    pointer-events: none;
    position: absolute;
    top: 22%;
    left: 50%;
    width: 200px;
    text-align: center;
    height: 200px;
    line-height: 200px;
    font-size: 55px;
    border-radius: 50%;
    box-shadow: inset 0 0 55px rgba(255,255,255,.1);
    animation: animate-ship2 15s linear infinite;
}

.rocket-active::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 20px;
    width: 30%;
    height: 60%;
    background: #ff0;
    filter: blur(15px);
    transform: rotate(45deg);
    border-radius: 50%;
    z-index: -1;
}

.rocket-active .fa {
color: rgb(187, 183, 183);
}

.relative {
    position: relative;
}

.box div {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: transparent;
}

.box div:nth-child(1) {
    top: 12%;
    left: 42%;
    animation: animate 10s linear infinite;
}

.box div:nth-child(2){
    top: 70%;
    left: 50%;
    animation: animate 7s linear infinite;
}

.box div:nth-child(3){
    top: 17%;
    left: 6%;
    animation: animate 9s linear infinite;
}

.box div:nth-child(4){
    top: 20%;
    left: 60%;
    animation: animate 10s linear infinite;
}

.box div:nth-child(5){
    top: 67%;
    left: 10%;
    animation: animate 6s linear infinite;
}

.box div:nth-child(6){
    top: 80%;
    left: 70%;
    animation: animate 12s linear infinite;
}

.box div:nth-child(7){
    top: 60%;
    left: 80%;
    animation: animate 15s linear infinite;
}

.box div:nth-child(8){
    top: 32%;
    left: 25%;
    animation: animate 16s linear infinite;
}

.box div:nth-child(9){
    top: 90%;
    left: 25%;
    animation: animate 9s linear infinite;
}

.box div:nth-child(10){
    top: 20%;
    left: 80%;
    animation: animate 5s linear infinite;
}

.box div:nth-child(11){
    top: 10%;
    left: 20%;
    animation: animate 6s linear infinite;
}

.box div:nth-child(12){
    top: 5%;
    left: 70%;
    animation: animate 12s linear infinite;
}

.box div:nth-child(13){
    top: 10%;
    left: 60%;
    animation: animate 7s linear infinite;
}

.box div:nth-child(14){
    top: 5%;
    left: 80%;
    animation: animate 13s linear infinite;
}

.box div:nth-child(15){
    top: 5%;
    left: 25%;
    animation: animate 19s linear infinite;
}

.box div:nth-child(16){
    top: 10%;
    left: 80%;
    animation: animate 11s linear infinite;
}

.box div:nth-child(17){
    top: 80%;
    left: 80%;
    animation: animate 8s linear infinite;
}

.box div:nth-child(18){
    top: 80%;
    left: 40%;
    animation: animate 9s linear infinite;
}

.box div:nth-child(19){
    top: 8%;
    left: 30%;
    animation: animate 14s linear infinite;
}

.box div:nth-child(20){
    top: 8%;
    left: 30%;
    animation: animate 14s linear infinite;
}

@keyframes animate{
    0%{
        transform: scale(0) translate(0) rotate(0);
        opacity: 1;
    }

    100%{
        transform: scale(1.3) translate(-90px) rotate(360deg);
        opacity: 0;
    }
} 

@keyframes animate-ship2 {
    0% {
      transform: translate(-20px, -20px);  
    }

    25% {
        transform: translate(20px, 0px);
    }

    50% {
        transform: translate(-20px, 20px);
    }
    
    75% {
        transform: translate(20px, 0px);
    }

    100% {
        transform: translate(-20px, -20px);
    }
}

@keyframes Fuel {
    0% {
      transform: translate(-20px, -20px);  
    }

    25% {
        transform: translate(20px, 0px);
    }

    50% {
        transform: translate(-20px, 20px);
    }
    
    75% {
        transform: translate(20px, 0px);
    }

    100% {
        transform: translate(-20px, -20px);
    }
}

@keyframes launchShip {
    0% {
        transform: translateX(-50px) translateY(50px) rotate(0deg);
    }

    25% {
        transform: translateX(350px) translateY(100px) rotate(10deg);
    }

   
    50% {
        transform: translateX(750px) translateY(170px) rotate(11deg);
    }

    75% {
        transform: translateX(1100px) translateY(250px) rotate(18deg);
    }

    100% {
        transform: translateX(2000px) translateY(400px) rotate(20deg);
    }
}

@media ( max-width: 600px ) {
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
        background-color: rgb(52, 52, 168);
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar-links li {
        text-align: center;
    }

    .navbar-links li a {
        padding: .5rem 1rem;
    }

    .navbar-links.active {
        display: flex;
        
    }
}