body, html {
    margin: 0;
    padding: 0;
    color: white;
    letter-spacing: 1px;
}

html {
    padding: 0;
    background: url(../img/background_2.jpg) no-repeat top fixed;
    background-size: cover;
    -webkit-background-size: cover;
}

p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5em;
}

section {
    background-color: #666666;
}

section p {
}

section h1 {
    margin: 0;
    font-family: "Permanent Marker", cursive;
    font-size: 2.5em;
    padding: 25px 40px;
    background-color: #434343;
    border-top: 2px solid #ffde02;
}

section > h1 > img {
    width: auto;
    height: 2em;
    vertical-align: middle;
}

div#header {
    display: flex;
    justify-content: space-between;
    height: 200px;
}

#logo {
    padding: 40px 0 0 40px;
    max-height: 100%;
}

#menu {}

#menu a {
    font-family: "Permanent Marker", cursive;
    letter-spacing: 2px;
    font-size: x-large;
    text-decoration: none;
    color: white;
    outline: none;
}

#menu ul {
    padding: 40px;
    margin: 0;
    list-style: none;
    display: flex;
    display: -ms-flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: flex-end;
}

#menu li {
    padding: 0 20px;
}

#home {
    background: transparent;
    height: 100vh;
    min-height: 500px;
    flex-direction: column;
    justify-content: space-between;
}

#home h1 {
    font-family: "Permanent Marker", cursive;
    letter-spacing: 5px;
    font-size: 3em;
    text-align: center;
    text-shadow: 6px 8px 6px #000000;
    border: none;
    background-color: transparent;
}

#overlay {
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: 0;
    height: 100%;
}

#tiles {
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
    justify-content: space-around;
}

#tiles > div {
    width: 80%;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
}

#tiles > div > div {
    width: 20%;
    font-family: "Permanent Marker", cursive;
    font-size: x-large;
    color: black;
    margin: 0 15px;
    padding: 25px;
    text-align: center;
    align-self: center;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid white;
}

#team > div {
    padding: 50px 0;
    display: flex;
    display: -ms-flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: space-around;
}

#team > div div {
    width: 33%;
    padding: 20px;
}

#team > div div p:first-child {
    font-family: "Permanent Marker", cursive;
    font-size: 25px;
    text-align: center;
}

#team > div > div img {
    display: block;
    padding: 20px;
    margin: 20px auto;
    width: 60%;
    border: 2px solid white;
    border-radius: 25%;
    -webkit-border-radius: 25%;
    -moz-border-radius: 25%;
    background: rgba(165, 165, 165, 0.7);
}

#team > div div p:nth-child(3) {
    margin: 5px auto;
    padding: 10px 20px;
    width: 75%;
    text-align: justify;
    border: 2px solid white;
}

#activities div {
    width: 90%;
    margin: 0 auto;
}

#activities > div > div {
    width: 45%;
}

#activities h2 {
    margin: 50px auto;
    color: #ffde02;
    text-align: center;
    width: 90%;
}

#activities > article {
    margin: 50px 0;
}

#activities p {
    width: 90%;
    margin: 0 auto;
    padding: 10px;
    text-align: justify;
}

#activities article h3 {
    padding: 10px 0 10px 30px;
    margin: 0;
    font-size: 1.5em;
}

/* Contact */
#contact > div {
    display: flex;
    display: -ms-flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: space-between;
}

.my-gallery {
    margin: auto;
    width: 80%;
    display: flex;
}
.my-gallery img {
    width: 100%;
    height: auto;
    margin: 5px;
}
.my-gallery figure {
    flex-direction: row;
    margin: 10px 5px;
    width: 200px;
}

.my-gallery > figure img {
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
}

.my-gallery > figure img.hover-shadow {
    transition: 0.3s
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}

.my-gallery figcaption {
    display: none;
}


#contact > div > div {
    margin: 20px;
    width: 50%;
}

#contact form {
    margin: auto;
    width: 90%;
    display: flex;
    display: -ms-flex;
    display: -webkit-flex;
    flex-direction: column;
}

#contact input, textarea {
    font-size: 1em;
    padding: 0.5em;
    margin: 10px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#contact input[type=text], input[type=email], textarea {
    color: #373737;
}

#contact_form input[type=radio] {
    height: 1em;
    width: 1em;
}

#submit_button {
    text-align: center;
}

#contact button[type=submit] {
    display:inline-block;
    color: #373737;
    padding: 10px;
    background-color: white;
    font-size: 1em;
    margin: 10px;
    border: 2px solid #373737;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#contact input[type=text]:focus, input[type=email]:focus, textarea:focus {
    border: 2px solid #ffde02;
}

#contact label {
    font-size: 1.2em;
}

#contact_us {
    flex-direction: column;
    justify-content: space-between;
}

#contact_us > div {
    width: 90%;
    margin: 0 auto;
}

#contact_us > p {
    text-align: justify;
}

#contact_us p:first-child {
    color: #ffde02;
    padding: 10px;
    text-align: center;
    font-size: 1.5em;
    background: rgba(165, 165, 165, 0.7);
    border: 2px solid white;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

#fb-logo {
    margin: 0 auto;
    display: block;
    padding: 10px;
    text-align: center;
}

#fb-logo a {
    margin: auto;
    text-decoration: none;
    outline: none;
}

#fb-logo img {
    width: 12em;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 15px;
    border: 2px solid white;
}

/* Footer */

footer {
    background-color: #434343;

}

footer > div {
    width: 90%;
    margin: 0 auto;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: space-around;
}

footer > div > div {
    font-size: 0.8em;
    width: 25%;
}

#copyright {
    text-align: center;
    font-size: 0.8em;
}

/* Classes */
.flexbox-container {
    display: flex;
    display: -ms-flex;
    display: -webkit-flex;
}

.active {
    border-bottom: 2px solid white;
}

article.leaf {
    padding: 20px 10px;
}

.leaf {
    margin: 50px;
    border: 2px solid #ffde02;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
}

.rounded-corner {
    border-radius: 25px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;
}

.success {
    margin: auto;
    padding: 5px;
    width: 90%;
    font-size: 1em;
    text-align: center;
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
    border-radius: 5px;
}

.warning {
    margin: auto;
    padding: 5px;
    width: 90%;
    font-size: 1em;
    text-align: center;
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
    border-radius: 5px;
}

.error {
    margin: auto;
    padding: 5px;
    width: 90%;
    font-size: 1em;
    text-align: center;
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    border-radius: 5px;
}

.wait {
    display: inline-block;
}

.wait > img {
    width: 2em;
}

.toggle-nav {
    display: none;
}

/* Pace */
.pace {
    -webkit-pointer-events: none;
    pointer-events: none;

    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.pace-inactive {
    display: none;
}

.pace .pace-progress {
    background: #ffde02;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 2px;
}

#close {
    float: right;
    padding: 0 5px;
    cursor: pointer;
}

@media screen and (max-width: 1000px) {
    div#header {
        height: 220px;
    }

    #menu {
        padding-top: 20px;
    }

    #menu li {
        padding: 0 10px;
    }

    #menu a {
        font-size: 1.2em;
    }

    #logo {
        max-height: 180px;
    }

    #home h1 {
        font-size: 2.5em;
    }

    #tiles > div > div {
        font-size: 1.2em;
    }

    footer > div > div {
        padding: 5px;
        width: 45%;
    }

    .leaf {
        margin: 50px 0;
    }
}

/* Media */
@media screen and (max-width: 850px)/* and (max-aspect-ratio: 13/9)*/ {
    html {
        background: none;
        /*padding: 0;
        background: url(../img/background_p.jpg) no-repeat;
        background-size: 100%;*/
    }

    div#header {
        height: 160px;
    }

    section h1 {
        padding: 15px 20px;
        font-size: 1.5em;
    }

    #logo {
        padding: 10px 0 0 10px;
        max-height: 120px;
    }

    #menuIcon {
        text-decoration: none;
        color: #ffde02;
        font-size: 2.5em;
        transition:color linear 0.2s;
        padding: 6px 12px;
        border: 2px solid #ffde02;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.3);
    }

    #menuIcon:hover, .menuIcon.active {
        text-decoration:none;
        color: white;
    }

    #menu {
        padding: 15px;
        position: absolute;
        display: none;
        top: 135px;
        right: 30px;
        border: 2px solid #ffde02;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.8);
    }

    #menu ul {
        padding: 0;
        flex-direction: column;
    }

    #menu > ul > li {
        margin: 5px 0;
    }

    /* Home */
    #home {
        background: url(../img/background_p.jpg) rgba(0, 0, 0, 0.4);
        background-size: cover;
        min-height: 900px;
    }

    #tiles {
        height: 85%;
    }

    #tiles > h1 {
        font-size: 2.5em;
    }

    #tiles > div {
        flex-direction: column;
        justify-content: space-around;
    }

    #tiles > div > div {
        font-size: 1.5em;
        margin: 20px 0;
        width: 70%;
    }

    #activities article {
        margin: 20px auto;
        width: 90%;
    }

    #activities > div {
        flex-direction: column;
    }

    #activities > div > div {
        width: 90%;
    }

    /* Team */
    #team > div {
        flex-direction: column;
    }

    #team > div div {
        margin: auto;
        width: 75%;
    }

    #team > div > div > img {
        width: 50%;
    }

    #team > div > div > p {
        font-size: 3vw;
    }

    #contact > div {
        flex-direction: column;
    }

    #contact > div > div {
        margin: auto;
        width: 90%;
    }

    .toggle-nav {
        margin: auto 30px auto 0;
        display: block;
    }

}

/*
@media screen and (max-width: 1000px) and (min-aspect-ratio: 13/9) {
    html {
        padding: 0;
        background: url(../img/background_portrait.jpg) no-repeat;
        background-size: contain;
    }

    /!* Home *!/
    #home {
        min-height: 750px;
    }
}*/
