/*
    CSS for YHOF Boardgames
    Author: Stephan Betke
    Date: 08.01.2022
    Last change: 27.07.2023
*/


/* Misc */

:root {
    color-scheme: light only;
}

html {
    overflow-y: scroll;
}

body {
    background: #3E1E68;
    color: #fff;
    font-family: 'Dosis', sans-serif;
    margin: 0;
    padding: 0;
}

.page {
    position: relative;
}

.nowrap {
    white-space: nowrap;
}

.notransition * { 
    animation-play-state: paused !important;    
    transition: none !important; 
}

.icon-pos lord-icon {
    margin-right: 5px;
}

.icon-pos {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    font-style: normal;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #30c9e8;
}

a.icon {
    background: #362c5d;
    border: 1px solid #fff;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    height: 25px;
    width: 25px;
}

a.icon:hover {
    border: 1px solid #30c9e8;
    color: #30c9e8;
    cursor: pointer;
}

a.icon-large {
    border-radius: 25px;
    height: 50px;
    width: 50px;
}

a.attribution {
    display: block;
    font-size: 12px;
    margin: 0 0 15px 0;
    position: relative;
    text-align: center;
    width: 100%;
}

ul {
    padding: 0;
    margin: 0 0 15px 15px;
}

table .table-info a {
    background: none;
    border: none;
    color: #fff;
    display: inline;
    margin: auto;
}

table .table-info a:hover {
    color: #30c9e8;
}


/* Table */

table {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 18px 0 rgb(0 0 0 / 40%);
    margin: 20px auto;
}

table.table-games {
    width: 880px;
}
table.table-result {
    max-width: 600px;
}
table.table-fix-width {
    width: 600px;
}

thead {
    background: #3E1E68;
    border: 1px solid #fff;
    box-shadow: 0 4px 18px 0 rgb(0 0 0 / 40%);
    position: sticky;
    top: 0;
    z-index: 1000;
}

tr:hover td {
    background: #3E1E68;
    /*animation: neon 1.5s ease-in-out infinite alternate;*/
}

td,
th {
    padding: 10px;
    text-align: left;
}

th {
    background: #362c5d;
    letter-spacing: 2px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

tbody th {
    border-top: none;
}

td {
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

th:first-child,
td:first-child {
    border-left: 1px solid #fff;
}

td:last-child {
    text-align: center;
}

td:only-child {
    text-align: left;
}

td.table-filter {
    background: rgba(44, 62, 80, 0.4);
    border-bottom: 0;
    border-top: 1px solid #fff;
    text-align: left;
}

td.table-filter div {
    display: inline;
    white-space: nowrap;
}

td.table-center,
th.table-center {
    text-align: center;
}

td.table-info {
    position: relative;
    text-align: left;
}

td.table-edit {
    text-align: right;
    vertical-align: top;
    width: 100px;;
}

td.table-edit a {
    background: #362c5d;
    border: 1px solid #fff;
    display: inline-block;
    padding: 5px;
}

table td span {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.table-detail {
    display: none;
}

.table-detail-open {
    display: table-row;
}


/* Header */

header {
    background: rgba(54, 44, 93, 0.8);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    padding: 16px 0px;
    width: 100%;
}

h1 {
    letter-spacing: 4px;
    margin: 3px 0 5px 0;
    text-transform: uppercase;
}

h2 {
    font-size: 1em;
    letter-spacing: 5px;
    margin-top: 0;
}

header h2 {
    text-transform: capitalize;
}

nav {
    background: rgba(54, 44, 93, 0.8);
    opacity: 0;
    position: absolute;
    top: 146px;
    visibility: hidden;
    width: 100%;
    z-index: 1001;
    transition: opacity ease .5s
}

nav a {
    color: #fff;
    display: block;
    letter-spacing: 2px;
    padding-left: 60px;
    text-decoration: none;
}

nav a:hover {
    background: rgba(54, 44, 93, 1);
}

pre {
    background: #362c5d;
    border: 1px solid #fff;
    max-width: 600px;
    margin: 0 auto;
    overflow: auto;
    padding: 5px;
    text-wrap: wrap;
}

.header-logo {
    margin-left: 50px;
}

.header-logo img {
    position: absolute;
    margin: 15px 0 0 -95px;
}

.header-title {
    margin: 0 0 0 20px;
}

.header-menubutton {
    position: absolute;
    right: 20px;
    top: 40px;
}


/* Forms */

.form-checkbox label,
.form-radio label {
    background: rgba(54, 44, 93, 0.6);
    border: 1px solid #fff;
    cursor: pointer;
    display: inline-block;
    height: 30px;
    text-align: center;
    transition: 0.2s all ease-in-out;
    margin: 0 5px 10px 0;
    padding: 13px 0 7px;
    width: 83px;
}

.form-checkbox input[type=checkbox],
.form-radio input[type=radio] {
    display: none;
}

.form-checkbox input[type=checkbox]:checked+label,
.form-radio input[type=radio]:checked+label {
    border: 1px solid #30c9e8;
    color: #30c9e8;
}

.form-submit {
    text-align: center !important;
}

.form-submit a {
    background: #362c5d;
    border: 1px solid #fff;
    display: inline-block;
    letter-spacing: 1px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 1px 20px 1px 5px;
}

label,
div.label,
div.error {
    font-size: 1em;
    letter-spacing: 1px;
    display: inline-flex;
    flex-direction: row;
    flex: 0 0 50px;
    align-items: center;
    width: 100%;
}

label lord-icon,
div.label lord-icon,
div.error lord-icon {
    flex: 0 0 50px;
    margin-right: 5px;
}

input,
textarea,
select {
    background: rgba(54, 44, 93, 0.6);
    border: 1px solid #fff;
    color: #fff;
    font-size: 1em;
    height: 30px;
    margin: 10px 0;
    padding: 10px;
    width: calc(100% - 20px);
}

input::placeholder {
    font-family: 'Dosis', sans-serif;
    font-weight: normal;
}

input[type="time"], input[type="date"] {
    font-family: 'Dosis', sans-serif;
}

input[type="time"]::-webkit-calendar-picker-indicator, input[type="date"]::-webkit-calendar-picker-indicator{
    filter: invert(1);
  }

input.small-left {
    float: left; 
    margin: 0 8px 0 0; 
    width: 80px;
}

input.search {
   background-color: #362c5d; 
   margin-top: -1px;
   opacity: 0;
   position: absolute;
   transition: .5s;
   width: calc(100% - 90px);
   z-index: 50;
}

select.half-left {
    margin-right: 3px;
    width: calc(50% - 5px);
}

input.half-left {
    margin-right: 3px;
    width: calc(50% - 26px);
}

input.half-right {
    margin-left: 2px;
    width: calc(50% - 27px);
}

textarea {
    font-family: 'Dosis', sans-serif;
    font-size: 1.1em;
    height: 200px;
    resize: vertical;
}

select {
    font-family: 'Dosis', sans-serif;
    height: 51px;
    width: 100%;
}

select option {
    background: #362c5d;
    font-family: 'Dosis', sans-serif;
}

button {
    background: #362c5d;
    border: 1px solid #fff;
    color: #fff;
    letter-spacing: 1px;
    padding-right: 15px;
}

button:hover {
    border: 1px solid #30c9e8;
    color: #30c9e8;
    cursor: pointer;
}

/* Spieldetails */

.game-info {
    display: inline-flex;
    float: left;
    margin-right: 25px;
}

.game-info img {
    min-width: 150px;
    height: auto;
}

.game-info table {
    box-shadow: none;
    margin: -10px 0 10px 0;
    height: 100%;
    width: 100%;
}

.game-info td {
    border: none;
    text-align: left !important;
    vertical-align: top;
    display: table-cell !important;
}

.game-info td:nth-child(1) {
    padding-right: 0;
    white-space: nowrap;
    width: 120px;
}

.game-info td:nth-child(2) {
    padding-left: 2px;
    width: 5px;
}

.game-buttons {
    float: right;
    margin-top: 15px;
}

.game-buttons a {
    background: #362c5d;
    border: 1px solid #fff;
    display: inline-block;
    margin-left: 5px;
    padding: 5px;
}

.game-cover {
    border: 1px solid #fff;
    display: block;
    margin: 10px 0;
}

.game-modal {
    background: rgba(54, 44, 93, 0.8);
    margin: 10px;
}

.big-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.big-buttons a {
    background: #362c5d;
    border: 1px solid #fff;
    display: inline-block;
    margin-left: 5px;
    padding: 5px 20px 5px 5px;
}


/* Login */

.login td:first-child {
    border-right: none;
}

/* API-Loading-Screen */

#api-loading {
    display:none; 
    flex-direction: column; 
    flex-wrap:nowrap; 
    align-items: center; 
    justify-content:center; 
    top:50%; 
    position:fixed; 
    width:100%;
}


/* jQuery UI */

.ui-dialog {
    z-index: 2001;
}

.ui-dialog iframe {
    width: 100%;
}

.ui-dialog-titlebar {
    background-color: #362c5d;
    border-top: 1px solid #fff !important;
    border-left: 1px solid #fff !important;
    border-right: 1px solid #fff !important;
    padding: 25px 9px;
}

.ui-dialog-title {
    font-size: 1em;
    letter-spacing: 1px;
    padding: 15px 0;
}

.ui-dialog-content {
    border: 1px solid #fff !important;
}

.ui-button {
    background-color: rgba(54, 44, 93, 0.6);
    font-family: 'Dosis', sans-serif;
    font-size: 1em;
    padding: 15px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.ui-widget-overlay {
    background-color: #000;
    opacity: .8;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

/* Detailseite */
.game-detail {
    max-width: 800px;
}
.game-detail tbody:nth-child(2) img {
    float: left;
    height: auto;
    margin-right: 15px;
    transition: all 400ms cubic-bezier(.47,1.64,.41,.8);
    width: 40%;
}
.game-detail tbody:nth-child(2) p {
    margin-top: 0;
}
.game-detail tbody:nth-child(4) table {
    box-shadow: none;
    margin: 0;
    width: 100%;
}
.game-detail tbody:nth-child(4) table td:first-child {
    border-left: none;
    border-top: none;
}
.game-detail tbody:nth-child(4) table td:last-child {
    border-right: none;
}
.game-detail tbody:nth-child(4) table tr:last-child td {
    border-bottom: none;
}
.game-detail tbody:nth-child(4) td.left {
    text-align: left;
}
.game-detail tbody:nth-child(4) td.center {
    text-align: center;
}
.game-detail tbody:nth-child(4) td.small {
    width: 25px;
}
.game-detail tbody:nth-child(4) td.start {
    width: 35px;
}
.game-detail tbody:nth-child(4) td.player {
    width: 50px;
}
.game-detail .game-buttons {
    float: right;
    margin: 0;
}
.game-detail .flex-group {
    display: flex; 
    flex-wrap: wrap; 
    width: 80%;
}
.game-detail .button-group {
    float: right;
    width: 20%;
}
.game-detail .button-group .game-edit {
    margin-bottom: 8px;
    margin-left: 8px;
}
.game-detail .button-group a {
    margin: 0;
}

/* Background */

#background {
    background: #3E1E68;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Animations */

@keyframes neon {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #ff1177, 0 0 70px #ff1177, 0 0 80px #ff1177, 0 0 100px #ff1177, 0 0 150px #ff1177;
    }
    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff1177, 0 0 35px #ff1177, 0 0 40px #ff1177, 0 0 50px #ff1177, 0 0 75px #ff1177;
    }
}

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}


/* Media Queries */

@media (max-width: 900px) {
    nav {
        top: 103px;
    }
    h1 {
        font-size: 1.5em;
    }
    .header-logo {
        margin-left: 0;
    }
    .header-logo lord-icon {
        display: none;
    }
    .header-logo img {
        height: 50px;
        margin: 0px 0 0 20px;
        position: relative;
        width: 50px;
    }
    .header-menubutton {
        top: 23px;
    }
    table, table.table-games {
        width: calc(100% - 20px);
    }
    table.table-games tr td:nth-child(5),
    table.table-games tr td:nth-child(6),
    table.table-games tr td:nth-child(7),
    table.table-games tr th:nth-child(5),
    table.table-games tr th:nth-child(6),
    table.table-games tr th:nth-child(7) {
        display: none;
    }
}

@media (max-width: 700px) {
    table.table-games tr td:nth-child(2),
    table.table-games tr td:nth-child(5),
    table.table-games tr td:nth-child(6),
    table.table-games tr td:nth-child(7),
    table.table-games tr th:nth-child(2),
    table.table-games tr th:nth-child(5),
    table.table-games tr th:nth-child(6),
    table.table-games tr th:nth-child(7) {
        display: none;
    }
    .game-info {
        flex-direction: column;
    }
    .game-info dl {
        margin-bottom: 0;
        margin-top: 0;
    }
    .game-buttons {
        margin-top: 0;
    }
    .game-buttons a {
        display: block;
    }
    .game-buttons-group a {
        margin: 0 0 10px;
    }
}

@media (max-width: 615px) {
    table.table-fix-width {
        width: 95%;
    }
    .table-detail div:nth-child(2) {
        margin-right: 0;
    }
    .game-buttons {
        float: left;
        margin-top: 15px;
    }
    .game-buttons a {
        display: inline-block;
    }
}

@media (max-width: 600px) {
    table.table-games tr td:nth-child(2),
    table.table-games tr td:nth-child(5),
    table.table-games tr td:nth-child(6),
    table.table-games tr td:nth-child(7),
    table.table-games tr td:nth-child(8),
    table.table-games tr th:nth-child(2),
    table.table-games tr th:nth-child(5),
    table.table-games tr th:nth-child(6),
    table.table-games tr th:nth-child(7),
    table.table-games tr th:nth-child(8) {
        display: none;
    }
}

@media (max-width: 450px) {
    nav {
        top: 90px;
    }
    h1 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 0.75em;
    }
    table.table-games tr td:nth-child(2),
    table.table-games tr td:nth-child(5),
    table.table-games tr td:nth-child(6),
    table.table-games tr td:nth-child(7),
    table.table-games tr td:nth-child(8),
    table.table-games tr td:nth-child(9),
    table.table-games tr th:nth-child(2),
    table.table-games tr th:nth-child(5),
    table.table-games tr th:nth-child(6),
    table.table-games tr th:nth-child(7),
    table.table-games tr th:nth-child(8),
    table.table-games tr th:nth-child(9) {
        display: none;
    }
    .game-info {
        width: 35%;
    }
    .game-info td:nth-child(2) {
        display: table-cell;
    }
}

@media (max-width: 380px) {
    nav {
        top: 80px;
    }
    h1 {
        font-size: 1em;
    }
    h2 {
        font-size: 0.5em;
    }
}

@media (max-width: 380px) {
    h1, h2 {
        display: none;
    }
    .header-menubutton {
        top: 15px;
    }
}