@keyframes bounceIn {
  0% {
    opacity: 1;
    transform: scale(.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    opacity: 1;
    transform: scale(.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body {
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
    background-color: #f1f1f1;
    margin: 0;
    overflow-x: hidden;
}

/* small */
@media only screen and (max-width: 40em) {
    body {

    }
}

/* animate links */
a.button:hover,
button:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.05);
}

/* animate foundation icons */
span[class^='fi-']::before,
span[class*=' fi-']::before {
    animation: bounceIn 0.6s;
    transform: rotate(0deg) scale(1) translateZ(0);
    transition: all 0.4s cubic-bezier(.8,1.8,.75,.75);
}
span[class^='fi-']:hover::before,
span[class*=' fi-']:hover::before {
    -webkit-transform: rotate(10deg) scale(1.5);
    -moz-transform: rotate(10deg) scale(1.5);
    transform: rotate(10deg) scale(1.5);
    z-index: 1000;
}

/* animate thumbnails */
.am-thumbnail {
    animation: bounceIn 0.6s;
    transform: rotate(0deg) scale(1) translateZ(0);
    transition: all 0.4s cubic-bezier(.8,1.8,.75,.75);
}
.am-thumbnail:hover {
    -webkit-transform: rotate(10deg) scale(1.25);
    -moz-transform: rotate(10deg) scale(1.25);
    transform: rotate(10deg) scale(1.25);
    z-index: 1000;
}

/* google maps fix */
#google-map img {
    max-width: none;
}

h1, h2, h3, h4, h5 {
    font-family: Oswald, Verdana, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
    line-height: 1.2em;
    color: #555;
}

h3 {
    color: #777;
}

h1 a, h2 a, h3 a, h4 a, h5 a {
    color: #333;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover {
    color: #008cba;
}

h1 {
    margin: 0.5em 0 1em 0;
    padding: 0 0 0.25em 0;
    font-size: 2.2rem;
    text-align: center;
}
h2 {
    margin: 0 0 0.75em 0;
    padding: 1em 0 0.25em 0;
    font-size: 2rem;
    text-align: center;
}
h3 {
    margin: 0;
    padding: 0 0 1rem 0;
    font-size: 1.6rem;
}
h4 {
    font-size: 1.4rem;
}
h5 {
    font-size: 1.2rem;
}

@media only screen and (max-width: 40em) {
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    h4 {
        font-size: 1.125rem;
    }
    h5 {
        font-size: 1.2rem;
    }
}

p {

}

a:not(.button) {
    color: #008cba;
}

a:not(.button):hover {
    color: #008cba;
    text-decoration: underline;
}

#navigation {
    background-color: #fff;
    color: #777;
    position: fixed;
    z-index: 997;
    width: 100%;
    top: 0;
    margin: 0;
    padding: 0.25em 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.main-picture {

}
@media only screen and (max-width: 40em) {
    .main-picture {
        transform: translateX(-25%);
        -webkit-transform: translateX(-25%);
        -ms-transform: translateX(-25%);
        width: 150%;
    }
}

main {
    padding-top: 3em;
    padding-bottom: 10em;
    background-color: #fff;
    border-bottom: 5px solid #ccc;
}

/* small */
@media only screen and (max-width: 40em) {
    main {
        padding-bottom: 5em;
    }
}

#content h5 {
    margin: 1.5em 0 0.5em 0;
    padding: 0.5em 0.5em .25em 0em;
    line-height: 100%;
    color: #999;
}

#content h5:first-child {
    margin-top: 0;
}

article {
    margin-bottom: 2em;
}

li article {
    margin-bottom: 1em;
}

li article p {
    margin-bottom: 0.5em;
    font-size: 0.875em;
}
li article p a {
    color: #008cba;
}


p.date {
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
    color: #999999;
    font-size: 0.75em;
    margin: 0.75em 0;
}

p.date img {
    vertical-align: text-top;
}

p.date a {
    color: #656388;
}

p.date a:hover {
    color: #000;
}

/* SOCIALS */
#socials {
    background-color: #f6f7f8;
    margin: 0;
    padding: 1em;
    color: #777;
}
#socials p {
    margin: 0;
    padding: 0;
    font-size: 3em;
}
#socials a {
    color: #008cba;
    margin: 0 0.25em;
}
#socials a:hover {
    color: #333;
    text-decoration: none;
}

/* FOOTER */
#footer {
    font-size: 1em;
    color: #888;
    padding: 1em 0 2em 0;
    background-color: #f1f1f1;
}
footer {
    padding:1em 0 0 0;
}
footer p {
    color: #999;
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
    font-size: 0.8em;
}
footer a {
    color: #aaa !important;
}
footer a:hover {
    color: #008cba !important;
}

#footer nav a {
    font-size: 0.85em;
    text-transform: uppercase;
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
}

aside {
    margin-top: 0em;
    padding: 1em;
    min-height: 400px;
}

/* spacer */
.spacer {
    clear: both;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}

.amagdic-icons a {
    display: inline-block;
    padding: 0;
    margin: 0 5px;
    opacity: 0.8;
}
.amagdic-icons a:hover {
    opacity: 1;
}

#cookies {
    width: 100%;
    position: fixed;
    bottom: -1px;
    left: 0px;
    background-color: #000000;
    opacity: .9;
    filter:alpha(opacity=90); /* For IE8 and earlier */
    z-index: 9999;
    padding: 15px 0 0 0;
}
#cookies div {
    color: #ccc;
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
    font-size: 0.9em;
}

input {
    -webkit-appearance: none;
    border-radius: 0;
}

#content ul {
    list-style: square outside url('data:image/gif;base64,R0lGODlhBQAKAIABAAAAAP///yH5BAEAAAEALAAAAAAFAAoAAAIIjI+ZwKwPUQEAOw==');
}

.bg-large {

}

.panel {
    border: 0 !important;
}
/*
dt {
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
}
dd {
    font-family: Merriweather, Verdana, Helvetica, sans-serif;
}
*/

#jump-top {
    display:none;
    position:fixed;
    bottom:0.75em;
    right:1em;
    z-index:710;
    font-size: 2em;
}
@media only screen and (max-width: 40em) {
    #jump-top {
        bottom:0.125em;
        right:0.5em;
        font-size: 1em;
    }
}

#jump-top a {
    background-color: #f1f1f1;
    border-radius: 1000px;
    opacity: 0.5;
    display:block;
    padding: 0.5em 1em;
}
#jump-top a:hover {
    opacity: 1;
}

/***
 * FOUNDATION updates
 **/

.tooltip {
    font-size: 0.75rem;
    max-width: 40em;
}

.top-bar {
    background-color: #fff;
    color: #e9e9e9; }
.top-bar.expanded .title-area {
    background: #fff; }
.top-bar-section ul li {
    background: #fff; }
.top-bar-section ul li > a {
    color: #777; }
  .top-bar-section ul li > a.button {
    background-color: #777;
    color: #FFFFFF; }
  .top-bar-section ul li:hover:not(.has-form) > a {
    background-color: #fff;
    background: #fff;
    color: #008cba; }
    .top-bar-section ul li.active > a {
      background: #fff;
      color: #000000; }
    .top-bar-section ul li > a {
      font-family: Oswald, Helvetica, sans-serif;
      font-size: 1em;
      font-weight: normal; }
    .top-bar .toggle-topbar a {
      color: #777; }
      .top-bar .toggle-topbar.menu-icon a {
        color: #777; }
        .top-bar .toggle-topbar.menu-icon a span::after {
          box-shadow: 0 0 0 1px #777, 0 7px 0 1px #777, 0 14px 0 1px #777; }

    .top-bar-section .has-dropdown > a:after {
      border-color: transparent transparent transparent #555555; }
        .top-bar-section .dropdown li.title h5 a, .top-bar-section .dropdown li.parent-link a {
          color: #777; }

@media only screen and (min-width: 40.063em) {
  .top-bar {
    background: #fff;}
    .top-bar.expanded {
      background: #fff; }
    .top-bar-section li.hover > a:not(.button) {
      background-color: #fff;
      background: #fff;
      color: #777;
      text-decoration: underline; }
    .top-bar-section li:not(.has-form) a:not(.button) {
      background: #fff;
      color: #777; }
      .top-bar-section li:not(.has-form) a:not(.button):hover {
        background-color: #fff;
        background: #fff;
        color: #008cba;
        text-decoration: underline; }
    .top-bar-section li.active:not(.has-form) a:not(.button) {
      color: #FFFFFF;
      background: #777; }
      .top-bar-section li.active:not(.has-form) a:not(.button):hover {
        background: #fff;
        color: #FFFFFF;
        text-decoration: underline; }

      .top-bar-section .dropdown li a {
        color: #777;
        background: #fff; }
      .top-bar-section .dropdown li:not(.has-form):not(.active) > a:not(.button) {
        color: #777;
        background: #fff; }
      .top-bar-section .dropdown li:not(.has-form):not(.active):hover > a:not(.button) {
        color: #000;
        background-color: #fff;
        background: #fff;
        text-decoration: underline; }
      .top-bar-section .dropdown li label {
        white-space: nowrap;
        background: #777;
        color: #ffffff; }

    .top-bar-section .has-dropdown > a:after {
      border-color: #555555 transparent transparent transparent; }

    .top-bar-section > ul > .divider, .top-bar-section > ul > [role="separator"] {
      border-right: solid 1px #777; }

    .top-bar-section .has-form {
      background: #fff; }

  .no-js .top-bar-section ul li:hover > a {
    background-color: #fff;
    background: #fff;
    color: #777;
    text-decoration: underline; }
  .no-js .top-bar-section ul li:active > a {
    background: #fff;
    color: #000000; }
}
