/* Resetting some default styles */
* {
    color: black; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default light mode */
body {
    background-color: white;
    color: black; 
}

/* Dark mode styles */
.dark-mode {
    background-color: black;
    color: white; 
}

/* Header styles */
header {
    background-color: #002171; 
    background-image: url(Head.jpg);
    color: #FFFFFF; 
    font-family: Georgia, serif; 
    height: 120px; 
    position: relative; 
}

/* h1 styling */
h1 {
    text-align: center;
    font-size: 2.5em; 
    line-height: 1.2; 
    letter-spacing: .25em;
    color: white;
    margin: 0; 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
}

/* Navigation bar styles */
nav {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    padding: 10px 0;
    color: red;
}

/* Navigation links */
nav a {
    text-decoration: none;
    color: white; 
    font-size: 1.2em; 
    padding: 10px 20px; 
    background-image: url(Head.jpg);
    background-size: cover; 
    background-position: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: red;
}

/* Hover effects */
nav a:hover {
    background-color: rgba(0, 0, 0, 0.5); 
    color: #FFD700; 
}

/* Centering the h2 and p elements */
h2 {
    color: black; 
    text-align: center; 
    margin: 20px 0; 
}

h3 {
    color: black; 
    text-align: center; 
    margin: 20px 0; 
    font-size: large;
    font-weight: bold;
    font-style: italic;
}


p {
    color: black; 
    text-align: center;
    max-width: 800px; 
    margin: 0 auto; 
}

/* List styling */
ul {
    list-style-type: none; 
    padding: 0; 
    margin: 20px 0; 
    text-align: center; 
}

li {
    background-color: #003366; 
    margin: 10px 0; 
    padding: 10px 15px; 
    border-radius: 8px; 
    transition: background-color 0.3s ease; 
    text-align: center; 
}

li:hover {
    background-color: #0059b3; 
}

li a {
    text-decoration: none; 
    color: white; 
    font-size: 1.1em; 
    display: block; 
}

/* Dark mode: heading and paragraph styles */
.dark-mode h2 {
    color: white; 
}


.dark-mode h3 {
    color: white; 
}

.dark-mode p {
    color: white; 
}

/* Dark mode: navigation links and other elements */
.dark-mode nav a {
    background-image: url(Head.jpg); 
    background-color: transparent; 
    color: white; 
}

.dark-mode nav a:hover {
    background-color: rgba(255, 215, 0, 0.5); 
    color: black;
}

/* Footer styles */
footer {
    text-align: center;
    margin: 20px 0; 
    color: black; 
}

footer a {
    color: black; 
}

.dark-mode footer {
    color: white; 
}

.dark-mode footer a {
    color: white; 
}

/* Button styling for dark mode toggle */
#theme-toggle {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
}

#theme-toggle:hover {
    background-color: #0059b3;
}

section {
    display: inline-block; 
    width: 30%; 
    padding: 1em;
    margin: 1em; 
    box-sizing: border-box; 
    vertical-align: top; 
    padding-left: 5%;
}

.description em {
    color: red;
  }