@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

@import url('https://use.fontawesome.com/releases/v6.5.2/css/all.css');

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
}

h2 {
    font-size: 1.5em;
}

input, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* LOGIN PAGE */

.login-page {
    background-color: black;
    background-image: url('../img/volleyball1.jpg');
    background-size: cover;
}

.first-login-page {
    background-color: black;
    background-image: url('../img/volleyball2.jpg');
    background-size: cover;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.center-logo {
    margin: 0 0 20px;
}

.center-logo img {
    height: 100px;
}

.center-box {
    background-color: white;
    display: inline-block;
    padding: 3em;
}

.center-box h2 {
    margin: 0 0 0.5em;
}

.center-box p {
    margin: 0.5em 0;
}

.login-form {
    text-align: left;
    max-width: 350px;
}

.login-form .field {
    margin: 1em 0;
}

.login-form label {
    font-weight: bold;
    margin: 0 0 0.5em;
    display: block;
}

.login-form .note {
    font-size: 0.8em;
}

.login-form input,
.login-form select {
    border: none;
    background-color: #ebebeb;
    padding: 0.5em 1em;
    margin: 0.5em 0;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

.login-form input:focus,
.login-form select:focus {
    outline: solid 2px #404040;
    background-color: #e0e0e0;
}

.button {
    border: none;
    padding: 0.5em 1em;
    font-weight: bold;
    background-color: #ebebeb;
}

.button:hover, .button:focus {
    outline: solid 2px #404040;
    background-color: #e0e0e0;
}

/* HEADER */

.header {
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
}

.header-logo a {
    text-decoration: none;
    color: inherit;
}

.header-logo img {
    vertical-align: middle;
    height: 50px;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    flex-wrap: wrap;
}

.header-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.header-menu li {
    margin: 0.5em;
}

.header-menu a {
    text-decoration: none;
    color: inherit;
}

.main-menu {
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.5em;
    border-radius: 3em;
    font-weight: bold;
}

.menu-item i {
    font-size: 1.5em;
    margin-right: 0.5em;
}

.menu-item i:last-child {
    margin-right: 0;
}

/* LAYOUT */

.layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.layout-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
}

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

.layout-cell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-grow: 1;
}

.layout-fill {
    flex-grow: 1;
    flex-basis: 0;
}

.layout-third {
    flex-basis: 33%;
}

.layout-fourth {
    flex-basis: 25%;
}

/* SECTION */

.section-name {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0.8em 1em;
    font-weight: bold;
    background-color: #ffecb3;
    flex-grow: 0;
}

.section-name .number {
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    font-size: 1.2em;
    text-align: center;
    margin-right: 0.4em;
    background-color: #ffbf00;
    flex-shrink: 0;
}

.section-content {
    display: flex;
    align-items: center;
    padding: 0.8em 1em;
    gap: 0 1em;
}

.layout-cell > .section-content {
    flex-grow: 1;
}

.section-filter {
    background-color: #fffaeb;
}

.section-form {
    background-color: #fff7e0;
}

.section-button {
    background-color: #fff5d6;
}

/* FILTER */

.filter label {
    font-weight: bold;
    margin-right: 0.5em;
}

.filter label:after {
    content: ':';
}

.ss-main {
    width: 250px;
}

.ss-main .ss-single-selected {
    border-color: #cccccc;
    border-radius: 5px;
}

.ss-main .ss-single-selected .ss-disabled {
    font-size: 13px;
}

.ss-content {
    z-index: 5;
}

.ss-content .ss-search {
    padding: 5px;
}

.ss-content .ss-search input {
    border-color: #cccccc;
    border-radius: 5px;
}

.ss-content .ss-search input:focus {
    border-color: #808080;
    box-shadow: none;
}

.ss-content .ss-search input::placeholder {
    font-size: 13px;
}

.select-short {
    width: 200px;
}

.select-long {
    width: 300px;
}

/* CHECKBOX */

.checkbox {
    white-space: nowrap;
}

/* AUTOCOMPLETE */

.autocomplete label {
    font-weight: bold;
    margin-right: 0.5em;
}

/* TABLE */

.section-table {
    flex-grow: 1;
    position: relative;
}

.section-table > .table {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
}

.tabulator-row.tabulator-group {
    background-color: #fff2cc;
    cursor: pointer;
}

.tabulator-row.tabulator-group:hover {
    background-color: #ffecb3;
}

.tabulator-row.tabulator-group span {
    color: #e6ac00;
}

body > .tabulator-popup-container {
    z-index: 5;
}

.tabulator-edit-list .person .name {
    font-weight: bold;
}

.tabulator-edit-list .person .detail {
    font-size: 0.8em;
}

.tabulator-cell .fa-check {
    color: #00cc00;
    font-size: 1.2em;
}

.tabulator-cell .fa-remove {
    color: #cc0000;
    font-size: 1.2em;
}

/* FRAME */

.frame {
    width: 100%;
    height: 100%;
    border: none;
}

.section-frame {
    flex-grow: 1;
    overflow: hidden;
}

/* FORM */

.form-table td {
    padding: 5px;
}

.form-table label {
    font-weight: bold;
}

.form-table label:after {
    content: ':';
}

.form-table ul {
    padding-left: 20px;
    margin: 0;
}

.form-editor {
    width: 500px;
}

/* INPUT */

.section-form input {
    box-sizing: border-box;
    width: 225px;
    height: auto;
    border-radius: 5px;
    border: solid 1px #cccccc;
    padding: 6px 12px;
    margin: 2px 4px;
    transition: none;
}

.section-form input:hover {
    border-color: #808080;
    outline: none;
}

.section-form input:focus {
    border-color: #333333;
    outline: none;
}

.section-form input::placeholder {
    font-size: 13px;
}

.section-form input::selection {
    background-color: #ffd966;
}

.section-form input[type=time] {
    width: 100px;
}

.section-form input[type=number] {
    width: 100px;
}

.section-form input[type=text] {
    width: 150px;
}

/* SELECT */

.section-form select {
    border-radius: 5px;
    background-color: white;
    border: solid 1px #cccccc;
    padding: 6px 12px;
    margin: 2px 4px;
}

.section-form select:hover {
    border-color: #808080;
    outline: none;
}

.section-form select:focus {
    border-color: #333333;
    outline: none;
}

/* BUTTON */

.section-form button,
.section-button button {
    border-radius: 5px;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}

.section-form button {
    font-size: 15px;
    background-color: #ffc44d;
}

.section-form button:hover {
    background-color: #e6a82e;
}

.section-button button {
    background-color: #ffd966;
    font-size: 13px;
}

.section-button button:hover {
    background-color: #e6bd45;
}

/* LOADER */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.loader {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.loader:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: solid 6px;
    border-color: white transparent;
    border-radius: 50%;
    animation: rotate 1.2s linear infinite;
}

@keyframes rotate {
    from {transform: rotate(0deg)}
    to {transform: rotate(360deg)}
}

/* MESSAGES */

.messages {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 500px;
    margin: 30px;
}

.message {
    padding: 10px 15px;
    margin: 0.5em;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 1px 5px #3f3f3f;
    animation: fade-out 1s 4s;
}

@keyframes fade-out {
    from {opacity: 1}
    to {opacity: 0}
}

.message.error {
    background-color: #ffd8d8;
    color: #4d0000;
}

.message.success {
    background-color: #d8ffd8;
    color: #004d00
}

.hidden {
    display: none;
}

/* BRACKET TABLE */

.table-page {
    text-align: center;
    overflow: auto;
}

.table-segment {
    display: inline-block;
    margin: 0 0.5cm;
}

.bracket-table {
    border-collapse: collapse;
    border: solid 2pt black;
    font-size: 11pt;
}

.bracket-table td {
    border: solid 1pt black;
    text-align: center;
    padding: 3mm;
    min-width: 1cm;
    max-width: 3cm;
}

.bracket-table tr:first-child td {
    border-bottom: solid 2pt black;
}

.bracket-table tr td:first-child {
    border-right: solid 2pt black;
}

.bracket-table .cross-cell {
    background-color: #dadada;
    font-size: 1.2em;
}

.team-name {
    font-size: 1.0em;
    font-weight: bold;
}

.team-club {
    font-size: 0.8em;
}

.match-rewards {
    font-weight: bold;
    font-size: 1.4em;
}

.match-results {
    font-size: 1.0em;
}

.set-results {
    font-size: 1.0em;
    margin: 0 0.1em;
}

.team-sets {
    font-weight: bold;
    font-size: 1.4em;
}

.team-balls {
    font-size: 1.0em;
}

.team-reward {
    font-size: 1.6em;
}

.team-ratio {
    font-size: 0.6em;
}

.team-place {
    font-size: 1.6em;
}

/* PRINT */

@media print {
    .layout {
        display: block;
        height: auto;
    }

    .header {
        display: none;
    }

    .no-print {
        display: none;
    }
}