
/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    margin: 0;
    padding: 0;
}

#menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--primary-color);
    color: var(--menubar-text-color);
    display: flex;
    align-items: center;
    z-index: 1000;
    font-size: 14px;
    padding-left: 10px;
}
#menubar-mobile {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--menubar-text-color);
    z-index: 1001;
    font-size: 14px;
    padding-left: 2em;
    display: none;
}

.menubutton {
    position: fixed;
    top: 9px;
    right: 20px;
    cursor: pointer;
    display: none;
}

.container, .menubarcontainer {
    width: 1200px;
    max-width: 1200px;
}
.container {
    margin: 1rem auto 1rem auto;
    background: var(--container-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-color);
}
.login-container {
    max-width: 400px;
    margin: 0 auto;
}
.menubarcontainer {
    min-width: 1200px;
    display: flex;
    align-items: center;
    margin: 0 auto 0 auto;
}
.logo {
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 2em;
    margin-right: 2em;
    user-select: none;
}
.logo a {
    color: var(--menubar-text-color);
    text-decoration: none;
}
.logo a:hover {
    text-decoration: none;
}
.menu-items {
    display: flex;
    padding: 1em;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
}
.menu-items-mobile {
    line-height: 4em;
    padding: 1em;
    font-weight: 700;
    text-transform: uppercase;
}
.menubarcontainer a, .menubarcontainer-mobile a {
    color: var(--menubar-link-color);
    text-decoration: none;
    margin-right: 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--menubar-text-color);
    margin-right: 20px;
}
.search-container {
    margin-bottom: 1rem;
}
#counter-container {
    align-items: center;
    display: flex;
    flex-direction: column;
}
#counter-header {
    font-size: 5.0rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}
#counter{
    font-size: 10.0rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

table th, table td {
    border: 1px solid var(--form-border-color);
    padding: 8px;
    text-align: left;
    color: var(--text-color);
}

table th {
    background-color: var(--form-background-color); /* Consider adding a root variable if you want to theme this */
}


form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 2px 10px 2px 10px;
    width: 100%;
    background-color: var(--footer-bg-color);
    font-size: 12px;
    color: var(--footer-text-color);
}

form {
    color: var(--text-color);
}

/* For checkboxes, text input and textarea, set the theme colors */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="checkbox"],
form select,
form input,
form textarea {
    background-color: var(--container-bg-color);
    color: var(--text-color);
}

/* Only for checkbox labels: label text left, checkbox right */
form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center; /* Vertically center checkbox and label text */
    font-weight: 600;
    gap: 0.5em;
    flex-direction: row;
    margin-bottom: 0.5rem;
}

form label:has(input[type="checkbox"]) input[type="checkbox"] {
    margin-left: 0.5em;
    margin-right: 0;
    margin-top: 1.3em;
    width: auto;
    height: 1.1em; /* Ensures checkbox is visually centered with text */
    display: inline-block;
    vertical-align: middle;
}

form input, form select, form textarea {
    display: block;
    width: 90%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: .75rem;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: var(--hover-color);
}

a.button {
    display: inline-block;
    padding: .5rem 1rem;
    margin-bottom: 1rem;
    background-color: #28a745; /* Consider adding a root variable for green if needed */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

a.button:hover {
    background-color: #218838; /* Consider adding a root variable for green hover if needed */
}

p, a, ul {
    text-align: center;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.vertical-separator {
    display:inline-block; 
    height:1em;
}

.smalltext {
    font-size: 0.8em;
    font-weight: 400;
}

.error {
    color: var(--error-color);
    font-weight: bold;
}

.pagination {
    color: var(--text-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .menubarcontainer {
        display: none;
    }
    .menubutton {
        display: block;
    }
}

@media (max-width: 1200px) {
    .container, .menubarcontainer {
        width: 80%;
    }
    #counter-header {
        font-size: 2.0rem;
    }
    #counter{
        font-size: 3.0rem;
    }
    table, thead, tbody, th, td, tr {
        display: block;
        width: 90%;
    }
    thead tr {
        display: none;
    }
    tbody tr {
        margin-bottom: 1.5em;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        border-radius: 6px;
        padding: 0.5em 0;
    }
    td {
        position: relative;
        padding-left: 50%;
        min-height: 1em;
        border: none;
    }
    td:before {
        position: absolute;
        left: 1em;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #555;
        content: attr(data-label);
    }
    table th, table td {
        text-align: left;
        padding: 0.75em 1em;
    }
}