* {
    box-sizing: border-box;
    outline: none;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #272727;
}

a,
a:link,
a:visited {
    text-decoration: none;
}

h1 {
    margin-bottom: 25px;
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 60px;
    font-weight: 400;
}

body.home {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

header {
    width: 100%;
    padding: 20px 10px;
}

button {
    display: inline-block;
    padding: 12px 20px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    color: #444;
    background-color: #eee;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    -webkit-appearance: none;
    transition: all 0.25s ease-in-out;
}

button.primary {
    color: #fff;
    background-color: #FFB400;
}

button.primary:hover {
    background-color: #f2ae1b;
}

button.secondary {
    color: #fff;
    background-color: #2994B2;
}

button.secondary:hover {
    background-color: #2994B2;
}

.logo {
    float: left;
    display: block;
    margin-left: 20px;
}

nav {
    float: right;
    margin-top: 10px;
    font-size: 16px;
}

nav a {
    float: left;
    display: block;
    margin-right: 10px;
    padding: 6px 20px;
    color: #fff;
    transition: opacity .25s ease-in-out;
}

nav a:last-child {
    margin: 0;
}

nav a.highlighted {
    border: 2px solid #fff;
    border-radius: 3px;
}

nav a:hover {
    opacity: .7;
}

footer {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 20px 30px;
}

main {
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.home main {
    width: 900px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

body.home main p {
    margin-bottom: 90px;
    font-size: 18px;
    line-height: 1.7;
}

body.home main button {
    width: 300px;
    padding: 20px 50px 18px;
    font-size: 20px;
    font-weight: 400;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .45);
    transition: none;
}

body.home main button .icon {
    margin-right: 8px;
    font-size: 28px;
    vertical-align: -4px;
}

.flip-container {
    display: inline-block;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
    -ms-transform: perspective(1000px);
    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
}

.flip-container.flip .flipper {
    transform: rotateX(-180deg);
}

.flip-container, .front, .back {
    width: 300px;
    height: 65px;
}

.flipper {
    transition: 0.5s;
    transform-style: preserve-3d;
    position: relative;
    -webkit-transform-origin: 100% 32.5px;
    -moz-transform-origin: 100% 32.5px;
    -ms-transform-origin: 100% 32.5px;
    transform-origin: 100% 32.5px;
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.front {
    z-index: 2;
    /* for firefox 31 */
    transform: rotateX(0deg);
}

.back {
    transform: rotateX(180deg);
    background-color: #fff;
    border-radius: 3px;
}

body.home header,
body.home footer,
body.home main {
    color: #fff;
}

.overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
}

form {
    width: 1200px;
    position: absolute;
    z-index: 2;
    display: none;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, .25);
}

fieldset, .files {
    height: 545px;
}

fieldset {
    width: 400px;
    float: left;
    padding: 15px;
    background-color: #fafafa;
    border-right: 1px solid #eee;
    border-radius: 3px 0 0 0;
}

.form-control {
    width: 100%;
    position: relative;
    margin-bottom: 5px;
}

.form-control:first-child {
    margin-top: 15px;
}

.form-control:last-child {
    margin: 0;
}

.files {
    width: 800px;
    position: relative;
    float: right;
}

.files .info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 18px;
    color: #888;
}

.files button {
    clear: both;
    margin-top: 15px;
}

.actions {
    width: 100%;
    clear: both;
    padding: 14px;
    text-align: right;
    background-color: #eee;
    border-top: 1px solid #ddd;
}

.form-control {
    position: relative;
    margin-bottom: 30px;
}

input[type=text], textarea {
    width: 100%;
    display: block;
    padding: 10px 0;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    background-color: #fafafa;
    border: 0;
    border-bottom: 1px solid #ddd;
}

textarea {
    height: 210px;
}

input:focus,
textarea:focus {
    outline: none;
}

label {
    position: absolute;
    top: -20px;
    left: 0px;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    pointer-events: none;
    transition: all 0.2s ease;
}

.bar {
    width: 100%;
    position: relative;
    display: block;
}

.bar:before,
.bar:after {
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 0;
    content: '';
    background: #555;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.bar:before {
    left: 50%;
}

.bar:after {
    right: 50%;
}

input:focus ~ .bar:before,
input:focus ~ .bar:after,
textarea:focus ~ .bar:before,
textarea:focus ~ .bar:after {
    width: 50%;
}

@media screen and (max-width: 1290px) {
    h1 {
        margin-bottom: 20px;
        font-size: 54px;
    }

    body.home main p {
        margin-bottom: 70px;
        font-size: 16px;
    }
}

@media screen and (max-width: 1240px) {
    fieldset, .files {
        width: 100%;
        float: none;
    }

    fieldset {
        border: 0;
        border-bottom: 1px solid #ddd;
    }

    .files {
        height: 400px;
    }
}

@media screen and (max-width: 1024px) {
    h1 {
        font-size: 44px;
    }

    body.home main {
        width: 700px;
    }

    body.home main p {
        margin: 0 auto 50px;
        font-size: 16px;
    }
}
