/* Clearfix */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}

div.main {
    border: 2px solid transparent;
    position: absolute;
    top: 88px;
    bottom: 0;
    left: 0;
    right: 0;
}

div.main.drop {
    border: 2px solid yellow;
}

.uploadBtn {
    float: right;
    position: relative;
    overflow: hidden;
    font-family: "Helvetica Neue";
    font-weight: lighter;
    font-size: 54px;
}

/*
 * Width and height are required for cursor:pointer to work on Firefox
 */
#fileupload {
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    font-size: 1000px !important;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.messageUpload {
    margin: 80px 0px;
}

.messageUpload h1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px black;
    line-height: 60px;
}

.messageUpload p {
    text-align: center;
    text-shadow: 1px 1px 2px black;
}

.messageDownload {
    margin: 50px 0px;
}

.messageDownload h1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px black;
    line-height: 60px;
}

.messageDownload p {
    text-align: center;
    text-shadow: 1px 1px 2px black;
}

.files {
    text-align: left;
    margin-left: 20px;
    text-shadow: 1px 1px 2px black;
    line-height: 30px;
}

.uploads li {
    height: 80px;
    padding: 0 20px;
    position: relative;
}

.uploads li:nth-child(2n),
.downloads li:nth-child(odd) {
    background-color: rgba(0,0,0,0.2);
}

.uploads .filename, .done, .fail {
    font-size: 20px;
    line-height: 50px;
    text-align: left;
    height: 40px;
    padding: 0 20px;
    position: relative;
    margin: 10px auto;
}

.downloads li {
    font-size: 20px;
    line-height: 50px;
    text-align: left;
    height: 100%;
    width: 100%;
    padding: 0 20px;
    margin: 5px;
}

.downloads li:hover,
.downloads lu:hover {
    background-color: rgb(255, 132, 0);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(255, 132, 0)), to(rgb(255, 100, 0)));
    background-image: -webkit-linear-gradient(top, rgb(255, 132, 0), rgb(255, 100, 0));
    background-image: -moz-linear-gradient(top, rgb(255, 132, 0), rgb(255, 100, 0));
    background-image: -ms-linear-gradient(top, rgb(255, 132, 0), rgb(255, 100, 0));
    background-image: -o-linear-gradient(top, rgb(255, 132, 0), rgb(255, 100, 0));
    background-image: linear-gradient(top, rgb(255, 132, 0), rgb(255, 100, 0));
}

/*.downloads img {
 width: 80px;
 height: 45px;
 -webkit-border-radius: 5px;
 -moz-border-radius: 5px;
 border-radius: 5px;
 vertical-align: middle;
 }*/

.downloads {
    width: 80%;
    margin: 0 auto;
    display: block;
    position: relative;
}

@media (max-width: 960px) {
    .downloads {
        width: 100%;
    }
}

.downloads > div {
    width: 25%;
    /*height: 300px;*/
    float: left;
    display: inline-block;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}

.main.downloads > div .content {
    display: none;
}

@media (max-width: 1280px) {
    .main.downloads > div {
        width: 33.33333%;
    }
}

@media (max-width: 960px) {
    .main.downloads > div {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .main.downloads > div {
        width: 100%;
    }
}

.downloads .inner {
    display: block;
    background-image: url("gradient-cell.png");
    background-position: bottom center;
    background-repeat: repeat-x;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.downloads a.inner {
    color:white;
}

.downloads a.inner:hover .icon {
    opacity:.7;
}

.downloads a.inner:hover .infos {
    opacity: 0;
}

.downloads .inner .icon {
    opacity: 0;
    -webkit-transition: opacity .2s;
    -o-transition: opacity .2s;
    transition: opacity .2s;
    background-color: black;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    z-index: 99;
}

.downloads .inner .icon.bgz {
    -webkit-background-size: 40%;
    background-size: 40%;
}

.downloads .inner .down.icon {
    background-image: url(web-download-fixed.png);
}

.downloads .inner .open.icon {
    background-image: url(web-open-fixed.png);
}

.downloads .inner .down.icon.bgz {
    background-image: url(web-download.png);
}

.downloads .inner .open.icon.bgz {
    background-image: url(web-open.png);
}

.downloads .inner .infos {
    width: 100%;
    display: inline-block;
    position: absolute;
    bottom: 0;
    -webkit-transition: opacity .2s;
    -o-transition: opacity .2s;
    transition: opacity .2s;
}

.downloads .inner .infos span {
    width: 100%;
    /*background:red;*/
    padding:3px 10px 0 13px;
    overflow-y: hidden;
    display: inline-block;
    text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.downloads .inner .infos span.first-line {
    font-size: 1.3em;
}

.downloads .inner .infos span.second-line {
    font-size: 1em;
}

#overlay {
    position: absolute;
    display: none;
    opacity:0;
    background:black;
    background:rgba(0,0,0,.8);
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

#overlay.shown {
    opacity: 1;
    display: block;
}

#overlay #modal {
    position: absolute;
    background:rgb(31,31,31);
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
}

#overlay #modal .downloads {
    width: 100%;
}

#overlay #modal .downloads > div {
    width: 50%;
}

@media (min-width: 1280px) {
    #overlay #modal .downloads > div {
        width: 25%;
    }
}

@media (max-width: 1280px) {
    #overlay #modal .downloads > div {
        width: 50%;
    }
}

#menu ul li ul {
    display:none;
}

#menu ul li:hover ul {
    display:block;
    background-color: rgb(42,42,42);
}

.uploads .progress {
    height: 20px;
    border: 0px solid white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 2px;
}

.uploads .progress .barWrapper {
    position: absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    background-color: rgb(42,42,42);
}

.uploads .progress .bar {
    background-color: white;
    position: absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    border-radius:20px;
    color:#1F1F1F;
    text-align:center;
}

.uploads li.fail .progress .bar {
    background-image: none;
    background-color: transparent;
    box-shadow: none;
}

.uploads .progress .dots {
    padding: 0 8px;
    line-height: 0px;
    font-size: 20px;
    font-weight: bold;
    float: left;
    color: rgb(255, 132, 0);
}

.uploads .progress .dots:before {
    content: "uploading ";
    color: white;
    line-height: 12px;
    font-size: 12px;
}

.uploads li.fail .progress:before,
.uploads li.done .progress .bar:before {
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    padding: 0 12px;
    float: right;
}

.uploads li.fail .progress:before {
    content: "File transfer failed";
    color: rgb(255, 132, 0);
}

.uploads li.done .progress .bar:before {
    content: "File transfer complete";
    color: white;
}

.uploads li:hover .stop {
    display: block;
}

.uploads li.done:hover .stop,
.uploads li.fail:hover .stop {
    display: none;
}

.uploads .stop {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #ff3b30;

    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    display: none;
}

.uploads .stop:before {
    content: "-";
    font-size: 44px;
    text-align: center;
    line-height: 18px;
    width: 100%;
    padding-left: 4px;
}

#footer {
    font-size: .9em;
    line-height: 1.3em;
    margin-top: 40px;
    padding-bottom: 8px;
    text-align: center;
    color: rgb(120, 120, 120);
    text-shadow: 1px 1px 2px black;
    width: 100%;
}

#footer a{
    color: rgb(255, 132, 0);
}
