/* animation for banner slider */
@-webkit-keyframes slidy { 
    0%  { left: 0%; }
    20% { left: 0%; }
    33% { left: 100%; }
    53% { left: 100%; }
    66% { left: 200%; }
    86% { left: 200%; }
    100% { left: 300%; }
}

@keyframes slidy { 
    0%  { left: 0%; }
    20% { left: 0%; }
    33% { left: 100%; }
    53% { left: 100%; }
    66% { left: 200%; }
    86% { left: 200%; }
    100% { left: 300%; }
}

/* animation for snackbar */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Varela Round', Verdana, Geneva, sans-serif;;
    font-size: 100%;
    max-width: 1400px;
    margin: auto;
}

.top-contact-bar {
    background-color: black;
    width: 100%;
    padding: 4px 10%;
    margin-bottom: 20px;
}

.top-contact-bar a {
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 4px 4px;
    font-size: 1em;
}

.top-contact-bar .showMenuIcon {
    display: none;
}

.topnav {
    width: 100%;
    overflow: hidden;
}

.topnav-centerd {
    width: 80%;
    margin: 0 auto;
}

.topnav::before {
    content: "";
    display: block;
    width: 100%;
    border-top: 2px solid #E6E7E8;
    margin: 0 auto;
    -ms-transform: translate(0px, 7px);
    -webkit-transform: translate(0px, 7px);
    transform: translate(0px, 7px);
}

/* Style the links inside the navigation bar */
.topnav a {
    float: right;
    color: black;
    text-align: center;
    padding: 5px 5px;
    text-decoration: none;
    font-size: 1.25em;
    width: 20%;
    border-top: 6px solid transparent;
    /*border: solid 1px black;*/
}
.topnav a::before {
    content: "";
    display: block;
    width: 0;
    border-top: 6px solid #C2AC2F;
    margin: 0 auto;
    -ms-transform: translate(0px, -8px);
    -webkit-transform: translate(0px, -8px);
    transform: translate(0px, -8px);
    -webkit-transition:all 0.3s linear 0s;
    transition:all 0.3s linear 0s;
}

/*.topnav_spacer {
    float: right;
    width: 10%;
    padding: 5px 5px;
    text-align: center;
    border-top: 6px solid transparent;
}*/


/* Change the color of links on hover */
.topnav a:hover::before {
    width: 60%;
}

/* Add a color to the active/current link */
.topnav a.active::before {
    width: 60%;
}

.row {
    display: block;
    width: 100%;
    height: auto;
    /*border: 1px solid blue;*/
    overflow: hidden;
}
.right-col {
    float: left;
    width: 10%;
    height: auto;
    padding: 5px;
    /*border: 1px solid black;*/
}

.middle-col {
    float: left;
    width: 80%;
    height: auto;
    /*border: 1px solid black;*/
}

.left-col {
    float: left;
    width: 10%;
    height: auto;
    /*border: 1px solid black;*/
}

.left-col img {
    float: left; 
    width: 50px;
    height: auto;
    margin-left: 20px;
    margin-top: 50px;
}

#banner-slider {
    position: relative;
    width: 100%;
    height: auto; 
    max-width: 1200px;
    /*background-color: aqua;*/
    /*border: 1px solid black;*/
    overflow: hidden; 
}

.banner-figures {
    position: relative;
    width: 400%;
    margin: 0;
    padding: 0;
    font-size: 0;
    text-align: left;
    -webkit-animation: 40s slidy infinite;
    animation: 40s slidy infinite;
}

.banner-figures:hover { 
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.banner-figures img {
    width: 25%;
    height: auto;
    float: right;
}

/* The dots/bullets/indicators */
.banner-slider-dots {
    display: none;
    position: absolute;
    text-align:center;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0);
}

.dot {
    cursor: pointer;
    height: 20px;
    width: 20px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    border: 1px solid black;
    display: inline-block;
    -webkit-transition: background-color 0.6s ease, box-shadow 0.6s ease;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
  }
  
.dot:hover {
    background-color: #717171;
    box-shadow: 5px 5px 5px #aaaaaa;
}

h1 { 
    display: block;
    font-size: 1.375em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10%;
    margin-right: 10%;
    font-weight: normal;
    text-align: justify;
    line-height: 1.7;
}

.p1 {
    margin: 10px 10%;
    text-align: justify;
    font-size: 1.125em;
    line-height: 1.8;
    /*border-bottom: 2px dotted #E6E7E8;*/
}

h2 { 
    display: block;
    font-size: 1.125em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10%;
    margin-right: 10%;
    font-weight: bold;
    text-align: justify;
    line-height: 1.7;
}

h3 { 
    display: block;
    font-size: 1.125em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10%;
    margin-right: 10%;
    font-weight: normal;
    text-align: justify;
    line-height: 1.7;
}
.p2 {
    margin: 10px 10%;
    text-align: justify;
    font-size: 1em;
}

.p3 {
    text-align: justify;
    font-size: 1.125em;
}

.bottom-line {
    border-bottom: 2px dotted rgba(173, 173, 173, 0.979);
}

.before-footer {
    display: none;
    width: 100;
    height: auto;
    margin-top: 20px;
    color: white;
    background-color: #3a3a3c;
    border-top: 2px solid #c2ad30;
    border-bottom: 2px solid #c2ad30;
    font-size: 1.25em;
    text-align: center;
}

.footer {
    width: 100%;
    /*height: 200px; */
    height: auto;
    margin-top: 20px;
    overflow: hidden;
    /*padding: 1px;*/
    background-image: url("../pic/footer-01.jpg");
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: grey;
    /*position: relative;*/
    /*text-align: center;*/
    /*color: white;*/
}

.left-footer {
    float: left;
    width: 30%;
    padding: 15px;
}

/* Full-width input fields */
.left-footer input[type=text], .left-footer input[type=email], .left-footer #location {
    width: 100%;
    padding: 3px 5px;
    margin: 7px 0;
    border: none;
    background: white;
    font-family: inherit;
    font-size: 0.875em; 
}

.left-footer input[type=text]:focus, .left-footer input[type=email]:focus, .left-footer #location:focus {
    background-color: #ddd;
    outline: none;
}

/* Set a style for the submit button */
.left-footer .btn {
    background-color: #C2AC2F;
    color: white;
    padding: 3px 5px;
    border: none;
    cursor: pointer;
    width: 30%;
    opacity: 0.9;
    float: left;
    font-family: inherit;
    font-size: 0.875em; 
}

.left-footer .btn:hover {
    opacity: 1;
}


.mid-footer {
    float: left;
    width: 39%;
    margin-top: 30px;
    padding: 10px 40px;
    /*border: 1px solid black;*/
}

.mid-footer p {
    font-size: 1.1em; 
    color:white; 
    text-align: center;
    line-height: 1.6;
    /*border: 1px solid black;*/
}

.right-footer {
    float: left;
    width: 20%;
    padding-top: 70px;
    /*padding-right: 90px;*/
    text-align: right;
    /*border: 1px solid black;*/
}

.right-footer a {
    font-size: 1em;
    text-align: right;
    text-decoration: none;
    color: white;
    padding: 8px;
}

.leaf-footer {
    float: left;
    width: 10%;
    height: auto;
    padding-top: 30px;
}

.leaf-footer img {
    width: 130px;
    height: auto;
}

.karin-footer-bar {
    width: 100%;
    height: auto;
    margin-top: 20px;
    padding: 0 10% 0;
    background-color: #E6E7E8;
    /*border: 1px solid red;*/
    text-align: left;
}

.karin-footer-bar a {
    font-size: 0.875em;
    text-align: center;
    text-decoration: none;
    color: black;
    padding: 8px;
}

/* logo style */
#logo {
    width: 50%;
    height: auto; 
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden; 
}

#logo img {
    width: 100%;
    height: auto;
}

/* page header */
.page-header {
    border: 1px solid black;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 1.6em;
    text-align: center;
}

/*#title:after {
    content: "";
    display: block;
    width: 200px;
    border-top: 6px solidr;E7E8;
    /*margin: 0 auto;
    /*text-align: center;at
    /*transform: translate(0px, 7px);
}*/

/* snackbar */
div#snackbar {
    display: none;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 1.125em;
}

div#snackbar.show {
    display: block;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@media only screen and (max-width: 1200px) {
    .right-footer a {
        font-size: 0.875em;
    }
    .mid-footer {
        padding: 10px 20px 10px 10px;
    }
    .mid-footer p {
        font-size: 0.875em; 
    }
}

@media only screen and (max-width: 1000px) {
    .left-footer {
        width: 50%;
    }
    .mid-footer {
        display: none;
    }
    .right-footer {
        width: 30%;
    }
    .right-footer a {
        font-size: 0.75em;
    }
    .leaf-footer {
        width: 20%;
    }

    .topnav-centerd {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    /* For mobile phones: */

    /* make the top-nav sticky */
    .top-contact-bar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1; /* Sit on top */
        padding: 4px 10px;
        margin-bottom: 0px;
    }

    .top-contact-bar a {
        float: left;
        font-size: 1em;
        margin: 0px 8px;
    }

    .top-contact-bar .showMenuIcon {
        float: right;
    }

    .top-contact-bar #phone-number {
        display: none;
    }

    .row {
        padding-top:  36px;
    }

    .extra-padding {
        /*padding-top: 180px;*/
        padding-top: 216px;
    }
  
    .flex-container {
        display: flex;
        flex-direction: column-reverse;
    }
  
    .topnav::before, .topnav a::before {
        display: none;
    }

    /* The sticky class is added to the navbar with JS when it reaches its scroll position */
    .sticky {
        position: fixed;
        top: 36px;
        width: 100%;
        z-index: 1; /* Sit on top */
        /*background-color: rgb(0,0,0); /*Fallback color*/ 
        background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    }

    .topnav a {
        float: none;
        display: block; 
        width: 100%;
        background-color: #d1d2d4;
        padding: 2px;
        margin: 2px 0px;
    }
    
    .topnav a:hover {
        background-color: #b5b6b8;
    }

    .topnav a.active {
        color: white;
        background-color: #3a3a3c;
        border-top: 2px solid #c2ad30;
        border-bottom: 2px solid #c2ad30;
    }
    /*.topnav-centerd {
        width: 100%;
    }*/

    #logo {
        width: 100%;
        height: auto;
        font-size: 0;
        /*border: 1px solid red;*/
        padding: 0px;
        margin: 0px;
    }

    .page-header {
        margin: 10px;
        font-size: 1.3em;
    }

    .topnav_spacer, .right-col, .left-col, .right-footer, .mid-footer, .leaf-footer {
        display: none;
    }
    .middle-col {
        width: 100%;
    }

    .before-footer {
        display: block;
    }
    
    .footer {
        margin-top: 0px;
    }

    .left-footer {
        width: 100%;
        padding: 15px 10%;
    }
    
    .p3, .p4 {
        margin: 10px 10%;
    }
}

