html {
    display: flex;
    height: 100%;
}

body {
    font-family: sans-serif;
    font-size: 120%;
    display: flex;
    flex: 1;
    justify-content: center;
    background-image: url("/images/background.webp");
    background-size: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-color: #28282B;
}

.top-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.banner {
    display:flex;
    background-color: #28282BEE;
    justify-content: center;
}

.banner > h1 {
    color:#FFFFFF;
}

.slogan {
    display:flex;
    background-color: #28282BEE;
    justify-content: center;
    font-style: italic;
    color:#FFFFFF;
    padding-bottom: 10px;
}

.banner > img {
    height: 82px;
    margin-right: 20px;
}

.banner > a {
    position: fixed;
    right: 25px;
    top: 20px;
    font-size: 22px;
    padding: 10px;
    background-color: #28282BEE;
    border-radius: 5px;
}

.keep-whitespace {
    white-space: pre-wrap;
}

.text-align-center {
    text-align: center;
}

.shoppingcart-highlighted {
    border-color: white;
    border-width: 1px;
    border-style: solid;
}

.shoppingcart-items-count {
    right: 58px;
    position: fixed;
    top: 29px;
    color: white;
    background-color: #e74f3f;
    border-radius: 100%;
    width: 27px;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-color: #fff;
    border-width: 2px;
}

.shoppingcart-container .shoppingcart-header {
    display: flex;
    flex-direction: row;
}

.shoppingcart-container .shoppingcart-header h2 {
    flex: 1;
}

.shoppingcart-container .shoppingcart-header .shoppingcart-reset {
    flex: 99;
}

.shoppingcart-container .shoppingcart-header .shoppingcart-reset form {
    text-align: right;
}

.navigation-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.sidebar-item
{
    border-radius: 5px;
}

.sidebar-item img {
    vertical-align: middle;
    margin-right: 2ex;
}

.sidebar-item,
.navigation-bar-item {
    flex: 1;
    text-decoration: none;
    align-content: center;
    color: inherit;
    padding: 10px;
}

.navigation-bar-item {
    background-color: #bababa;
    text-align: center;
}

.sidebar-item:hover,
.navigation-bar-item:hover {
    cursor: pointer;
    background: darkgreen;
    color: white;
}

.small-font {
    font-size: small;
}

.active-item {
    background-color: #28282B;
    color: white;
    font-weight: bold;
}

.content-container {
    border: 1px solid gray;
    width: 100%;
    margin: 0 auto 0 auto;
    max-width: 1200px;
    background-color: #28282B66;
    border-radius: 20px;
    box-shadow: 5px 5px 3px #0004;
}

.content-container-wrapper {
    flex: 1;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: #28282BEE;
    color: white;
    padding: 10px;
}

.footer-column {
    flex: 1;
    padding-left: 40px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.rounded-white-box,
.container-fluid,
.sidebar,
.shoppingcart-container,
.verify-content-wrapper,
.mypage,
.posting-view,
.static-view,
.form-wrapper > form {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFFDD;
    padding: 10px 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px;
}

.static-view table {
    display: block;
    border-collapse: collapse;
}

.static-view table td {
    border: 1px solid #28282b;
    padding: 0.3em;
}

.sidebar > form {
    display: flex;
    justify-content: center;
}

.posting-view {
    flex-direction: row;
}

.posting-view > .sidebar {
    flex: 1;
    margin-right: 20px;
}

.posting-view > .flexbox-column {
    flex: 3;
}

.mypage {
    flex-direction: row;
}

.mypage > .sidebar {
    flex: 1;
    margin-right: 20px;
}

.mypage > .flexbox-column {
    flex: 3;
}

table.postingviewstats td:nth-of-type(2) {
    text-align: right;
}


.container-fluid table {
    width: 100%;
}

.container-fluid .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.container-fluid .row div {
    display: inline;
    margin: 10px;
    min-width: 100px;
    min-height: 100px;
}

.container-fluid .row form {
    display: inline;
}

.container-fluid table,
.shoppingcart-container > table {
    text-align: center;
    margin-bottom: 50px;
    border-collapse: collapse;
}

.container-fluid table td:nth-child(3),
.container-fluid table td:nth-child(4),
.container-fluid table th:nth-child(3),
.container-fluid table th:nth-child(4),
.shoppingcart-container > table > tbody > tr > td:nth-child(3),
.shoppingcart-container > table > tbody > tr > td:nth-child(4),
.shoppingcart-container > table > tbody > tr > th:nth-child(3),
.shoppingcart-container > table > tbody > tr > th:nth-child(4) {
    text-align: right;
}

.container-fluid table tr:first-child > th,
.shoppingcart-container > table > tbody > tr:first-child > th {
    padding-bottom: 10px;
}

.container-fluid table tr:last-child,
.shoppingcart-container > table > tbody > tr:last-child {
    border-top: 1px solid #28282B;
}

.shoppingcart-container > form >fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.shoppingcart-container > form >fieldset > button {
    max-width: 100px;
}

.posting-view-header {
    display: flex;
    justify-content: space-between;
}

.verify-content-wrapper,
.form-wrapper > form {
    align-items: center;
}

.postings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px;
}

.posting-list-item {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #FFFFFF;
    align-content: center;
    border-radius: 5px;
    box-shadow: 5px 5px 3px #0004;
    text-align: center;
}

.posting-list-item:hover {
    box-shadow: 5px 5px 3px #bababa;
}

.posting-list-item > img {
    border-radius: 5px;
}

.posting-list-item > div {
    bottom: -1px;
    z-index: 10;
    position: absolute;
    width: 200px;
    text-align: center;
    background-color: #28282BEE;
    color: white;
    border-radius: 0 0 5px 5px;
}

.content-frontpage {
    display: flex;
}

.posting-wrapper > .form-wrapper > form > a {
    align-self: flex-start;
}

table.posting-checkbox-attributes,
table.posting-attributes {
    margin-bottom: 1em;
}

table.posting-attributes td {
    padding: 0.5em 0.5em 0 0;
    width: 50%;
    vertical-align: top;
}

table.posting-attributes td:first-of-type {
    text-align: right;
}

.posting-freetext {
    width: 50em;
    height: 50em;
}

.flexbox-column {
    display: flex;
    flex-direction: column;
}

.content-frontpage > .flexbox-column
{
    flex: 1;
}

.content-frontpage > .sidebar > h2
{
    text-align: center;
}

.search-container > h2,
.search-container > h3,
.content-frontpage > .flexbox-column > h2 {
    color: white;
    text-align: center;
    background-color: #28282BEE;
}

.content-frontpage > .flexbox-column > h2 img {
    vertical-align: middle;
    margin-right: 2ex;
}

.search-container > form {
    padding: 20px;
    justify-content: center;
}

.search-attributes-wrapper {
    display: flex;
    margin: 1em 0;
}

input.search-freetext {
    width: 30em;
    height: 2em;
    margin: 1em 0;
}

.notification-msg,
.ok-msg,
.error-msg {
    background-color: #FFFFFFDD;
    border-radius: 20px;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    align-self: center;
    max-width: 1200px;
    margin: 0 0 10px 0;
}

.error-msg
{
    color: red;
}

.ok-msg
{
    color: darkgreen;
}

.spacer {
    margin: 15% auto 0 auto;
}

.posting-photo-box img {
    width: 25%;
}

.posting-photo-box > img:first-child {
    display: flex;
    justify-content: center;
    width: 100%;
}

.inner-box {
    box-shadow: 3px 3px 3px #28282bee;
    background:#fffa;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 5px 5px;
}

.form-group {
    display: flex;
}

.form-group > label,
.form-group > input {
    width: 200px;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
}

.two-column h3 {
    width: 100%;
}

.two-column p {
    width: 50%;
    margin: 5px 0;
}

input[type=submit],
button
{
    border-radius: 10px;
    font-size: 110%;
    background-color:#28282b;
    color:white;
    padding: 10px 20px;
    margin: 10px;
}

input[type=submit]:hover,
button:hover
{
    cursor: pointer;
    background-color:forestgreen;
}

.addrow td
{
    background-color: aquamarine;
}

.dark-transparent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #28282baa;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pop-up-dialog {
    position: fixed;
    background-color: #fefefe;
    border-radius: 5px;
    box-shadow: 5px 5px 5px #0004;
    padding: 20px;
}

.pop-up-dialog h2 {
    text-align: center;
}

.dialog-button-wrapper {
    display: flex;
}

.dialog-button-wrapper div {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 10px;
}

table.row-separators {
    border-collapse: collapse;
}

table.row-separators td {
    border-top: 1px solid #28282B;
    border-bottom: 1px solid #28282B;
    padding: 1em 0 1em 0;
}

table.compact-rows td{
    padding: 0;
    border: none;
}

.add-news-box textarea{
    width: 60%;
    height: 10em;
}

.news-item {
    margin: 1em;
}

.short-number {
    width: 4em;
    text-align: right;
}
