@font-face {
    font-family: "Open Sans";
    src: url("open-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  src: url("open-sans-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Merriweather";
    src: url("merriweather.woff2") format("woff2");
}

@font-face {
    font-family: "Questrial";
    src: url("questrial.woff2") format("woff2");
}

body {
    margin: 1em 0 0;
    overflow-x: hidden;
    font-family: "Open Sans", sans-serif;
}

header, nav, main, ol {
    width: 72em;
    margin: auto;
}

header::after {
    content: url(curve.svg);
}

header a:not(:first-child) {
    float: right;
}

.bt {
    border: .2em solid rgb(107, 24, 116);
    padding: 1em;
    border-radius: 3em;
    width: 30em;
    font-size: large;
    font-weight: bold;
}

label {
    display: block;
    padding-bottom: .6em;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: rgb(230, 169, 9);
}

a:hover {
    text-decoration: underline;
}

nav a {
    font-size: 22px;
    color: rgb(107, 24, 116);
    padding: 0 9px 24px 9px;
    margin: 0 3px 0 3px;
    border-top: 5px solid white;
    display: inline-block;
}

nav a:hover {
    border-color: rgb(230, 169, 9);
    background-color: rgb(238, 238, 238);
    border-bottom: 5px solid rgb(230, 169, 9);
    text-decoration: none;
}

nav a.selected {
    border-bottom: 5px solid rgb(230, 169, 9);
}

#breadcrumbs {
    box-shadow: inset -3px 9px 4px -6px rgba(0,0,0,0.2);
    background: url(breadcrumbs.svg) center top no-repeat;
    padding: 2.5em 0 0;
}

ol a {
    color: rgb(94, 110, 137);
}

#breadcrumbs ol {
    list-style: none;
    padding: 0;
}

#breadcrumbs li {
    font-size: 14px;
    display: inline;
}

#breadcrumbs li + li:before {
    content: "  ›  ";
}

svg {
    float: left;
    margin-right: 6em;
}

main {
    margin-top: 3em;
}

.card {
    width: 20em;
    height: 200px;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0.2em 0.2em 0.1em 0.2em rgba(127, 127, 127, 0.5);
    margin: 15px;
    padding: 15px;
}

p + h1 {
    margin-top: 2em;
}

p + h2 {
    margin-top: 1.5em;
}

.carousel-text h1 {
    margin: 0;
    font-family: "Merriweather", serif;
    font-size: 2em;
    color: white;
}

h1 {
    margin: 0;
    font-family: "Merriweather", serif;
    font-size: 1.2em;
    color: rgb(107, 24, 116);
}

h2 {
    font-size: 1em;
    margin: 0;
}

g:hover {
    fill: rgb(230, 169, 9);
}

footer {
    background-color: rgb(94, 110, 137);
    color: white;
    box-shadow: inset 0 5px 5px rgba(0,0,0,0.3);
    text-align: center;
}

@media all and (max-width: 72em) {
    header, nav, main, ol {
        width: 100%;
    }
}

@media all and (max-width: 52em) {
    svg {
        display: none;
    }
    main div {
        width: 90%;
        height: auto;
    }
}



@keyframes fade {
    0% {
        opacity:1;
    }
    40% {
        opacity:1;
    }
    60% {
        opacity:0;
    }
    100% {
        opacity:0;
    }
}

.r {
    display: none;
}

.control {
    z-index: 1;
}

.control, #control-a, #control-b {
    position: absolute;
    color: lightgray;
    top: 20em;
    font-size: 1.6em;
}

#control1, #control-a {
    left: 49.2%;
}

#control2, #control-b {
    left: 50.6%;
}

.slide {
    height: 400px;
    background-size: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#slide1 {
    background-image: url(carousel0.jpg);
}

#slide2 {
    margin-top: -400px;
    background-image: url(carousel1.jpg);
}

.r:checked + .slide {
    opacity: 1;
}

.control:after {
    content: "○";
}

.r:checked + .slide + .control:after {
    content: "●";
}

.slide-anim > div {
    height: 400px;
    background-size: 100%;
}

#slide-anim1 {
    margin-top: -400px;
    background-image: url(carousel0.jpg);
}

#slide-anim2 {
    margin-top: -400px;
    background-image: url(carousel1.jpg);
}

.r:not(:checked) + .slide-anim {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.r:checked + .slide-anim #slide-anim2 {
    animation-name: fade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 12s;
    animation-direction: alternate;
}

.carousel-text {
    position: absolute;
    left: 20em;
    top: 14em;
    width: 22em;
    padding: 10px;
    color: white;
    font-family: "Questrial", sans-serif;
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.56);
}

#map {
    height: calc(100% - 25em);
}

.r + label + div {
    max-height: 0px;
    overflow: hidden;
}

.r:checked + label + div {
    max-height: none;
}

section {
    column-count: 3;
}
