html {
	font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    font-weight: 400;
    text-align: left;
}

.nav-style {
    background-color: #000000;
    color: white;
    font-size: 1.4em;
}

.nav-style2 {
    background-color: #dff6ff;
    color: rgb(5, 29, 246);
    font-size: 1.4em;
    text-decoration: none;
}

.first-section {
    background-image: url(../images/galaxy.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;
    gap: 5px;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
}

.second-section {
    background-color: #dff6ff;
    width: 100%;
}

.more-section {
    background-color: #dff6ff;
    align-items: center;
    width: 100%;
    margin: auto;
    min-height: 100vh;
    padding: 3% 0;
}

.flex-container {
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin: auto;
}

.flex-container-more {
    flex-direction: column;
    display: flex;
    align-items: center;
    width: 70%;
    margin: auto;
}

.flex-container-moon {
    flex-direction: column;
    display: flex;
    align-items: center;
    width: 75%;
    margin: auto;
}

h1 {
    text-align: center;
    font-size: 3em;
}

h5 {
    font-size: 1em;
}

.hidden {
    display: none;
}

.h2-1 {
    color: #47b5ff;
    font-size: 2.4em;
    font-weight: 400;
    grid-area: 1 / 1;
    padding: 15%;
    text-align: left;
}

.h2-2 {
    color: #1363df;
    font-size: 1.6em;
    line-height: 1.8em;
    font-weight: 400;
    padding: 1%;
}

.h2-3 {
    color: #1363df;
    display: flex;
    font-size: 1.6em;
    line-height: 1.8em;
    font-weight: 400;
    padding: 1%;
    width: 70%;
}

.h2-4 {
    color: #000000;
    display: inline;
    font-size: 2em;
    font-weight: 400;
    padding: 1%;
    text-align: center;
    width: 70%;
}

.h2-5 {
    color: #1363df;
    display: flex;
    font-size: 1.6em;
    line-height: 1.8em;
    font-weight: 400;
    padding: 1%;
    width: 90%;
}

h1 p {
    font-size: .8em;
}

h2 p {
    color:#000000;
}

hr {
    border: solid 1px;
    color: #323232;
    width: 70%;
    margin: auto;
}

label {
    font-weight: 300;
    font-size: 1.2em;
}

input[type=text] {
    border: 1px solid #ccc;
  	border-radius: 4px;
    font-size: 1.4rem;
  	padding: 4px;
}

.button {
    border: 2px solid blue;
    border-radius: 20px;
    font-size: 1.6rem;
    padding: 5px 10px;
    text-align: center;
}

.button:hover {
    background-color: white;
    color: blue;
}

img {
    display: flex;
    margin: 1%;
    width: 25%;
}

.moon-img {
    margin: 3%;
    width: 50%;
}

.favs { 
    display: flex;
    font-weight: 300;
    font-size: 1.6em;
}

.random { 
    display: flex;
    background-color: buttonface;
    color: buttontext;
    font-size: 1.6em;
    border: 2px solid blue;
    border-radius: 20px;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
}

.random:hover {
    background-color: white;
    color: blue;
}

.img-more {
    margin: 1%;
    width: 70%;
}

.ital {
    font-style: italic;
}

.footer {
    background-color: #1363df;
    color: #dff6ff;
    font-size: 1.2em;
    font-weight: 300;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

@media (max-width: 600px) {
    .flex-container {
        flex-direction: column;
        width: 90%;
    }

    .flex-container-golf {
        flex-direction: column;
        width: 90%;
    }

    .first-section{
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
    }

    .h2-1 {
        font-size: 2em;
        text-align: left;
        width: 60%;
    }

    .h2-2 {
        font-size: 1.2em;
    }

    h1 {
        font-size: 2em;
    }

    .h2-3 {
        font-size: 1.2em;
    }

    .h2-4 {
        font-size: 1.6em;
    }

    .h2-5 {
        font-size: 1.2em;
    }

    input[type=text] {
        font-size: 1.2rem;
        padding: 2px;
    }
    
    .button {
        font-size: 1.2rem;
        padding: 2px 5px;
    }

    label {
        display: none;
    }

    .favs { 
        font-size: 1.2em;
    }
}
