.alignment-visualization {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alignment-visualization h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

#canvas {
    border: 1px solid #ccc;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    max-width: 100%;

    height: 500px;
}

.controls {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    max-width: 220px;
    box-sizing: border-box;
    height: 500px;
}

.controls label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #555;
}

.controls input[type="range"] {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.controls span {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    color: hsla(240, 57.77%, 49.22%, 1);
    font-weight: bold;
}

.controls .button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.controls button {
    background-color: hsla(240, 57.77%, 49.22%, 1);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    flex: 1;
}

.controls button:hover {
    background-color: #0056b3;
}

input[type=range] {
    accent-color: hsla(240, 57.77%, 49.22%, 1);
}

#animateButton {
    background-color: rgb(255, 129, 169);
}

#animateButton:hover {
    background-color: hsla(341.4084507,100%,86.07843137%,1);
}

@media (max-width: 700px) {
    .container {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 20px;
    }
    #canvas, .controls {
        min-width: 100%;
        max-width: 100%;
        height: auto;
    }
    .controls {
        padding: 15px;
    }
    .controls button {
        font-size: 14px;
        padding: 8px 10px;
    }
}