html {
    scroll-behavior: smooth;
}

body {
    overflow-x: auto;
overflow-y: hidden;
padding: 0;
margin: 0;
}

nav {
    display: grid;
    min-width: 100vw;
    height: fit-content;
    grid-template-columns: 1fr 2fr 5fr 3fr;
    grid-template-rows: fit-content;
    gap: 20px;
}

.mid-top {
    display: flex;
    justify-self: center;
    min-width: 0;
    max-width: 500px;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
    max-height: 100px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: auto;
    overflow-y:auto;
}

.line-top {
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, hsl(0, 0%, 42%), hsl(0, 0%, 59%), hsl(0, 0%, 95%));
    flex-shrink: 0;
}

.topTextIMG {
    width: fit-content;
    height: fit-content;
    justify-self: end;
    align-self: center;
}

.topTextH {
    color: hsl(0, 0%, 84%);
    width: fit-content;
    height: fit-content;
    font-size: 48px;
    font-family: 'League Spartan';
    justify-self: center;
    align-self: center;
}


.topText {
    color: hsl(0, 0%, 82%);
    width:;
    height:;
    font-size: 18px;
    position: relative;

}

.t7 {
    place-self: center;
    background: linear-gradient(to right, hsl(219, 64%, 40%), hsl(219, 77%, 59%));
    width: fit-content;
    height: fit-content;
    padding: 12px 20px;
    border-radius: 10px;
}

.line-title {
    color: hsl(0, 0%, 100%);
    width: 5px;
    height: 15px;
}



header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-image: url('https://4kwallpapers.com/images/wallpapers/stars-galaxy-3840x2160-10307.jpg');
    background-position: center;
    background-repeat: repeat-x;
    background-size: cover;
    animation: infiniteLoop 12s linear infinite;
}

header h1 {
font-size: 60px;
color: hsl(0, 0%, 100%);
font-family: Michroma;
}

.line-title {
    width: 100px;
    height: 9px;
    background: linear-gradient(to right, hsl(220, 44%, 37%), hsl(220, 67%, 36%), hsl(220, 81%, 46%), hsl(220, 98%, 60%));
    position: relative;
    left: -250px;
    top: -80px;
}

header p {
text-align: center;
color: hsl(0, 0%, 100%);
width: 370px;
font-size: 26px;
position: relative;
top: -80px;
line-height: 36px;
}

span {
    font-weight: bold;
    font-size: 25px;
    background: linear-gradient(to right, hsl(220, 52%, 39%), hsl(220, 82%, 54%));
    background-clip: text;
    color: transparent;
    position: relative;
    top: 10px;
}

header a {
    text-decoration: none;
    width: fit-content;
    height: fit-content;
    padding: 15px 28px;
    border-radius: 18px;
    background: linear-gradient(to right, hsl(220, 52%, 32%), hsl(220, 73%, 39%), hsl(220, 90%, 45%), hsl(220, 88%, 55%), hsl(220, 100%, 61%) );
    font-size: 26px;
    color: hsl(0, 0%, 100%);
     position: relative;
    top: -80px;
}

header a:hover {
    font-size: 28px;
    padding: 14px 26px;
    background-color: hsl(220, 80%, 43%);
}

@keyframes infiniteLoop {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 0;
    }
}

.intermedian {
    width: 100vw;
    height: 100vh;
    background-image: url('https://4kwallpapers.com/images/wallpapers/stars-galaxy-3840x2160-10307.jpg');
    background-position: center;
    background-repeat: repeat-x;
    background-size: cover;
    animation: infiniteLoop 12s linear infinite;
}

main {
    width: 100vw;
    height: 100vh;
    background-image: url('https://4kwallpapers.com/images/wallpapers/stars-galaxy-3840x2160-10307.jpg');
    background-position: center;
    background-repeat: repeat-x;
    background-size: cover;
    animation: infiniteLoop 12s linear infinite;
    position: relative;
}

.imgEarth {
    width: 60vw;
    height: auto;
    position: relative;
    right: -360px;
}

a.backNav {
   width: fit-content;
   height: fit-content;
   background: linear-gradient(to right, hsl(220, 52%, 32%), hsl(220, 73%, 39%), hsl(220, 90%, 45%), hsl(220, 88%, 55%), hsl(220, 100%, 61%) );
   font-size: 30px;
   padding: 15px 25px;
   color: hsl(0, 0%, 100%);
   text-decoration: none;
   border-radius: 15px;
   position: absolute;
   top: 60px;
   left: 80px;

}

@media(max-width: 720px) {
    header h1 {
        font-size: 45px;
        text-align: center;
    }

    header p {
        font-size: 22px;
    }

    span {
        font-size: 23px;
    }

    .line-title {
        left: -150px;
    }
}

@media(max-width: 450px) {
header h1 {
        font-size: 30px;
    }

    .line-title {
        left: -90px;
        height: 6px;
    }

    header p {
        font-size: 16px;
    }

    span {
        font-size: 18px;
    }
    
    header a {
        padding: 12px 20px;
        font-size: 26px;
    }
}

@media(max-width: 360px) {

header p {
        width: 240px;
    }
}

@media(max-width: 293px) {
    .line-title {
        left: -60px;
    }
}

@media(max-width: 250px) {
header h1 {
        font-size: 25px;
    }

    header p {
        width: 200px;
    }

    header a {
        padding: 10px 20px;
        font-size: 20px;
    }
}