body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    /* background-image: linear-gradient(137deg, #050565, #1818e5); */
    background-image: linear-gradient(137deg, #757575, #eaeaea);

    -webkit-user-select: none;  /* Chrome, Safari and Opera */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    user-select: none;          /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */

}

h1::first-letter {
    text-transform: capitalize;
}
a {
    color: wheat;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
#wrapper {
    height: 100%;
    width: 100%;
    /*margin: 5% auto;*/
    /*overflow: hidden;
    border-radius: 2% 3% 5% 6% / 2% 3% 5% 6%;
    box-shadow: 0 0 2px 3px rgba(0, 0, 0, 0.15);*/
}
.claim {
    font-size: 1.5rem;
    margin-bottom: 1em;
}

#overlay {
    position: fixed;
    /*top: 100%;*/
    /*left: 0;*/
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    z-index: -1;
    opacity: 0.0;
    transition: background 1ms ease-in, top 1.35s ease-out, opacity 0.55s linear;
}
.fade-top {
    top: 100%;
    left: 0;
}
.fade-bottom {
    top: -100%;
    left: 0;
}
.fade-right {
    top: 0;
    left: 100%;
}
.fade-left {
    top: 0;
    left: -100%;
}
.dir-fade-in {
    top: 0;
    left: 0;
}
@keyframes schiffWackeln {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    10% {
        transform: translate(-2px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(2px, -4px) rotate(1deg);
    }
    30% {
        transform: translate(-4px, -6px) rotate(-2deg);
    }
    40% {
        transform: translate(4px, -6px) rotate(2deg);
    }
    50% {
        transform: translate(-5px, -8px) rotate(-3deg);
    }
    60% {
        transform: translate(4px, -6px) rotate(2deg);
    }
    70% {
        transform: translate(-4px, -6px) rotate(-2deg);
    }
    80% {
        transform: translate(2px, -4px) rotate(1deg);
    }
    90% {
        transform: translate(-2px, -2px) rotate(-1deg);
    }
}

.wackelndesSchiff {
    animation: schiffWackeln 3.7s ease-in-out forwards;
}



.fade-in {
    top: 0 !important;
    left: 0 !important;
    opacity: 1.0 !important;
}




.card-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    height: 88%;
    width: 90%;
    margin: 5% auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s, all 0.35s ease-in-out;
    transform-origin: center center; /* Zentriert die Transformation */
}
.card.is-flipped {
    height: 100%;
    margin: unset;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    border-radius: 2% 3% 5% 6% / 2% 3% 5% 6%;
    box-shadow: 0 0 2px 3px rgba(0, 0, 0, 0.15);
}

.card-front {
    background-color: #050565;
    background-image: none;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(-24px);
}

.card-back {
    background-color: #eee;
    transform: rotateY(180deg) translateY(-24px);
    border-radius: 2% 3% 5% 6% / 2% 3% 5% 6%;
    box-shadow: unset;
}





:root {
    --tilt-angle: 10deg;
    --translation: 7px;
}

@keyframes eight-dance {
    0%, 100% { transform: rotate3d(1, 0, 0, 0deg) translate3d(0, 0, 0); }
    25% { transform: rotate3d(1, 0, 0, var(--tilt-angle)) translate3d(var(--translation), 0, 0); }
    50% { transform: rotate3d(0, 1, 0, var(--tilt-angle)) translate3d(0, var(--translation), 0);}
    75% { transform: rotate3d(-1, 0, 0, var(--tilt-angle)) translate3d(calc(-1 * var(--translation)), 0, 0);}
}

.card.is-dancing {
    animation: eight-dance 5s infinite linear;
    transform-style: preserve-3d;
}






.card {
    transform-style: preserve-3d;
    position: relative;
}
.card.isTouch {
    transition: transform 40ms linear;
}

.flip-horizontal {
    transform: rotateY(180deg) !important;
}

.flip-vertical {
    transform: rotateX(180deg) !important;
}
.flip-vertical .card-back {
    transform: rotateY(180deg) translateY(24px);
}

/* Rückdrehung zur Originalansicht */
.flip-horizontal-back {
    transform: rotateY(360deg);
}

.flip-vertical-back {
    transform: rotateX(360deg);
}




#wrapper h1 {
    font-size: clamp(2rem, 12vw, 4rem);

    margin-bottom: 0;
    font-family: "Courier New", sans-serif;
    font-weight: 900;
    /*letter-spacing: 0.25em;*/
}
#wrapper p {
    font-size: 1.5rem;
    margin-top: 0;
}
#wrapper p a {
    color: white;
}

.card-front {
    /*transform-style: preserve-3d;
    transform: translateZ(0px);*/
}
#CTA {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1.0;
    visibility: visible;
    transition: display 0.05s linear, visibility 0.05s linear, opacity 0.25s ease-in-out, transform 0.35s linear;
    user-select: none;
}
.card.flipped-vertical #CTA,
.card.flipped-horizontal #CTA {
    visibility: hidden;
}

#credit {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: -1;
    padding: 0.2em 0.5em 0.3em 0.5em;
    color: #e5d7d7;
    background-color: rgba(0, 0, 0, 0.45);
    font-size: xx-small;
    opacity: 0.55;
    transition: opacity 0.35s ease-in-out;
}
#credit:hover {
    opacity: 1.0;
}

.inner {
    font-size: 1.25rem;
    text-align: center;
    margin: -1em auto 0 auto;
    padding: 10vh 1em 15vh 1em;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10% 15% 25% 30% / 10% 15% 25% 30%;
    background-image: url("logo-Sample.limited.svg");
    background-size: 90% auto;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.35s ease-in-out;
}
@media screen and (orientation: landscape) {
    .inner {
        padding: 20vh 1em 25vh 1em;
    }
}

@keyframes animate-border-radius-opacity {
    0%, 100% { border-radius: 10% 10% 10% 10% / 10% 10% 10% 10%; opacity: 0.15; }
    10%, 90% { border-radius: 30% 30% 60% 30% / 10% 30% 70% 10%; opacity: 0.35; }
    20%, 80% { border-radius: 40% 60% 40% 60% / 80% 60% 40% 80%; opacity: 0.5;  }
    30%, 70% { border-radius: 60% 40% 50% 50% / 70% 50% 70% 50%; opacity: 0.75; }
    40%, 60% { border-radius: 80% 80% 80% 80% / 90% 90% 90% 90%; opacity: 0.9;  }
    50% { border-radius: 100% 100% 100% 100% / 100% 100% 100% 100%; opacity: 1;   }
}
@keyframes pulse {
    0% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.175); }
    40% { transform: scale(1); }
    50% { transform: scale(1.10); }
    60%, 100% { transform: scale(1); }
}
@keyframes pulseBackground {
    0% { background-size: 87% auto; }
    10% { background-size: 137% auto; }
    20% { background-size: 90% auto; }
    30% { background-size: 100% auto; }
    40% { background-size: 90% auto; }
    50% { background-size: 95% auto; }
    60%, 100% { background-size: 90% auto; }
}

.inner {
    animation: pulseBackground 5.55s ease-in-out 2.5s infinite,
    animate-border-radius-opacity 25s ease-in-out infinite;
}
#logo {
    display: block;
    position: fixed;
    z-index: 100;
    top: 0.25em;
    left: 0.25em;
    width: 160px;
    height: 120px;
    background-image: url("logo-Sample.limited_black_shadow.svg");
    background-size: 100% auto;
    background-position: top left;
    background-repeat: no-repeat;
}
#speakToggle {
    cursor: pointer;
    display: block;
    position: fixed;
    bottom: 0.25em;
    left: 0.25em;
    font-size: clamp(1.5rem, 10vw, 3.5rem);
    opacity: 0.35;
    transition: all 0.25s ease-in-out;
}
#speakToggle:hover {
    opacity: 1.0;
}

.smiley {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: clamp(12rem, 16vw, 7rem) !important;
    margin-top: 0;
    transition: all 0.35s ease-in-out;
    text-align: center;
    user-select: none;
}
.smiley > span {
    display: block;
    vertical-align: middle;
    cursor: pointer;
}

.smiley .emoji-icon {
    position: relative;
    transform: rotateY(180deg) !important;
    transition: transform 0.35s ease-in-out;
    display: block;
}
.smiley .emoji-icon::before {
    content: '';
    display: block;
}
.smiley .emoji-text {
    display: none;
    min-height: 1.5em;
    text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.25);
    font-size: 2.5rem;
    max-width: 100%;
    position: relative;
    visibility: visible;
    letter-spacing: -1px;
    white-space: normal;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transform: rotateY(180deg);
    user-select: text;

}

@keyframes emojiAnimation {
    0% { content: '😀'; }
    10% { content: '😃'; }
    20% { content: '😄'; }
    30% { content: '😁'; }
    40% { content: '😆'; }
    50% { content: '😅'; }
    60% { content: '😂'; }
    70% { content: '🤣'; }
    80% { content: '😊'; }
    90% { content: '😇'; }
    100% { content: '🙂'; }
}
@keyframes emojiAnimation2 {
    0% { content: '0️⃣'; }
    10% { content: '1️⃣'; }
    20% { content: '2️⃣'; }
    30% { content: '3️⃣'; }
    40% { content: '4️⃣'; }
    60% { content: '5️⃣'; }
    70% { content: '6️⃣'; }
    80% { content: '7️⃣'; }
    85% { content: '8️⃣'; }
    90% { content: '9️⃣'; }
    95% { content: '🔟'; }
    100% { content: '🔟'; }
}
@keyframes emojiAnimation3 {
    0% { content: '0️⃣'; opacity:1.0; transform:scale(0.25); }
    2% { content: '1️⃣'; opacity: 0.5; transform:scale(0.5); }
    20% { content: '2️⃣';  opacity: 0.5; transform:scale(0.6); }
    35% { content: '3️⃣'; opacity: 0.5; transform:scale(0.7); }
    50% { content: '4️⃣'; opacity: 0.6; transform:scale(0.8); }
    58% { content: '5️⃣'; opacity: 0.6; transform:scale(0.9); }
    68% { content: '6️⃣'; opacity: 0.7; transform:scale(1.25); }
    77% { content: '7️⃣'; opacity: 0.7; transform:scale(1.75); }
    87% { content: '8️⃣'; opacity: 0.8; transform:scale(1.5); }
    94% { content: '9️⃣'; opacity: 0.9; transform:scale(1.25); }
    98% { content: '🔟'; opacity: 1.0; transform:scale(1.0); }
    100% { content: '🔟'; opacity: 1.0; transform:scale(1.0); }
}


.smiley.animation .emoji-icon::before {
    animation: emojiAnimation3 999ms infinite;
}
.smiley.animation .emoji-text::before {
    content: '';
}

.smiley:hover .emoji-icon {
    transform: rotateY(180deg);
}
.smiley-flip-horizontal,
.smiley-flip-horizontal-back {
    transform: rotateY(180deg);
}
/*.smiley-flip-horizontal .before,
.smiley-flip-horizontal-back .before {
    transform: translateY(-50%);
}*/

.smiley-flip-vertical, .smiley-flip-vertical-back {
    transform: rotateX(180deg);
}
/*.smiley-flip-vertical:before,
.smiley-flip-vertical-back:before {
    transform: translateY(-50%);
}*/

#languages {
    position: absolute;
    z-index:999;
    bottom: 0.5em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.0rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 0.5em;
    padding: 0.1em 0.2em;
    opacity: 0.25;
    transition: opacity 0.35s ease-in-out;
    user-select: none;
}
#languages:hover {
    opacity: 1.0;
}
#languages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#languages li {
    display: inline;
    margin: 0 0;
}
#languages li.active {
    background-color: rgba(255, 255, 255, 0.5);
}
#languages a {
    color: white;
    text-decoration: none;
    padding: 0 0.175em;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    font-size: clamp(18px, 8vw, 1.2em);
}
#languages a:hover {
    text-decoration: underline;
}

#counter {
    position: absolute;
    bottom: 0.75em;
    right: 0.75em;
    font-size: 0.7rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 0.5em;
    padding: 0.25em 0.5em;
    opacity: 0.25;
    transition: opacity 0.35s ease-in-out;
}
#counter:hover {
    opacity: 1.0;
}