::selection {
    background: #333;
    color: #fff;
}

::-moz-selection {
    background: #333;
    color: #fff;
}

html {
    border-bottom: 1px solid #66cccc;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #e1e1e1;
    font-size: 1.5em;
    font-family: "trebuchet ms", sans-serif;
    padding: 0;
    margin: 0;
    min-height: 100%;
}

* {
    image-rendering: optimizeSpeed; /* Legal fallback */
    image-rendering: -moz-crisp-edges; /* Firefox        */
    image-rendering: -o-crisp-edges; /* Opera          */
    image-rendering: -webkit-optimize-contrast; /* Safari         */
    image-rendering: optimize-contrast; /* CSS3 Proposed  */
    image-rendering: crisp-edges; /* CSS4 Proposed  */
    image-rendering: pixelated; /* CSS4 Proposed  */
    -ms-interpolation-mode: nearest-neighbor; /* IE8+           */
}

#ie {
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

#viewport canvas {
    max-width: 100%;
    max-height: 90%;
}

#viewport {
    text-align: center;
}

a {
    color: #999;
}

a:hover {
    color: #000;
}

nav {
    background: #fbfbfb;
    background-size: cover;
    border-bottom: solid 9px #d9d9d9;
    padding: .5em 3%;
    display: block;
}

nav ul {
    text-align: right;
    padding: 0;
}

nav li {
    display: inline;
    margin: 0 .5em;
}

nav a {
    text-decoration: none;
    color: #000;
}

nav a:hover {
    border-bottom: solid .4em black;
}

nav li:first-child {
    position: absolute;
    left: 3%;
    font-size: 1.44em;
    font-weight: bold;
}

nav li:first-child a:hover {
    border-bottom: 0;
}

nav li:last-child a {
    border-bottom: 0;
    background: #000;
    color: #f3f3f3;
    padding: .5em .5em .5em .5em;
    line-height: 2em;
    border-radius: .25em;
}

h1 {
    clear: both;
    background-color: rgba(0, 0, 0, .9);
    color: #fff;
    padding: .25em;
    display: inline-block;
    margin-left: 1em;
    border-radius: .25em;
    float: left;
}

div {
    clear: left;
}

div p, .background {
    clear: left;
    background-color: rgba(251, 251, 251, .99);
    color: #000;
    padding: .5em;
    display: block;
    margin: 0 auto .3em;
    border-radius: 4px;
    max-width: 50%;
    min-width: 270px;
}

div p {
    width: 50%;
}

div p img {
    margin: 0 auto;
    display: block;
}

.background {
    display: block;
    margin: 1em auto;
    padding: 1em;
}

#wrapper img {
    max-width: 63%;
    image-rendering: auto;
    -ms-interpolation-mode: auto;
}

#side-controls {
    display: block;
    width: 45%;
    float: right;
    background: #e1e1e1;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: .5em 0 .5em .5em;
}

#editor {
    background: #e1e1e1 !important;
    overflow: hidden !important;
}

#side-controls div div {
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
}

#side-controls div div img {
    width: 5em;
}

#side-controls span {
    white-space: normal;
    vertical-align: top;
    display: inline-block;
    width: 5em;
}

#side-controls span span {
    font-size: .82em;
}

#side-controls div div img:hover:after {
    content: attr(title);
}

.panzoom {
    width: 54%;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}

.panzoom * {
}

#preview {
    max-height: 100%;
    max-width: 100%;
}

body #wrapper {
    text-align: center;
}

#wrapper * {
    text-align: left;
}

input[type="text"], input[type="email"], textarea {
    margin: 0 auto 1em;
    font-size: 1.1em;
    font-family: "trebuchet ms", sans-serif;
    padding: .25em;
    border: .15em solid #000;
}

input[type="submit"] {
    margin: 0 auto;
    padding: .25em;
    background: #fbfbfb;
    border: .15em solid #000;
    cursor: pointer;
}

#controls span {
    cursor: pointer;
}

#controls span:hover {
    color: #545454;
}

#controls img:hover {
    opacity: .9;
}

#uploading, #offer, #modal, #gif_modal {
    background: url('/assets/images/background-texture.png');
    border-radius: .5em;
    padding: 1.5em;
}

.progress {
    position: relative;
    width: 100%;
    height: 15px;
    background: #C7DA9F;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 15px;
    background: #85C220;
}

#socialLogin {
    list-style: none;
    text-align: center;
}

#socialLogin li {
    display: inline;
    margin-left: 1em;
}

#socialLogin img {
    width: 270px;
}

#posterLink {
    text-decoration: none;
}