/* Allgemeine Schriftart */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-image: url('hintergrund.jpg');
    background-size: cover;
}

/* Glücksrad-Wrapper */
#wheel-wrapper {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vh;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#wheel {
    width: 100%;
    height: 100%;
}

/* Dreh-Animation für das Rad */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(3000deg); /* 8,3 Umdrehungen für sanftes Abbremsen */
    }
}

.spin {
    animation: spin 3s ease-in-out forwards;
}

/* Button zum Starten der Drehung */
#spin-button {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    font-size: 2em;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #A8E063, #56AB2F);
    border: none;
    border-radius: 35px;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

#spin-button:hover {
    background-color: #5eaf48;
}

/* Frage Panel */
#question-panel {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 60vw;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 1s ease-in-out;
}

#question-panel.slide-in {
    transform: translateX(0);
}

#quiz-question {
    font-size: 1.5em;
    font-weight: bold;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 20px;
    width: 80%;
}

/* Antwortoptionen mit Buchstaben-Kreisen */
.answer-option {
    display: flex;
    align-items: center;
    border: 2px solid #1A1A1A;
    border-radius: 35px;
   
    margin: 10px 0;
    cursor: pointer;
    min-width: 250px;
    transition: background-color 0.3s ease;
}

.answer-option:hover {
    background-color: #f0f0f0;
}

.option-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8E063, #56AB2F);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-text {
    font-size: 1.2em;
    color: #1A1A1A;
    padding-right: 15px;
}

/* Schwarze "Fast richtig" Karte */
#try-again-panel, #final-message {
    position: absolute;
    top: 30%;
    right: 5%;
    padding-top: 10vh!important;
    height: 45vh;
    background-color: #0A1A44;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 50%;
    text-align: center;
    z-index: 10;
    display: none;
}

#try-again-panel.active, #final-message.active {
    display: block;
}

#try-again-panel .message, #final-message #message-text {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

#try-again-button, #end-button {
    background-color: #fff;
    color: #0A1A44;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 50px;
}

/* Abbrechen-Link */
#cancel-link {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #1A1A1A;
    text-decoration: underline;
    cursor: pointer;
}

/* Ballons */
#balloons {
    position: fixed;
    bottom: 0;
    width: 60%;
    right: 0; 
    height: 100vh;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 999; /* Höchster Z-Index, damit Ballons im Vordergrund sind */
}

.balloon {
    width: 170px; /* Grundgröße, wird über JavaScript leicht skaliert */
    animation: rise 5s linear forwards;
    opacity: 0.95; /* Leicht transparent */
    height: 280px;
    transform: translateY(100vh);
}

@keyframes rise {
    0% {
        transform: translateY(100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0.9;
    }
}

.chosen-answer-label {
    font-size: 2em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #A8E063, #56AB2F); /* Zum Beispiel grün-gelber Verlauf */
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: calc(-10vh - 45px) auto 50px auto;
}

.refs {
    position: absolute;
    bottom: 5vh; 
    left: 5vw;
    width: 30vw;
}

.refs img {
    width: 100%;
}

.logo {
    position: absolute;
    right: 5vw; 
    bottom: 5vh;
    width: 10vw;
}

.produodopa {
    position: absolute;
    left: 5vw; 
    top: 5vh;
    width: 20vw;
}

.produodopa img{
    width: 100%;
}

.logo img {
    width: 100%;
}
