/*
    Created: 2025-04-10
    Author: Kārlis Grīnvalds
    Last edited: 2025-12-04
    Edited by: Kārlis Grīnvalds
*/

/* Default style for pages */

/* HTML body */
body {
    background-color: white;
    margin-top: 1rem;
}
/* User profile container */
.user-profile {
    text-align: right;
    padding-right: 0.5rem;
}
/* Page layout */
.container {
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    grid-template-columns: 1fr;
    margin: auto;
    width: 80%;
}
.container > header {
    grid-area: header;
    height: 32px;
    padding-top: 1rem;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    padding-bottom: 2px;
}
.container > div.main {
    grid-area: main;
    background-color: whitesmoke;
    border: solid 2px rgb(61, 105, 74);
    border-radius: 12px;
    padding: 1rem;
}
.container > footer {
    grid-area: footer;
    padding-top: 2rem;
}
/* User action bar */
.action-bar {
    float: left;
    display: inline-flex;
    height: 100%;
}
.action-bar a {
    padding: 0.5rem;
    margin-right: 0.1rem;
    padding-bottom: 3rem;
    border: solid 1px rgb(61, 105, 74);
    border-radius: 1px;
}
/* Search bar */
.search-bar {
    float: right;
    text-align: right;
    background-color: rgb(200, 200, 200);
    border: solid 1px rgb(200, 200, 200);
    border-radius: 6px;
    width: 300px;
    height: 100%;
    overflow: hidden;
}
.search-bar input {
    float: left;
    border: none;
    background-color: transparent;
    outline: none;
    width: 78%;
    height: 100%;
}
.search-bar button {
    height: 100%;
    width: 20%;
    border: none;
}
/* Error text */
.error-text {
    display: none;
    background-color: red;
    border: solid 2px darkred;
    color: white;
    padding: 2px;
}