body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #663573, #225668 );
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: linear-gradient(45deg, #663573, #225668, #6643a7);
    background-size: 300% 300%;
    animation: gradientAnimation 20s infinite;
}
h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #e3ecf6;
  }
  h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #dfebee;
  }
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#otherPageBtn {
    top: 8%;
    left: 50%;
    padding: 11px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(183, 135, 93, 0.01);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-top: 2%;
  }
  #otherPageBtn:hover {
    background-color: #d79a48;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  #otherPageBtn:active {
    background-color: #d79a48;
    transform: scale(1);
  }
input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    font-size: 1rem;
    border: 2px solid #dddddd;
    border-radius: 5px;
    margin-bottom: 15px;
    margin-top: 5%;
    text-align: center;
}
button {
    padding: 10px;
    margin: 5px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
button:hover {
    background: rgb(112, 76, 124);
    transform: scale(1.1);
}
.mischenbutton, .nobutton, .yesbutton, .neustartbutton, .beendenbutton, .überspringenbutton, .startbutton, .closeChallengebutton {
    background: rgb(129, 92, 139);
    color: white;
}
#question-text {
    transition: opacity 0.3s ease-in-out;
    font-size: 1.5rem;
    margin-top: 5%;
    margin-bottom: 10%;
    text-align: center;
}
#player-avatar {
    width: 100%;
    max-width: 150px;
    padding: 8px;
    font-size: 0.8rem;
    border: 2px solid #dddddd;
    border-radius: 5px;
    margin-bottom: 15px;
    margin-top: 5%;
    text-align: center;
}
.hidden {
    display: none;
}
#start-screen, #game-screen, #result-modal {
    max-width: 600px;
    margin: auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    animation: fadeIn 0.5s ease-in-out;
    margin-top: 3%;
    margin-bottom: 5%;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
#challenge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}
#challenge-modal.show {
    opacity: 1;
    visibility: visible;
}
#challenge-content {
    background: linear-gradient(to right, #663573, #225668);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.5s ease-in-out;
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
#streak-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: gold;
    padding: 20px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#streak-animation.show {
    opacity: 1;
    visibility: visible;
    animation: shake 0.5s ease-in-out;
}

/* Kleine Wackel-Animation */
@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-48%, -50%) rotate(-5deg); }
    50% { transform: translate(-50%, -50%) rotate(5deg); }
    75% { transform: translate(-52%, -50%) rotate(-5deg); }
}

#joker-count {
    font-size: 18px;
    margin-bottom: 10px;
}

#story-time-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#story-time-modal.show {
    opacity: 1;
    visibility: visible;
}

#story-time-content {
    background: linear-gradient(to right, #663573, #225668 );
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.5s ease-in-out;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#player-info {
    position: absolute;
    top: 10px;
    left: 5%;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Teilen-Modal */
#share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#share-modal.show {
    opacity: 1;
    visibility: visible;
}

#share-content {
    background: linear-gradient(to right, #663573, #225668);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.5s ease-in-out;
}

#share-content button {
    display: block;
    margin: 10px auto;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Animation */
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#end-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#end-modal.show {
    opacity: 1;
    visibility: visible;
}

#end-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.5s ease-in-out;
}

#stats-container {
    margin: 20px 0;
    text-align: left;
}

/* Animation */
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    button {
        font-size: 16px;
    }
}
/* Allgemeine Anpassungen für kleine Bildschirme */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    #start-screen, #game-area {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    ul {
        padding-left: 20px;
    }

    #player-name, #player-avatar {
        width: 90%;
        font-size: 16px;
    }

    #start-game-btn {
        width: 90%;
        font-size: 16px;
        padding: 12px;
    }

    #challenge-content, #story-time-content {
        width: 90%;
        padding: 15px;
    }

    #streak-animation {
        font-size: 20px;
        padding: 15px;
    }
}

/* Für sehr kleine Geräte im Hochformat (z. B. iPhone SE) */
@media (max-width: 400px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    #start-game-btn {
        font-size: 14px;
        padding: 10px;
    }

    #streak-animation {
        font-size: 18px;
    }
}