body,
html {
    margin: 0;
    padding: 0;
    background-color: black;
    padding-top: 0px;
}

.section {
    width: 100%;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
}

/*space*/

#explore-space {
    background: url('../../images/moonbg.png') no-repeat center center;
    background-size: cover;
}

.title h1:first-child {
    letter-spacing: 20%;
    margin: 0;
    margin-left: 50px;
    padding: 0;
}

.title h1:last-child {
    letter-spacing: 20%;
    margin: 0;
    margin-left: 50px;
    margin-top: 0%;
    padding: 0;
}

#explore-space p {
    letter-spacing: 20%;
    width: 50%;
    line-height: 1.6;
    margin-top: 40px;
    margin-left: 50px;
    text-align: left;
}

#explore-space button {
    margin-left: 50px;
    padding: 10px 30px;
    border: 2px solid white;
    background-color: black;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    margin-top: 40px;
}

/* Button Base Styling */
button {
    padding: 10px 30px;
    border: 2px solid white;
    background-color: black;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Hover Glow Effect */
button:hover {
    color: #ffcc00;
    border-color: #ffcc00;
}

/* Glowing Border Effect */
button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ffcc00;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 20px #ffcc00;
}

button:hover::after {
    opacity: 1;
}

/*planet*/

#planet {
    background: url('../../images/planetbg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    padding-right: 20px;
}

#planet h1 {
    letter-spacing: 20%;
    margin: 0;
    margin-right: 150px;
    padding: 0 20px 20px 0;
}

#planet p {
    letter-spacing: 20%;
    width: 50%;
    line-height: 1.6;
    margin: 20px 0;
    margin-right: 150px;
    text-align: justify;
}

#planet button {
    margin-right: 150px;
}

/*myths*/

#myth {
    background: url('../../images/mythsbg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    padding-right: 20px;
    color: white;
}

#myth h1 {
    letter-spacing: 20%;
    margin: 0;
    margin-right: 150px;
    padding: 0 20px 20px 0;
}

#myth p {
    letter-spacing: 20%;
    width: 50%;
    line-height: 1.6;
    margin: 20px 0;
    margin-right: 150px;
    text-align: justify;
}

#myth button {
    margin-right: 150px;
}

/* Responsive Styling */

@media (max-width: 768px) {

    #explore-space button,
    .section button,
    #planet button,
    #myth button {
        margin: 20px auto;
        display: block;
    }

    .section,
    #planet,
    #myth {
        align-items: center;
        text-align: center;
    }

    .section .title h1,
    #planet h1,
    #myth h1 {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .section p,
    #planet p,
    #myth p {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .section,
    #planet,
    #myth {
        align-items: center;
        text-align: center;
    }

    .title h1,
    #planet h1,
    #myth h1 {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .section p,
    #planet p,
    #myth p {
        text-align: center;
    }

    .section button,
    #planet button,
    #myth button {
        margin: 10px auto;
        display: block;
    }
}