.no-js {
    display: none;
}

.no-js .enable-js {
    display: block;
}

* {
    font-family: 'Lora', serif;
}

h1, h2, h3 {
    display: block;
    position: relative;
    z-index: 100;
    text-align: center;
}

h1 {
    text-shadow: 2px 2px white;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 3em;
}

#content {
    position: relative;
}

.bottom-content {
    position: absolute;
    width: 100%;
    bottom: 250px;
}

#initial-text {
    display: block;
}

/* #fixed {
    position: fixed;
    top: 50%;
    left: 50%;
} */

#timeline {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 0px;
    height: 25px;
}

.timeline-month {
    display: inline-block;
    height: 25px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    padding-top: 5px;
    text-align: center;
}

.timeline-pointer {
    position: fixed;
    width: 20px;
    text-align: center;
    left: 50%;
    bottom: -2px;
    margin-left: -10px;
    color: rgb(2, 2, 83);
    font-size: 12px;
    line-height: 0;
    z-index: 100;
    font-weight: bold;
}

.timeline-event {
    position: absolute;
    display: block;
    bottom: 0;
    height: 25px;
    background-color: rgba(86, 140, 240, 0.2);
    /* Border bottom & right 
    height: 2px;
    border-width: 0 1px 1px 0;
    border-color: rgb(86, 140, 240);
    border-style: solid;
    */
}

/* ------------- MAP -------------- */
#map {
    position: fixed;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.background {
    fill: none;
    pointer-events: all;
}

#countries, #states {
    fill: #cde;
    stroke: #fff;
    stroke-linejoin: round;
    stroke-linecap: round;
}

#countries .active, #states .active {
    fill: #89a;
}

#countries #USA {
    display: none;
}

path.route {
    stroke-width: 2px;
    stroke: rgb(86, 140, 240);
    fill: none;
}

.event-text {
    position: fixed;
    z-index: 100;
    bottom: -100px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: bottom 0.5s, opacity 0.75s;
    font-size: 1.5em;
}

.event-text.active {
    bottom: 15%;
    opacity: 1;
}

.destination-marker {
    r: 3px;
    fill: rgb(113, 159, 238);
    cursor: pointer;
    display: none;
    transition: fill 0.5s;
}

.destination-marker.active {
    display: block;
}

@keyframes pulse {
    0% { r: 3.5px; }
    25% { r: 4px; }
    50% { r: 4.5px; }
    75% { r: 4px; }
    100% { r: 3.5px; }
}

.destination-marker.most-recent {
    animation: pulse 1.5s ease-in infinite;
    fill: rgb(86, 140, 240);
}

.tooltip {
    cursor: pointer;
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
 
    /* Position the tooltip text - see examples below! */
    z-index: 100;
    width: 150px;
    margin-left: -75px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

.tooltip:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.tooltip::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.603) transparent transparent transparent;
}
