.hauptcontainer {
    display: flex;
    width: 100%;
    background-color: transparent;
}

.wheel-container {
    flex: 7;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.input-container {
    flex: 3;
    align-self: flex-start;
    height: auto;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.switch-label {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 10px;
    color: #888;
    transition: color 0.3s;
}

.switch-label.active {
    color: #007bff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pechrad .switch-label.active {
    color: #ff0000;
}

.pechrad .slider {
    background-color: #ff4444; 
}

.pechrad .slider:before {
    background-color: #550000; 
}

.wheel {
    position: relative;
}

/*canvas {
    border-radius: 50%;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    margin: 20px;
    width: 600px; 
    height: 600px; 
    max-width: 100%; 
    max-height: 100%; 
}*/

canvas {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1; /* Hält es immer quadratisch */
}


.textarea-wrapper {
    position: relative;
    width: 100%;
}

.textarea-placeholder {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    color: #888;
    font-style: italic;
    pointer-events: none;
}

textarea {
    width: 100%;
    height: 200px;
    font-size: 1em;
    padding: 30px 10px 10px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    resize: vertical;
}

.winner-output {
    margin-top: 20px;
    width: 100%;
    height: 200px;
    padding: 10px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    max-height: 200px;
    overflow-y: auto;
    position: relative;
}

.winner-output .textarea-placeholder {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    color: #888;
    font-style: italic;
    pointer-events: none; 
    z-index: 1; 
}

.winner-output .winner-text {
    width: 100%;
    height: 100%;
    font-size: 16px;
    padding: 20px 0px 10px;
    border: none;
    background: transparent;
    resize: none;
    box-sizing: border-box;
    z-index: 0; 
    color: #333;
    outline: none;
}

.center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1abbd7, #007bff);
    font-size: 1.2em;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    cursor: pointer;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    text-align: center;
}

.pechrad .center-button {
    background: linear-gradient(135deg, #ff4444, #000000);
}

.center-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0056d2, #003a91);
}

/*@media (max-width: 768px) {
    .hauptcontainer {
        flex-direction: column;
    }

    .wheel-container, .input-container {
        flex: none; 
        width: 100%;
    }

    canvas {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}*/
@media (max-width: 768px) {
    .hauptcontainer {
        flex-direction: column;
        align-items: center; /* Zentriert beide Container */
    }

    .wheel-container {
        justify-content: center;
        display: flex;
        width: 100%;
    }

    canvas {
        aspect-ratio: 1 / 1;
        max-width: 100%;
        height: auto;
    }
    .input-container {
        margin-top: 20px; /* Abstand zwischen Rad und Eingabefeld */
        width: 100%; /* Volle Breite auf mobilen Geräten */
    }
}
