* {
    box-sizing: border-box;
}

:root {
    --color-background: #d9b6df;
    --color-link: #083e66;
    --color-link-border: #be46c6;
    --color-text: #82105a;
    --bubble-color-background: #e6d2e9;
    --footer-height: 4rem;
    --footer-color-background: rgba(255, 255, 255, 0.5);
    --content-height: calc(100vh - var(--footer-height));
    --content-half-height: calc(var(--content-height) / 2);
}

html {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text);
    margin: 0 auto;
    padding: 0;
}

a {
    border-bottom: 2px solid var(--color-link-border);
    color: var(--color-link);
    display: inline-block;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

a:hover {
    border-bottom: 2px dotted var(--color-link-border);
}

body {
    align-items: center;
    display: flex;
    margin: 0 auto;
}

h1 {
    font-size: 1.75rem;
}

.c-content {
    display: flex;
    flex-direction: column;
    height: var(--content-height);
    width: 100%; 
}

.c-content__above-optimal {
    border-bottom: 3px solid var(--color-link-border);
    height: var(--content-half-height);
    position: relative;
}

.c-content__above-optimal::after {
    bottom: -1.25rem;
    content: 'optimal level';
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    right: 0.25rem;
    text-transform: uppercase;
}

.c-content__below-optimal {
    height: var(--content-half-height);
}

.c-scenario {
    background: none;
    align-items: center;
    background-color: var(--bubble-color-background);
    border: 1px dashed var(--color-link-border);
    border-radius: 50%;
    display: flex;
    color: var(--color-text);
    font-family: inherit;
    font-size: 8px;
    height: 80px;
    line-height: inherit;
    margin: 0;
    padding: 0.75rem;
    position: absolute;
    text-align: left;
    transition: scale 0.3s ease;
    width: 80px;
}

.c-scenario__inner {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.c-scenario:hover,
.c-scenario:focus {
    border-radius: 12px;
    height: auto;
    min-height: 85px;
    padding: 1rem;
    scale: 1.3;
    transform-origin: center center;
    width: 140px;
    z-index: 1;
}

.c-scenario:hover .c-scenario__inner,
.c-scenario:focus .c-scenario__inner {
    display: block;
}

.c-scenario.c-scenario--1 {
    left: 1%;
    top: 30%;
}

.c-scenario.c-scenario--2 {
    left: 50%;
    top: 51%;
}

.c-scenario.c-scenario--3 {
    bottom: 3%;
    right: 3%;
}

.c-scenario.c-scenario--4 {
    bottom: 11%;
    right: 15%;
}

.c-scenario.c-scenario--5 {
    top: 3%;
    left: 20%;
}

.c-scenario.c-scenario--6 {
    top: 55%;
    left: 40%;
}

.c-scenario.c-scenario--7 {
    top: 25%;
    left: 60%;
}

.c-scenario.c-scenario--8 {
    top: 27%;
    right: 17%;
}

.c-scenario.c-scenario--9 {
    bottom: 4%;
    right: 26%;
}

.c-scenario.c-scenario--10 {
    top: 7%;
    right: 32%;
}

.c-scenario.c-scenario--11 {
    top: 34%;
    left: 25%;
}

.c-scenario.c-scenario--12 {
    bottom: 26%;
    left: 28%;
}

.c-scenario.c-scenario--13 {
    bottom: 3%;
    left: 25%;
}

.c-scenario.c-scenario--14 {
    top: 37%;
    right: 19%;
}

.c-scenario.c-scenario--15 {
    top: 1%;
    left: 36%;
}

.c-scenario.c-scenario--16 {
    bottom: 14%;
    left: 13%;
}

.c-scenario.c-scenario--17 {
    top: 14%;
    left: 17%;
}

.c-scenario.c-scenario--18 {
    top: 2%;
    right: 17%;
}

.c-scenario.c-scenario--19 {
    top: 34%;
    right: 37%;
}

.c-scenario.c-scenario--20 {
    top: 7%;
    right: 4%;
}

.c-footer {
    align-items: center;
    background-color: var(--footer-color-background);
    display: flex;
    font-size: 0.85rem;
    height: var(--footer-height);
    inset: auto 0 0 0;
    justify-content: center;
    padding: 1rem 1.5rem 1rem;
    position: fixed;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bubble-color-background: #1e152a;
        --color-background: #211930;
        --color-link: #dd64b3;
        --color-link-border: #7053a6;
        --color-text: #aeb7fe;
        --footer-color-background: rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 480px) {
    :root {
        --footer-height: 3rem;
    }
}

@media (min-width: 560px) {
    .c-scenario {
        font-size: 12px;
        height: 100px;
        padding: 1.25rem;
        width: 100px;
    }
}

@media (min-width: 820px) {
    .c-scenario {
        height: 120px;
        padding: 1.5rem;
        width: 120px;
    }
}