/**
*** SIMPLE GRID
*** (C) ZACH COLE 2016
**/

/* UNIVERSAL */

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
    font-size: 100%;
}

/* ROOT FONT STYLES */

* {
    font-family: 'Lato', Helvetica, sans-serif;
    line-height: 1.5;
}

hr.black {
    border: none;
    height: 1px;
    color: #000;
    background-color: #000;
}

hr.white {
    border: none;
    height: 1px;
    color: #fff;
    background-color: #fff;
}

/* TYPOGRAPHY */

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: 400;
}

.font-heavy {
    font-weight: 700;
}

small {
    font-size:.8rem !important;
    line-height:.8rem !important;
    color:#888;
}

table {
    width:100%;
}

/* POSITIONING */

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.justify {
    text-align: justify;
}

/* ==== GRID SYSTEM ==== */

.container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.row {
    position: relative;
    width: 100%;
}

.row [class^="col"] {
    float: left;
    margin: 1% 2%;
    min-height: 0.125rem;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    width: 96%;
}

.col-1-sm {
    width: 4.33%;
}

.col-2-sm {
    width: 12.66%;
}

.col-3-sm {
    width: 21%;
}

.col-4-sm {
    width: 29.33%;
}

.col-5-sm {
    width: 37.66%;
}

.col-6-sm {
    width: 46%;
}

.col-7-sm {
    width: 54.33%;
}

.col-8-sm {
    width: 62.66%;
}

.col-9-sm {
    width: 71%;
}

.col-10-sm {
    width: 79.33%;
}

.col-11-sm {
    width: 87.66%;
}

.col-12-sm {
    width: 96%;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.hidden-sm {
    display: none;
}

input[type=text], select, textarea {
    width: 100%;
    padding: 12px 20px;
    display: inline-block;
    border: 1px solid #888;
    border-radius: 10px;
    box-sizing: border-box;
    background-color:#fff;
    font-size:100%;
    /*
    &:required{
        border-color: darkblue !important;
    }
    */
}

input:focus, select:focus, textarea:focus {
    outline-style: solid;
    outline-color: #000;
    outline-width: medium;
    /*
    &:required{
        outline-color: darkblue !important;
    }
    */
}

input:placeholder, select:placeholder, textarea:placeholder {
    color:#888;
}

select {
    color:#888;
}

button.full {
    background-color: #000;
    color: white;
    padding: 14px 20px;
    border: 1px solid #000;
    border-radius: 10px;
    border: 1px solid #000;
    font-size:100%;
    &:not([disabled]){
        cursor: pointer;
    }
}

button.full:not([disabled]):hover {
    background-color: transparent;
    color:#000;
}

button.full:disabled {
    opacity: 0.5;
}

button.ol {
    border: 1px solid #000;
    background-color: transparent;
    color:#000;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #000;
    font-size:100%;
    &:not([disabled]){
        cursor: pointer;
    }
}

button.ol:not([disabled]):hover {
    background-color: #000;
    color: white;
}

button.ol:disabled {
    opacity: 0.5;
}

button[type=submit] {
    width: 100%;
    background-color: #000;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #000;
    font-size:100%;
    &:not([disabled]){
        cursor: pointer;
    }
    transition: opacity 1s ease-in-out;
}

button[type=submit]:not([disabled]):hover {
    background-color: transparent;
    color:#000;
}

button[type=submit]:disabled {
    opacity: 0.5;
}

.file-area {
    width: 100%;
    position: relative;

    input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        cursor: pointer;
    }

    .file-dummy {
        width: 100%;
        padding: 30px 0;
        border-radius:10px;
        background: rgba(0,0,0,0.2) !important;
        border: 2px dashed #888 !important;
        text-align: center;
        transition: background 0.3s ease-in-out;
        box-sizing: border-box;
        .success {
            display: none;
        }
        .invalid {
            display: none;
        }
        .default {
            display: inline-block;
        }
    }

    &:hover .file-dummy {
        background: rgba(0,0,0,0.1) !important;
    }

    input[type=file].valid + .file-dummy {
        border-color:#000 !important;
        background-color: #000 !important;
        color:#fff;

        .success {
            display: inline-block;
        }
        .invalid {
            display: none;
        }
        .default {
            display: none;
        }
    }

    input[type=file].invalid + .file-dummy {
        border-color:#d8052a !important;
        background-color: #d8052a !important;
        color:#fff;

        .success {
            display: none;
        }
        .invalid {
            display: inline-block;
        }
        .default {
            display: none;
        }
    }
}

@media only screen and (min-width: 33.75em) {  /* 540px */
    .container {
        width: 80%;
    }
}

@media only screen and (min-width: 45em) {  /* 720px */
    .col-1 {
        width: 4.33%;
    }

    .col-2 {
        width: 12.66%;
    }

    .col-3 {
        width: 21%;
    }

    .col-4 {
        width: 29.33%;
    }

    .col-5 {
        width: 37.66%;
    }

    .col-6 {
        width: 46%;
    }

    .col-7 {
        width: 54.33%;
    }

    .col-8 {
        width: 62.66%;
    }

    .col-9 {
        width: 71%;
    }

    .col-10 {
        width: 79.33%;
    }

    .col-11 {
        width: 87.66%;
    }

    .col-12 {
        width: 96%;
    }

    .hidden-sm {
        display: block;
    }
}

@media only screen and (min-width: 60em) { /* 960px */
    .container {
        width: 75%;
        max-width: 60rem;
    }
}
