body,
html {
    font-family: 'Lato', sans-serif;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    min-height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}
header {
    width: 100%;
    background-color: #e5e5e5;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-top: 20px;
}
header img {
    opacity: 0.7;
    margin-bottom: 15px;
}
header a:first-child img {
    width: 180px;
    margin-left: 25px;
    margin-right: 15px;
}
header a:nth-child(2) img {
    width: 160px;
    margin-left: 15px;
    margin-right: 13px;
}
header a:nth-child(3) img {
    width: 70px;
    margin-left: 13px;
    margin-right: 13px;
}
#logo {
    text-align: center;
    padding-top: 2em;
}
h1,
h2 {
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 0.15em;
}
main h2 {
    font-size: 1.2em;
    letter-spacing: 0.08em;
}
a {
    color: #ef747c;
}
#logo_lg {
    width: 100px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
main {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 1200px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
main section {
    max-width: 750px;
    margin-left: 4%;
    margin-right: 4%;
}
main section p,
.modalDialog p {
    line-height: 1.3em;
}
.fullwidth {
    width: 100%;
    margin-bottom: 2em;
}
main ul {
    list-style-type: none;
    padding: 0;
}
main li {
    border-top: dotted 1px #999;
    padding-top: 5px;
    margin-bottom: 8px;
    font-size: 0.9em;
}
aside {
    color: #fff;
    width: 20%;
    min-width: 400px;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background-color: #10c5f5;
    padding-top: 15px;
    padding-bottom: 30px;
}
#contact {
    text-align: right;
    margin-right: 40px;
}
#contact a {
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    letter-spacing: 0.07em;
}
aside section {
    max-width: 450px;
    font-size: 0.75em;
    margin-left: 40px;
    margin-right: 40px;
}
aside img {
    width: 180px;
    margin-left: -37px;
    margin-bottom: 20px;
}
aside h2 {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1.3em;
    letter-spacing: 0.07em;
}
aside hr {
    border: none;
    background: none;
    border-bottom: dotted 1px rgba(255, 255, 255, 0.7);
    margin-top: 1.5em;
}
button {
    background-image: -webkit-linear-gradient(top, #38d5ff, #0fc2f2);
    background-image: linear-gradient(to bottom, #38d5ff, #0fc2f2);
    border-radius: 8px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 20px;
    padding: 10px 20px 10px 20px;
    border: solid rgba(255, 255, 255, 0.8) 2px;
    text-decoration: none;
    margin-bottom: 0.5em;
    cursor: pointer;
}
button:hover {
    background-image: -webkit-linear-gradient(top, #6de0ff, #1fcdfc);
    background-image: linear-gradient(to bottom, #6de0ff, #1fcdfc);
}
button:focus {
    outline: 0;
}

/************************ Modal Window *************************/

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(214, 214, 214, 0.82);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}
.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}
.modalDialog > div {
    width: 500px;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    background: #fff;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
}
.modalDialog p {
    font-size: 0.95em;
}
.modalDialog form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    ;
}
.modalDialog > div input,
.modalDialog > div textarea {
    font-size: 1em;
    padding: 0.8em;
    width: 100%;
    margin-bottom: 8px;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
    border: solid 1px #D6D6D6;
    background-color: #FBFBFB;
}
.modalDialog > div textarea {
    height: 100px;
}
.modalDialog h2 {
    letter-spacing: 0.1em;
}
.modalDialog button {
    margin-top: 10px;
    border: solid 1px #4ABDEA;
}
.close {
    background: rgb(197, 197, 197);
    color: #FFFFFF;
    line-height: 24px;
    position: absolute;
    right: 12px;
    text-align: center;
    top: 12px;
    width: 24px;
    text-decoration: none;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.12);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.11);
}
.close:hover {
    background: #10c5f5;
}
@media (max-width:1000px) {
    body,
    html {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    aside {
        width: 100%;
        min-width: inherit;
    }
    main section,
    aside section {
        margin-left: 5%;
        margin-right: 5%;
    }
    #contact {
        margin-right: 5%;
    }
}
@media(max-width:750px) {
    header {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
} 
