/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    margin: 0;
    padding: 0;
}

header {
    background: #1a237e;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 3px solid #3949ab;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    margin-top: 0.5rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

#controls {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.control-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1a237e;
}

.slider {
    width: 100%;
    transition: background 0.3s ease-in-out;
}

#transition-probability-value {
    font-weight: bold;
    color: #3949ab;
    margin-left: 0.5rem;
}

.control-button,
.model-select {
    display: inline-block;
    background: #3949ab;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover,
.model-select:hover {
    background: #303f9f;
}

select.model-select {
    width: 100%;
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#visualization-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 800px;
    height: 600px;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: white; /* Ensure canvas is not blank */
}

footer {
    text-align: center;
    background: #1a237e;
    color: #fff;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 3px solid #3949ab;
}

footer p {
    font-size: 0.9rem;
}