/* Styling for general page background */
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 */
}

/* Styling for form container size, shape and background */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Changed height to min-height */
    padding: 20px; /* Added padding to give space around the form */
    box-sizing: border-box; /* Include padding in the total height */
    text-align: center; /* Centers text within the container */
    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 */
.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 */
}

/* Styles for the links/buttons */
.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 */
}

/* Styling for form input fields */
form {
    width: 350px;
    background-color: #cccccc;
    padding: 20px; /* Adjusted padding for inner spacing */
    border-radius: 8px;
    box-shadow: 0 0 30px 1px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 20px; /* Increased space between input fields */
    position: relative; /* Positioning for labels */
}

/* Styling for input form LABELS located above the input fields */
label {
    position: absolute;
    top: -15px; /* Adjusted position to be above the input fields */
    left: 0; /* Align the labels with the left edge of the input fields */
}

input[type="text"],
input[type="password"] {
    width: calc(100% - 20px); /* Adjusted width to accommodate labels */
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #777777; /* Add a light grey border */
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #d3d3d3; /* Add a light grey background color */
}

/* Styling for form input fields 'again' */
input[type="submit"] {
    width: calc(100% - 20px); /* Match the width of the input fields */
    padding: 5px;
    margin-top: 10px; /* Add some space between the input fields and the button */
    border: none; /* Remove border */
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #333; /* Dark grey background color */
    color: #fff; /* Text color */
    cursor: pointer;
}

/* Styling for form 'Submit' button */
input[type="submit"]:hover {
    background-color: #555;
}

/* 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 */
    }
}
