html {
    font-family: calibri, arial;
    font-size: 16px !important;
    border-radius: 5px;
}

@media only screen and (orientation: landscape) and (min-width: 1200px) {
    body {
      font-size: 100% !important;
    }
}

@media only screen and (orientation: landscape) and (max-width: 1200px) {
    body {
      font-size: 75% !important;
    }
}

@media only screen and (orientation: portrait) {
    body {
      font-size: 75% !important;
    }
  }

.w2ui-reset, .w2ui-btn, .w2ui-input {
    font-size: 100% !important;
}

.w2ui-overlay-body {
    font-size: 66% !important;
}

.fa-solid, .buttonbar svg {
    font-size: 150% !important;
}

#formControl .fa-solid, #formSpieler .fa-solid {
    font-size: 120% !important;
}

.fixed-header {
    font-family: system-ui;
    width: 100%;
    position: fixed;
    color: #fff;
    left: 0;
    top: 0;
    padding: 5px;
    box-sizing: border-box;
    font-weight: bold;
}

.buttonbar {
    display: flex;
}

.buttonbar button {
    padding: 4px 12px 2px 12px;
    border: none;
    background-color: inherit;
    color: #ddd;
    border-radius: 0;
}

button:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}
.content {
    padding: 10px;
    position: fixed;
    box-sizing: border-box; /* Inkludiert Padding in der Breite */
    height: -webkit-fill-available;
    width: -webkit-fill-available;
    height: -moz-available;
    width: -moz-available;
    left: 0;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
}

label {
    width: 8rem;
    align-content: center;
}

.gridCreateList, .gridRecordGame {
    width: fit-content;
}

.gridCreateList button, .gridCreateList input, .gridRecordGame button, .gridRecordGame input {
    width: 14em;
}

.items {
    position: fixed;
    display: flex !important;
    align-items: center;
}

.gametype {
    height: 2.2rem !important;
    margin-left: 5px;
    border: black solid 1px;
    border-radius: 5px;
}

.names {
    position: relative;
    align-self: center;
}

.w2ui-col-header {
    font-weight: bold !important;
    font-size: 150% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#formStatistik .w2ui-col-header {
    flex-direction: row-reverse;
}

#formSpieler .w2ui-col-header {
    white-space:normal !important;
} 

.w2ui-form-header {
    font-weight: bold !important;
    font-size: 115% !important;
}

.w2ui-form {
    min-height: 100%;
}

.points {
    background-color: black;
    color: white;
    padding: 4px;
    width: fit-content;
    border-radius: 5px;
}

.w2ui-grid-data {
    text-align: center;
    font-size: 125% !important;
}

#grid_grLog_records .w2ui-grid-data, #grid_grSqlBatch_records .w2ui-grid-data, #grid_grChange_records .w2ui-grid-data {
    font-size: 100% !important;
}

.w2ui-field {
    display: flex;
    font-size: 125%;
}

.w2ui-field > div {
    text-align: left !important;
    margin-left: 20px !important;
}

.w2ui-field > label {
    font-weight: bold;
}

.w2ui-field.w2ui-required:not(.w2ui-field-inline) > div::before {
    margin-left: -15px !important;
}

.centered {
    justify-content: center !important;
}

img {
    height: 1.2rem;
}

.buttonbar img {
    -webkit-filter: invert(1);
	filter: invert(1);
}

.space {
    margin-right: 1rem;
}

.bg_yellow {
    background: yellow !important;
}

.markRed {
    background-color: red;
}

.markGreen {
    background-color: green;
}

.showHands {
    visibility: unset;
    margin-right: 2rem;
}

.showCheck {
    visibility: unset;
}

.hideHands, .hideCheck {
    visibility: hidden;
    margin-right: 1rem;
}

.showItem {
    visibility: unset;
}

.hideItem {
    visibility: hidden;
}

.width100 {
    width: 100%;
}

[iAlign="left"] {
    text-align: left
}

#formEditGame label {
    margin: auto 0 !important;
    width: fit-content;
}

#formSettings label {
    width: 20rem;
}

#formEditGame .w2ui-group-fields {
    height: 13.2rem;
    display: flex;
    justify-content: space-around;
    border: 1px solid #ddd;
    border-radius: 10px;
    align-content: center;
    align-items: center;
}

#formEditGame .w2ui-group-title {
    display: none;
}

.w2ui-message-buttons, .w2ui-popup-buttons {
    height: max-content !important;
}

#formSaveEditGame label {
    margin: 0 0 1rem 0 !important;
    width: 100%;
    text-align: center;
}

#formSaveEditGame .w2ui-group-fields {
    height: 13.2rem;
    display: flex;
    justify-content: space-around;
    border: 1px solid #ddd;
    border-radius: 10px;
    align-content: center;
    align-items: center;
}

#formSaveEditGame .w2ui-group-title {
    display: none;
}

#formSaveEditGame .w2ui-field {
    flex-direction: column;
    justify-content: center;
    height: auto !important;
}

/* Position des Sortierpfeils */
.w2ui-sort-down {
    margin: 5px !important;
}

#chartHistory, #chartHistory2 {
    width: 100%;
    height: 100%;
}

#login #userID, #login #userPW, #login p {
    font-size: 150% !important;;
}

.w2ui-popup {
    max-width: 600px;
    left: 0 !important;
}

.w2ui-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.w2ui-column-container {
    width: 100%;
}