* {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, .title {
    font-family: 'DM Serif Display', serif;
    text-align: center;
}

.title {
    font-size: 25px;
}

h1 sup {
    font-family: 'DM Serif Display', serif;
}

#olympic_rings_svg {
    padding-top: 50px;
    height: 400px;
    padding-bottom: 50px;
}

#article_title {
    padding-bottom: 20px;
    font-size: 25px;
    width: 80%;
    margin: auto;
}

#title_text {
    text-align: justify;
    font-size: 22px;
    padding-left: 50px;
    padding-right: 50px;
    overflow: hidden;
    width: 80%;
    margin: auto;
}

.title_content_container {
    text-align: center;
}

.medals_vs_gdp_container {
    text-align: center;
}

#visualisation_text_1 {
    width: 60%;
    margin: auto;
}

#visualisation_text_1, #visualisation_text_2, #visualisation_text_3, #conclusion {
    text-align: justify;
    font-size: 20px;
    padding-left: 100px;
    padding-right: 100px;
}

.medals_gdp .map_el {
    width: 50%;
}

.medals_gdp {
    display: flex;
    flex-direction: row;
}

.map_el {
    display: flex;
    flex-direction: column;
}

.map_el h3 {
    align-self: center;
}

#slider {
    width: 35%;
    margin-left: 50%;
    margin-top: 20px;
    transform: translateX(-50%);
}

#slider_2 {
    width: 50%;
}

.slider h2 {
    text-align: center;
}

#sliderLabels {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    width: 35%;
    margin: 0 auto;
}

#sliderLabels_2 {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    width: 50%;
    margin: 0 auto;
}

#sliderLabels span {
    position: relative;
    flex: 0 1 auto;
}

#sliderLabels_2 span {
    position: relative;
    flex: 0 1 auto;
}


.checkbox_slider_container {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

#toggle_olympics img {
    width: 40px;
    height: 40px;
}

#toggle_olympics #winter_olympics_svg {
    width: 35px;
    height: 35px;
}

#toggle_olympics {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
    visibility: hidden;
}

.toggle-visible {
    visibility: visible !important
}

#toggle_olympics > * {
    margin-left: 10px;
}

#toggle_olympics input {
    display: none;
}

.toggle-disabled {
    pointer-events: none;
    opacity: 0.5;
}

#sun {
    width: 100px;
    height: 100px;
    background-color: rgb(253, 184, 19);
    border-radius: 50%;
    position: fixed;
    bottom: -100px;
    right: 100px;
    animation: sunRise 3s ease forwards, radiate 3s infinite;
    display: none;
    z-index: -1;
}

#snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    z-index: -1;
}

.snowflake {
    position: fixed;
    background-image: url("../images/snowflake-blue-svgrepo-com.svg");
    background-size: contain;
    background-repeat: no-repeat;
    will-change: top, opacity;
    z-index: -1;
}

@keyframes fall {
    0% { top: -100px; opacity: 1;}
    100% { top: 100vh; opacity: 0.8; }
}

@keyframes radiate {
    0% { box-shadow: 0 0 0 0 rgba(253, 184, 19, 0.7),
                    /*0 0 0 15px rgba(253, 184, 19, 0.6),*/
                    0 0 0 30px rgba(253, 184, 19, 0.5),
                    /*0 0 0 45px rgba(253, 184, 19, 0.4),*/
                    0 0 0 60px rgba(253, 184, 19, 0.3),
                    /*0 0 0 75px rgba(253, 184, 19, 0.2),*/
                    0 0 0 90px rgba(253, 184, 19, 0.1); }
    100% { box-shadow: 0 0 10px 10px rgba(253, 184, 19, 0.7),
                    /*0 0 15px 30px rgba(253, 184, 19, 0.6),*/
                    0 0 30px 60px rgba(253, 184, 19, 0.5),
                    /*0 0 45px 90px rgba(253, 184, 19, 0.4),*/
                    0 0 60px 120px rgba(253, 184, 19, 0.3),
                    /*0 0 75px 150px rgba(253, 184, 19, 0.2),*/
                    0 0 90px 180px rgba(253, 184, 19, 0.1); }
}

@keyframes sunRise {
    0% { bottom: -100px; }
    100% { bottom: 80vh;}
}

.checkbox_slider {
    background-color: #2196F3;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.checkbox_slider::before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .checkbox_slider {
    background-color: #ff3b11;
}

input:checked + .checkbox_slider:before {
  transform: translateX(26px);
}

.checkbox_slider.round {
    border-radius: 34px;
}

.checkbox_slider.round:before {
    border-radius: 50%;
}

.scatterplot_content-container {
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.scatterplot {
    flex: none;
}

.scatterplot-text {
    flex: 1;
    max-width: 400px;
    font-size: 25px;
    text-align: justify;
}

.scatterplot-text p {
    margin: 0;
}

.scatterplot-legend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.scatterplot-legend-point {
    height: 15px;
    width: 15px;
    padding: 5px;
    border-radius: 50%;
    margin-right: 10px;
}

.hidden {
    visibility: hidden;
    transition: visibility 0s linear 300ms;
}

.d3-geomap .unit {
    stroke-width: 1px;
}

circle {
    z-index: 1;
}

.toggle-host-country {
    position: absolute;
    left: 10%;
    margin-top: 50px;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.hint {
    background-color: white;
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: justify;
}

.hint h2 {
    text-align: center;
}

.toggle_container {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}

.toggle_container > p {
    margin: 0;
}

iframe {
    border: none;
}

div.tooltip {
    position: absolute;
    text-align: left;
    white-space: normal;
    padding: 10px;
    font-size: 14px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    pointer-events: none;
    cursor: none;
}

.beeswarm-container {
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.beeswarm_svg {
    margin-right: 30px;
}

#svg_beeswarm {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;
}

#visualisation_text_3 {
    width: 60%;
    margin: auto;
}

@keyframes strokeAnimation {
    0% {
        stroke-width: 1px;
        stroke: #000000;
    }
    50% {
        stroke-width: 4px;
        stroke: #000000;
    }
    100% {
        stroke-width: 1px;
        stroke: #000000;
    }
}
.sources > h2 {
    text-align: left;
}

.sources-list {
    width: 50%;
    max-width: 500px;
}

.single_source {
    text-decoration: none;
    color: black;
}

.single_source:hover {
    text-decoration: underline;
}

.single_source:visited {
    color: black;
}

.no-bullets {
    list-style-type: none;
}

footer {
    margin: 50px 0;
}

.footer_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coordinate-line {
    stroke-width: 1;
    stroke: lightgray;
}

#drop {
    position: relative;
    left: 20%;
}

option {
    font-family: 'Poppins', sans-serif;
}

.title_a {
    font-family: 'DM Serif Display', serif;

    text-decoration: none;
    color: black;
}

.title_a:hover {
    text-decoration: underline;
}

.title_a:visited{
    color: black;
}

.beeswarm-body {
    overflow-x: clip;
}
