/* With Paddy's detailed comments explaining the styling */

/* This is the initial styles.css sheet from the primary index */

/* Styles for the overall page layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Sets a consistent font for the whole page */
    background-color: #777777; /* Lighter grey background for the entire page */
    margin: 0; /* Removes default margin around the body */
    padding: 0; /* Removes default padding around the body */
    display: flex; /* Uses flexbox for layout */
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the content vertically */
    min-height: 100vh; /* Ensures the content takes at least the full viewport height */
}

/* Styles for the general container holding all the content */
.container {
    text-align: center; /* Centers text within the container */
    padding: 30px; /* Adds padding inside the container for spacing */
    background-color: #d3d3d3; /* Lighter grey background for the container */
    max-width: 80%; /* Limits the container width to 80% of the viewport */
    margin: auto; /* Centers the container within the body */
}

/* Styles related to everything inside the header/button container */

/* Styles for the heading box */
.heading-box {
    background-color: #d3d3d3; /* Matches the container background */
    border-radius: 10px; /* Rounds the corners of the heading box */
    padding: 10px; /* Adds padding inside the heading box */
    margin-bottom: 15px; /* Adds space below the heading box */
    border: 2px solid #aaaaaa; /* Adds a thin border around the heading box */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6); /* Adds a shadow to the heading box for depth */
}

/* Styles for the heading */
.container h1 {
    font-weight: bold; /* Makes the heading text bold */
    font-size: 30px; /* Sets the font size of the heading */
    color: #777777; /* Sets the color of the heading text */
    margin: 0; /* Removes default margin around the heading */
}

/* Style for the heading hyperlink */
.heading-link {
    color: inherit; /* Ensures the link inherits the color of the heading text */
    text-decoration: none; /* Removes the underline from the link */
}

/* End styles for the links/buttons */



/* Styles for the links/buttons */

/* Note: Adding :not(.heading-link) ensures these styles do not apply to the heading link */

.container a:not(.heading-link) {
    display: block; /* Makes the links block elements, allowing for width, height, and margin to be applied */
    margin: 10px auto; /* Adds margin above and below the links, centers them horizontally */
    padding: 15px 30px; /* Adds padding inside the links for clickable area */
    font-size: 20px; /* Sets the font size of the links */
    text-decoration: none; /* Removes the underline from the links */
    color: #ffffff; /* Sets the text color of the links to white */
    background-color: #777777; /* Sets the background color of the links */
    border-radius: 30px; /* Rounds the corners of the links */
    border: 2px solid #aaaaaa; /* Adds a border around the links */
    transition: all 0.3s ease-in-out; /* Adds a transition effect for all properties */
    width: 200px; /* Sets a fixed width for the links */
    text-align: center; /* Centers the text within the links */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6); /* Adds a shadow to the links for depth */
}

/* Hover styles for links/buttons */
.container a:not(.heading-link):hover {
    background-color: #b2bfae; /* Changes the background color on hover */
    border-color: #bdd3b6; /* Changes the border color on hover */
    color: #ffffff; /* Ensures the text color remains white on hover */
    box-shadow: 0 0 30px rgba(139, 195, 74, 0.8); /* Adds a more intense shadow on hover */
}


/* Media query for smaller screens */
@media only screen and (max-width: 600px) {
    .container {
        padding: 15px; /* Reduces padding inside the container for smaller screens */
    }
    .container h1 {
        font-size: 30px; /* Ensures the heading font size remains appropriate for smaller screens */
    }
    .container a:not(.heading-link) {
        padding: 15px 30px; /* Ensures the links remain appropriately padded for smaller screens */
        font-size: 24px; /* Increases the font size for better readability on smaller screens */
        width: 250px; /* Increases the width of the links for smaller screens */
    }
}
