#dental-chart {
    background-color: #341212;
    border-radius: 0.25rem;
    border: solid 0.0625rem rgba(var(--text-color), var(--opacity-divider));
    margin: 0 auto;
    max-width: 1074px;
    text-align: center;
    padding: 1rem 1.5rem;
    overflow-x: auto;
}

#dental-chart .upper-teeth,
#dental-chart .lower-teeth {
    display: flex;
    position: relative;
    justify-content: center;
    min-width: 51.125rem;
    padding: 0.5rem 0;
}

#dental-chart .upper-teeth:before,
#dental-chart .upper-teeth:after,
#dental-chart .lower-teeth:before,
#dental-chart .lower-teeth:after {
    display: block;
    content: "";
    border: solid 0.0625rem rgba(var(--text-color), var(--opacity-secondary));
    position: absolute;
    width: 22.25rem;
    height: 1rem;
    font-size: 0.625rem;
    line-height: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(var(--text-color), var(--opacity-secondary));
}

#dental-chart .upper-teeth:before {
    top: 0;
    right: calc(50% + 1.25rem);
    border-bottom: none;
    content: "Upper right";
}

#dental-chart .upper-teeth:after {
    top: 0;
    left: calc(50% + 1.25rem);
    border-bottom: none;
    content: "Upper left";
}

#dental-chart .lower-teeth:before {
    bottom: 0;
    right: calc(50% + 1.25rem);
    border-top: none;
    content: "Lower right";
}

#dental-chart .lower-teeth:after {
    bottom: 0;
    left: calc(50% + 1.25rem);
    border-top: none;
    content: "Lower left";
}

#dental-chart .tooth-block {
    display: block;
    position: relative;
    text-decoration: none;
}

#dental-chart .tooth-block .tooth-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 100%;
    margin: 0.5rem auto;
}

#dental-chart .tooth-block:hover .tooth {
    opacity: var(--opacity-hint);
}

#dental-chart .tooth-block:hover .tooth-number {
    background-color: rgba(var(--primary-color), var(--opacity-hint));
}

#dental-chart .tooth-block.active .tooth-number {
    background-color: rgb(var(--primary-color));
}

/* #dental-chart .tooth-block .tooth {
    height: 15rem;
} */

/* #dental-chart .tooth-block .tooth > svg {
    height: 100%;
    width: auto;
} */

#dental-chart .tooth-block .tooth .nerve,
#dental-chart .tooth-block .tooth .screw,
#dental-chart .tooth-block .tooth .filler,
#dental-chart .tooth-block .tooth .drilled,
#dental-chart .tooth-block .tooth .crown,
#dental-chart .tooth-block .tooth.filled .org,
#dental-chart .tooth-block .tooth.root-canal .org,
#dental-chart .tooth-block .tooth.implant .inner,
#dental-chart .tooth-block .tooth.implant .nerve {
    display: none;
}

#dental-chart .tooth-block .tooth.filled .filler,
#dental-chart .tooth-block .tooth.filled .drilled,
#dental-chart .tooth-block .tooth.root-canal .nerve,
#dental-chart .tooth-block .tooth.root-canal .drilled,
#dental-chart .tooth-block .tooth.crown .crown,
#dental-chart .tooth-block .tooth.implant .screw {
    display: inline;
}

#dental-chart .tooth-block .tooth.removed > svg {
    opacity: var(--opacity-divider);
}