/* Default: Dark Mode */
:root {
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --link-color: rgb(209, 156, 9);
    --icon-color: rgb(209, 156, 9);
    --title-color: #FFFFFF;
    --cookie-color: green;
}

/* Light Mode */
.light-mode {
    --background-color: #e2e2e2;
    --text-color: #222;
    --link-color: #0077cc;
    --icon-color: #222;
    --title-color: #222;
    --cookie-color: #222;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    font-size: 20px;
}

h1 {
    font-family: Arial, sans-serif;
    font-size: 30px;
}

header {
    background-color: var(--background-color);
    padding: 10px;
}

#articles {
    padding: 20px;
}
/* Title */
span.title {
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 35px;
    letter-spacing: -3.2px;
    word-spacing: 2px;
    color: var(--title-color);
    font-weight: 700;
    text-decoration: none;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}

/* Footer */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
}
.footer-content {
    margin-bottom: 20px;
}
.footer-content h3 {
    font-size: 1.5em;
}
.footer-content p {
    font-size: 1em;
}
.socials {
    list-style: none;
    padding: 0;
}
.socials li {
    display: inline;
    margin-right: 10px;
}
.socials li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2em;
}
.footer-bottom {
    font-size: 0.8em;
}
/* Cookie banner */
.cookie {
    background-color: var(--cookie-color);
    color: white;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    width: 100%;
    font-size: 15px;
}

/* Hyperlinks */
a:link, a:visited {
    color: var(--link-color);
    background-color: transparent;
    text-decoration: none;
    transition: text-decoration 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Underline on hover */
a:hover {
    text-decoration: underline;
    color: var(--link-color);
}


/* Top bar styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Logo and title */
.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img {
    margin-right: 10px;
}

.title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: var(--text-color);
}

/* Hamburger icon */
.hamburger-icon {
    font-size: 50px;
    cursor: pointer;
    color: var(--text-color);
    display: block;
}

/* Navigation menu styles */
.nav-menu {
    background-color: var(--background-color);
    padding: 10px;
}

#category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Vertical menu */
}

#category-list li {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

#category-list a {
    text-decoration: none;
    color:var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

#category-list a:hover {
    text-decoration: underline;
}

/* Hide menu by default */
.hidden {
    display: none;
}

/* Desktop view: Show the menu by default */
@media (min-width: 768px) {
    .nav-menu {
        display: block;
    }

    #category-list {
        flex-direction: row; /* Horizontal menu */
    }

    #category-list li {
        margin: 0 20px;
    }

    .hamburger-icon {
        display: none; /* Hide hamburger icon on desktop */
    }
}

/* Material Symbols Outlined */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('/res/fonts/MaterialSymbolsOutlined.woff2') format('woff2');
  }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.icon-text {
    vertical-align: middle;
    font-family: 'Material Symbols Outlined';
    font-size: 40px;
    color: var(--icon-color);
}

/* Default Theme Button Style */
#theme-toggle {
    background-color: transparent;
    border: 2px solid var(--icon-color);
    color: var(--icon-color);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover Effects for the Button */
#theme-toggle:hover {
    background-color: var(--icon-color);
    color: var(--background-color);
}

/* Light Mode Button Style */
.light-mode #theme-toggle {
    border-color: var(--link-color);
    color: var(--link-color);
}

.light-mode #theme-toggle:hover {
    background-color: var(--link-color);
    color: var(--background-color);
}
