body{
    background-color: black;
    color: white;
    z-index: 1;
}

.banner{
    height: 75vh;
    width: 100%;
    background: url("earth.jpeg") repeat fixed 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: 2;
}

.txt{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 3%;
}

.txt h1{
    font-size: 36px;
    font-weight: 600;
}

.txt p{
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.news-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 14px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin: 5%;
}

.news-btn:hover{
    border: 1px solid #f4436f;
    background: #f4436f;
    transition: 1s;
}


.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.space{
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.space-col{
    flex-basis: 30%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.space-col img{
    width: 100%;
    display: block;
}

.space h1{
    font-size: 36px;
    font-weight: 600;
}

.space p{
    font-size: 14px;
}

.layer{
    background: transition;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover{
    background: rgba(2,0,0,0.7);
}

.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3{ 
    bottom: 49%;
    opacity: 1;
}

@media screen and (max-width: 768px){
    .banner{
        height: 40vh;
    }

    .txt h1, .space h1{
        font-size: 24px;
        font-weight: 400;
    }
    
    .txt p, .space p{
        font-size: 10px;
    }

    .layer.active {
        background: rgba(2,0,0,0.7);
    }
    
    .layer.active h3 {
        bottom: 49%;
        opacity: 1;
    }
}