@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Merriweather:wght@300;400;600&family=Fira+Sans:wght@200;300;400;500;600&display=swap');

:root {
    --primary: #db1e45;
}


body {
    margin: 0 auto;
    width: 100%;
    max-width: 700px; 
    padding: 0.5em;
    box-sizing: border-box; 
    font-family: "Fira Sans", sans-serif;
    color: black;
}

img {
    margin: 0 auto;
    width: 100%;
    max-width: 700px; 
    height: auto;
    padding: 0 0 2em 0;
}

h1 {
    font: normal 3em "Bebas Neue";
    text-align: center;
}

h2 {
    font: 200 1.4em "Fira Sans";
}

h6 {
    font: 400 0.9em "Fira Sans";
    max-width: 650px;
    padding: 0 0 2em 0;
    margin: auto;
}

.graph, .slidecontainer {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 0 auto 3em auto;
}

aside {
    display: block;
}

aside h6 {
    text-align: right;
    text-transform: uppercase;
    font-size: 0.7em;
}

aside ul {
    list-style: none;
}

aside ul li {
    position: relative;
}

aside ul li::before {
    content: "■";  
    font-size: 1.3em;
    font-weight: bold; 
    position: absolute;
    left: -24px;
    top: -6px;
}

aside ul li.yoursalary::before {
    color: #6a031f;
}

aside ul li.averagesalary::before {
    color: #e9788f;
}

aside ul li.mediansalary::before {
    color: #e24b6a;
}

aside ul li span {
    display: inline-block;
    width: 9em;
    font: 200 1em "Fira Sans", sans-serif;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:nth-of-type(1) {
    max-width: 600px;
}

.slider:nth-of-type(2) {
    max-width: 300px;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #db1e45;
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #db1e45;
    cursor: pointer;
    border-radius: 50%;
}

h5 {
    padding: 0;
    margin: 1em 0 2em 0;
    font: 500 0.9em "Fira Sans", sans-serif;
    display: flex;
    align-items: baseline;
}

p {
    width: 100%;
    max-width: 800px;
    margin: auto;
    font-size: 1.125rem;
    line-height: 1.7rem;
}

p a {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

p.intro, p.comment {
    font: 300 1em "Merriweather", sans-serif;
    max-width: 550px;
    text-align: justify;
    padding: 0 0 2em 0;
    font-size: 1.125rem;
    line-height: 1.7rem;
}

p.comment strong {
    font-weight: 500;
}

@media screen and (min-width: 800px) {
    ul.demo {
        margin-left: 2em;
    }
}

ul.demo li {
    font: 500 0.9em "Fira Sans";
    padding: 0.2em 0;
}

ul.demo li span {
    font-weight: 300;
    display: inline-block;
    width: 12em;
    text-transform: uppercase;
}

input[type="text"] {
    resize: none;
    font: 500 1.1em "Fira Sans", sans-serif;
    border: none;
    width: 4em;
    height: 1em;
    margin-right: 0.3em;
}

div.dwl_select {
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 550px;
    margin: 1em auto;
    flex-wrap: wrap;
}

input[type="checkbox"], input[type="radio"] {
    display: none;
}

input[type="radio"] + label.classic {
    display: block;
    min-height: 3em;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    margin-right: 15px;
    font-size: 14px;
}

input[type="radio"] + label.classic::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin-right: 14px;
    position: absolute;
    top: -3px;
    left: 0;
    border: 1px solid #6a031f;
    background-color: #fff;
    border-radius: 50%;
}

input[type="radio"]:checked + label.classic::after {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6a031f;
}

input[type="radio"] + label.modern {
    display: block;
    width: 100px;
    height: 100px;
    color: black;
    position: relative;
    background-color: #f8d2da;
    border-radius: 50%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

input[type="radio"] + label.modern:hover {
    background-color: #f1a5b5;
}

input[type="radio"]:checked + label.modern {
    background-color: #f1a5b5;
}

input[type="radio"]:checked + label.modern::after {
    content: "✔";
    display: block;
    position: absolute;
    top: 0;
    left: 3px;
    border-radius: 0%;
    color: #6a031f;
}

input[type="radio"] + label.tag {
    display: block;
    color: black;
    position: relative;
    background-color: #f8d2da;
    border-radius: 15px;
    padding: 0.4em 0.8em;
    text-align: center;
    cursor: pointer;
    margin: 0.5em;
    font: 300 0.9em "Fira Sans", sans-serif;
}

input[type="radio"]:checked + label.tag {
    background-color: #e9788f;
    color: white;   
}

input[type="radio"]:checked + label.tag::after {
    content: "✔";
    display: block;
    position: absolute;
    top: 0;
    left: -10px;
    border-radius: 0%;
    color: #6a031f;
}

/*
input[type="checkbox"] + label.classic::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin-right: 14px;
    position: absolute;
    top: -3px;
    left: 0;
    border: 1px solid #6a031f;
    background-color: #fff;
    border-radius: 3px;
}

input[type="checkbox"]:checked + label.classic::after {
    content: "\2714";
    display: block;
    color: #6a031f;
    position: absolute;
    top: 0px;
    left: 5px;
    width: 10px;
}
*/


input[type="checkbox"] + label.modern {
    display: block;
    width: 100px;
    height: 100px;
    background-image: url("woman.png");
    background-size: cover;
    color: transparent;
    position: relative;
    background-color: #f8d2da;
    border-radius: 50%;
    cursor: pointer;
}

input[type="checkbox"] + label.modern:hover {
    background-color: #f1a5b5;
}

input[type="checkbox"] + label.modern:nth-of-type(2) {
    background-image: url("man.png");
}

input[type="checkbox"]:checked + label.modern {
    background-color: #f1a5b5;
}

input[type="checkbox"]:checked + label.modern::after {
    content: "✔";
    display: block;
    position: absolute;
    top: 0;
    left: 3px;
    border-radius: 0%;
    color: #6a031f;
}

.hidden {
      display: none !important;
}

section {
      width: 100%;
      max-width: 500px;
      margin: auto;
      border: 1px solid #eaabba;
      border-radius: 3px;
      position: relative;
      box-sizing: border-box;
  }

section:before {
    content: " ";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #fff;
    background-color: #fdf6f7;
    border-radius: 3px;
}

section h4 {
    color: #6a031f;
    font: 400 1.2em "Merriweather", serif;
    padding: 0 2em;
}

section ul li {
    color: #6a031f;
    font: 300 0.9em "Merriweather", serif;
    padding: 0.5em 0.5em 0.5em 0;
}

nav {
    display: flex;
}

nav div:nth-child(odd) {
    flex: 45%;
}

nav div:nth-child(even) {
    flex: 10%;
}

div#modal_alert {
    background-color: #db1e45;
    min-width: 300px;
    max-width: 400px;
    position: fixed;
    right: -500px;
    bottom: 1em;
    padding: 0.5em;
    box-sizing: border-box;
    font: 400 1em "Fira Sans", sans-serif;
    color: white;
    border-radius: 2px;
}

.showmodal {
    animation: showmodalbezier 6s;
}

@keyframes showmodalbezier {
    0% {right: -500px;}
    10% {right: 2em;}
    20% {right: 1em;}
    80% {right: 1em;}
    100% {right: -500px;}
}


/* generic modal */

#article_popup {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    display: none;
    background-color: rgba(0,0,0,0.7);
}

#article_popup section {
    position: absolute;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid white;
    background-color: white;
    z-index: 12;
}

#article_popup section button {
    border: none;
    color: transparent;
    height: 2em;
    width: 2em;
    background: url("close-button.png") no-repeat;
    background-position: left;
    background-size: contain;
    position: absolute;;
    z-index: 13;
    right: 0;
    top: 0;
    transform: translate(100%, -100%);
    filter: invert(1);
    cursor: pointer;
}

.dwlblur {
    filter: blur(0.5em);
}

/* svg map */

div.svg-container {
    width: 100%;
    max-width: 280px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
}

svg {
    display: block;
}

path {
    stroke: black;
    stroke-width: 0.2px;
    fill: #f8d2da;
}

path.selected {
    fill: #e24b6a;
}

path.hover {
    fill: #e9788f;
    cursor: pointer;
}

div.dwl_slider {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: auto;
    position: relative;
}

div.dwl_slider_master {
    width: 300%;
    display: flex;
    left: 0;
    transition: left 1s ease-in-out;
    position: relative;
}

div.dwl_slider_master > div {
    width: 33.33%;
}


/* scrolltrigger classes */
#arrow_container {
    width: 50px;
    position: absolute;
    left: 3.7em;
    top: 3em;
}

@media screen and (min-width: 550px) {
    #arrow_container {
        left: 25em;
        top: 1.5em;
    }
}

#dncurve {
    fill: none;
    stroke: #707070;
    stroke-width: 10px;
    opacity: 0;
    fill-rule:evenodd;
    clip-rule:evenodd;
}


/* share */

div.dwl_share_container {
    display: flex;
    justify-content: flex-end;
}

button.dwl_share {
    margin: 0.5em;
    padding: 0;
    border: none;
    background-color: transparent;
    width: 29px;
    height: 29px;
    cursor: pointer;
    background-size: contain;
}

button.dwl_share.sh_fb {
    background-image: url("share_fb.svg");
    top: 5px;
}

button.dwl_share.sh_tw {
    background-image: url("share_tw.svg");
    top: 40px;
}