/* latin */

@font-face {
    font-family: "Carter One";
    font-style: normal;
    font-weight: 400;
    src: url(/game/assets/fonts/carterone.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
        U+2215, U+FEFF, U+FFFD;
}
img {
    width: 100%;
}

#wave {
    position: fixed;
    z-index: -1; 
    top: 0; left: 0;
    width: 100vw;
}
#wave2 {
    position: fixed;
    z-index: -1;
    bottom: 0; left: 0;
    width: 100vw;
}

*:root {
    --font: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --primary: 255, 187, 0;
    --wrapper: 70vw;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border: 2px solid white;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

a:hover {
    color: #ffc107;
    text-decoration: underline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    background: rgb(var(--primary));
    font-family: var(--font);
    font-size: 1em;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 100%;
}

body.bg-white {
    background: white;
}

li:not(.liststyle) {
    list-style: none;
}

b {
    font-weight: 500;
}

.mark {
    font-weight: bold !important;
}

/* Default Buttons */

button {
    background: rgb(var(--primary));
    font-family: var(--font);
    box-shadow: 0 0 0em 0 transparent;
    border-radius: 6px;
    padding: 1em;
    transition: 0.2s;
    font-size: 1em;
    border: none;
}

button.dark {
    background: black;
    color: rgb(var(--primary));
}

button.light {
    background: white;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    color: black;
}

button.negative {
    background: rgb(187, 70, 70);
    color: rgb(243, 164, 164);
}

button.positive {
    background: rgb(61, 151, 61);
    color: rgb(164, 243, 164);
}

button.negative:hover,
button.positive:hover {
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    font-weight: 600;
    cursor: pointer;
}

button:not(.dark):not(:disabled):not(.positive):not(.negative):hover {
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1);
    background: #ffa600;
    transform: scale(1.1);
    font-weight: 600;
    cursor: pointer;
}

button.dark:hover {
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1);
    background: #333;
    transform: scale(1.1);
    font-weight: 600;
    cursor: pointer;
}

button:disabled {
    filter: grayscale(100);
    cursor: not-allowed;
    font-weight: 600;
}

/* Layer */

.template {
    display: grid;
    grid-template-areas:
        "header"
        "container"
        "extra"
        "footer";
    width: 100vw;
    height: 100%;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    overflow: hidden;
}

/* Header */

header {
    background: transparent;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    width: 100vw;
    height: 60px;
    background: rgba(var(--primary), 1);
    grid-area: header;
    overflow: hidden;
    
}

header .page-back,
header .page-reload {
    padding: 2em 1.25em;
    width: 55px;
    transition: 0.2s;
}

header .page-back:hover,
header .page-reload:hover {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

header .game-name {
    text-align: center;
    font-weight: 600;
    font-family: 'Carter One';
    font-size: 1.25em;
    width: 100%;
    position: relative;
}

header .placeholder {
    padding: 1em 1.25em;
    width: 55px;
}

/* Content */
main {
    position: relative;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    grid-area: container;
}

main.bg-radial {
    background: radial-gradient(circle, #eee 0%, rgba(0, 0, 0, 0) 80%);
}

content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: var(--wrapper);
    max-width: 850px;
    padding: 3em 0;
}

content h1 {
    display: block;
    font-weight: 300;
    padding-bottom: 1em;
}

content h1.fix {
    padding: 0 !important;
    margin: 0 !important;
}

content.fluid {
    width: 90vw;
    max-width: 90vw;
}
content.fluid.y-flex {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: baseline;
}

content.centered {
    align-content: center;
    justify-content: center;
    min-height: 100%;
}

content.centered-ui {
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

content.null {
    padding: 0;
}

/* Page Cookie */

content .cookie-container {
    margin: 2em auto;
    background: white;
    max-width: 550px;
    width: 100%;
    border-radius: 1em;
    padding: 2em;
}

content .cookie-container p {
    margin-bottom: 2em;
}

/* Page Container */

.container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: .5em;
    row-gap: 2em;
    transition: 0.2s;
}

.container .box {
    position: relative;
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 2em;
}
.container .box:last-child {
    margin: 0;
}

.container .box.no-pad {
    padding: 0;
    overflow: hidden;
}

.container .box .box-headline {
    display: block;
    min-width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 1.5em;
    padding: 0.5em 0 0;
}
.container .box:hover .box-header-emoji i {
    transform: scale(1.5);
}
.container .box .box-header-emoji {
    position: absolute;
    top: -1.25em;
    left: 0;
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 99px;
    padding-right: 1em;
}


.container .box .box-header-emoji i {
    position: relative;
    top: -1px; left: 6px;
    transition: .2s;
}

.container .box .box-header-emoji h3 {
    display: inline-block !important;
    font-weight: 300;
    margin: 0;
    padding: .25em;
}

/* Page Container: Carousel */

.container .box.carousel {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.container .box.carousel .carousel-item {
    display: none;
    width: 100%;
}

/* Page Container: Transparent */

.container .box.light {
    background: rgba(255, 255, 255, 0.3);
}

.container .box.light h2 {
    display: block;
    margin: 1em 0 0.25em;
    font-size: 1.25em;
}
.container .box.light.hover:hover {
    background: rgb(var(--primary));
}

.container .box.light.hover:hover b {
    color: black;
}

.container .box.light b {
    color: rgb(var(--primary));
    transition: 0.2s;
    display: block;
}

.container .box.light p {
    font-size: 0.9em;
}

/* Page Container: Negative */

.container .box.negative {
    background: rgba(187, 70, 70, 0.2);
    border-color: rgba(187, 70, 70, 0.2);
}

.container .box.negative h2 {
    display: block;
    margin: 1em 0 0.25em;
    font-size: 1.25em;
}
.container .box.negative.hover:hover {
    background: rgb(187, 70, 70);
    color: white;
}

.container .box.negative.hover:hover b {
    color: white;
}

.container .box.negative b {
    color: rgb(187, 70, 70);
    transition: 0.2s;
    display: block;
}

.container .box.negative p {
    font-size: 0.9em;
}

/* Page Container: Dark */

.container .box.dark {
    background: black;
    color: white;
}

.container .box.dark b {
    display: block;
    color: rgb(var(--primary));
}

.container .box.dark .score {
    display: block;
}

/* Page Container: Colorful */

.container .box.colorful {
    background: rgb(var(--primary));
}

.container .box.colorful-bordered {
    border: 2px solid rgb(var(--primary));
}

.container .box.colorful-bordered b {
    display: block;
    color: rgb(var(--primary));
}

/* Page Container: Transparent */

.container .box.transparent {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

 .quiz-rating {
    position: relative;
    margin: 2em 0;
    z-index: 2;
}
.quiz-rating .components.flex-inline { 
    row-gap: 0; 
    column-gap: 0;
}
.quiz-rating button {
    position: relative;
    background: rgba(240, 240, 240, .7);
    backdrop-filter: blur(5px);
    color: black;
    padding: 0 1em;
    white-space: nowrap;
    display: inline-block;
}
.quiz-rating button:hover {
    transform: none !important;
    background: rgba(220, 220, 220, .8) !important;
    color: black;
}
.quiz-rating button i { 
    transition: .2s;
}
.quiz-rating button:hover i {
    transform: scale(1.5)
}
.quiz-rating button:first-child {
    border-top-left-radius: 99px;
    border-bottom-left-radius: 99px;
}
.quiz-rating button:last-child {
    border-top-right-radius: 99px;
    border-bottom-right-radius: 99px;
}

/* Page Game: Layout */

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

.game-container .game-header {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.game-container .game-header .lives,
.game-container .game-header .level {
    border-radius: 6px;
    padding: 0.2em 0.5em;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-size: 1.5em;
    width: 100px;
}

.game-container .game-header .lives:before {
    position: relative;
    content: "";
}

.game-container .game-header .lives[lives]:after {
    position: relative;
    content: attr(lives);
}

.game-container .game-header .level:before {
    position: relative;
    content: "";
}

.game-container .game-header .level[level]:after {
    position: relative;
    content: attr(level);
}

.game-container .game-header .category {
    backdrop-filter: blur(2px);
    width: 100%;
    border-radius: 6px;
    text-align: center;
}

.game-container .game-header .category small {
    display: block;
    letter-spacing: 1px;
}

.game-container .game-header .category b {
    display: inline-block;
    font-size: 1.5em;
    border-radius: 6px;
}

.game-container .game-emoji-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 1em;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    margin: 1em 0 2em;
    padding: 1em 2em;
    border-radius: 6px;
}

.game-container .game-emoji-content .emoji {
    display: flex;
    font-size: 3em;
    width: 100px;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.1),
        inset 0 0 0 5px rgba(0, 0, 0, 0.025);
    border-radius: 6px;
    border: 2px solid black;
    position: relative;
    z-index: 2
}

.game-container .game-answers {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    column-gap: 1em;
    row-gap: 1em;
    width: 100%;
}

.game-container .game-answers .answer {
    width: 100%;
    max-width: calc(100% / 3 - 0.5em);
    align-items: stretch;
    word-wrap: break-word;
}
.game-container .game-answers .answer.textpuzzle {
    max-width: 100%;
}

.game-container .game-answers .answer button {
    width: 100%;
    height: 100%;
}

/* Footer */

footer {
    grid-area: footer;
}

footer .navigation {
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100vw;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    line-height: 0;
}

footer .navigation li {
    position: relative;
    display: inline-block;
    text-align: center;
    font-size: 3rem;
    width: 100%;
}

footer .navigation li a {
    display: block;
    transition: 0.2s;
    padding: .2em 0;
    color: #555;
}

footer .navigation li a:hover,
footer .navigation li.prevent a,
footer .navigation li.prevent a:hover {
    cursor: pointer;
    backdrop-filter: blur(5px);
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary));
}

footer .navigation li.prevent:before {
    position: absolute;
    content: " ";
    background: rgb(var(--primary));
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    bottom: -6px;
    left: -6px;
    width: calc(100% + 10px);
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.1);
    height: 12px;
    z-index: 2;
}

/* Tabs */

.tabs {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 1em 0;
}

.tabs li {
    display: block;
    list-style: none;
    text-align: center;
    width: 100%;
}

.tabs li a {
    position: relative;
    display: block;
    color: #555;
    text-decoration: none;
    transition: 0.2s;
    padding: 0.75em 0;
}

.tabs li a:hover {
    cursor: pointer;
    backdrop-filter: blur(5px);
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary));
}

.tabs li a.prevent {
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary));
}

.tabs li a.prevent:after {
    content: " ";
    position: absolute;
    background: rgb(var(--primary));
    width: 100%;
    height: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    bottom: -2px;
    left: 0;
}

/* Background Animation */

.emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.emojis span {
    position: absolute;
    animation-name: emojis;
    animation-iteration-count: infinite;
    bottom: -300px;
}

@keyframes emojis {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-1700px) rotate(720deg) scale(3);
        opacity: 0;
    }
}

/* Components */

.components {
    position: relative;
}

/* Back */

.components.text-back {
    padding: 0.5em 0;
    width: max-content;
    margin-bottom: 1em;
}

/* Drawer */

.components.drawer {
    background: white;
    width: 20vw;
}

/* Flex */

h4 {
    font-weight: 500;
}

.flex-table {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.flex-table .column {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 100%;
    width: 100%;
}
.flex-table .column.wrap {
    flex-wrap: wrap;
    flex-grow: 1;
}
.flex-table .column.gap {
    column-gap: 2em;
    row-gap: 1em;
}
.flex-table .column.start {
    align-items: baseline;
}
.flex-table .column.start .row .box {
    min-height: 100%;
}

.flex-table .column .row {
    width: 100%;
}


.flex-table .column .row.nomar {
    margin: 0 !important;
}

.flex-table .column .row:not(:first-child) {
    margin: 1em 0;
}

.components.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 2em;
    row-gap: 2em;
    width: 100%;
}

.components.flex.center {
    align-items: center;
}

.components.flex div {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
}

.components.flex[each="2"] div {
    width: calc(100% / 2.5);
}

.components.flex[each="3"] div {
    width: calc(100% / 3.5);
}

.components.flex[each="4"] div {
    width: calc(100% / 4.5);
}

.components.flex[each="5"] div {
    width: calc(100% / 5.5);
}

.components.flex-inline {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 1em;
    min-width: 100%;
}

.components.flex-inline .item {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    padding: 1em 0;
}

.components.flex-inline .item .emoji {
    font-size: 1.5em;
}

.components.flex-inline .item .counter {
    font-size: 1.25em;
}

/* Component: Timeline */
.components.timeline {
    position: relative;
    padding: 0 0 0 1em;
}
.components.timeline .timeline-article {
    position: relative;
    font-size: .9em;
}
.components.timeline .timeline-article:before {
    content: '';
    position: absolute;
    left: -22px; top: 7px;
    width: 2px; height: 100%;
    background: #777
}
.components.timeline .timeline-article:first-child:before {
    background: rgb(var(--primary));
    background: linear-gradient(180deg, rgb(var(--primary)) 0%, rgba(119,119,119,1) 100%);
}
.components.timeline .timeline-article li {
    padding: .25em .25em;
    position: relative;
}
.components.timeline .timeline-article li:last-child {
    padding-bottom: 1em;
}
.components.timeline .timeline-article h1 {
    color: rgb(var(--primary));
    padding: 0 0 .5em 0;
    font-size: 1em;
}
.components.timeline .timeline-article:not(:first-child) h1 {
    color: #777;
}
.components.timeline .timeline-article h1:before {
    content: '';
    position: absolute;
    left: -22.5px; top: 5px;
    width: 11px; height: 11px;
    background: rgb(var(--primary));
    animation: pulse-animation 2s infinite;
    border-radius: 99px;
}
.components.timeline .timeline-article:not(:first-child) h1:before {
    background: #777;
    left: -22px; top: 6px;
    width: 9px; height: 9px;
    animation: none;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(var(--primary), .2);
  }
  100% {
    box-shadow: 0 0 0 20px transparent;
  }
}

I9
/* Misc Menu */

.misc-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.misc-menu li.title {
    font-weight: 600;
    font-size: 1.25em;
    margin: 0 0 1.5em;
}

.misc-menu li:not(.title) {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    background: rgba(230, 230, 230, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    margin-bottom: 0.5em;
}

.misc-menu li a {
    display: block;
    padding: 1em;
    color: #777;
    width: 100%;
}

.misc-menu li:not(.title):hover {
    cursor: pointer;
    backdrop-filter: blur(5px);
    background: rgba(220, 220, 220, 0.5);
}

.misc-menu li:not(.title):hover a,
.misc-menu li:not(.title):hover i {
    color: black;
    text-decoration: none;
}

.misc-menu li i {
    margin-right: 1em;
}

/* Utils */

.fluid {
    width: 100%;
}

/* Utils: Paddings */

.pad-0 {
    padding: 0 !important;
}

.pad-1 {
    padding: 1em !important;
}

.pad-2 {
    padding: 2em !important;
}

.pad-3 {
    padding: 3em !important;
}

.pad-4 {
    padding: 4em !important;
}

.pad-5 {
    padding: 5em !important;
}

/* Utils: Margins */

.mar-1 {
    margin: 1em !important;
}

.mar-2 {
    margin: 2em !important;
}

.mar-3 {
    margin: 3em !important;
}

.mar-4 {
    margin: 4em !important;
}

.mar-5 {
    margin: 5em !important;
}

.marb-1 {
    margin-bottom: 1em !important;
}

.marb-2 {
    margin-bottom: 2em !important;
}

.marb-3 {
    margin-bottom: 3em !important;
}

.marb-4 {
    margin-bottom: 4em !important;
}

.marb-5 {
    margin-bottom: 5em !important;
}

.marr-1 {
    margin-right: 1em !important;
}

.marr-2 {
    margin-right: 2em !important;
}

.marr-3 {
    margin-right: 3em !important;
}

.marr-4 {
    margin-right: 4em !important;
}

.marr-5 {
    margin-right: 5em !important;
}

.marl-1 {
    margin-left: 1em !important;
}

.marl-2 {
    margin-left: 2em !important;
}

.marl-3 {
    margin-left: 3em !important;
}

.marl-4 {
    margin-left: 4em !important;
}

.marl-5 {
    margin-left: 5em !important;
}

.mart-1 {
    margin-top: 1em !important;
}

.mart-2 {
    margin-top: 2em !important;
}

.mart-3 {
    margin-top: 3em !important;
}

.mart-4 {
    margin-top: 4em !important;
}

.mart-5 {
    margin-top: 5em !important;
}

.block {
    display: block !important;
}

/* Utils: Font Size */

.fs {
    margin: 0.25em 0 !important;
}

.fs-1 {
    font-size: 1em !important;
}

.fs-2 {
    font-size: 1.5em !important;
}

.fs-3 {
    font-size: 2em !important;
}

.fs-4 {
    font-size: 3em !important;
}

.fs-5 {
    font-size: 4em !important;
}

.fs-6 {
    font-size: 5em !important;
}

/* Width */

.w-50 {
    width: 50% !important;
}

/* Letter Spacing */

.text-ls-1 {
    letter-spacing: 0.5px !important;
}

.text-ls-2 {
    letter-spacing: 1px !important;
}

.text-ls-3 {
    letter-spacing: 2px !important;
}

/* Animation Delays */
.delay-01s {
    animation-delay: 0.1s !important;
}
.delay-02s {
    animation-delay: 0.2s !important;
}
.delay-03s {
    animation-delay: 0.3s !important;
}
.delay-04s {
    animation-delay: 0.4s !important;
}
.delay-05s {
    animation-delay: 0.5s !important;
}
.delay-06s {
    animation-delay: 0.6s !important;
}
.delay-07s {
    animation-delay: 0.7s !important;
}
.delay-08s {
    animation-delay: 0.8s !important;
}
.delay-09s {
    animation-delay: 0.9s !important;
}
.delay-1s {
    animation-delay: 1s !important;
}
/* Text Positions */

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

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-ucase {
    text-transform: uppercase !important;
}

.text-lcase {
    text-transform: lowercase !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.visibility-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Tooltip */

[tooltip] {
    position: relative;
}

[tooltip]:before {
    content: "";
    position: fixed;
    pointer-events: none;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    z-index: 10;
}

[tooltip]:after {
    visibility: hidden;
    opacity: 0;
    line-height: 20px;
    pointer-events: none;
    content: attr(tooltip);
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    font-weight: 400;
    font-size: 15px;
    text-align: center;
    border-radius: 6px;
    width: max-content;
    max-width: 400px;
    height: max-content;
    color: white;
    padding: 0.5em 1em;
    transition: 0.2s;
    z-index: 10;
}

[tooltip]:hover:after,
[tooltip]:hover:before {
    opacity: 100;
    visibility: visible;
    pointer-events: all;
}

/* Positions */

[tooltip][tooltip-pos="top"]:before {
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

[tooltip][tooltip-pos="top"]:after {
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
}

[tooltip][tooltip-pos="bottom"]:before {
    top: calc(100% - 3px);
    left: 50%;
    transform: translateX(-50%);
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

[tooltip][tooltip-pos="bottom"]:after {
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
}

[tooltip][tooltip-pos="left"]:before {
    top: 50%;
    right: calc(100% - 3px);
    transform: translate(0, -50%);
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

[tooltip][tooltip-pos="left"]:after {
    top: 50%;
    right: calc(100% + 7px);
    transform: translate(0, -50%);
}

[tooltip][tooltip-pos="right"]:before {
    top: 50%;
    left: calc(100% - 3px);
    transform: translate(0, -50%);
    border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
}

[tooltip][tooltip-pos="right"]:after {
    top: 50%;
    left: calc(100% + 7px);
    transform: translate(0, -50%);
}

/* Hover Effekt */

.hover {
    position: relative;
    transition: 0.2s;
    z-index: 2;
}

.hover:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Pill */

.pill {
    border-radius: 99px;
}

/* Timer */

.timer {
    margin: 1em 0 -2em;
    position: relative;
    width: 100%;
}

.timer > .progress-backlight {
    background: #eee;
    height: 4px;
}

.timer > .progress {
    position: absolute;
    background: rgb(var(--primary));
    top: -14px;
    left: 0;
    width: 100%;
    height: 8px;
    transition: 0.2s;
}

.timer > .progress[tip] {
    position: relative;
    line-height: 18px;
}

.timer > .progress[tip]:after {
    position: absolute;
    top: -9px;
    right: 0;
    content: attr(tip);
    background: black;
    color: white;
    border-radius: 99px;
    padding: 0.25em 1em;
    font-size: 13px;
}

/* Progress */

.progress {
    margin: 0.5em 0 2em;
    position: relative;
    width: 100%;
}

.progress > .progress-backlight {
    background: #eee;
    margin: 0 1em;
    height: 4px;
}

.progress > .progress {
    position: absolute;
    background: rgb(var(--primary));
    top: -10px;
    left: 0;
    width: 80%;
    height: 8px;
    z-index: 0;
}

.progress > .progress-backlight[current],
.progress > .progress-backlight[next] {
    position: relative;
}

.progress > .progress-backlight[current]:before,
.progress > .progress-backlight[next]:after {
    background: black;
    border-radius: 99px;
    padding: 0.25em 1em;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.progress > .progress-backlight[current]:before {
    position: absolute;
    content: attr(current);
    top: -8px;
    left: -16px;
}

.progress > .progress-backlight[next]:after {
    position: absolute;
    content: attr(next);
    top: -8px;
    right: -16px;
}

/* Rating */

.rating {
    position: relative;
    text-align: center;
    margin-bottom: 1.5em;
    cursor: pointer;
}

.rating b {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.25em;
}

.rating input {
    display: none;
}

.rating input + label {
    transition: 0.2s;
}

.rating input:hover + label {
    transform: scale(1.5);
}

.rating input + label {
    display: inline-block;
    text-align: center;
    font-size: 3em;
    color: #ffc107;
    cursor: pointer;
}

.rating input + label.fa-heart {
    color: #ee2351;
}

.rating input:checked + label ~ label {
    color: #555;
}

.rating.hover-effect input:checked + label ~ label {
    opacity: 0.5;
}

.rating.hover-effect:hover input + label ~ label {
    opacity: 1;
}

.rating.hover-effect:hover input:hover + label ~ label {
    opacity: 0.5;
}

/* Loader */

.subpages {
    position: relative;
}

/* .loader {
display: none;
} */

.loader:before {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 25;
}

.loader:after {
    position: absolute;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
    top: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid rgb(var(--primary));
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    z-index: 50;
    content: "";
}

/* Fonts */

.carter-one {
    font-family: "Carter One";
}

/* Mozilla ALert */

.mozilla-info:after {
    content: "Um den vollen Umfang des Spiels zu genießen, empfehlen wir dir einen anderen beliebigen Browser als Firefox zu nutzen.";
    background: black;
    color: rgb(var(--primary));
    display: block;
    padding: 1em;
    border-radius: 6px;
    margin-bottom: 2em;
}

/* Forms */

label {
    cursor: pointer;
    display: block;
    font-weight: 500;
}

label ~ small {
    display: block;
    margin: 10px 0 0;
}

/* Input + Textarea */

input:not(.switch):not([type=range]),
textarea {
    background: rgba(240, 240, 240, .5);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    width: 100%;
    padding: 1em;
    outline: none;
    color: #aaa;
    font-size: 1em;
    transition: 0.2s;
    border: none;
}

input:not(.switch):not([type=range]):hover,
input:not(.switch):not([type=range]):focus {
    background: rgba(230, 230, 230, .5);
    color: black;
}

input[type=range] {
    width: 100%;
    margin: .5em 0
}

/* Checkbox Switch */

input.switch {
    position: relative;
    -webkit-appearance: none;
    outline: none;
    width: 40px;
    height: 10px;
    background: #d9dadc;
    border-radius: 50px;
    transition: 0.2s;
}

input.switch:hover {
    background: #aaa;
}

input.switch:after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    background: white;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

input.switch:checked {
    background: rgb(var(--primary));
}

input.switch:checked:after {
    left: calc(100% - 20px);
    background: white;
}

/* Slider */
input[type=range] {
  height: 25px;
  -webkit-appearance: none;
  background: transparent;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-moz-range-progress {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #d9dadc;
  border-radius: 99px;
  transition: .2s;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #d9dadc;
  border-radius: 99px;
  transition: .2s;
}
input[type=range]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: rgb(var(--primary));
  cursor: pointer;
  -webkit-appearance: none;
    transition: .2s;
  margin-top: -7px;
}
input[type=range]:hover::-webkit-slider-runnable-track {
  background: #aaa;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

@media screen and (prefers-reduced-motion: reduce), (update: slow) {
    * {
        animation: none !important;
    }
}

.notify {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    border-radius: 20px;
    height: 0;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: height 0.2s;
    z-index: 20000;
}

.notifyType:before {
    display: block;
    margin-top: 15px;
    content: "";
}

.active {
    height: 50px;
}

/* Modal */

.modal {
    position: fixed;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 99;
    display: none;
    zoom: 1 !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.modal .modal-header {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
}

.modal .modal-content {
    position: relative;
    background: white;
    width: 600px;
    height: auto;
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    overflow: hidden;
    overflow-y: auto;
    border-radius: 6px;
    padding: 2em;
}

.modal .modal-content span.close {
    position: absolute;
    top: -1em;
    right: -1em;
    color: white;
    font-size: 2em;
}

/* Table */
table {
    width: 100%;
}
table:not(.highscore) tr:last-child td {
    padding: 0;
}
table:not(.highscore) td {
    padding-bottom: 1em;
}

table.highscore {
    width: 100%;
    padding: 1em 0.5em;
}

table.highscore th {
    text-align: left;
    font-weight: 500;
}
table.highscore tr {
    transition: 0.2s;
}
table.highscore tr td {
    vertical-align: middle;
    padding: 0.75em 1em;
}
table.highscore tr td:first-child {
    padding-right: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
table.highscore tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding-left: 0;
}

table.highscore tr:last-child td {
    border-color: transparent;
}

table.highscore tr.clickedRow td {
    background: rgba(0, 0, 0, 0.05);
}

table.highscore td.rank {
    font-size: 1.25em;
    font-weight: 500;
    text-align: center;
}
table.highscore td.rank i {
    position: relative;
    left: -10px;
}

table.highscore td .lives,
table.highscore td .points {
    line-height: 40px;
}

table.highscore td .points .p {
    font-size: 1.6em;
    line-height: 0;
    position: relative;
    top: 3px;
    font-weight: 600;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .container,
    .game-container,
    .cookie-container,
    header *,
    aside {
        zoom: 1 !important;
    }
    [tooltip]:after {
        max-width: 250px;
    }
    .mobile-hide {
        display: none !important;
    }
    table.highscore > components.flex-inline {
        flex-wrap: wrap !important;
    }
    table.highscore {
        font-size: 0.9em;
    }
}
@media only screen and (max-width: 1120px) {
    *:root {
        --wrapper: 90vw;
    }
    .components.timeline .timeline-article:before {
        left: -18.5px !important;
    }
    .container,
    .game-container,
    .cookie-container,
    header *,
    aside {
        zoom: 1.2;
    }
    content {
        padding: 2em 0;
    }
    .components.flex,
    .components.flex-inline {
        flex-wrap: wrap;
        width: 100%;
    }
    .components.flex div {
        min-width: 100%;
    }
    .components.flex-inline button:last-child {
        margin-top: 1em;
    }
    .components.flex-inline.nowrap {
        flex-wrap: nowrap;
    }
    .components.flex-inline.nowrap div {
        min-width: auto;
    }
    .components.flex-inline.nowrap div.w100 {
        min-width: 100% !important;
    }
    .game-container .game-emoji-content {
        padding: 0;
    }
    .game-container .game-emoji-content .emoji {
        width: 80px;
        height: 55px;
        font-size: 3em;
    }
    .game-container .game-answers .answer {
        max-width: calc(100% / 2 - 0.67em);
        width: 100%; 
    }
    footer .navigation {
        background: white;
        backdrop-filter: none;
    }
    .tabs {
        flex-wrap: wrap;
    }
    .tabs li {
        max-width: 50%;
    }
    .modal .modal-content {
        width: 80%;
    }
    .modal .modal-content span.close {
        top: -1em;
        right: 0;
    }
    .flex-table .column {
        flex-wrap: wrap;
    }
    .flex-table .column .row.text-right {
        text-align: left !important;
    }
    .sticky {
        left: 0;
        width: 100vw !important;
    }
}
@media only screen and (min-width: 1121px) {
    .container,
    .game-container,
    .cookie-container,
    header *,
    aside,
    h1 {
        zoom: 1.1;
    }

    .game-container .game-answers .answer.textpuzzle {
        max-width: calc(100% / 3 - .5em) !important;
    }
}
@media only screen and (max-width: 2100px) {
    .container,
    .game-container,
    .cookie-container,
    header *,
    aside,
    h1 {
        zoom: 1.2;
    }

    .game-container .game-answers .answer.textpuzzle {
        max-width: calc(100% / 3 - .5em) !important;
    }
}

@media screen and (prefers-reduced-motion: reduce), (update: slow) {
    .d-none-reduce {
        display:none;
    }
}

.box h3 {
    margin: 1em 0 .5em;
    font-weight: 400;
}

/*

    DARK MODE

*/

.auto-dark-mode {display:none;}
@media (prefers-color-scheme: dark) {
    .auto-dark-mode {
        display:block;
    }
}

/* Steps */
.steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
.steps .step {
    position: relative;
    text-align: center;
    width: 100%;
}
.steps .step:not(:last-child):after {
    content: ' ';
    position: absolute;
    background: black;
    width: 60%; height: 2px;
    border-radius: 99px;
    top: 20px; left: 70%;
}
.steps .step .num {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 99px;
    border: 2px solid black;
    width: 40px; height: 40px;
    text-align: center;
    line-height: 33px;
    font-size: 1.2em;
    margin-bottom: .5em;
}
/* current step */
.steps .step.previous:after {
    background: rgb(var(--primary))
}
.steps .step.prevent .num {
    color: rgb(var(--primary));
    border-color: rgb(var(--primary));
    font-weight: 600;
}
.steps .step.prevent .text {
    font-weight: 600;
    color: rgb(var(--primary))
}
/* Sticky */
.sticky {
    position: sticky; 
    backdrop-filter: blur(5px);
    top: 0; 
    z-index: 99; 
    background: rgba(255, 255, 255, .5);
    width: 100%;
}
/* Credits */
.credits-head {
    background: rgb(var(--primary));
    padding: 1em 1em 2em;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    text-align: center;
    color: black;
}
.row:hover .credits-container a {
    color: black;
}
.credits-container span.bold {
    font-weight: 500;
}
.credits-container span {
    display: block;
    margin: 1em 0;
}
.credits-container small {
    display: block;
     margin: 1em 0;
}   
.credits-head img {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    width: 70px; height: 70px;
    border-radius: 99px;
    background: white;
    padding: .25em;
    border: 2px solid rgb(var(--primary));
}

.credits-container {
    padding: 2em 1em 1em;
    min-height: 300px !important;
}

/* Custom Select */
.select {
    position: relative;
    font-size: .9em;
    width: 100%;
}
.select .select-label {
    display: block;
    background: #f1f0ee;
    border-radius: 6px;
    padding: 1em 1em;
    transition: .2s;
}
.select:hover ul {
    pointer-events: all;
    visibility: visible;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, .05);
    opacity: 100;
}
.select .select-label:hover,
.select:hover .select-label {
    background: #f1f0ee;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    cursor: pointer;
}
.select:hover ul {
    border-top-left-radius: 0;
    border-top-right-radius: 0;   
}
.select:hover .select-label:after {
    content: '\f106';
}
.select .select-label:after {
    position: absolute;
    right: 1em; top: 1.2em;
    font-family: 'Font Awesome 6 Free';
    content: '\f107';
    display: inline-block;
    padding-right: 3px;
    vertical-align: middle;
    font-weight: 900;
}
.select ul {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    overflow: hidden;
    overflow-y: auto;
    width: 100%;
    border-radius: 6px;
    z-index: 99;
    transition: .2s;
    max-height: 250px;
}
.select:hover .select-label.bottom {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.select ul.bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    bottom: 100%;
}
.select ul li {
    display: block;
    padding: .75em 1em;
    background: #f1f0ee;
    transition: .2s;
}
.select ul li.selected { 
    font-weight: 500;
}
.select ul li.selected,
.select ul li:not(.disabled):hover {
    background: #d6d5d1;
    cursor: pointer;
}
.select ul li.disabled {
    color: orange;
    font-weight: 500;
    font-size: .8em;
    padding-left: 1.3em;
}

/* Admin */
.econtainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
    height: auto;
}
.econtainer .emoji {
    flex-shrink: 1;
    flex-grow: 1;
    min-width: calc(100% / 3 - 2em);
    max-width: calc(100% / 3 - 2em)
}
.econtainer .emoji .box {
    background: rgba(0, 0, 0, .1);
    height: 100%;
    text-align: center;
    padding: 1em;
}
.econtainer .emoji .box.selected {
    background: rgb(var(--primary));
    color: black;
}

.econtainer .emoji .box .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.econtainer .emoji .box .inner span,
.econtainer .emoji .box .inner i {
    display: block;
    width: 100%;
}

.econtainer .emoji .box .inner span {
    font-size: .9em
}

content .sidebar {
    max-width: 350px;
    min-width: 350px;
    margin-right: 2em;
}
content .sidebar .list {
    padding: 1em;
}
content .sidebar .remove {
    padding: 1em;
}

div[page] {
    width: 100% !important;
}
.search-form  {
    position: relative;
    display: block;
}
.search-form input {
    padding: 1em 1em 1em 3em !important;
}
.search-form label {
    position: absolute;
    top: 1em;
    left: 1em;
}
.w-100p {
    width: 100%;
}

.input-form {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}
.input-form label {
    font-weight: 600;
    cursor: pointer;
    padding-bottom: .5em !important;
}
.input-form input {
    display: block;
}

@media only screen and (max-width: 600px) {
    .econtainer .emoji {
        min-width: calc(100% / 2 - 2em) !important;
        max-width: calc(100% / 2 - 2em) !important;
    }
}

@media only screen and (max-width: 1320px) {
    content.fluid.y-flex {
        flex-wrap: wrap !important;
    }
    content.fluid.y-flex .sidebar {
        min-width: 100%;
        max-width: 100%;
    }
    content.fluid .components.flex-inline {
        flex-wrap: nowrap !important;
    }
    .sidebar {
        display:none !important
    }
}
.selectedEmojis { 
    width: 100%;
    display: block;
}