body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

header {
    display: flex;
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Pushes logo to left and nav to right */
    padding: 20px;
    background: #000000;
    color: #ffffff;
    width: 100%;
}

.logo-container img {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allows nav to take remaining space */
}


header a {
    display: flex;
    justify-content: center;
    width: 100%;
}

header a img {
    max-width: 200px; /* Adjust logo size */
    height: auto;
    display: block;
    margin: 0 auto;
}

nav h1 {
    margin-bottom: 10px; /* Add spacing below title */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Ensure nav items are centered */
    gap: 20px;
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.dark-mode a {
    color: #ffffff; /* White for visibility in dark mode */
}

section {
    padding: 20px 20px; /* Reduced padding to decrease space between sections */
    text-align: center;
}

.horizontal-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.horizontal-list li {
    display: inline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000000; /*background colour*/
    color: #ffffff; /* text colour*/
}

.centered-text {
    width: 80%; /* Adjust width as needed */
    margin: 10% auto; /* Centers the block and insets from edges */
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: justify;
	color: black;
}

.centered-image {
    display: block;
    margin: 0 auto;
    max-width: 100%; /* Ensures responsiveness */
    height: auto;
}

.dark-mode .centered-text {
    background-color: #222;
    color: #ffffff;
}
:root {
    color-scheme: light dark; /* Allows manual dark mode but prevents auto Safari override */
}

body {
    background-color: #f5f5f5; /* Light mode background */
    color: #333; /* Ensures text remains dark */
}

.dark-mode {
    background-color: #121212 !important; /* Forces proper dark background */
    color: #ffffff !important; /* Ensures text is white */
}

a {
    color: #000000; /* Forces black text in light mode */
}

.dark-mode a {
    color: #FFD700; /* Gold text for visibility in dark mode */
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

.clickable-image {
    width: 50%; /* Scale image to 50% of its original size */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center image */
    cursor: pointer; /* Indicate clickability */
}

.table-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

table {
    border-collapse: collapse;
    width: 80%; /* Adjust width as needed */
    text-align: center;
}

th {
    padding-bottom: 10px;
    font-size: 1.2em;
}

td {
    padding: 10px;
}

.table-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

table {
    border-collapse: collapse;
    width: 80%; /* Adjust width as needed */
    text-align: center;
}

td {
    padding: 10px;
    font-size: 1em;
}

.table-image {
    width: 80%; /* Adjust image size */
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

strong {
    font-size: 1.2em;
}
