/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-image: url(astr-imges/astronomy\ \(2\).jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    overflow-x: hidden;
}

/* Dark Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px;
    position: relative;
    z-index: 99;
}

nav .logo {
    color: #fff;
    margin-left: 60px;
    font-size: 40px;
}

/* Main Section */
section {
    display: grid;
    place-items: center;
    position: relative;
    padding: 0 20px 80px;
    z-index: 1;
}

.read {
    display: flex;
    flex-direction: column;
    width: 60%;
    height: auto;
    padding: 30px 40px;
    margin: 50px 0 30px;
    border: 1px solid white;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

.read img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.read h2 {
    padding: 15px 0 30px;
    text-align: center;
    text-transform: uppercase;
}

.read p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-top: 20px;
    color: #222;
    letter-spacing: 0.3px;
}

/* Footer */
footer {
    width: 100%;
    min-height: 50px;
    background-color: white;
    position: relative;
    z-index: 1;
}

footer p {
    padding: 15px 10px;
    font-size: 15px;
    color: #000;
    text-align: center;
}

/* ========================= */
/* Tablets and Small Laptops */
/* ========================= */

@media (max-width: 1024px) {
    nav .logo {
        margin-left: 30px;
        font-size: 36px;
    }

    .read {
        width: 75%;
        padding: 25px 30px;
    }

    .read img {
        height: 280px;
    }
}

/* ========================= */
/* Tablets */
/* ========================= */

@media (max-width: 768px) {
    nav {
        margin: 25px 20px;
    }

    nav .logo {
        margin-left: 15px;
        font-size: 34px;
    }

    section {
        padding: 0 15px 50px;
    }

    .read {
        width: 90%;
        padding: 22px;
        margin-top: 30px;
    }

    .read img {
        height: 250px;
    }

    .read h2 {
        font-size: 24px;
        padding: 15px 0 20px;
    }

    .read p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* ========================= */
/* Mobile */
/* ========================= */

@media (max-width: 480px) {
    nav {
        margin: 20px 15px;
    }

    nav .logo {
        margin-left: 5px;
        font-size: 30px;
    }

    section {
        padding: 0 10px 35px;
    }

    .read {
        width: 100%;
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .read img {
        height: 200px;
    }

    .read h2 {
        font-size: 21px;
        padding: 15px 0;
    }

    .read p {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
        letter-spacing: 0;
    }

    footer p {
        font-size: 13px;
    }
}

/* ========================= */
/* Very Small Mobile */
/* ========================= */

@media (max-width: 350px) {
    nav .logo {
        font-size: 27px;
    }

    .read {
        padding: 12px;
    }

    .read img {
        height: 170px;
    }

    .read h2 {
        font-size: 19px;
    }

    .read p {
        font-size: 14px;
    }

    footer p {
        font-size: 12px;
    }
}