body,
html {
    background: #f1f1f1;
    margin: 0;
    padding: 0;
    height: 100%;
    text-align: center;
    font-size: 14px;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

.vert-wrapper {
    min-height: 100%;
    position: relative;
}

.header {
    background: white;
    font-size: 2em;
    padding: 0.5em 3em;
    color: #3498db;
}

.main-wrapper {
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* NEW - Chrome */
    display: flex;
    /* NEW, Spec - Opera 12.1, Firefox 20+ */
    flex-flow: row wrap;
    justify-content:center;
    padding-top: 1em;
    padding-bottom: 4em;/*to allow the footer*/
}

.footer {
    height: 3em;
    padding-top: 1em;
    background: #ddd;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Small screens */
/* default flex: 0 1 auto;*/
@media screen and (max-width: 600px) {
    .aside-1 {
        order: 1;
    }
    .main {
        order: 2;
    }
    .aside-2 {
        order: 3;
    }
}

/* Medium screens */

@media all and (min-width: 600px) {
    /* We tell both sidebars to share a row */
    .aside {
    }
    .aside-1 {
        order: 1;
    }
    .aside-2 {
        order: 2;
    }
    .main {
        order: 3;
    }
}

/* Large screens */

@media all and (min-width: 1000px) {
    /* We invert order of first sidebar and main
   * And tell the main element to take twice as much width as the other two sidebars 
   */
    .main {
        order: 2;
    }
    .aside-1 {
        order: 1;
    }
    .aside-2 {
        order: 3;
    }
}


.main {
    text-align: left;
    min-height: 500px;
    min-width: 350px;
    padding: 1em 1em;
}

.aside-1 {
    padding: 1em 1em;
    /*background: gold;*/
}

.aside-2 {
    background: hotpink;
    padding: 0;
    flex: 0 1 auto;
    /*unusedfor now*/
}


input,
button {
    outline: none;
}

textarea {
    border: 1px solid #3498db;
    border-radius: 3px;
    min-width: 100px;
}

textarea:focus {
    border: 2px solid #3498db;
}

.controls {
    width: 300px;
    padding: 5px;
    background: white;
    border: 1px solid black;
    margin: 5px auto;
    text-align: left;
}

.danger {
    background-color: #ffdddd;
    border: 0;
    border-left: 6px solid #f44336;
    padding-left: 1em
}


.controls>label {
    display: block;
    margin: 5px 0;
}

label.controls-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-line>div {
    display: flex;
    align-items: center;
}

.controls-line span {
    padding-right: 5px;
}

.controls-char-input {
    display: flex;
    justify-content: space-between;
}

.controls-char-input>button {
    flex: 0 1 auto;
}

.char-input {
    padding: 5px;
    margin-right: 5px;
    font-size: 24px;
    flex: 1 1 0px;
}

.title-input {
    flex: auto;
    margin-left: 5px;
}

.button {
    background-color: #e3f1fa;
    /*fallback color for rgba*/
    background-color: rgba(52, 152, 219, 0.137);
    /*#3498db23; #e3f1fa;*/
    color: black;
    text-align: center;
    text-decoration: none;
    -webkit-transition-duration: 0.4s;
    /* Safari */
    -moz-transition-duration: 0.4s;
    -o-transition-duration: 0.4s;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 2px;
    border: 1px solid #3498db;
}

.button2 {
    color: black;
    border: 2px solid #3498db;
    width: 100%;
}

.button:hover {
    background-color: #3498db;
    color: white;
}

.button:disabled {
    opacity: 0.5;
}

.button:disabled:hover {
    background-color: #e3f1fa;
    /*fallback color for rgba*/
    background-color: rgba(52, 152, 219, 0.137);
    color: black;
}

#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    opacity: 0.85;
    background-color: #CCC;
    z-index: 91;
}

#loading-text {
    position: absolute;
    top: 60%;
    width: 100%;
    text-align: center;
    font-size: xx-large;
  /*resize: both;
  overflow: auto;*/

}

.loader {
    position: absolute;
    left: 50%;
    top: 40%;
  /*resize: both;
  overflow: auto;*/

    border: 16px solid #FFF;
    /* #f3f3f3; Light grey */
    border-top: 16px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    animation: spin 2s linear infinite;
}


input[type=range] {
    /*removes default webkit styles*/
    -webkit-appearance: none;
    -moz-appearance: none;

    /*fix for FF unable to apply focus style bug */
    border: 1px solid white;

    /*required for proper track sizing in FF*/
    width: 150px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 150px;
    height: 5px;
    background: #d3d3d3;
    border: none;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3498db;
    margin-top: -5px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type=range]::-moz-range-track {
    width: 150px;
    height: 5px;
    background: #d3d3d3;
    border: none;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3498db;
}

/*hide the outline behind the border*/

input[type=range]:-moz-focusring {
    outline: 1px solid white;
    outline-offset: -1px;
}

input[type=range]::-ms-track {
    width: 150px;
    height: 5px;

    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;

    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;

    /*remove default tick marks*/
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #777;
    border-radius: 10px;
}

input[type=range]::-ms-fill-upper {
    background: #d3d3d3;
    border-radius: 10px;
}

input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3498db;
}

input[type=range]:focus::-ms-fill-lower {
    background: #888;
}

input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#preview-control {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#preview-control .fa {
    font-size: 1.5em;
}
#preview-control .button {
  height:2em;
}

.group-vcenter {
  display:flex;
  align-items: center;
}

.group-vcenter > * {
  margin-left:1px;
  margin-right:1px;
}

.navbar {
    overflow: hidden;
    background-color: #333;
}

.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: #333;
    font-family: inherit;
    margin: 0;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: #3498db;
}

.navbar a.active {
    background-color: #777;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#about-text {
  max-width: 600px;
  background-color: #FAFAFA;
  border: solid 1px #ccc;
  padding: 1em;
  margin-top: 2em;
}

#about-form  input, #about-form textarea {
  width: 100%;
  padding: 0.6em;
  margin: 0.6em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  min-width: 100px;
}

#about-form  textarea {
  height: 10.3em;
}

#about-form  input:focus, #about-form textarea:focus {
  border-color: #98cdf0;
  outline: none;
  box-shadow: 0 0 3px 1px #3498db;
}

#about-form button {
  padding: 0.6em 3em;
  font-size: 1.2em;
  border-width: 2px;
}