html,
body
{
    background:    #fefefe;
    color: #647F94;
    box-sizing: border-box;
    font-family: "PT Sans", sans-serif;
    font-size:     1em;
    height:        100%;
    margin:        0;
    padding:       0;
    position: relative;
    width:         100%;
}
body
{
    max-width: 1200px;
    margin: 0 auto;
}

.info
{

    font-size: .8em;
    background: #f9f9f9;
    border: solid #eee 1px;
    border-radius: .2em;
    padding: 1em;
    text-align: center;
}

ul.file-info
{
    list-style: none;
    margin: 0;
    padding: 0;
}

li.file-info
{
    background-image: url(http://localhost/emailscrubber/resources/css/filename-blank.svg);
}

.file-info.date
{
    background-image: url(http://localhost/emailscrubber/resources/css/calendar.svg);
}

.file-info.size
{
    background-image: url(http://localhost/emailscrubber/resources/css/size.svg);
}

.file-info.filename
{
    background-image: url(http://localhost/emailscrubber/resources/css/filename-blank.svg);
}

.file-info.columns
{
    background-image: url(http://localhost/emailscrubber/resources/css/columns.svg);
}

.file-info.rows
{
    background-image: url(http://localhost/emailscrubber/resources/css/rows.svg);
}

.file-info.filter-rows
{
    background-image: url(http://localhost/emailscrubber/resources/css/filter-rows.svg);
}

.file-info.remaining-balance
{
    background-image: url(http://localhost/emailscrubber/resources/css/balance.svg);
}

li.file-info
{
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 1.2em;
    /*background-size:*/
    margin: .2em 0;
    padding: .3em .5em;
    padding-left: 2.5em;
}
li.file-info:first-child
{
    margin-top: 0;
}
li.file-info:last-child
{
    margin-bottom: 0;
}

.csv-headers
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
}
.csv-headers .csv-header
{

}


input[name*=header],
input[type=submit],
a.download
{
    display: block;
    margin: .8em 0;
}

input[type=submit],
a.download
{
    border-radius: .5em;
    display: block;
    font-size: 1em;
    letter-spacing: .15em;
    margin: 1.5em auto 0;
    padding: 1.5em 2em;
    position: relative;
    font-variant: small-caps;
    text-transform: lowercase;
    width: 75%;
    transition: all .5s ease;
}

input[type=submit]:not([disabled]),
a.download
{
    background: #55cc99;
    border-color: #4b8;
    color: #dfd;
}

a.download
{
    border: #44bb88 solid 2px;
    border-bottom: #2d7c5a solid 2px;
    border-right: solid 2px #2d7c5a;
    text-align: center;
    text-decoration: none;
    width: 75%;
    box-sizing: border-box;
}

.download
{
    margin: 0 auto;

}
.download ul,
.filter ul,
.upload ul
{
    margin: 2em 0;
    padding: 0;
    list-style-type: none;
    list-style-position: outside;
}
.download
{
    position: relative;
}
.download ul
{
    display: inline-block;
    margin: 2em auto 0;
    width: 75%;
    transform: translateX(-50%);
    left: 50%;
    position: relative;
}

.danger
{
    background: none;
    border-color: tomato;
    color: tomato;
    _display: none;
    transition: color .2s ease;
}

.csv-header
{
    _background: #647F94;
    _color: #f9f9f9;
    color: #647F94;
    display: block;
    padding: 1em 1.5em;
    position: relative;
    top: 0;
}

.csv-header h1,
.csv-header p
{
    display: inline-block;
}

.csv-header p
{
    padding-left: 1em;
    _position: absolute;
    _transform: translateX(100%);
}

.content.main
{
    display: block;
    font-family:   sans-serif;
    font-size: 1em;
    line-height: 1.4;
    _left: 50%;
    margin: 0 auto;
    _top: 0;
    _transform: translateX(-50%);
    width: 60%;
    max-width: 1200px;
}

.form.action,
.download
{
    background: #fafafa;
    margin: 0 auto 1em;
    padding: 1.5em 2em;
}

.balance
{
    text-align: center;
}
.balance .credits
{
    font-weight: bold;
    font-size: 1.5em;
}

footer p,
footer a
{
    color: inherit;
    text-align: center;
}

@media screen and (max-width: 1100px)
{
    body{
        font-size: 1em;
    }
    .content.main
    {
        width: 75%;
    }

    .download ul,
    input[type=submit],
    a.download
    {
        width: 80%;
    }

    .csv-headers
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        justify-items: center;
    }
}

@media screen and (max-width: 900px)
{
    body{
        font-size: 1em;
    }
    .content.main
    {
        width: 90%;
    }

    .download ul,
    input[type=submit],
    a.download
    {
        width: 80%;
    }

    .csv-headers
    {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
    }
}

@media screen and (max-width: 740px)
{
    body{
        font-size: 1em;
    }
    .content.main
    {
        width: 80%;
    }

    .download ul,
    input[type=submit],
    a.download
    {
        width: 80%;
    }

    .csv-headers
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}


@media screen and (max-width: 590px)
{
    body{
        font-size: .9em;
    }
    .content.main
    {
        width: 90%;
    }

    .download ul,
    input[type=submit],
    a.download
    {
        width: 100%;
    }
    .csv-headers
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

@media screen and (max-width: 490px)
{
    .content.main
    {
        width: 80%;
    }

    .download ul,
    input[type=submit],
    a.download
    {
        width: 100%;
    }

    .csv-headers
    {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;

    }
}
label::before
{
    content: '';
    display: block;
    padding: 1.2em;
    background: no-repeat url(mail.svg);
    background-size: contain;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -.8em;
}

input[type=radio]:checked + label::before
{
    background: no-repeat url(mail-selected.svg);
}

label
{
    display: block;
    font-size: .8em;
    text-align: center;
    margin: .8em auto;
}
input[type=text]
{
    width: 100%;
    /*display: block*/;
}
input[type=radio]
{
    display: block;
    margin: 0 auto;
}

.selected
{
    border: 2px solid #44bb88;
    background: #fff;
    color: inherit;
}

p.exception
{

    font-size: 1.2em;
    line-height: 1.3;
    padding: 1em 1.5em;
    text-align: left;
}
/* Todo: Use rem and grid */