* {
    margin: 0;
    box-sizing: border-box;
    font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    padding: 0;
    background-color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 1001;
    position: sticky;
    top: 0;
}

header h1 {
    font-size: 1.8rem;
    color: #2575fc;
}

/* Navigation Styles */
nav.desktop {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav.desktop a {
    text-decoration: none;
    color: #2575fc;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

nav.desktop a:hover {
    color: #6a11cb;
}

nav.fullscreen {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

nav.fullscreen.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

nav.fullscreen a {
    width: auto; /* Ensure links do not stretch */
    text-align: center;
    padding: 10px 20px;
    display: inline-block; /* Prevent full-width stretching */
    font-size: 1.5rem;
    font-weight: bold;
    color: #2575fc;
    text-decoration: none;
    transition: color 0.3s;
}

nav.fullscreen a:hover {
    color: #6a11cb;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 1px solid #2575fc;
    padding: 10px 20px;
    border-radius: 5px;
    color: #2575fc;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
}

.dark-mode-toggle:hover {
    background-color: #2575fc;
    color: #ffffff;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle div {
    width: 100%;
    height: 3px;
    background: #2575fc;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content Styles */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

main h1 ,
main h2 ,
main h3 ,
main h4 ,
main h5 {
    color: #2575fc;
}

section {
    margin-bottom: 20px;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

section p {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
    min-height: 48px;
    margin: 0 auto;
}

footer p {
    font-size: 0.9rem;
    color: #666;
}

/* Link styles */
a {
    color: #007bff; /* Default blue link */
    text-decoration: none; /* No underline by default */
}
a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover for clarity */
}
body.dark a
{
    color: #4bb0ff; /* Light blue for dark mode links */
    text-decoration: none;
    
}
body.dark a:hover 
{
    color: #1a8cff; /* Brighter blue for hover */
    text-decoration: underline;
}

/* Dark Mode Styles */
body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

header.dark {
    background-color: #1e1e1e;
    border-color: #333;
}

nav.dark {
    background-color: rgba(30, 30, 30, 0.95);
}

nav.dark a {
    color: #e0e0e0;
}

footer.dark {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-mode-toggle.dark {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

.dark-mode-toggle.dark:hover {
    background-color: #e0e0e0;
    color: #121212;
}

#pics_in_footer > a > img
{
    width: 48px;    
}

/* Responsive Design */
@media (max-width: 767px) {
    nav.desktop {
        display: none; /* Hide desktop menu on mobile */
    }

    nav.fullscreen {
        display: none; /* Ensure the fullscreen menu is hidden when not active */
    }

    .clear_when_small_screen
    {
        clear: both;
    }
}

@media (min-width: 768px) {
    .clear_when_big_screen
    {
        clear: both;
    }
    .menu-toggle {
        display: none; /* Hide the menu toggle on desktop */
    }

    nav.desktop {
        display: flex; /* Show the desktop menu on larger screens */
    }
}


/* Prevent transitions temporarily */
.no-transition *, .no-transition {
    transition: none !important;
  }




/* Toolbar Styles */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2575fc;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.toolbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar .user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.toolbar .actions {
    display: flex;
    gap: 15px;
}

.toolbar .actions a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
}

.toolbar .actions a:hover {
    color: #cce7ff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar .actions {
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
}


    

/* Sign-In Form Styles */
.sign-in-form {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sign-in-form h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2575fc;
}

.sign-in-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.sign-in-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.sign-in-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #2575fc;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sign-in-form input[type="submit"]:hover {
    background-color: #1a5fdc;
}

.sign-in-form input[type="submit"]:disabled {
    background-color: #888 !important;
}

.sign-in-form fieldset
{
    border: 0;
    margin: 0;
    padding: 0;
}


/* Dark Mode Styles */
body.dark {
    background-color: #121212;
    color: #ffffff;
}

body.dark header.main-header {
    background-color: #1f1f1f;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

body.dark header.main-header h1 {
    color: #4dafff;
}

body.dark .toolbar {
    background-color: #333;
    color: #ffffff;
}

body.dark .toolbar .actions a {
    color: #cccccc;
}

body.dark .toolbar .actions a:hover {
    color: #ffffff;
}

body.dark .sign-in-form {
    background-color: #1f1f1f;
    border: 1px solid #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

body.dark .sign-in-form h2 {
    color: #4dafff;
}

body.dark .sign-in-form input {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #ffffff;
}

body.dark .sign-in-form input::placeholder {
    color: #888;
}

body.dark .sign-in-form input[type="submit"] {
    background-color: #4dafff;
    color: #1f1f1f;
}

body.dark .sign-in-form input[type="submit"]:hover {
    background-color: #267fcf;
}
  
/* Error message */
.error_message {
    color: #f44336; /* Red for error indication */
    background-color: #ffebee; /* Light red background for contrast */
    padding: 10px 15px; /* Adding some padding for spacing */
    border: 1px solid #f44336; /* Border matching the text color */
    border-radius: 5px; /* Rounded corners for better visual appeal */
    font-size: 1rem; /* Adjust the font size for readability */
    font-weight: bold; /* Make the error text bold */
    margin-bottom: 20px; /* Add some space below the message */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for changes */
}

.error_message:hover {
    background-color: #ffcccc; /* Slightly darker background on hover */
    color: #d32f2f; /* Darker red color for better emphasis */
}

/* And for dark */
.dark .error_message {
    color: #f44336; /* Red text for error */
    background-color: #2c2c2c; /* Dark background to match dark mode */
    padding: 10px 15px; /* Padding for better spacing */
    border: 1px solid #f44336; /* Border matching the error color */
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem; /* Standard font size */
    font-weight: bold; /* Bold text to make it stand out */
    margin-bottom: 20px; /* Space below the error message */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.dark .error_message:hover {
    background-color: #444; /* Slightly lighter dark background on hover */
    color: #ff5722; /* Orange-red for hover to make it more noticeable */
}