html, body {
    height: 100%; /* Full height for the html and body */
    margin: 0; /* Remove default margin */
    font-family: Arial, Helvetica, sans-serif; /* Fallback to sans-serif */
}

#container{
    display: flex;
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Full height of the viewport */
}

#main-content {
    flex: 1; /* Allow main content to grow and take available space */
    max-width: 1500px;
    width: 100%;
    margin: auto;
    padding: 0 50px;
}

#main-content{
    flex: 1; /* This allows the content to grow and take available space */
}

/*START OF NAVBAR*/
.navbar {
    width: 100%;
}

.navbar-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(to right, lightblue, rgb(1, 113, 179));
    color: white;
}

.logo-link {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center items vertically */
    text-decoration: none; /* Remove underline from link */
    color: white; /* Set text color to white */
}

.logo-image {
    height: 100px; /* Set the height of the logo */
    width: auto; /* Maintain aspect ratio */
}

.logo-text {
    margin-left: 10px; /* Add some space between the image and the text */
    font-size: 24px; /* Adjust font size as needed */
    font-weight: bold;
}

/*START OF SEARCH BAR*/
.future-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

form {
    display: flex;
    border: 2px solid #0056b3; /* Green border */
    border-radius: 5px;
    overflow: hidden; /* Ensures the border radius is applied to the input and button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

input[type="search"] {
    border: none; /* Remove default border */
    padding: 10px; /* Add some padding */
    font-size: 16px; /* Increase font size */
    outline: none; /* Remove outline on focus */
    flex: 1; /* Allow input to take available space */
}

input[type="search"]::placeholder {
    color: #888; /* Placeholder color */
}

button {
    background-color: #007bff; /* Green background */
    color: white; /* White text */
    border: none; /* Remove default border */
    padding: 10px 15px; /* Add padding */
    cursor: pointer; /* Change cursor on hover */
    font-size: 16px; /* Increase font size */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

button:hover {
    background-color: #0056b3; /* Darker green on hover */
}
/*END OF SEARCH BAR*/

.navbar-row2 {
    background-color: hsla(207, 31%, 48%, 0.199);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 7px 0;
    margin: auto;
    max-width: 1500px;
}

.nav-links li {
    margin: 0 15px;
    font-size: 20px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(39, 71, 117);
    padding: 5px 10px;
}

.nav-links a:hover {
    border-bottom: 2px solid rgb(36, 34, 34);
    color: rgb(15, 30, 56);
}
/*END OF NAVBAR*/

/*START OF BREADCRUMB*/
#breadcrumb {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the items horizontally */
    align-items: center; /* Center the items vertically */
    margin: 10px 0;
    font-size: 20px;
}

#breadcrumb a {
    text-decoration: none;
    color: #007bff; /* Change to your preferred color */
}

#breadcrumb span {
    margin: 0 5px;
}
/*END OF BREADCRUMB*/

/*START OF FOOTER*/
footer {
    background-color: hsla(207, 31%, 48%, 0.199);
    color: rgb(39, 71, 117);
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links, .footer-social {
    flex: 1;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 10px;
}

.footer-links ul, .footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-social li {
    margin: 5px 0;
}

.footer-links a, .footer-social a {
    color: rgb(54, 99, 161);
    text-decoration: none;
}

.footer-links a:hover, .footer-social a:hover {
    text-decoration: underline;
}

.footer-social ul {
    display: flex;
    gap: 10px;
}

.footer-social i {
    font-size: 30px; /* Change this value to increase or decrease size */
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}
/*END OF FOOTER*/

/*START OF LIST PAGE*/
.page-list {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    margin-top: 40px;
}

.page-list.home {
    margin-top: 0;
}

.page-list h1{
    font-size: 50px;
}

.page-item {
    display: none;
    margin-bottom: 20px;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color from parent */
    justify-content: center; /* Center align content within each item */
    width: 100%; /* Ensure items take full width for centering */
    max-width: 800px; /* Optional: Set a max width for the items */
    font-size: 1.2em;
}

.styled-hr {
    border: none; /* Remove default border */
    height: 2px; /* Increase height for a wider line */
    background-color: rgba(128, 128, 128, 0.3); /* Set a gray color with reduced opacity */
    margin: 20px 0; /* Add some space above and below the line */
  }

.page-item-home {
    display: flex;
    margin-bottom: 20px;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color from parent */
    justify-content: center; /* Center align content within each item */
    width: 100%; /* Ensure items take full width for centering */
    max-width: 800px; /* Optional: Set a max width for the items */
    font-size: 1.2em;
}

.page-image {
    flex: 0 0 200px; /* Fixed width for the image */
    margin-right: 20px;
}

.page-image img {
    width: 100%; /* Responsive image */
    height: auto;
}

.page-content {
    flex: 1; /* Take the remaining space */
}

.page-title {
    font-size: 1.5em;
    margin: 0;
}

.page-item:hover .page-title {
    text-decoration: underline; /* Underline the title on hover */
}

.page-description {
    margin: 5px 0;
}

.page-date {
    color: gray; /* Style for the date */
    font-size: 0.9em;
}

.button-container {
    display: flex; /* Use flexbox to center the button */
    justify-content: center; /* Center the button horizontally */
    margin: 20px auto; /* Space above the button */
}

#load-more {
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    border: none; /* Remove border */
    display: none;
    padding: 10px 20px; /* Padding for the button */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth background color transition */
}

#load-more:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

#load-more:focus {
    outline: none; /* Remove outline on focus */
}
/*END OF LIST PAGE*/

/*START OF SINGLE PAGE*/
.post{
    font-size: 1.2em;
    width: 60%;
    margin: 0 auto; /* This centers the element */
}

.post-title {
    font-size: 2em; /* Adjust as needed */
    margin-bottom: 0.5em; /* Space below the title */
}

.post-date {
    font-size: small;
    color: grey;
    margin-bottom: 1em; /* Space below the date */
    font-size: 1em;
}

.post-image img {
    max-width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
}

.post-image .image-alt {
    margin-top: 0;
    color: #888; /* Grey color for weak text */
    font-size: 0.9em; /* Slightly smaller font size */
    margin-bottom: 1em; /* Space below the image */
}

.post-description {
    font-weight: bold;
    margin-bottom: 1em; /* Space below the description */
}

.post-content{
    margin-bottom: 5em;
}
/*END OF SINGLE PAGE*/

/*START OF HOME PAGE*/
.image-container {
    position: relative;
    width: 60%;
    overflow: hidden;
    margin: 0 auto; /* Center horizontally */
    margin-bottom: 1em;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.5s ease-in-out; /* Increased duration and smoother timing function */
}

.image-title {
    position: absolute;
    top: 70%;
    left: 5%;
    width: 60%;
    background-color: rgba(31, 77, 121, 0.7); /* Initial semi-transparent background */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 10px; /* Add some padding */
    border-radius: 5px; /* Optional: rounded corners */
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out; /* Increased duration for both properties */
}

/* Hover effects */
.image-container:hover img {
    filter: brightness(0.5); /* Darken the image */
}

.image-container:hover .image-title {
    background-color: rgba(31, 78, 121, 0.911); /* Lighten the box color */
    color: white; /* Change text color for better contrast */
}
/*END OF HOME PAGE*/

/*START OF LOADING BUTTON*/
.search-loading {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
  }
  
  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
/*END OF LOADING BUTTON*/