body {
    font-family: 'Georgia';
    background-color: antiquewhite;
    /* background-color: #ebe4cf; */
    color: #111;
}

h1 {
    font-size: 64px;
    max-width: 45rem;
    line-height: 1.3;
    font-weight: 300;
    margin-top: 100px;
}

h2 {
    font-size: 48px;
    max-width: 45rem;
    line-height: 1.3;
    font-weight: 300;
    margin-top: 100px;
}

p {
    font-size: 17px;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.small {
    font-size: smaller;
}

.subheading {
    font-size: 18px;
    font-weight: 500;
    color: #777;
    line-height: 1.7;
    margin: 1.5rem 0;
}

#header {
    margin-bottom: 5rem;
}

#footer {
    margin-top: 8rem;
    margin-bottom: 5rem;
}

#footer hr {
    color: #111;
}

.centred {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.flex {
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
}

.spotify-btn {
    cursor: pointer;
    color: #fff;
    background-color: #1db954;
    border-radius: 500px;
    padding: 8px 16px 8px;
    /* font-size: 14px; */
    display: inline;
    text-align: center;
    vertical-align: middle;
    border: 1px solid transparent;
    line-height: 1;
    /* letter-spacing: 2px; */
    white-space: normal;
    transition: 0.5s;
}

.spotify-btn:hover {
    background-color: #4bdf80;
}

.spotify-btn-logo {
    width: 30px;
    /* color: #fff; */
    display: inline;
    vertical-align: middle;
}

.btn-text {
    vertical-align: middle;
}

#intros-plot {
    max-width: 1800px;
    margin: 0 auto;
}

#analysis {
    position: relative;
    top: 40px;
    margin: 0 auto;
    max-width: 60rem;
    text-align: center;
    min-height: 120px;
    max-height: 120px;
}

#trend {
    border-bottom: 3px solid purple;
}

/*
Sound clip styles
*/
.clip {
    background-color: rgba(203, 196, 171, 0.3);
}

.clip-control {
    cursor: pointer;
}

/*
Info slider styles
*/
#info-slider {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    transition: 0.5s;
    background-color: antiquewhite;
    /* background-color: #ebe4cf; */
    text-align: center;
    border-left: 1px solid rgba(17, 17, 17, 0.2);
    padding: 1rem 0;
    overflow-x: hidden;
}

/* #info-slider img {
    display: inline-block;
    margin: auto 0;
    width: 150px;
} */

#info-slider h2 {
    font-size: 36px;
    max-width: 400px;
    line-height: 1.3;
    font-weight: 300;
    margin: 0 auto;
    
}

#info-slider-meta {
    list-style: none;
}

#info-slider-meta li {
    display: inline;
    margin-right: 12px;
}

#info-slider-close-btn {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 24px;
    color: #a02828;
    cursor: pointer;
}

#info-slider-close-btn:hover {
    color: crimson;
}

#info-slider-play-btn {
    cursor: pointer;
}

#nightingale-explainer-text {
    padding: 0 1rem;
    font-size: 16px;
}

#no-preview {
    visibility: hidden;
}

.header-label {
    font-size: 14px;
}

/*
D3 Styles
*/
div.tooltip,
div.nightingale-tooltip,
div.attention-tooltip {
    position: absolute;
    max-width: 200px;
    height: auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    font-size: 12px;
    z-index: 2;
}

div.nightingale-key {
    font-size: 12px;
}

div.nightingale-key-song {
    width: 20px;
    height: 20px;
    background-color: #1e1e1e;
    display: inline-block;
}

div.nightingale-key-all-time-avg {
    width: 20px;
    height: 20px;
    background-color: #787878;
    display: inline-block;
}

.song-clicked {
    stroke: #111;
    fill: none;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-opacity: 0.75;
    stroke-dasharray: 0, 5;
    pointer-events: none;

    animation-duration: 1s;
    animation-name: changedash;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-timing-function: linear;
}

@keyframes changedash {
    from { stroke-dashoffset: 5px; }
    to { stroke-dashoffset: 0px; }
}

.regression-line {
    transition: opacity 1s linear;
}

#intros-plot .y.axis .tick line {
    stroke: antiquewhite;
    stroke-width: 0.5;
}

/*
Annotation styles
*/
.annotation-group {
    opacity: 0;
    transition: opacity 1s linear;
}

.annotation path {
    stroke-dasharray: 1, 3;
}

.annotation-note-label {
    font-size: 14px;
}

/*
Legend styles
*/
.legend-text {
    font-size: 12px;
}

/*
Plot tools styles
*/
#plot-tools {
    position: relative;
    left: 1650px;
    top: 200px;
    display: inline-block;
}

#intro-percent {
    font-size: 20px;
    font-weight: 400;
    color: #777;
    margin: 0;
    visibility: hidden;
    display: inline-block;
}

#togglePlay {
    cursor: pointer;
}

#artist-selection {
    width: 150px;
    font-size: 14px;
}

/*
Attention economy styles */
#attention-economy-title {
    font-weight: bold;
}

#attention-economy-plot {
    margin-right: 6rem;
}