/* Page background */
body {
    background-color: lightgrey;
    font-family: Arial, sans-serif;
}

/* Center everything */
h1, h2, p {
    text-align: center;
}
#greetingMessage {
    text-align: center;
}
#username {
    text-align: center;
}

/* Style the headers */
h1 {
    color: rgb(79, 0, 50);
}

h2 {
    color: (#BD4800);
}

/* Style links */
a {
    color: (#6B0000);
    text-decoration: underline;
}

a:hover {
    text-decoration: underline wavy;
}

/* Style lists */
ul {
    text-align: left;
    margin: 20px auto;
    width: 50%;
}

/* Style images */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* Style fact display */
.fact-section {
    text-align: center;
    margin-top: 10px;
}

#factDisplay {
    color: #4f0032;
    font-weight: bold;
    font-size: 1.1rem;

    margin-top: 10px;

    min-height: 1.5em; /* prevents layout jump */
    display: block;

    padding: 10px;
    border: 2px solid #4f0032;
    border-radius: 8px;
    background-color: #f5f5f5;

    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery fade effect */
#galleryImage {
    transition: opacity 0.4s ease-in-out;
}

/* Container block */
.container {
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border: solid;
    border-color: rgb(79, 0, 50);
}

/* ============= */
/* MOBILE */

@media screen and (max-width: 768px) {

/* Optimize container for smaller screens */
    .container {
        padding: 10px;
        width: 95%;
    }

    /* Make images responsive */
    img {
        width: 100%;
        height: auto;
    }

    /* Stack navigation links vertically */
    a {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    /* Fix list width for mobile */
    ul {
        width: 90%;
    }

    /* Reduce text size for readability */
    p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}