/* 
    Author: Ethan Clapham
    Date Created: 05/02/2025
    Description: This file contains the global styles for the website.
*/

/* Styling for the body of all pages*/
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styling for the header of all pages */
header {
    background-color: #5b5b5b;
}

/* Styling for the navigation bar of all pages */
nav {
    display: flex;
    align-items: center;
    background-color: #5b5b5b;
    justify-content: space-between;
    padding: 10px 20px;
    color: white;
}

nav a {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.5s ease;
    padding: 8px 15px;
}

/* Styling for items in the nav bar when hovered over */
nav .nav-links a:hover {
    background-color: #9b9b9b;
    border-radius: 5px;
}

nav .account a:hover {
    background-color: #9b9b9b;
    border-radius: 5px;
}

/* Sidebar icon styles*/
#menu-icon {
    font-size: 30px;
    cursor: pointer;
    color: white;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.5s ease;
}

#menu-icon:hover {
    background-color: #9b9b9b;
}

/* Sidebar Styling */
#sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Hidden initially */
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    padding-top: 60px;
    transition: 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* Styling for the sidebar links */
#sidebar .nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    text-align: center;
}

#sidebar .nav-links a:hover{
    background-color: #444;
}

/* Styling for the close button in the sidebar */
#close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#close-btn:hover {
    color: #ffffff8c;
}

/* Sidebar Open */
.sidebar-open {
    left: 0 !important;
}

/* Styling for the main content of all pages */
main {
    padding: 20px;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

/* Styling for the text in the main content */
h1 {
    font-size: 45px;
    color: #10583b;
}

h2 {
    font-size: 30px;
}

p {
    font-size: 16px;
    color: black;
}

footer {
    background-color: #5b5b5b;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
}

footer p {
    color: white;
}

footer a {
    color: lightblue;
    text-decoration: underline;
}