/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, rgb(0, 128, 128), rgb(0, 170, 170), rgb(50, 48, 139));
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: rgb(50, 48, 139);
    color: white; /* testing: white is default color */
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease-in-out;
}

header img {
    max-height: 50px;
    flex-shrink: 0;
    margin-right: 1rem;
}

header h1 {
    flex-grow: 1;
    text-align: left;
    margin: 0;
    font-size: 2rem;
}

h2 {
    font-size: x-large;
    color: rgb(61, 207, 207);
}

h5 {
    font-size: xx-large;
    color: cyan;
}

/* Navbar Styles */
nav {
    background-color: blueviolet;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0px 2px 5px paleturquoise;
    width: 100%;
    margin-bottom: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 0;
    font-weight: normal;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a.active {
    color: cyan;
    border-bottom: 1px solid cyan;
}

nav a:hover {
    color: cyan;
    border-bottom: 1px solid cyan;
}

/* Main Content */
main {
    padding: 10px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Buttons */
button {
    background-color: #007acc;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #005f99;
}

/* Footer */
footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* List Styles */
ul {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    list-style: none;
}

ul li {
    margin-bottom: 1.5rem;
}

ul li b {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

ul li p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* White Box */
.white-box {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

img.small {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* Form Styles */
.container {
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
}

form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

form button {
    background-color: #007acc;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #005f99;
}

/* Media Queries for Responsive Design */

/* For tablets and smaller devices */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }

    @media (max-width: 480px) {
        img.small {
            max-width: 80%; /* Adjusts image size on small screens */
        }
    }
    
    header img {
        max-width: 40px;
    }

    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav a {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .white-box, ul {
        padding: 10px;
        max-width: 100%;
    }

    ul li {
        font-size: 1rem;
    }
}

/* For smaller phones */
@media (max-width: 480px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 5px;
    }
}

/* Dropdown Navigation */
nav {
    background: radial-gradient(circle,  rgb(0, 170, 170), grey, rgb(100, 100, 200), rgb(50, 48, 139));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    box-shadow: 0px 2px 5px paleturquoise;
    width: 100%;
    margin-bottom: 1rem;
}

.dropdown-label {
    color: white;
    font-size: 1rem;
    margin-right: 10px;
}

select {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    background-color: white;
}

select:hover {
    background-color: #f0f0f0;
}

/* Ensure the body takes up the full viewport height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pushes the content up and keeps the footer at the bottom */
.container {
    flex: 1;
}

/* Make footer stick to the bottom */
footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
}
