.toffify-wrapper {
    width: 100%;
    /*min-height: 100vh;*/
    padding: 20px 0;
}

.toffify-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toffify-preview {
    flex: 1;
    min-width: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.svg-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 512px;
    height: 512px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    overflow: hidden;
}

.toffify-controls {
    flex: 1;
    min-width: 300px;
}

.control-group {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    padding: 0.5rem;
    background: rgb(255, 255, 255, 0.75);
    background-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    gap: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-family: JupiterSans, sans-serif;
    font-size: 1.5rem;
}

.control-group input[type="color"] {
    display: none;
    width: 50px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.control-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.control-group select {
    font-size: 1rem;
}

#mondherrscher-label {
    font-size: 12px;
    color: #777;
    font-style: italic;
}

.hue-slider {
    width: 200px;
    margin: 0 10px;
    accent-color: #0090cd;
}

.control-group span {
    font-family: monospace;
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    display: none;
    min-width: 70px;
}

.color-hints {
    display: none;
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.2;
}

.toffify-error {
    color: #d9534f;
    padding: 20px;
    text-align: center;
    border: 2px solid #d9534f;
    background: #f8d7da;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

@media (min-width: 601px), (max-width: 1139px) {
    .toffify-container {
        gap: 20px;
    }

    .svg-container {
        width: clamp(200px, 100%, 500px);
        height: clamp(200px, 100%, 500px);
        margin: 10px auto;
    }
}

@media (max-width: 600px) {
    .toffify-container {
        flex-direction: column;
        gap: 20px;
    }

    .svg-container {
        width: 200px;
        height: 200px;
        margin: 10px auto;
    }

    .hue-slider {
        width: 150px;
    }

    .control-group button {
        width: 100%;
        margin-bottom: 10px;
    }
}
