/* IMPORT FONTS, SET GLOBAL TEXT CLASSES */
@font-face {
    font-family: AkkuratProRegular;
    src: url(fonts/AkkuratPro-Regular.otf);
}
@font-face {
    font-family: AkkuratProBold;
    src: url(fonts/AkkuratPro-Bold.otf);
}
.text-format-headline {
    font-family: AkkuratProBold;
    font-size: 15px;
}
.text-format-headline-large {
    font-family: AkkuratProBold;
    font-size: 35px;
}
.text-format-description {
    font-family: AkkuratProRegular;
    font-size: 12px;
    fill: #646464;
}
.text-format-description-dark {
    font-family: AkkuratProRegular;
    font-size: 12px;
    fill: #000;
}
body {
    margin: 0 auto;
    padding: 0px;
}


/* TITLES */
.titles {
    position: fixed;
    /* margin: 0px; */
    /* margin-left: 55px; */
    z-index: -1000;
    font-family: AkkuratProBold;
    text-align: left;
    pointer-events: none;
    max-width: 580px;
}
.titles .title-main {
    text-align: center;
}
.titles .title-main h1 {
    margin: 0px;
    margin-bottom: 10px;
    text-transform: uppercase
}
.titles .titles-other .user-iteraction-guide * {
    margin: 0px;
    padding: 0px;
}
.titles .titles-other .user-iteraction-guide {
    max-width: 140px;
    filter: grayscale(1) opacity(0.5);
    text-align: center;
    opacity: 0;
    margin: 0px;
    padding: 0px;
    margin-top: 20px;
    line-height: 65%;
    display: inline-block;
}
.titles .titles-other .user-iteraction-guide p {
    font-size: 10px;
}
.titles .titles-other .user-iteraction-guide span {
    font-size: 10px;
    font-family: AkkuratProRegular;
}

.titles .title-main .legend {
    position: relative;
    width: 70%;
}
.titles .titles-other {
    opacity: 0;
}
.titles .paragraph {
    font-family: AkkuratProRegular;
    font-size: 15px;
    text-align: justify;
    color: #646464;
    opacity: 1;
    margin: 0px;
    margin-top:10px;
}

/* CREDITS */
.credits {
    position: fixed;
    display: flex;
    justify-content: space-between;
    text-align: left;
    font-family: AkkuratProRegular;
    font-size: 12px;
    color: #6464647e;
    width: 99vw;
    top: 92vh;
}
.credits * {
    margin-left: 10px
}
.credits .logo {
    height: 40px;
}
.credits .authors {
    /* align-self: flex-end; */
    text-align: left;
}

/* MOBILE */
@media only screen and (max-width: 430px) {
    .titles {
        max-width: 430px;
        margin-left: 10px;
        z-index: 0;
    }
    .titles .title-main .title-and-interaction h1 {
        font-size: 25px;
    }
    .titles .title-main .legend {
        width: 100%;
        transform: translate(30vw, calc(100vh / 9));
    }
    .titles .paragraph {
        width: calc(100vw - 20px);
        font-size: 12px;
    }
    .credits {
        top: 90vh;
    }
    .credits * {
        font-size: 10px;
    }
}
/* TABLET */
@media only screen and (min-width: 431px) and (max-width: 580px) {
    .titles {
        margin: 10px;
    }
    .titles .title-main .legend {
        transform: translate(calc(100vw / 15), calc(100vh / 8));
    }
    .credits * {
        font-size: 10px;
    }
}
/* DESKTOP */
@media only screen and (min-width: 581px) {
    .titles {
        margin: 10px;
    }
    .titles .title-main {
        transform: translateX(calc(50vw - 290px));
    }
    .titles .title-main .legend {
        transform: translate(calc(100vw / 15), calc(100vh / 8));
    }
}


/* ANIMATIONS */
@keyframes bounce {
    0% { transform: translateX(0); }
    25% { transform: translateX(20px); }
    50% { transform: translateX(0); }
    100% { transform: translateX(0); }
}
@keyframes click {
    0% { transform: scale(1); }
    25% { transform: scale(0.95); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}
.animate-bounce {
    animation-name: bounce;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}
.animate-click {
    animation-name: click;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

/* SET MAIN CONAINER PROPS */
.container {
    margin: 0 auto;
    text-align: center;
}
.container .chart {
    z-index: 1000;
}
.container .chart-popout {
    z-index: 2000;
    pointer-events: none;
    position: fixed;
    top: 10px;
    transform: translateX(-50%);
    z-index: 1000;
    -webkit-filter: drop-shadow( 0px 0px 20px rgba(0, 0, 0, 0.1));
    filter: drop-shadow( 0px 0px 20px rgba(0, 0, 0, 0.1));
}
.container .chart-background-img {
    position: absolute;
    z-index: -100;
    filter: grayscale(1);
    opacity: 0.2;
}
.container .chart-background-img img {
    height: 100vh;
}



/* SET CAPTION & DATA LABEL PROPS */
.stroke-white-text {
    paint-order: stroke;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-opacity: 1;
    stroke-opacity: 0.7;
}
.captionGroup text {
    font-family: AkkuratProBold;
    paint-order: stroke;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-opacity: 1;
}
svg .caption.captionTitle {
    font-family: AkkuratProBold;
}
svg .captionDescription {
    font-family: AkkuratProRegular;
    font-size: 12px;
}
svg .labelDate, svg .captionCategory {
    font-family: AkkuratProBold;
    font-size: 12px;
}
svg .president {
    filter: grayscale(100%);
}
svg .baloonLabel, svg .baloonLabelBottom, svg .baloonLabelOffered, svg .baloonLabelOfferedBottom {
    font-family: AkkuratProRegular;
    font-size: 10px;
}
svg .eventTrigger {
    cursor: pointer;
}

/* GRADIENTS */
.gradient-main-fill {
    fill: url(#mainGradient);
}
.gradient-secondary-fill {
    fill: url(#secondaryGradient);
}
.gradient-color-top {
    stop-color: #077CAB;
}
.gradient-color-top-2 {
    stop-color: #C40067;
}
.gradient-color-bottom {
    stop-color: white;
}


/* SET AXES PROPS */
.axis path.domain {
    stroke: white;
    opacity: 0;
}
.axis .tick line {
    stroke: #DCDCDC;
    stroke-width: 1px;
}
.axis.x-axis .tick line {
    stroke: none;
    opacity: 0;
}
.tick text {
    fill: #646464;
}

.chart .tick text {
    font-size: 12px;
}
.chart .axis.y-axis {
    /* opacity: 0.5; */
    font-family: AkkuratProRegular;
    font-size: 12px;
    fill: #646464;
    stroke-dasharray: 1.5px 2px;
}
.chart .axis.x-axis text {
    font-family: AkkuratProBold;
    font-size: 15px;
}
.chart .axis .tick line {
    stroke: #DCDCDC;
    stroke-width: 1px;
}
.chart-popout .tick text {
    font-size: 10px;
    font-family: AkkuratProRegular;
}

/* INPUTS */
#button-next {
    padding: 10px;
    /* margin: 0; */
    z-index: 5000;
    position: absolute;
    width: 150px;
    top: 85vh;
    left: calc(50vw - 68px);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: AkkuratProBold;
    opacity: 0;
    background-color: #D05883;
    color: white;
    transition: 100ms;
    pointer-events: none;
}
#button-next:hover {
    background-color: #C40067;
    box-shadow: 0 0 0px 2px black;
    transition: 100ms;
}

/* ADD SHADOWS */
/* .chart circle, .chart rect {
    -webkit-filter: drop-shadow( 0px 0px 20px rgba(0, 0, 0, .05));
    filter: drop-shadow( 0px 0px 20px rgba(0, 0, 0, .05));
} */