
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

.preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: #353535;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.5s 0.4s;
}

.preloader.preload-finish {
    opacity: 0;
    pointer-events: none;
}

.outer-space {
    width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rocket-container {
    position: absolute;
    bottom: 52%;
    left: 49%;
    transform: translate(-50%, 50%);
}

.preloader.preload-finish .rocket-container {
    animation: finish 0.5s 1 ease forwards;
}

.rocket {
    height: 320px;
    animation: move 0.2s linear infinite alternate-reverse;
}

@keyframes finish {
    from {
       bottom: 50%;
    }
    to {
        bottom: 140%;
    }
}

@keyframes move {
    from {
        transform: translateX(-5px);
    }
    to {
        transform: translateX(5px);
    }
}

.title {
    color: white;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 35px;
    position: absolute;
    text-transform: capitalize;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
}

#circle {
    animation: move-circle 0.2s linear infinite alternate-reverse;
}

@keyframes move-circle {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(5px);
    }
}

/* #star {
    animation: stars 1.3s linear infinite alternate-reverse;
} */

@keyframes stars {
    from {
        transform: translateY(-1000px);
    } 
    to {
        transform: translateY(1000px);
    }
}

.content {
    background: #34495e;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    color: white;
}

.content h2 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 50px;
}

.image {
    width: 375px;
    height: 325px;
    background: url(https://picsum.photos/200/300);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Pop-up */

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1000;
    user-select: none;
    display: none;
}

.popup::before {
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    filter: blur(50px);
}

.popup .contentBox {
    position: relative;
    width: 600px;
    height: 400px;
    background: white;
    border-radius: 20px;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0.1);
}

.popup .imgBox {
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup .imgBox::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    /* background: #e7ffe0; */
    background: #34495e;
    border-radius: 50%;
}

.popup .imgBox img {
    position: relative;
    max-width: 250px;
    z-index: 1;
}

.popup .popup-content {
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup .popup-content h3 {
    color: #333;
    line-height: 16px;
    font-size: 32px;
    font-weight: 300;
}

.popup .popup-content h2 {
    font-size: 64px;
    color: #ff4d54;
}

.popup .popup-content h2 span {
    /* font-size: 48px; */
    font-size: 0.75em;
    color: #333;
    text-transform: uppercase;
}

.popup .popup-content p {
    font-weight: 300;
}

.popup .popup-content a {
    display: inline-block;
    padding: 10px 20px;
    background: #ff4d54;
    color: white;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 10px;
}

.popup .contentBox .close {
    position: absolute;
    cursor: pointer;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url(../img/close.png);
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: center;
    border-radius: 50%;
    z-index: 10;
}

/* @media (max-width:768px) {
    .popup .contentBox {
        width: 300px;
        height: auto;
        flex-direction: column;
    }

    .popup .imgBox {
        height: 200px;
        transform: translateY(-50px);
    }

    .popup .imgBox::before {
        background: white;
    }

    .popup .popup-content {
        height: auto;
        text-align: center;
        padding: 20px;
        padding-top: 0;
    }

    .popup .contentBox .close {
        top: -50px;
        right: -10px;
        background: white url(img/close.png);
        background-repeat: no-repeat;
        background-size: 15px;
        background-position: center;
    }
} */

@media(max-width: 400px) {
    .image {
        width: calc(100% - 75px);
    }
}

@media screen and (min-width: 300px) and (max-width: 800px) {
    .popup .contentBox {
        width: 300px;
        height: auto;
        flex-direction: column;
    }

    .popup .imgBox {
        height: 100px;
        transform: translateY(-50px);
    }

    .popup .imgBox::before {
        background: white;
    }

    .popup .popup-content {
        height: auto;
        text-align: center;
        padding: 20px;
        padding-top: 0;
    }

    .popup .contentBox .close {
        top: -50px;
        right: -10px;
        background: white url(../img/close.png);
        background-repeat: no-repeat;
        background-size: 15px;
        background-position: center;
    }
}
