/* src/main/frontend/themes/red-theme/styles.css */

html {
    --lumo-shade-5pct: rgba(33, 33, 33, 0.05);
    --lumo-shade-10pct: rgba(33, 33, 33, 0.1);
    --lumo-shade-20pct: rgba(33, 33, 33, 0.2);
    --lumo-shade-30pct: rgba(33, 33, 33, 0.3);
    --lumo-shade-40pct: rgba(33, 33, 33, 0.4);
    --lumo-shade-50pct: rgba(33, 33, 33, 0.5);
    --lumo-shade-60pct: rgba(33, 33, 33, 0.6);
    --lumo-shade-70pct: rgba(33, 33, 33, 0.7);
    --lumo-shade-80pct: rgba(33, 33, 33, 0.8);
    --lumo-shade-90pct: rgba(33, 33, 33, 0.9);
    --lumo-primary-color-50pct: rgba(235, 89, 5, 0.5);
    --lumo-primary-color-20pct: rgba(235, 89, 5, 0.2);
    --lumo-primary-color-10pct: rgba(235, 89, 5, 0.1);
    --lumo-error-color-50pct: rgba(231, 24, 24, 0.5);
    --lumo-error-color-30pct: rgba(231, 24, 24, 0.3);
    --lumo-error-color-10pct: rgba(231, 24, 24, 0.1);
    --lumo-success-color-50pct: rgba(62, 229, 170, 0.5);
    --lumo-success-color-10pct: rgba(62, 229, 170, 0.1);
    --lumo-shade: hsl(0, 0%, 13%);
    --lumo-primary-color: hsl(22, 96%, 47%);
    --lumo-primary-text-color: hsl(22, 100%, 32%);
    --lumo-error-color: hsl(21, 96%, 54%);
    --lumo-error-text-color: hsl(0, 86%, 45%);
    --lumo-success-color: hsl(159, 76%, 57%);
    --lumo-success-contrast-color: hsl(159, 29%, 10%);
    --lumo-success-text-color: hsl(159, 61%, 40%);

}

/* Styles für NavBar */

@media (max-width: 767px) {
    .hide-on-mobile,
    vaadin-horizontal-layout.hide-on-mobile {
        display: none !important;
    }
}

/* Styles für die Online-Wertung */

header.onlineWertung {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

h1.onlineWertung {
    background-color: #0c5460;
    color: white;
    width: calc(100% - 20px);
    padding: 10px 10px;
    font-size: 24px;
    text-align: center;
}

h2.onlineWertung {
    background-color: #0c5460;
    color: white;
    width: calc(100% - 20px);
    padding: 3px 10px;
    font-size: 18px;
    text-align: center;
}

h3.onlineWertung {
    align-self: center;
}

.contentOnlineWertung {
    background-color: whitesmoke;
    margin-right: 100px;
    padding-bottom: 50px;
}

.tanzHeader {
    background-color: #9fcdff;
    padding: 0px 0px 0px 10px;
    width: calc(100% - 10px);
}

.fertigButton {
    height: 60px;
    border: 4px solid greenyellow;
    color: var(--lumo-shade-70pct);
    font-size: 18px;
    font-stretch: 100%;
    letter-spacing: 1px;
}

.fertigButtonClicked {
    height: 60px;
    border: 4px solid var(--lumo-shade-40pct);
    color: var(--lumo-shade-70pct);
    background-color: greenyellow;
    font-size: 18px;
    font-stretch: 100%;
    letter-spacing: 1px;
}

/* Styles für Grids */

vaadin-grid.styling::part(font-weight-bold) {
    font-weight: bold;
}

vaadin-grid.styling::part(even-dance) {
    background-color: var(--lumo-success-color-10pct);
}

vaadin-grid.styling::part(odd-dance) {
    background-color: var(--lumo-primary-color-10pct);
}

vaadin-grid.styling::part(wrong-value) {
    background-color: var(--lumo-error-color-30pct);
}

/* Styles für den Wertungs-Status */

vaadin-grid::part(idling) {
    background-color: #dbe5f0;
}

vaadin-grid::part(ready) {
    background-color: greenyellow;
}

vaadin-grid::part(pending) {
    background-color: var(--lumo-error-color-30pct);
}

/* Style für Turnierliste */
.tournament-card {
    width: 100%;
    border: 1px solid var(--lumo-primary-color);
    padding: 0.5rem;
    border-radius: 0.3rem;
}

.tournament-date {
    min-width: 3.5rem;
    padding: 6px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--lumo-shade-10pct);
    border-radius: 0.3rem;
}

.tournament-date-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.tournament-date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 700;
    margin-top: 0.25rem;
}

.tournament-content {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.tournament-title {
    margin: 0;
}
