body {
    background-color: black;
    text-align: center;
    font-family: macondo;
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
    max-width:100%;
}

/* Headings */
h1 {
    color: white;
    text-align: center;
    margin-top: 30px;
}

hr {
    margin: 30px auto;
    width: 50%;
    height: 2px;
    background-color: rgb(76, 159, 226);
    border: none;
}

/* Navigation */
ul {
    color: white;
    font-size: 22px;
    list-style: none;
    padding: 0;
    margin: 10px 0 30px;
}

li {
    display: inline-block;
    padding: 15px;
}

li:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
    text-decoration:underline ;
    text-underline-offset: 15px;   /* space between text and underline */
}

a {
    text-decoration: none;
    color: rgb(127, 83, 143);
}

a:hover {
    color: green;
}

/* Images */
img {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Zodiac Calculator */
#Zodiac {
    text-align: center;
    color: white;
    padding: 10px;
}

.image-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    align-items: start;
}

/* make button row span both columns */
.text-calculatebutton {
    grid-column: 1 / -1; /* span across both grid columns */
    text-align: center;
    margin-top: 30px;
}

.input-area {
    margin-bottom: 20px;
}

#month, #day, #year, input[type="text"] {
    width: 100%;
    max-width: 300px;
    height: 40px;
    background-color: lightgray;
    font-size: 14pt;
    font-family: outfit;
    margin: auto;
}

/* Button */
#submit {
    height: 50px;
    width: 140px;
    font-size: 14pt;
    font-family: outfit;
    border-radius: 6px;
    margin-top: 10px;
}

#submit:hover {
    background: green;
    color: white;
    box-shadow: 0px 0px 40px 20px rgba(240, 243, 242, 0.9);
}

/* Result Boxes */
#result, #result2, #result3 {
    width: 100%;
    max-width: 200px;
    height: 30px;
    margin: 10px auto;
    font-size: 12pt;
    color: black;
    background-color: lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footermessage {
    color: white;
    text-align: center;
    margin: 60px 0 20px;
}

/* ------------------ */
/* RESPONSIVE QUERIES */
/* ------------------ */

/* On tablets and smaller screens */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: 1fr; /* stack inputs + outputs */
    }
    
    /*ul {
        font-size: 18px;
    }*/

    li {
        padding: 10px;
    }
}

/* On very small screens */
@media (max-width: 500px) {
    h1 {
        font-size: 24px;
    }

    #submit {
        width: 100%;
        max-width: 250px;
    }

    #month, #day, #year {
        max-width: 250px;
    }
}
