@import "http://fonts.googleapis.com/css?family=Istok+Web:400,700,400italic";


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html,body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    max-height: 100%;
    overflow: hidden;
}
a:active,a:focus {
    outline: none;
}
.layer1 {
    height: 100%;
    width: 100%;
    background: #fff url(../img/background.jpg) no-repeat center center;
    background-size: cover; 
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}
#map {
    background-color: rgba(255, 255, 255, 0.1);
    bottom: 80px;
    height: 225px;
    opacity: 0;
    padding: 48px 20px 0;
    position: absolute;
    right: 80px;
    transition: all 1s;
    width: 225px;
}
#map.in {
    opacity: 1;
}
#map .info {
    background-color: rgba(255, 255, 255, 0.1);
    color: red;
    font-family: 'Istok Web', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 30px;
    margin: 0 -20px 5px;
    padding: 5px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
}
#map svg {
    width: 100%;
    height: auto;
}
#map .active .circle path {
    fill: red !important;
    transition: fill 0.9s;
}
#map .bg {
    cursor: pointer;
    fill: rgba(255, 255, 255, 0.05);
    transition: fill .3s;
}
#map .bg:hover {
    fill: rgba(255, 255, 255, 0.7);
}
.layer2 {
    align-items: center;
    display: flex;
    height: 490px;
    justify-content: center;
    max-height: 490px;
    max-width: 490px;
    padding: 90px;
    position: relative;
    width: 490px;
}
.layer2 svg {
    left: -344px;
    pointer-events: none;
    position: absolute;
    top: -410px
}
.layer2 .subnav {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    height: 1px;
    flex: 0 0 1px;
    position: relative;
    transition: all 1s;
}
.layer2 .subnav.in {
    height: 750px;
    flex: 0 0 750px;
}
.pulse {
    animation-name: pulse_animation;
    animation-duration: 2000ms;
    transform-origin:center;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
/*.pulse:hover {
    animation-iteration-count: 1;
}*/
@keyframes pulse_animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.maintopic  {
    font-family: 'Istok Web', sans-serif;
    font-size: 2em;
    opacity: 0;
    position: absolute;
    text-align: center;
    transition: all .8s;
    width: 490px;
}
.maintopic:hover {
    color: darkblue;
}
.maintopic.in {
    opacity: 1;
}
/* .layer2:hover .maintopic {
    opacity: 1;
} */
/* .layer2:hover .maintopic.out,.maintopic.out {
    opacity: 0;
} */

.topic-1 {
    top: 370px;
    left: -245px;
}
.layer2[data-active="0"] .topic-3 {
    top: -20px;
}
.layer2[data-active="1"] .topic-3 {
    top: -10px;
}
.topic-2 {
    top: 370px;
    right: -245px;
}
.topic-3 {
    top: 0px;
    left: 0;
}
.layer2[data-active="2"] .topic-3 {
    top: 0;
}
.layer2[data-active="2"] .topic-1,.layer2[data-active="2"] .topic-2 {
    top: 400px;
}
.footer {
    background-color: rgba(255, 255, 255, .7);
    bottom: 0;
    display: flex;
    height: 60px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: absolute;
    transition: opacity .8s;
    width: 100%;
    z-index: 20;
}
.footer:hover {
    opacity: 1;
}

/* Navigation */
.nav {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}
.nav li {
    /*display: inline-block;*/
}
.nav.maintopic li a {
    background-color: transparent;
    color: #fff;
    font-family: 'Istok Web', sans-serif;
    font-weight: 700;
    transition: all .3s;
}
.nav.maintopic li.level-1 > a {
    font-size: 1.25em;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.5);
}
.nav.maintopic li.level-2 a {
    font-size: 1em;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.5);
}
.nav.maintopic li.level-2 ul li a {
    color: darkblue;
    font-size: 1.5em;
}

.nav.maintopic li > a:hover,.nav.maintopic li > a:active,.nav.maintopic li > a:focus {
    background-color: transparent;
    color: darkblue;
}

.maintopic .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.9);
}
.tooltip > .tooltip-inner {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: #fff;
    color: #333;
}
.tooltip.top > .tooltip-arrow {
    border-top: 5px solid rgba(255, 255, 255, 0.5);;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */
.pos-a {position:absolute;}
/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    /*width: 1px;*/
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

.center {width: 80%; margin: 0 auto; text-align: center;}
img {max-width: 100%; height: auto;}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
h1 {color: #00913E;}
@media only screen and (min-width: 35em) {
    .center {width: 50%;}
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
