/*!
* grrd's Puzzle
* Copyright (c) 2012 Gerard Tyedmers, grrd@gmx.net
* Licensed under the MPL License
*/

html {
    height: 100%;
    user-select: none;
}

body {
    margin: 0;
    position: realtive;
    overflow: visible;
    font-size: large;
    color: white;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: #000;
}
.termsbox {
    max-width: 350px;
    position: absolute;
    top: 400px;
    left: 100px;
}
img.terms_btn {
    width: 100%;
    max-width: 150px;
}
img.terms_txt {
    width: 100%;
}

.form-body {
    margin: 0;
    position: relative;
    overflow: visible;
    font-size: large;
    color: white;
    display: block;
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: url(../img/bg.png) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 100vw;
    background-position: top;
    background-color: #000;
}
.form-body2 {
    margin: 0;
    position: relative;
    overflow: visible;
    font-size: large;
    color: white;
    display: block;
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: url(../img/bg2.png) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 100vw;
    background-position: top;
    background-color: #000;
}



.page {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/bg.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 100vw;
    background-position: top;
}

.object-fit_cover {
    object-fit: cover;
    margin-top: -210px;
}

.hurray {
    padding: 20px;
    margin: auto;
    max-width: 700px;
    margin-top: 370px;
}

.page-complete {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/bg.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-width: 100vw;
    background-position: top;
}

.page-form {
    position: relative;
   margin-top: 30px;
   overflow: scroll;
}

header {
    margin-top: 10px;
    margin-bottom: 10px;
}

.content {
    margin: 5px;
}

#game {
    transform: translateX(100vw);
    opacity: 0;
}

.swipe-in {
    animation-name: swipe-in;
    animation-fill-mode: forwards;
    animation-duration: 0.7s;
}

@keyframes swipe-in {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    1% {
        transform: translateX(100vw);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.swipe-out {
    animation-name: swipe-out;
    animation-fill-mode: forwards;
    animation-duration: 0.7s;
}

@keyframes swipe-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    99% {
        transform: translateX(-100vw);
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

.swipe-in-left {
    animation-name: swipe-in-left;
    animation-fill-mode: forwards;
    animation-duration: 0.7s;
}

@keyframes swipe-in-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    99% {
        transform: translateX(100vw);
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

.swipe-out-right {
    animation-name: swipe-out-right;
    animation-fill-mode: forwards;
    animation-duration: 0.7s;
}

@keyframes swipe-out-right {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }

    1% {
        transform: translateX(-100vw);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.top-right {
    position: absolute;
    top: 10px;
    right: 10px;
}

.bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.values {
    font-size: 50px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
}

#bt_easy {
    font-size: 30px;
    font-weight: 800;
    padding: 20px;
}

nav#nav1 {
    justify-content: center;
    margin-top: 300px;
}

nav#nav2 {
/*    justify-content: flex-end; */
display: inline;

}

.button {
    float: right;
    border: 1px transparent;
    border-radius: 10px;
    box-shadow: 0 0 0.5vmin 2px #000;
    text-shadow: 1px 1px 2px #500000;
    background-image: linear-gradient(#9999ff, #6666ff),
        linear-gradient(#e6e6ff, #6666ff 12px, #00004d 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding: 1px;
    height: 40px;
    width: 100px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.button-span {
    margin-top: 8px;
}

.button-span:active {
    margin-top: 10px;
}

.button-span>img {
    margin-bottom: -3px;
}

.mini-button,
.close-button,
.select-button {
    border: 1px transparent;
    background-image: linear-gradient(#444, #2d2d2d), linear-gradient(#999, #444 10px, #111 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    cursor: pointer;
    overflow: hidden;
}

.select-button {
    text-align: center;
    padding: 1px 0 1px 0;
    margin-left: 1px;
}

.list-button {
    position: relative;
    width: 100%;
    padding: 6px 0;
    font-size: 16px;
    color: currentColor;
    background: #000000;
    border: 2px solid #3398db;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    transition: 0.6s;
    text-align: center;
}

.list-button ::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(51, 152, 219, 0.5), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.list-button :hover {
    box-shadow: 0 0 20px 10px rgba(51, 152, 219, 0.5);
}

.list-button :hover::before {
    transform: translateX(100%);
}

.select-button:first-child {
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
}

.select-button:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-button-33,
.list-button-33-sel {
    width: calc(100% / 3);
    position: relative;
    overflow: visible;
}

.button-img {
    margin: 10px 20px 10px 20px;
    vertical-align: middle;
    pointer-events: none;
    width: calc(100% - 40px);
    max-height: calc(80vh - 200px);
}

.button-img2{
    margin: 10px 20px 10px 20px;
    vertical-align: middle;
    pointer-events: none;
    max-height: calc(80vh - 200px);
    width: 80%;
}

.mini-button,
.close-button {
    padding: 1px;
}

nav,
.mini-buttonlist {
    margin: 5px 5px 10px 5px;
    display: flex;
}

nav,
.mini-buttonlist,
.close-button,
.xs,
.dropdown,
.select {
    border-radius: 10px;
}

#navOff,
#nav0 {
    width: min-content;
    margin-left: auto;
    margin-right: auto;
}

.dropdown {
    max-height: 0;
    transition: max-height 0.5s ease-out, opacity 0s 0.5s;
    overflow: hidden;
    background: #d5d5d5;
    opacity: 0;
}

.dropdown.show {
    max-height: 720px;
    transition: max-height 0.75s ease-in;
    opacity: 1;
}

.mini-button:hover,
.close-button:hover,
.select-button:hover {
    background-image: linear-gradient(#555555, #383838), linear-gradient(#ccc, #555 10px, #222 100%);
}

.mini-button:active,
.close-button:active,
.select-button:active {
    background-image: linear-gradient(#202020, #2c2c2c), linear-gradient(#222, #111 calc(100% - 10px), #aaa 100%);
}

.selected {
    background-image: linear-gradient(#9999ff, #6666ff),
        linear-gradient(#e6e6ff, #6666ff 12px, #00004d 100%);
}

.button:hover,
.selected:hover {
    background-image: linear-gradient(#b3b3ff, #7c7cff),
        linear-gradient(#ffffff, #7c7cff 12px, #000080 100%);
}

.button:active,
.selected:active {
    background-image: linear-gradient(#6666ff, #9999ff),
        linear-gradient(#000080, #7c7cff calc(100% - 12px), #ffffff 100%);
}

.close-button {
    border-radius: 25px;
    width: 25px;
    height: 25px;
    margin: 5px 5px 15px 5px;
}

.close-popup {
    float: right;
    margin-top: -7px;
    margin-right: -7px;
}

.close-button img {
    margin: 2px;
}

#b_prev>img,
#b_next>img {
    margin-top: 5px;
}

.mini-button {
    width: 59px;
    height: 40px;
    padding: 1px 0 1px 0;
    display: inline-block;
    margin-left: 1px;
}

.list-button:active .medal {
    position: absolute;
    right: 5px;
    bottom: -7px;
}

.mini-button:active>img {
    margin-top: 7px;
    margin-bottom: 3px;
}

.mini-button:active>.bttxt {
    margin-top: 12px;
    margin-bottom: 8px;
}

#b_prev:active>img,
#b_next:active>img {
    margin-top: 7px;
    margin-bottom: 3px;
}

.close-button:active>img {
    margin-top: 4px;
}

.mini-buttonlist {
    height: 42px;
    display: none
}

.mini-img {
    margin: 5px 15px 5px 15px;
    max-height: calc(100% - 10px);
}

.popup {
    display: block;
    left: 0;
    right: 0;
    margin: auto;
    border: 1px transparent;
    border-radius: 15px;
    box-shadow: 3px 3px 3vmin 3px #000;
    background-image: linear-gradient(#333, #444 35%, #222 100%), linear-gradient(#bbb, #444 10%, #111 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding: 2px;
    width: 400px;
    max-width: calc(100vw - 40px);
}

.popup-mini {
    width: 300px;
    min-height: 80px;
    box-shadow: 2px 2px 2vmin 2px #000;
    max-width: calc(100vw - 40px);
    margin-top: calc(50vh - 40px);
}

.popup-init {
    visibility: hidden;
    opacity: 0;
}

.popup-show {
    animation: 1s fadeIn;
    animation-fill-mode: forwards;
}

.popup-show>div:first-child {
    animation: 1s zoomIn;
    animation-fill-mode: forwards;
}

.popup-hide {
    animation: 1s fadeOut;
    animation-fill-mode: forwards;
}

.popup-hide>div:first-child {
    animation: 1s zoomOut;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        visibility: visible;
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.75);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        visibility: hidden;
        opacity: 0;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.75);
    }
}

.popup-head {
    height: 50px;
    margin: 10px;
}

.popup-body {
    margin: 20px;
}

.popup-content {
    margin-bottom: 30px;
}

.popup-footer {
    height: 50px;
    margin: 20px;
}

.popup-title {
    width: calc(100% - 40px);
    margin: 8px 20px 6px 20px;
}

.overflow {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto 0 auto;
    padding-top: 20px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

@supports (-webkit-overflow-scrolling: touch) {
    .overflow {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

@supports not (-webkit-overflow-scrolling: touch) {
    .overflow {
        overflow-y: auto;
    }
}

.buffer {
    height: 40px;
}

a:link {
    color: #7c7cff;
    font-weight: bold;
}

a:visited {
    color: #6666ff;
}

a:hover {
    color: #9999ff;
}

a:active {
    color: #9999ff;
}

.w25 {
    width: calc(25% - 4px);
}

[id^=bullets] {
    margin-top: 13px;
    display: none;
}

#img_help {
    height: 80px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-right: 10px;
}

#select_theme {
    display: inline-block
}

.icon {
    width: 20px;
    margin-right: 10px;
    margin-top: 20px;
    transition: transform 0.25s ease-in;
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.25s ease-in;
}

.txticon {
    float: left;
    height: 20px;
}

#img_title {
    margin: auto;
    display: flex;
    padding-top: 10px;
}

/* altes original-css */

canvas {
    border: 0;
    margin: 0;
    padding: 0;
}

.myButton .ui-btn-inner {
    padding: 0;
}

.ui-dialog .ui-header .ui-btn-icon-notext {
    display: none;
}

div.ui-slider-switch {
    position: absolute;
    right: 0;
    width: 20%;
}

div.game {
    margin: 0;
    padding: 0;
}

div.container {
    position: absolute;
}

a.bt_small {
    height: 35px;
    width: 55px;
}

img.bt_small {
    margin-top: -5px;
    margin-left: -10px;
    height: 25px;
    width: 25px;
}

a.popup {
    width: 310px;
    height: 80px;
    display: block;
    text-decoration: none;
    color: white;
}

a.back {
    margin: 20px;
    overflow: hidden;
    position: absolute;
    right: 0;
}

img.bt_diff {
    padding: 1px;
    height: 60px;
}

img.popup {
    width: 50%;
    margin-top: 8px;
    margin-bottom: 6px;
}

td.img {
    width: 20%;
    text-align: center;
    vertical-align: middle;
}

td.text {
    width: 80%;
    padding-left: 10px;
    vertical-align: middle;
}

div.alert {
    width: 250px;
    height: 80px;
    display: block;
    text-decoration: none;
    color: white;
}

img.alert {
    width: 50px;
    float: left;
    padding: 10px;
}

p.alert {
    margin-top: 3px;
}

.p10 {
    padding: 10px;
}

.pt0 {
    padding-top: 0;
}

.pt7 {
    padding-top: 7px;
}

.pt10 {
    padding-top: 10px;
}

.pt18 {
    padding-top: 18px;
}

.tc {
    text-align: center;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.db {
    display: block;
}

.in {
    display: inline;
}

.dn {
    display: none;
}

.cb {
    clear: both;
    justify-content: center;
}

.w50 {
    width: 50px;
}

.w60 {
    width: 60px;
}

.w80 {
    width: 80%;
}

.w100 {
    width: 100%;
}

.grey {
    color: #999999;
}

.medal {
    position: absolute;
    right: 5px;
    bottom: -5px;
    width: 20%;
    min-width: 25px;
    pointer-events: none;
}

@media (orientation: portrait) {
    #img_title {
        height: 25px;
    }

    .lock {
        position: absolute;
        left: 10%;
        bottom: calc((100vw - 70px) / 9.8);
        width: 80%;
        min-width: 25px;
        pointer-events: none;
    }

    .list-button:active .lock {
        position: absolute;
        left: 10%;
        bottom: calc(((100vw - 70px) / 9.8) - 2px);
    }

    .own-img {
        height: calc((33vw - 50px) * 1.5);
        width: auto;
    }
}

@media (orientation: landscape) {
    #img_title {
        max-height: 25px;
        min-height: 25px;
        margin-top: 15px;
    }

    .lock {
        position: absolute;
        left: 25%;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 50%;
        min-width: 25px;
        pointer-events: none;
        max-height: calc(80vh - 220px);
    }

    .list-button:active .lock {
        position: absolute;
        left: 25%;
        bottom: calc(((100vw - 70px) / 30) - 2px);
    }

    .own-img {
        height: calc((33vw - 50px) / 1.5);
        width: auto;
    }
}

.locked {
    opacity: 0.3;
}

/* Toggle-Button */
.tgl {
    display: none;
}

.tgl,
.tgl:after,
.tgl:before,
.tgl *,
.tgl *:after,
.tgl *:before,
.tgl+.tgl-btn {
    box-sizing: border-box;
}

.tgl::-moz-selection,
.tgl:after::-moz-selection,
.tgl:before::-moz-selection,
.tgl *::-moz-selection,
.tgl *:after::-moz-selection,
.tgl *:before::-moz-selection,
.tgl+.tgl-btn::-moz-selection {
    background: none;
}

.tgl::selection,
.tgl:after::selection,
.tgl:before::selection,
.tgl *::selection,
.tgl *:after::selection,
.tgl *:before::selection,
.tgl+.tgl-btn::selection {
    background: none;
}

.tgl+.tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tgl+.tgl-btn:after,
.tgl+.tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}

.tgl+.tgl-btn:after {
    left: 0;
}

.tgl+.tgl-btn:before {
    display: none;
}

.tgl:checked+.tgl-btn:after {
    left: 50%;
}

/* Skewed */
.tgl-skewed+.tgl-btn {
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: all .2s ease;
    font-family: sans-serif;
    background: linear-gradient(#999, #555), linear-gradient(#ccc, #555 10px, #222 100%);

    border: 1px transparent;
    border-radius: 10px;
    box-shadow: 0 0 0.5vmin 2px #000;
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding: 1px;
}

.tgl-skewed+.tgl-btn:after,
.tgl-skewed+.tgl-btn:before {
    display: inline-block;
    transition: all .2s ease;
    width: 100%;
    text-align: center;
    position: absolute;
    line-height: 2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #500000;
}

.tgl-skewed+.tgl-btn:after {
    left: 100%;
    content: attr(data-tg-on);
}

.tgl-skewed+.tgl-btn:before {
    left: 0;
    content: attr(data-tg-off);
}

.tgl-skewed+.tgl-btn:active {
    background: linear-gradient(#999, #555), linear-gradient(#ccc, #555 10px, #222 100%);
}

.tgl-skewed+.tgl-btn:active:before {
    left: -10%;
}

.tgl-skewed:checked+.tgl-btn {
    background-image: linear-gradient(#9999ff, #6666ff),
        linear-gradient(#e6e6ff, #6666ff 12px, #00004d 100%);
}

.tgl-skewed:checked+.tgl-btn:before {
    left: -100%;
}

.tgl-skewed:checked+.tgl-btn:after {
    left: 0;
}

.tgl-skewed:checked+.tgl-btn:active:after {
    left: 10%;
}

/* Form */

.form-control {
    --default-color: currentColor;
    --invalid-color: #e74c3c;
    --valid-color: #3498db;
    --border-bottom-color: currentColor;
    position: relative;
    border-bottom: 1px solid var(--border-bottom-color);
}

.form-control::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--valid-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}

.form-control:focus-within::after {
    transform: scaleX(1);
}

.form-control input {
    padding: 8px 0;
    font-size: inherit;
    font-weight: inherit;
    color: currentColor;
    background: transparent;
    border: none;
    outline: none;
    width: 300px;
}

.form-control input:invalid~label {
    color: var(--invalid-color);
}

.form-control input:valid~label {
    color: var(--valid-color);
}

.form-control input:placeholder-shown~label {
    color: var(--default-color);
}

.form-control input:focus~label,
.form-control input:not(:placeholder-shown)~label {
    transform: translateY(-120%) scale(0.75);
}

.form-control label {
    position: absolute;
    top: 8px;
    left: 0;
    transition: 0.3s;
    transform-origin: left;
}

.btn {
    position: relative;
    width: 100%;
    padding: 6px 0;
    font-size: 16px;
    color: currentColor;
    background: transparent;
    border: 2px solid #3398db;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    transition: 0.6s;
}

.btn::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(51, 152, 219, 0.5), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn:hover {
    box-shadow: 0 0 20px 10px rgba(51, 152, 219, 0.5);
}

.btn:hover::before {
    transform: translateX(100%);
}

.login-form {
    max-width: 300px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 30px;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin-top: 200px;
    margin-bottom: 150px;

}

.login-form h1 {
    margin: 0 0 24px 0;
    font-size: 36px;
}

.login-form .form-control {
    margin: 20px 0;
}

.login-form .btn {
    width: 100%;
    margin: 18px 0 9px 0;
}
@media only screen and (max-width: 1024px) {
  /* For mobile phones: */
  .login-form {
    margin-top: 150px;
    margin-bottom: 150px;
}
    .termsbox {
    max-width: 250px;
    position: absolute;
    top: 885px;
    left: 43px;
}
}
@media only screen and (min-width: 1440px) {
  /* For mobile phones: */
  .login-form {
    margin-top: 350px;
    margin-bottom: 150px;
}
    .termsbox {
    max-width: 400px;
    position: absolute;
    top: 550px;
    left: 100px;
}

}