@font-face {
    font-family: "Dosis";
    src: url("/font/Dosis.ttf");
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Dosis", sans-serif;
    overflow: hidden !important;
}
div#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    height: 101%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
}
div#overlay.remove {
    display: none;
}
/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #999; 
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #bbb; 
}
header {
    border-bottom: 1px solid #ccc;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: #eee;
    overflow: hidden !important;
    box-sizing: border-box;
    min-width: 100%;

}
header h1 {
    font-size: 24px;
    margin: 0;
}
section#content {
    position: relative;
    background: grey;
    overflow-x: hidden;
}
aside {
    background: #222;
    color: #fff;
    position: relative;
}
footer {
    background: #444;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    color: #fff;
    z-index: 99999;
}
.flex {
    display: flex;
}
.flex>* {
    box-sizing: border-box;
}
.flex-wrap {
    flex-wrap:wrap;
}
.full {
    width: 100%;
}
.half {
    width: 50%;
}
.third {
    width: 33.3%;
}
.quarter {
    width: 25%;
}
.fifth {
    width: 20%;
}
.tenth {
    width: 10%;
}
.eighty {
    width: 80%;
}
.text-center {
    text-align: center
}
.padding-5 {
    padding: 5px;
}
.padding-10 {
    padding: 10px;
}
.padding-15 {
    padding: 15px;
}
.padding-20 {
    padding: 20px;
}
.padding-25 {
    padding: 25px;
}
.padding-30 {
    padding: 30px;
}
.padding-40 {
    padding: 40px;
}
.padding-50 {
    padding: 50px;
}
img {
    width: 100%;
    max-width: 100%;
}
img#logo {
    max-width: 80px;
}
img#footer-logo {
    max-width: 50px;
}
.right {
    right: 0;
    left: unset;
    position: absolute;
}
input, select, textarea {
    outline: none;
    background: #555;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
}
textarea#text {
    resize: none;
    font-family: sans-serif;
    margin-top: 10px;
}
nav#tabs ul, nav#bg-tabs ul {
    margin: 0;
    list-style: none;
    padding: 0;
}
#text-list {
    max-height: 400px;
    overflow: auto;
    padding-right: 5px;
    margin-top: 10px;
}
section#text-options {
    margin-top: 10px;
}
section#text-options > section {
    margin-bottom: 5px;
}
nav#tabs ul li:first-child {
    border-right: 1px solid #fff;
}
nav#bg-tabs ul li:last-child {
    border-left: 1px solid #fff;
    border-right: none;
    border-top: none;
}
nav#bg-tabs ul li:first-child {
    border-left: none;
    border-top: none;
}
nav#tabs ul li, nav#bg-tabs ul li {
    cursor: pointer;
    border-bottom: 1px solid #fff;
    background: #444;
}
nav#tabs ul li.current, nav#bg-tabs ul li.current {
    cursor: default;
    border-bottom: none;
    background: #222;
}
.section-text, .section-bg {
    display: none;
}
.section-text.current-section, .section-bg.current-section {
    display: block;
}
section#default ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
section#default ul li {
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 7px;
}
section#default ul li:nth-child(odd) {
    background: #bbb;
    color: #222;
}
section#default ul li:nth-child(even) {
    border: 1px solid #fff;
}
section#default ul li:hover {
    background: orangered;
    color: #fff;
}
#background-resolution {
    margin-top: 5px;
}
aside#content-bg ul {
    list-style: none;
    padding: 0;
    margin: 0px;
}
aside#content-bg ul li {
    border: 1px solid #fff;
    margin-bottom: 0;
    cursor: pointer;
}
aside#content-bg ul li img {
    display: block;
}
aside#content-bg ul li img:hover {
    opacity: 0.7;
}
div#background-resolution button {
    height: 70px;
    background: none;
    color: #fff;
    border: 1px solid #fff;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    position: relative;
}
div#background-resolution button:hover {
    background: #555;
    cursor: pointer;
}
div#background-resolution button.current {
    background: #0099ff;
    cursor: default;
}
#editor {
    background: grey;
}
.axis {
    position: absolute;
}
div#x-axis {
    width: 100%;
    top: 50%;
    border-top: 1px solid rgba(255,255,255,0.5);
}
div#y-axis {
    height: 100%;
    border-left: 1px solid rgba(255,255,255,0.5);;
    left: 50%;
}

section#chosen-bg {
    width: 90%;
    height: 90%;
    margin: auto;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
}
section#bg-options {
    margin-top: 10px;
}
section#chosen-text {
    width: fit-content;
    top: 50%;
    left: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translate(-50%, -50%);
    position: absolute;
    margin: auto;
    display: none;
    border: 2px dashed white;
    color: #fff;
    font-size: 50px;
    text-align: center;
    text-shadow: -3px -4px 4px black;
    line-height: 1.2em;
    white-space: pre-wrap;
}
section#chosen-text.active {
    display: block;
}
button#export {
    background: green;
    border: 1px solid green;
    padding: 4px 6px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all .3s ease;
    font-size: 14px;
}
button#export:hover {
    background: rgb(0, 160, 0);
    transition: all .3s ease;
}
footer small {
    font-size: 12px;
}
div#close-bg, div#close-txt {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: #222222;
    cursor: pointer;
    text-align: center;
}
div#close-bg:hover, div#close-txt:hover {
    background: #444;
}
div#close-bg i, div#close-txt i {
    padding-top: 50%;
    margin-top: -25%;
    line-height: 100%;
}
div#close-bg {
    right: 0;
    transform: translateX(100%);
}
div#close-txt {
    left: 0;
    transform: translateX(-100%);
}
aside#content-bg, aside#content-text {
    position: fixed;
    z-index: 999;
}
aside#content-bg {
    left: 0;
    transition: all .3s ease;
}
aside#content-text {
    right: 0;
    transition: all .3s ease;
}
aside#content-bg.closed {
    left: -20%;
    transition: all .3s ease;
}
aside#content-text.closed {
    right: -20%;
    transition: all .3s ease;
}
section#bg-list {
    max-height: 90%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}
section#bg-list ul {
    margin-top: 10px;
}
section#bg-list ul li {
    margin-bottom: 5px;
}
span.screen-demo {
    border: 3px solid #fff;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    font-size: 20px;
    line-height: 3rem;
}
.screen-169 {
    width: 90px;
    height: 45px;
}
.screen-1610 {
    width: 100px;
    height: 45px;
}
.screen-43 {
    width: 67px;
    height: 50px;
}
.screen-54 {
    width: 75px;
    height: 60px;
}
.screen-219 {
    width: 105px;
    height: 45px;
}
.screen-auto {
    padding: 0 5px;
}
div#email-container {
    position: absolute;
    width: 100%;
    max-width: 400px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #444444;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: none;
    transition: all 0.3s ease-in-out;
}
div#email-container.show {
    top: -90%;
    display: block;
    transition: all 0.3s ease-in-out;
}
button#close-email {
    outline: 0;
    border: 0;
    background: none;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
div#email-container small {
    display: block;
    margin-bottom: 5px;
}
input#email {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
}
button#send {
    display: block;
    height: 100%;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #fff;
    font-weight: 600;
    background: green;
    border: 1px solid green;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 14px;
    outline: none;
    transition: all .3s ease;
}
button#send:hover {
    background: rgb(0, 160, 0);
    border: 1px solid rgb(0, 160, 0);
    transition: all .3s ease;
}
button#send:disabled {
    background: lightgrey;
    border: darkgrey;
    cursor: not-allowed;
    transition: all .3s ease;
}
div#result-popup {
    position: absolute;
    top: -100%;
    width: 100%;
    max-width: 400px;
    padding: 0 15px 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #222;
    display: none;
    transition: all .3s ease;
}
div#result-popup.show {
    display: block;
    transition: all .3s ease;
}
div#result-popup.show.code-200 {
    background: lightgreen;
}
div#result-popup.show.code-400, div#result-popup.show.code-405 {
    background: rgb(255, 146, 146);
}