:root {
    font-family: 'Inter', 'Avenir', system-ui, -apple-system, Helvetica, Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #fdfdfd;
    color: #232323;
}

main {
    padding: 20px;
}

.header,
.introduction,
.conclusion {
    width: 100%;
    max-width: 650px;
    margin: 30px auto;
    padding: 0px auto;
}

.visualization {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    padding: 0px auto;
}

.header span {
    display: block;
    text-align: center;
}

.introduction span {
    font-size: 1.1em;
    display: block;
    text-align: center;
    font-style: italic;
}

h1 {
    font-size: 3em;
    margin-top: 40px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

h2 {
    font-size: 1.4em;
    margin: 40px;
    font-weight: bold;
    text-align: center;
}

h3 {
    font-size: 1em;
}

.introduction p {
    margin-bottom: 30px;
    font-size: 1.25em;
    line-height: 1.5em;
}

.conclusion p {
    margin-bottom: 30px;
    font-size: 0.9em;
    line-height: 1.5em;
}

.conclusion li {
    margin-bottom: 30px;
    font-size: 0.9em;
    line-height: 1.5em;
}

.back {
    text-decoration: none;
    font-size: 16px;
    color: #161618;
    text-align: center;
}

.external {
    color: #161618;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
}

.external:hover {
    text-decoration: none;
}

.tooltip {
    position: absolute;
    text-align: left;
    padding: 10px 16px;
    color: #fcfcfc;
    font-size: 12px;
    background: #2e2e2e;
    box-shadow: rgba(0, 0, 0, 0.15) 2px 3px 8px;
    border: 0px;
    border-radius: 4px;
    pointer-events: none;
}


.line {
    fill: none;
    stroke: #fe5f55;
    stroke-width: 2.5px;
    pointer-events: none;
}

.line2 {
    fill: none;
    stroke: #005f55;
    stroke-width: 2.5px;
    pointer-events: none;
}

.hover-circle {
    fill: white;
    stroke: #fe5f55;
    stroke-width: 2px;
    pointer-events: none;
}

.axis-y text,
.axis-x text {
    font-size: 12px;
}

.grid line {
    stroke: lightgrey;
    stroke-opacity: 0.7;
}

.grid path {
    stroke: lightgrey;
    stroke-opacity: 0.7;
}

.grid .domain {
    display: none;
}

.axis-y .domain,
.axis-y .tick line {
    display: none;
}

.axis-y text {
    text-anchor: start;
}

.axis-x .domain,
.axis-x .tick line {
    display: none;
}

.grid line.first-line {
    stroke-width: 1px;
    stroke: black;
    stroke-opacity: 1;
}

/* GS */
footer {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

footer p {
    font-size: 0.79rem;
    margin: 10px;
}



/* Media queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 0.9em;
    }

    p {
        font-size: 1em;
    }

    .header span {
        font-size: 1em;
    }

    .introduction span {
        font-size: 1em;
    }

    .introduction p {
        font-size: 1em;
    }

    .conclusion p,
    .conclusion li {
        font-size: 0.8em;
    }

    .back {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    h3 {
        font-size: 0.8em;
    }

    p {
        font-size: 0.9em;
    }

    .header span {
        font-size: 0.9em;
    }

    .introduction span {
        font-size: 0.9em;
    }

    .introduction p {
        font-size: 0.9em;
    }

    .conclusion p,
    .conclusion li {
        font-size: 0.7em;
    }

    .back {
        font-size: 12px;
    }
}