/* ================ */
/* ==== general === */
/* ================ */

html, body {
    height: 100%;
}

body {
    background-color: #F5F8FF;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    color: #9a9a9a;
}

ul, li {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.all-wrap {
    min-width: 610px;
    overflow: hidden;
}

.main {
    margin-bottom: 30px;
    margin-top: -150px;
}

/* header */

.masthead {
    background: #abb9ff;
    padding-top: 120px;
    padding-bottom: 200px;
    border-bottom-left-radius: 50% 50%;
    border-bottom-right-radius: 50% 50%;
    margin: 0 -10%;
    background-image: linear-gradient( 135deg, #abb9ff 10%, #0351ff 100%);
    box-shadow: inset 0px 0px 30px rgb(77, 128, 216);
    color: #fff;
}

.masthead h1 {
    margin-top: 30px;
    font-size: 6.8em;
    letter-spacing: -8px;
    text-transform: lowercase;
    font-weight: 100;
}

.masthead h3 {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: lowercase;
    font-weight: 300;
    margin: 30px 0 45px 0;
    color: #d9e4ff;
}

.masthead .btn-more {
    cursor: pointer;
    display: inline-block;
    background: #fff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 100em;
    color: #5c73fc;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0px 9px 30px -6px rgb(77, 128, 216); 
    transition: 0.15s ease-in-out;
}

/* navigation */

nav {
    position: absolute;
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    text-transform: lowercase;
    color: #d9e4ff;
}

nav .logo {
    float: left;
    font-size: 145%;
}

nav .logo a {
    text-decoration: none;
    color: #f5f8ff;
}

nav .menu {
    float: right;
    list-style: none;
}

nav .menu .menu-item {
    display: inline-block;
    margin-right: 25px;
}

nav .menu .menu-item:last-of-type {
    margin-right: 0;
}

nav .menu li>a>svg {
    margin-right: 5px;
    font-size: 115%;
    color: #fff;
}

nav .menu li a {
    cursor: pointer;
    text-decoration: none;
    color: #d9e4ff;
}

/* main */

.wrapper {
    padding: 30px 30px 10px 30px;
    background: #ffffff1a;
    border-radius: 8px;
    margin-bottom: 30px;
}

.main .map-container {
    height: 600px;
    margin: 0 3% 30px 3%;
    background: #fff;
    box-shadow: 0px 12px 36.8px 9.2px rgba(0, 140, 239, 0.15);
    padding: 0;
}

.main .how-container {
    background: transparent;
    margin-bottom: 0;
    margin-top: 70px;
}

.how-container .panel-primary {
    border: none;
    box-shadow: none;
    border-radius: 0px;
    background: transparent;
}

.how-container .panel-primary>.panel-heading {
    border: none;
    border-radius: 0px;
    background: transparent;
    padding: 0 15px;
    color: #777777;
}

.how-container .panel-title {
    font-size: 2.5em;
    letter-spacing: 0.5px;
}

.how-container h3 {
    color: #777777;
}

.how-container .panel-body p {
    text-align: center;
    max-width: 85%;
    margin: 15px auto 55px auto;
    line-height: 180%;
    font-size: 120%;
}

.how-container .instr-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 35px auto;
    border-radius: 50%;
    box-shadow: 0px 9px 30px -6px rgba(0, 140, 239, 0.57);
    background-color: #FFFFFF;
    color: #4e6afc;
    text-align: center;
    font-size: 2.3em;
}

.how-container .info-ul {
    padding-top: 10px;
    padding-bottom: 35px;
    font-size: 15px;
}

.how-container .info-ul li {
    margin-bottom: 5px;
}

footer {
    height: 100px;
    line-height: 100px;
    padding-top: 4px;
    text-align: center;
    background: #7587fc;
    color: #d9e4ff;
    box-shadow: inset 0px 0px 15px rgb(77, 128, 216);
}

footer svg {
    margin-right: 5px;
    color: #fff;
}

footer .fa-wrench {
    font-size: 20px;
}

footer strong {
    margin-left: 3px;
}

/* ================= */
/* ==== MAP SHIT === */
/* ================= */

#map {
    height: 600px;
    width: 100%;
}

.map-placeholder {
    position: relative;
    height: 600px;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
}

/* for the search bar */

.map-controls {
    position: absolute;
    bottom: 25px;
    right: 50px;
    z-index: 9999;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    height: 29px;
    outline: none;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    width: 400px;
}

/* for the modes */

ul#toggle-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#toggle-panel li:last-of-type {
    margin-right: 0;
}

#toggle-panel li {
    float: left;
    width: 60px;
    height: 60px;
    background: #eee;
    margin-right: 13px;
    font-size: 2.5em;
    line-height: 60px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    color: #4e6afc;
    cursor: pointer;
}

/* for the side panels */

#side-panel, #side-edit {
    z-index: 9999;
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    background: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 45px 20px 20px 20px;
    box-shadow: 3px 0px 5px rgba(0, 0, 0, 0.14);
    overflow: hidden;

    /* prefixes added */
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

#side-panel>.panel-heading,
#side-edit>.panel-heading {
    background: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    margin-top: 20px;
}

#side-panel .panel-title,
#side-edit .panel-title {
    font-size: 1.8em;
    color: #777777;
    word-wrap: break-word;
}

#side-panel h4,
#side-edit h4 {
    color: #777777;
}

#side-panel .close-button,
#side-edit .close-button {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5em;
    color: #4d6afc;
}

#side-panel .blurb {
    overflow: auto;
    height: 250px;
    margin-bottom: 25px;
    font-size: 90%;
    line-height: 180%;
    word-wrap: break-word;
}

#side-panel .bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f8ff;
    padding: 25px 30px 15px 30px;
    word-wrap: break-word;
}

#side-panel .bottom-info strong {
    margin-right: 3px;
}

#side-edit #edit-button {
    float: right;
    margin-top: 15px;
    background: #4d6afc;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.map-placeholder .form-control {
    color: #9b9b9b;
    background-color: #f5f8ff;
    background-image: none;
    border: 0;
    border-radius: 0px;
    box-shadow: none;
}

/* custom pop-ups */

.popup-tip-anchor {
    height: 0;
    position: absolute;
    z-index: 9999;
    width: 200px;
}

.popup-bubble-anchor {
    position: absolute;
    z-index: 9999;
    width: 100%;
    bottom: 8px;
    left: 0;
}

.floaty.popup-bubble-content {
    position: absolute;
    z-index: 9999;
    top: -50px;
    left: 0;

    /* prefixes added */
    -webkit-transform: translate(-50%, -100%);
    -ms-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);

    background: #99a8fd;
    background-image: linear-gradient( 135deg, #abb9ff 5%, #899afc 100%);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    box-shadow: 0px 0px 5px #00000021;
    border-radius: 50px;
    padding: 15px 15px;
    font-size: 12px;
    text-align: center;
    max-height: 60px;
    min-width: 100px;
    cursor: pointer;
}

.floaty:after {
    display: block;
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    margin-left: -9px;
    border: 9px solid;
    border-color: #99a8fd transparent transparent transparent;
}

.clickme {
    max-width: 85%;
    margin: 0 auto;
    overflow: hidden;
    word-wrap: break-word;
}

.greyed-out {
    background: #e8e8e8 !important;
}

/* ======================= */
/* ==== ALL ANIMATIONS === */
/* ======================= */

#toggle-panel li.active {
    background-color: #4e6afc;
    color: #fff;
}

a.btn-more:active {
    /* prefixes added */
    -webkit-transform: translateY(5px);
    -ms-transform: translateY(5px);
    transform: translateY(5px);
}

/* menu animation for toggle */

.smenu-close {
    left: -35%;
}

.smenu-open {
    left: 0;
}

.floating {  
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@-webkit-keyframes floating {
    from { 
        -webkit-transform: translate(0,  0px); 
        transform: translate(0,  0px); 
    }
    65%  { 
        -webkit-transform: translate(0, 15px);
        transform: translate(0, 15px); 
    }
    to   { 
        -webkit-transform: translate(0, -0px); 
        transform: translate(0, -0px); 
    }  
}

@keyframes floating {
    from { 
        transform: translate(0,  0px); 
    }
    65%  { 
        transform: translate(0, 15px); 
    }
    to   { 
        transform: translate(0, -0px); 
    }    
}