@import url('https://fonts.googleapis.com/css?family=Rock+Salt|Source+Sans+Pro:400,700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: serif, 'Lusitana';
    background-color: rgb(240, 235, 214);
    background-image: url("imgs/sprinkles.png");
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/*--------- ANIMATIONS ---------*/

.fastFade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 0.5s;
    animation-name: fade;
    animation-duration: 0.5s;
}

.midFade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.35s;
    animation-name: fade;
    animation-duration: 1.35s;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2.5s;
    animation-name: fade;
    animation-duration: 2.5s;
}

@-webkit-keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}

.fadeOut {
    -webkit-animation-name: fadeOut;
    -webkit-animation-duration: 0.5s;
    animation-name: fadeOut;
    animation-duration: 0.5s;
}

@-webkit-keyframes fadeOut {
    from {opacity: 1}
    to {opacity: 0}
}

@keyframes fadeOut {
    from {opacity: 1}
    to {opacity: 0}
}

.hidden {
   visibility: hidden;
   opacity: 0;
   transition: visibility 0s 0.5s, opacity 0.5s linear;
}

/*--------- NAVBAR ---------*/

#navbar {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: lowercase;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

#navbar li {
    display: inline;
    padding-right: -15px;
}

#navbar > li > a, .dropdown .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 17px 9px;
    margin-left: -4px;
    text-decoration: none;
    border-bottom: 5px solid transparent;
    transition: 0.4s ease;
}

.dropdown {
    display: inline-block;
    cursor: pointer;
}

#navbar > li > a:hover, .dropdown:hover .dropbtn:not(.actv) {
    color: #909090;
    transition: 0.5s ease;
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: rgba(45,45,45,0.7);
    transition: 0.4s ease;
}

#navbar > li > a.active, .dropbtn.actv {
    border-color: #af0d2b;
    background-color: transparent;
    transition: 0.4s ease;
}

.dropdown-content a.active {
    border-right: 6px solid blue;
    transition: 0.4s ease;
}

.dropdown-content {
    transition: 0.4s ease;
    transform: scaleY(0);
    transform-origin: 0 0;
    margin-left: -4px;
    position: absolute;
    background-color: rgba(80,80,80,1);
    min-width: 215px;
    z-index: 5;
}

.dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 0.9em;
    display: block;
    text-align: left;
    transition: 0.4s ease;
}

.show {
    transform: scaleY(1);
    transition: 0.4s ease;
}

.fa-caret-down {
    transform-origin: 12px 8.5px;
    transform: rotate(0deg);
    transition: transform 0.4s;
}

.fa-caret-down.open {
    transform: rotate(180deg);
    transition: transform 0.4s;
}

.fa-caret-up {
    transform-origin: 13px 9px;
    transform: rotate(0deg);
    transition: transform 0.4s;
}

.fa-caret-up.open {
    transform: rotate(180deg);
    transition: transform 0.4s;
}

.dispNavButton, .undispNavButton {
    display: none;
}

/*--------- SLIDES ---------*/

.mySlides {display: none;}

img {vertical-align: middle;}

.slideshow-container {
    position: relative;
    margin: auto;
}

.prev, .next {
    cursor: pointer;
    background-color: rgba(150,150,150,0.8);
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 50%;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(150,150,150,0.5);
}

.prev {
    left: 2%;
    padding: 14px 23.75px 14px 21.25px;
}

.next {
    right: 2%;
    padding: 14px 21.25px 14px 23.75px;
}

.text {
    color: #f2f2f2;
    font-size: 20px;
    padding: 15px 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(150,150,150,0.8);
}

.active {
    background-color: rgb(200, 46, 39);
}

@media only screen and (max-width: 300px) {
    .prev, .next, .text {font-size: 11px}
}

/*--------- TEXT/INFO ---------*/

.main {
    position: relative;
    margin: 0 auto 1em auto;
    width: 75%;
    background-color: #F5F5F5;
    border: 5px solid #ddd;
    margin-bottom: 0;
    padding-bottom: 5em;
    padding-top: 1em;
    border-top: 3px solid #ddd;
    border-bottom: none;
}

hr.dash {
    border: 3.5px solid #af0d2b;
    width: 80px;
    margin-bottom: 1.5em;
}

hr.divider {
    width: 35%;
    margin: -1em auto 1.5em;
}

.main img {
    margin: 0 15%;
    width: 70%;
    margin-top: 2em;
    border: 5px solid #aaa
}

h1 {
    padding: 0.4em 0 0;
    margin: 0 15%;
    text-align: center;
    font-size: 4.35vw;
    font-weight: bold;
    letter-spacing: 3px;
}

.main h2 {
    padding-top: 0.3em;
    font-size: 1.8em;
    text-align: center;
    color: #404040;
    font-weight: normal;
}

.main p {
    color: #808080;
    padding: 0 15%;
    font-size: 1.3em;
    line-height: 1.35em;
    margin-top: 2em;
}

.section {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background-color: rgb(117,20,35);
    width: 100%;
    color: #fff;
    float: left;
    padding: 7% 10%;
    align-items: center;
    justify-content: center;
    border-collapse: collapse;
}

.sec-fill {
    -ms-flex: 45%;
    flex: 45%;
    width: 45%;
}

.spacer {
    margin-left: 10%;
}

.sec-fill img {
    border: 6px solid #aaa;
    max-width: 100%;
    max-height: 100%;
}

.sec-title {
    margin: 0;
    font-size: 3em;
}

.sec-par {
    font-size: 20px;
    line-height: 1.5;
}

.divider {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.diagonal1 {
    display: block;
    position: absolute;
    border-top: 67px solid #aaa;
    border-left: 100vw solid transparent;
    animation: greyAppear 3s;
}

.diagonal2 {
    display: block;
    position: absolute;
    border-top: 45px solid rgb(117,20,35);
    border-left: 100vw solid transparent;
}

.inTextLink a {
    transition: 0.3s ease;
    color: white;
}

.inTextLink a:hover {
    transition: 0.3s ease;
    color: #C2C5C5;
}

#trains {
    margin-left: 15%;
    margin-right: 15%;
    width: 70%;
    border-collapse: collapse;
}

#trains td, #trains th {
    border: 1px solid #ddd;
    padding: 6px;
}

#trains tr:nth-child(even){background-color: #ddd;}

#trains th {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    font-weight: normal;
    font-size: 1.1em;
}

@-webkit-keyframes greyAppear {
    0% {opacity: 0;}
    55% {opacity: 0;}
    100%{opacity: 1;}
}

@keyframes greyAppear {
    0% {opacity: 0;}
    55% {opacity: 0;}
    100%{opacity: 1;}
}

@media screen and (max-width: 767px) {
    .section {
        padding: 130px 0 190px;
        flex-direction: column;
    }

    h1 {
        font-size: 2.5em;
    }
}

/*--------- WAVES ---------*/

.editorial {
    display: block;
    height: 55px;
    max-height: 65px;
    z-index: 5;
    bottom: 0;
    left: 0;
    float: left;
    transform: rotate(180deg);
    width: 75%;
    margin-left: 12.5%;
    margin-bottom: 2%;
}

.parallax1 > use {
    animation: move-forever1 10s linear infinite;
    &:nth-child(1) {animation-delay: -2s;}
}
.parallax2 > use {
    animation: move-forever2 8s linear infinite;
    &:nth-child(1) {animation-delay: -2s;}
}
.parallax3 > use {
    animation: move-forever3 6s linear infinite;
    &:nth-child(1) {animation-delay: -2s;}
}
.parallax4 > use {
    animation: move-forever4 4s linear infinite;
    &:nth-child(1) {animation-delay: -2s;}
}
@keyframes move-forever1 {
    0% {transform: translate(85px, 0%);}
    100% {transform: translate(-90px, 0%);}
}
@keyframes move-forever2 {
    0% {transform: translate(-90px, 0%);}
    100% {transform: translate(85px, 0%);}
}
@keyframes move-forever3 {
    0% {transform: translate(85px, 0%);}
    100% {transform: translate(-90px, 0%);}
}
@keyframes move-forever4 {
    0% {transform: translate(-90px, 0%);}
    100% {transform: translate(85px, 0%);}
}

/*--------- MOBILE ---------*/

@media screen and (max-width: 400px) {

    body {
        background-color: #F5F5F5;
        background-image: none;
    }

    #navbar {
        position: absolute;
        transform: scaleX(0);
        transform-origin: 0 0;
        transition: 0.4s ease;
        width: 50%;
        height: 100%;
        background-color: #af0d2b;
        overflow: visible;
    }

    #navbar.show {
        transform: scaleX(1);
        transition: 0.4s ease;
    }

    .dropdown-content.show {
        transform: scaleX(1);
        transition: 0.4s ease;
    }

    #navbar > li > a, .dropdown .dropbtn {
        padding: 14px 0 14px;
        float: none;
        left: 0;
        width: 100%;
        margin: 0;
    }

    #navbar > li > a.active, .dropbtn.actv {
        border: none;
        background-color: rgb(117,20,35);
    }

    .dropdown {
        display: inline;
    }

    .dropdown-content {
        position: absolute;
        transform: scaleX(0);
        transform-origin: 0 0;
        transition: 0.4s ease;
        margin-left: 0;
        left: 100%;
        width: 100%;
        top: 0;
        height: 100%;
        min-width: 0;
        background-color: rgb(240, 235, 214);
    }

    .dropdown-content a {
        text-align: center;
        color: #505050;
        margin-left: 0;
    }

    .dropdown-content a:hover, .dropdown-content a.active {
        background-color: rgba(90,90,90,0.7);
        transition: 0.4s ease;
    }

    .dropdown-content a.active {
        border-right: 6px solid blue;
        transition: 0.4s ease;
    }

    #icon {
        transform: rotate(270deg);
    }

    #icon.open{
        transform: rotate(450deg);
    }

    .dispNavButton {
        display: block;
        position: absolute;
        font-size: 0.85em;
        padding: 5px 0;
        text-align: center;
        width: 100%;
        color: white;
        z-index: 2;
        background-color: #af0d2b;
    }

    .undispNavButton {
        display: block;
        position: absolute;
        width: 100%;
        top: 100%;
        transform: translate(0, -100%);
        font-size: 1em;
        padding: 9px 0;
        text-align: center;
        color: white;
    }

    .dispNavButton:hover {
        background-color: rgba(150,150,150,0.7);
    }

    .undispNavButton:hover {
        background-color: rgb(117,20,35);
    }

    .main {
        width: 100%;
        margin: 0 0 0;
        padding-top: 12.5%;
        border: none;
    }

    h1 {
        font-size: 2.35em;
        letter-spacing: 0.5px;
    }

    .main p {
        padding: 0 10%;
        font-size: 1em;
    }

    .main img {
        width: 80%;
        margin: 1.5em 10% 0;
    }

    hr.dash {
        border: 2px solid #af0d2b;
        width: 50px;
        margin-bottom: 1.5em;
    }

    .editorial {
        width: 100%;
        height: 35px;
        max-height: 35px;
        transform: rotate(360deg);
        margin-left: 0;
        margin-bottom: 0;
    }

    .diagonal1, .diagonal2 {
        display: none;
    }

    .section {
        padding: 7% 5%;
    }

    .sec-title {
        text-align: center;
        font-size: 2.25em;
    }

    .sec-fill {
        width: 90%;
        margin: 0 5%;
    }

    .sec-par {
        font-size: 16px;
    }

    .spacer {
        margin-left: 5%;
    }
}


/**************************************************************************************************/
/*                                      Printed Page                                              */
/**************************************************************************************************/
@media only print
{
    body    { background-color:white; background-image:none; }
    a       { color:black; }
    #navbar { display:none; }
}

/**************************************************************************************************/

