.odontogram {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.jaw {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.quadrant {
    display: flex;
}

.tooth {
    width: 40px;
    height: 60px;
    margin: 0 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tooth-number {
    font-size: 10px;
    margin-bottom: 2px;
}

.tooth-graphic {
    width: 100%;
    height: 40px;
    border: 1px solid #000;
    display: flex;
    flex-wrap: wrap;
}

.tooth-surface {
    width: 33.33%;
    height: 33.33%;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.lower-jaw .tooth-graphic {
    flex-direction: column-reverse;
}

.tooth-surface.caries {
    background-color: red;
}

.tooth-surface.restoration {
    background-color: blue;
}

.tooth-surface.extraction {
    background-color: black;
}

.tooth-surface.crown {
    background-color: gold;
}

.tooth-surface.bridge {
    background-color: purple;
}

.treatment-selector {
    margin-bottom: 20px;
}

.treatment-option {
    margin-right: 10px;
}

.treatment-legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #000;
}