/* This file includes only basic styles for elements */

/* page formattings */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section > div {
    margin-top: 5em;
    margin-bottom: 5em;
}

h1, h2, h3, h4 {
    margin-bottom: 0.5em;
}

br {
    margin: 0.5em;
}

p {
    margin: 0em 0 1em 0;
}

a {
    cursor: pointer;
    display: grid;
    gap: 0.5em;
    width: fit-content;
    font-size: 14px;
}

a >* {
    margin: auto;
    grid-row: 1;
}

a:hover {
    text-decoration: underline;
}

/* icons */

.icon {
    cursor: pointer;
    filter: invert(0.5);
}

.info {
    content:url("../media/icons/question-circle.svg");
    display: inline;
    cursor: pointer;
}

.delivery {
    content:url("../media/icons/truck.svg");
}

.heart {
    content:url("../media/icons/heart.svg");
}

.dropBtn {
    content:url("../media/icons/list.svg");
    filter: invert(1);
    height: 40px;
    width: 40px;
}

.trashBtn {
    content:url("../media/icons/trash3.svg");
    padding: 0.5em;
    margin: auto;
    filter: invert(0);
}

.close {
    content:url("../media/icons/x-circle-fill.svg");
    filter: invert(1);
}

.menu_icon {
    filter: invert(1);
}

.cart {
    content:url("../media/icons/handbag.svg");
    filter: invert(1);
}

.search {
    content:url("../media/icons/search.svg");
    filter: invert(1);
}

.account {
    content:url("../media/icons/beer.svg");
    filter: invert(1);
    height: 30px;
    width: 30px;
}

.settings {
    content:url("../media/icons/gear.svg");
    filter: invert(1);
    height: 1em;
    width: 1em;
    padding: 0.2em;
}

.user_profile {
    filter: invert(1);
    height: 50px;
    width: 50px;
    margin: auto;
}

/* forms */

form {
    display: grid;
    gap: 1em;
    margin-bottom: auto;
}

form >.wrapperH {
    gap: 1em;
    width: 100%;
}

form > div,
form > input[type="text"],
form > input[type="number"]  {
    margin: 0;
}

.missmatch {
    outline: 2px solid #ff0000;
}

input {
    padding: 0.5em;
}

input[type="text"] {
    border-radius: 6px;
    border: 1px solid #464646;
}

input[type="submit"],
input[type="button"].submitBtn,
input[type="button"].deleteBtn {
    font-size: 14px;
    cursor: pointer;
    padding: 0.5em 1em 0.5em 1em;
    border-radius: 6px;
    border: none;
    color: white;
}

input[type="submit"],
input[type="button"].submitBtn {
    background-color: #0074e0;
    border: 1px solid #0074e0;
    outline: 1px solid #0074e0;
}

input[type="submit"]:hover,
input[type="button"].submitBtn:hover  {
    background-color: #148eff;
    border: 1px solid #148eff;
    outline: 1px solid #148eff;
}

input[type="button"].deleteBtn {
    background-color: #f44336;
    border: 1px solid #f44336;
    outline: 1px solid #f44336;
}

input[type="button"].deleteBtn:hover  {
    background-color: #ff5549;
    border: 1px solid #ff5549;
    outline: 1px solid #ff5549;
}

input[type="number"] {
    appearance: textfield;
    text-align: center;
    border: none;
}

.number {
    display: grid;
    grid-template-columns: 25px 50px 25px;
    width: fit-content;
    border: 1px solid #464646;
}

.number > div {
    cursor: pointer;
    user-select: none;
    display: grid;
}

.number > div > div {
    margin: auto;
}

.number > div:hover {
    color: black;
}

.selectBtn > input {
    border-radius: 15px;
    margin: 0 0.5em 0.5em 0;
}

input[type="button"] {
    cursor: pointer;
    padding: 0.5em 1em 0.5em 1em;
    border: 1px solid #464646;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
}

input[type="button"]:hover {
    border: 1px solid gray;
    outline: 1px solid gray;
}

input[type="button"].selected {
    color: white;
    background-color: #464646;
}

/* page elements */

#header,
#footer {
    text-align: center;
}

.panel11,
.panel12,
.panel21 {
    display: grid;
    gap: 2em;
    margin: 1em 0 1em 0;
}

.panel11 > img,
.panel12 > img,
.panel21 > img {
    width: 100%;
}

#status,
.status {
    font-size: 0.8em;
}

.ok {
    color: green;
}

.error {
    color: red;
}

.warning {
    color: blue;
}

.accordion_open,
.accordion_close {
    cursor: pointer;
    padding: 0.5em 0.2em 0 0.2em;
    border: none;
    border-top: 1px solid lightgray;
    background-color: transparent;
    outline: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    user-select: none;
}

.accordion_open::after {
    content: "∧";
}

.accordion_close::after {
    content: "∨";
}

*.hidden {
    display: none;
}

.accordion {
    padding: 0 1em 1em 1em;
}

.frame {
    border: 1px solid lightgray;
    padding: 0.5em;
}

.wrapperH,
.wrapperH_c,
.wrapperV,
.wrapperV_c {
    display: grid;
    width: fit-content;
}

.wrapperH_c >*,
.wrapperV_c >* {
    margin: auto;
}

.wrapperV >*,
.wrapperV_c >* {
    grid-column: 1;
}

.wrapperH >*,
.wrapperH_c >* {
    grid-row: 1;
}

/* tables */

.table {
    display: table;
    width: 100%;
    height: fit-content;
    font-size: 0.9em;
}

.caption {
    padding: 12px;
    font-weight: bold;
    font-size: 1.5em;
}

.tr {
    display: table-row;
}

.th,
.thc,
.thr {
    font-weight: bold;
}

.th,
.td,
.thc,
.tdc,
.thr,
.tdr {
    display: table-cell;
    padding: 0.4em 1em 0.4em 1em;
    vertical-align: middle;
}

.thc,
.tdc {
    text-align: center;
}

.thr,
.tdr {
    text-align: right;
}

.tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* gallery */

.gallery {
    display: grid;
    gap: 1em;
    height: fit-content;
    margin: 1em 0 1em 0;
}

.tiles {
    display: grid;
    gap: 1em;
    height: fit-content;
    margin: 0.5em 0 0.5em 0;
}

.gallery > img {
    cursor: pointer;
    border-radius: 4px;
}

.modal {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
    z-index: 11;
    display: none;
}

.modal > img {
    margin: auto;
}

.modal_caption {
    position: fixed;
    bottom: 1em;
    width: 100%;
    text-align: center;
}

.modal > .close {
    top: 1em;
    right: 1em;
    position: fixed;
    cursor: pointer;
}

/* nav bar */

#nav_frame {
    position: fixed;
    width: 100%;
    z-index: 10;
    transition: all 0.2s;
    height: 80px;
}

#navbar {
    display: grid;
    grid-template-rows: 60px auto;
    border-radius: 10px;
    padding: 0 10px 0 10px;
    height: 60px;
}

.nav_hidden {
    transform: translateY(-80px);
}

#nav_dropBtn {
    width: 100%;
}

#nav_logo,
#nav_logo_small,
#nav_dropBtn,
#nav_account_m {
    cursor: pointer;
    margin: auto;
}

#nav_logo,
#nav_logo_small {
    height: 40px;
}

.nav_links {
    display: grid;
}

/* theme specific */
.shadow,
.gallery > img {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#titel {
    cursor: pointer;
}

#footer {
    display: grid;
    gap: 1em;
}

.linktree {
    margin: auto;
    display: grid;
}

.linktree >* {
    display: grid;
    padding: 0.5em;
    margin: auto;
}

.linktree >*>* {
    margin: auto;
    font-size: 14px;
}

#header {
    height: 100vh;
    display: grid;
}

#header >* {
    margin: auto;
}

#bar_prices {
    display: grid;
    gap: 1em;
}

#bar_prices > img {
    width: 100%;
    margin: auto;
}

#nav_login > input[type="button"] {
    color: white;
}

#nav_login > input[type="button"]:hover {
    color: white;
    outline: 1px solid white;
}

.username {
    margin: auto auto 1em auto;
}

.form_panel > div {
    display: grid;
    padding: 0.5em;
    gap: 1em;
}

label {
    cursor: pointer;
}

select {
    padding: 0.5em;
}

#tags > label {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.5em;
}

#tags > label >* {
    margin-top: auto;
    margin-bottom: auto;
}

.av_tile {
    display: grid;
    width: 128px;
    height: 128px;
}

.avatar {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.attendees {
    display: grid;
}

.tag {
    display: inline-block;
    margin: 0.2em;
    filter: invert(1);
    width: 20px;
}

.profile_frame {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 0.2em;
    padding: 0.5em;
}

.profile_name {
    font-weight: bold;
}

.profile {
    grid-template-columns: auto 1fr;
    overflow: hidden;
    display: grid;
    padding: 0.5em;
    background-image: linear-gradient(#1b1b1b, #100808);
    margin: 0;
    border-radius: 6px;
}

#captcha {
    display: grid;
    gap: 0.2em;
    margin: auto;
}

#captcha_img {
    cursor: pointer;
    width: 100%;
}

/* events */

.event {
    margin-bottom: 1em;
}

.event > img {
    width: 100%;
    cursor: pointer;
}

.event > div {
    margin-bottom: 1em;
}

.event_titel {
    border-bottom: 1px solid;
    text-align: center;
}

.event_date {
    text-align: center;
}