:root {
    --color-primary: #1f4e79;
    --color-secondary: #f4f6f8;
    --color-accent-green: rgb(0, 200, 0);
    --color-accent-red: rgba(200, 0, 0, 0.7);
    --color-bg-card: #fff;
    --color-bg-green: rgba(0, 200, 0, 0.15);
    --color-bg-red: rgba(200, 0, 0, 0.15);
    --color-text-main: #333;
    --color-text-muted: #555;
    --color-certain: rgb(0, 160, 0);
    --color-v-likely: rgb(80, 200, 0);
    --color-likely: rgb(200, 180, 0);
    --color-even: rgb(255, 140, 0);
    --color-unlikely: rgb(220, 60, 0);
    --color-v-unlikely: rgb(160, 0, 0);
}

html {
    margin: 20px;
    padding: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-secondary);
    padding: 0;
    color: var(--color-text-main);
    margin: 0;
}

h2 {
    color: var(--color-primary);
    text-align: center;
}

.description {
    margin-bottom: 30px;
    font-style: italic;
    text-align: center;
    color: var(--color-text-muted);
}

#theme-selector {
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    text-align: center;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 10px;
}

#theme-selector label {
    margin-right: 10px;
    font-weight: bold;
}

.controls {
    width: 100%;
    justify-content: center;
    align-items: center;
    display: none;
    text-align: center;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 10px;
}

.controls__item label {
    margin-right: 10px;
    font-weight: bold;
}

.controls__info {
    display: flex;
    margin-top: 10px;
    justify-content: center;
}

.controls__info p {
    font-weight: normal;
    margin: 2px;
}

input[type=number] {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80px;
}

#chartContainer {
    width: 90%;
    height: 500px;
    margin: 0 auto;
    display: block;
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    box-sizing: border-box;
    transform-origin: top center;
}

#cdfChart {
    width: 90%;
    height: 500px;
    display: flex;
    box-sizing: content-box;
}

#chartWrapper { /* parent of container */
    display: block;
    width: 100%;
}
