﻿html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    font-size: 62.5%;
}


body {
    font-family: Arial, Arial, Helvetica, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #5a5a5a;
}

/* _______ TYPOGRAPHY _______ */

h1 {
    font-size: 3.1rem;
    font-weight: bold;
    color: #5a5a5a;
    margin-top: 2rem;
}

p {
    font-size: 1.4rem;
    padding: 1rem;
}

ul {
    margin: 2rem 1rem;
}

ul li {
    font-size: 1.4rem;
    padding: 1rem 0;
    margin-left: 2rem;
}

/* _______ LAYOUT _______ */

header {
    background: #17252E;
    padding: 2rem;
}

.container {
    width: 70%;
    margin: 2rem auto;
}

.explanation {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
}

hr {
    margin: 2rem 0;
    width: inherit;
    border: none;
    height: 1px;
    background: #333333;
}

form {
    width: 80rem; 
    margin: 2rem auto;
    float: left;

}

.full-width {
    width: 100%;
}

/* _______ FORM _______ */

label {
    font-size: 1.4rem;
    padding: 1rem;
}

.radio-buttons {
    margin-left: 2rem;
}

button,
input,
select,
textarea {
    margin: 0;
    font-size: 100%;
    vertical-align: middle;
}

button,
input {
    *overflow: visible;
    line-height: normal;
}

    button::-moz-focus-inner,
    input::-moz-focus-inner {
        padding: 0;
        border: 0;
}

    input[type="text"],
    input[type="email"], input[type="tel"],
    textarea {
        display: inline-block;
        padding: 4px;
        font-size: 1.4rem;
        line-height: 1.8rem;
        color: #555555;
        border: 1px solid #cccccc;
        border-radius: 3px;
        background: white;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        -webkit-transition: border linear .2s, box-shadow linear .2s;
        -moz-transition: border linear .2s, box-shadow linear .2s;
        transition: border linear .2s, box-shadow linear .2s;
}

     input[type="text"]:focus,
     input[type="email"]:focus, input[type="tel"]:focus,
     textarea:focus {
         border-color: rgba(82,168,236,0.8);
         outline: 0;
         -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.75), 0 0 8px rgba(82,168,236,.6);
         -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.75), 0 0 8px rgba(82,168,236,.6);
         box-shadow: inset 0 1px 1px rgba(0,0,0,.75), 0 0 8px rgba(82,168,236,.6);
}

input[type="text"], textarea {
    width: 35rem;
    float: right;
}

.button {
    display: inline-block;
    padding: 4px 12px;
    font-size: 1.4rem;
    line-height: 2rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    color: white;
    background-color: #006dcc;
    text-shadow:
        0 -1px 0 rgba(0,0,0,0.25);
    background-image: linear-gradient(to bottom, #0088cc, #0044cc);
    background-repeat: repeat-x;
    border-color: rgba(0,0,0,0.1)
        rgba(0,0,0.1)
        rgba(0,0,0,0.25);
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        0 1px 2px rgba (0,0,0,.05);
}

.button:hover {
    background: #0044cc;
    color: white;
    text-decoration: none;
    background-position: 0 -15px;
    transition: background-position 0.1s linear;
}

/* _______ SUCCESS PAGE _______ */

.success-wrapper {
    background: #DFF0D8;
    padding: 2rem;
    border: solid 1px green;
    color: #000000;
    border-radius: 10px;
    width: 100%;
    margin: 2rem 0;
}


/* _____ MEDIA QUERIES ______
   _____               ______ */

@media only screen and (max-width: 1040px) {
    .container {
        width: 90%;
    }
}

@media only screen and (max-width: 860px) {
  
    input[type="text"] {
        float: none;
        clear: both;
    }
}

@media only screen and (max-width: 680px) {

   form {
       width: 100%;
   }
}