@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("https://www.w3schools.com/w3css/4/w3.css");

html, body {
    height: 100%;
    background-color: #9FC53B;
}

.main {
    height: 100%;
    margin-left: 0;
/*    display: flex;
    flex-flow: column;
    align-content: center;*/
    transition: margin-left .5s;
    background-color: #9FC53B;
    color: #231F20;
}

.main-sidenav-open {
    margin-left: 200px;
}

/* Home page content */
#home-content {
    padding: 40px;
    display: flex;
    flex-flow: column;
}

#logo {
    display: block;
    margin: auto;
    padding-top: 5%;
    max-width: 35%;
    animation: shake 2.5s;
    animation-iteration-count: infinite;
}


@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    2% { transform: translate(-1px, -2px) rotate(-1deg); }
    4% { transform: translate(-3px, 0px) rotate(1deg); }
    6% { transform: translate(3px, 2px) rotate(0deg); }
    8% { transform: translate(1px, -1px) rotate(1deg); }
    10% { transform: translate(-1px, 2px) rotate(-1deg); }
    12% { transform: translate(-3px, 1px) rotate(0deg); }
    14% { transform: translate(3px, 1px) rotate(-1deg); }
    16% { transform: translate(-1px, -1px) rotate(1deg); }
    18% { transform: translate(1px, 2px) rotate(0deg); }
    20% { transform: translate(1px, -2px) rotate(-1deg); }
    22% { transform: translate(1px, 1px) rotate(0deg); }
    100% { transform: translate(1px, 1px) rotate(0deg); }
}


#motto {
    text-align: center;
    font-size: 2.5vw;
}

/* The top navigation bar */
.top-navbar {
    top: 0;
    display: flex;
    flex-direction: row;
    height: 65px;
    width: 100%;
    background-color: #231F20;
    color: white;
    align-items: center;
    justify-content: space-between;
}

    .top-navbar .icon {
        text-decoration: none;
        transition: all .5s;
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.1rem;
        font-size: 2rem;
        text-align: center;
        border-color: #231F20;
    }

    .top-navbar .social-icon {
        border-radius: 100%;
        border-style: solid;
        color: #231F20;
    }

    body.hasHover .top-navbar .icon:hover {
        opacity: 0.7;
        font-size: 2.2rem;
        width: 3.8rem;
        height: 3.8rem;
        line-height: 3.2rem;
        text-decoration: none;
    }

    .top-navbar .fa-facebook-square {
        background: #9FC53B;
    }

    .top-navbar .fa-instagram {
        background: #5DAE46;
    }

    .top-navbar .fa-envelope-open {
        background: #28A349;
    }

    .top-navbar .home-button {
      text-decoration: none
    }


/* The side navigation bar */

.sidenav {
    width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #231F20;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav-open {
    width: 200px;
}

.sidenav-status-at-page-load {
    width: 200px;
}

#mini-logo {
    display: block;
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    margin-right: 15%;
    margin-top: 5%;
    margin-bottom: 5%;
    padding: 7px
}

.sidenav a {
    width: 100%;
    padding: 4px 15% 4px 15%;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
    display: block;
    transition: 0.3s;
    text-align: right;
}

body.hasHover .sidenav .menu-item:hover {
    font-size: 1.8rem;
    color: #231F20;
    background-color: #9FC53B;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.dropdown {
    width: 100%;
}

.dropdown-title {
    padding: 4px 15% 4px 15%;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
    display: block;
    transition: 0.3s;
    text-align: right;
}

.dropdown:hover .dropdown-title {
    font-size: 1.8rem;
    color: #231F20;
    background-color: #9FC53B;
}

.dropdown-content {
    width: 100%;
    display: none;
}

.dropdown-content a {
    color: black;
    padding: 4px 15% 4px 15%;
    font-size: 1rem;
    color: #231F20;
    background-color: white;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd}

.dropdown:hover .dropdown-content {
    display: block;
}

@media only screen and (max-width: 768px) {
    .sidenav-open {width: 0;}
    #main-single {margin-left: 0;}
    .sidenav {opacity: 0.9;}
    .sidenav a {font-size: 1rem;}
    .dropdown-title {font-size: 1rem;}
    .dropdown-content a {font-size: 1rem;}
    body.hasHover .dropdown:hover .dropdown-title {font-size: 1.4rem;}
    body.hasHover .sidenav .menu-item:hover {font-size: 1.4rem;}
    .sidenav-open {width: 150px;}
    .main-sidenav-open {margin-left: 0;}
    .sidenav-status-at-page-load { width: 0px; }
    #logo {max-width: 80%;}
    #motto {font-size: 6vw;}
}


/* Content pages style */

.content {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    justify-content: center;
}


.paragraph {
    max-width: 500px;
    background-color: #231F20;
    color: white;
    border-style: solid;
}



/*SLIDER*/
#slides {
    margin: auto;
    width: 100%;
    height: 100%;
    display: none;
}

    #slides .slidesjs-navigation {
      margin-top:5px;
    }

    a.slidesjs-next,
    a.slidesjs-previous,
    a.slidesjs-play,
    a.slidesjs-stop {
      background-image: url(img/btns-next-prev.png);
      background-repeat: no-repeat;
      display:block;
      width:12px;
      height:18px;
      overflow: hidden;
      text-indent: -9999px;
      float: left;
      margin-right:5px;
    }

    a.slidesjs-next {
      margin-right:10px;
      background-position: -12px 0;
    }

    a:hover.slidesjs-next {
      background-position: -12px -18px;
    }

    a.slidesjs-previous {
      background-position: 0 0;
    }

    a:hover.slidesjs-previous {
      background-position: 0 -18px;
    }

    a.slidesjs-play {
      width:15px;
      background-position: -25px 0;
    }

    a:hover.slidesjs-play {
      background-position: -25px -18px;
    }

    a.slidesjs-stop {
      width:18px;
      background-position: -41px 0;
    }

    a:hover.slidesjs-stop {
      background-position: -41px -18px;
    }

    .slidesjs-pagination {
      margin: 7px 0 0;
      float: right;
      list-style: none;
    }

    .slidesjs-pagination li {
      float: left;
      margin: 0 1px;
    }

    .slidesjs-pagination li a {
      display: block;
      width: 13px;
      height: 0;
      padding-top: 13px;
      background-image: url(img/pagination.png);
      background-position: 0 0;
      float: left;
      overflow: hidden;
    }

    .slidesjs-pagination li a.active,
    .slidesjs-pagination li a:hover.active {
      background-position: 0 -13px
    }

    .slidesjs-pagination li a:hover {
      background-position: 0 -26px
    }

    #slides a:link,
    #slides a:visited {
      color: #333
    }

    #slides a:hover,
    #slides a:active {
      color: #9e2020
    }
