/* General */
body {
    font-family: 'Poppins', sans-serif;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    margin: 0;
    padding: 2px;
    background-image: url(/images/bg-top.png);
    background-repeat: no-repeat;
    background-position: top center;
}
h1, h2, h3, h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #D64933;
    margin: 0.5em 0;
    padding: 0;
}
a {
    color: #081835;
}
h1 {
    font-size: 32px;
    font-weight: bold;
    color:rgb(0, 66, 64);
}
h2 {
    font-size: 28px;
    font-weight: bold;
}
h3 {
    font-size: 24px;
    font-weight: bold;
    color:#000;
}
h4 {
    font-size: 20px;
    font-weight: bold;
    color:rgb(0, 66, 64);
}

/* Site construction */
html {
    margin: 0;
    padding: 1px 0;
    background-image: url(/images/bg-repeat.png);
    background-repeat: repeat-x;
    background-color: #419ca8;
}
#main-container {
    width: 1000px;
    margin: 105px auto 50px auto;
    background-color: #fff;
    padding: 20px 40px 40px 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}
#header-container {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}
#logo {
    display: block;
    position: absolute;
    left: 0;
    top: 20px;
}
nav {
    position: absolute;
    top: 70px;
    right: 0;
    display: flex;
}
nav a {
    color: #fff;
    padding: 10px 20px 30px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
nav a.live {
    color: #fff;
    padding: 10px 20px;
    margin: 0 10px;
    background: #fff;
    color: #000;
    box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.15);
}
nav a:hover {
    text-decoration: underline;
}
.full-overlay {
    height: 100%;
    width: 100%;
    position: fixed; 
    z-index: 99998; 
    left: 0;
    top: 0;
    background: #000; /* Fallback */
    background: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;   
}
.website-error-content {
    position: absolute;
    top: 40%;
    left: 25%;
    text-align: center;           
    width: 50%;
    z-index: 99999;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.5em;
}        

/* Color picker */
.color-picker.no-alpha .color-picker\:a {
    display: none;
}
.color-picker-result {
    padding: 0.5em;
    border: 1px solid #000;
    border-radius: 5px;
}

/* Forms */
form {
    font-size: 10pt;
    position: relative;
}
form fieldset {
    padding: 0;
    margin-bottom: 10px;
    border: 0;
    display: flex;
    flex-direction: row;
}
form legend {
    padding: 0 0.5em;
    font-weight: bold;
    font-size: 1em;
    width: 100%;
    padding: 7px;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #ccc;
    background: #f0f0f0;
    box-sizing: border-box;
}
form legend em {
    color: #7C7C7C;
    font-style: normal;
}
form label {
    color: #000;
    font-weight: 300;
    padding: 0.25em;
    margin: 0;
    border-radius: 5px;
}
form textarea, 
form select, 
form input {
    border-radius: 5px;
    margin: 0.2em 0;
    padding: 0.5em;
    border: 1px solid #333;
    flex-grow: 0;     /* do not grow   - initial value: 0 */
flex-shrink: 4;   /* do not shrink - initial value: 1 */
flex-basis: 150px;
width: 150px;
    box-sizing: border-box;
    box-shadow: 1px 2px 2px #ddd;
}
form textarea.half-width, 
form select.half-width, 
form input.half-width {
    width: 75px;
    height: 30px;
}
form input[type=checkbox] {
    text-align: left;
    background-color: red;
    padding: 5em;
    box-shadow: none;
} 
form input[type=button],
form input[type=submit] {
    cursor: pointer;
    font-weight: bold;
    margin: 10px auto;
    background-color: #2B303A;
    color: #fff;
    padding: 0.5em 2em;
    width: auto;
}
form input[type=button]:active,
form input[type=submit]:active {
    background-color: #15171d;
}
form input[type=color] {
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    box-shadow: none;
    height: 30px;
}
form input[disabled] {
    background-color: #999;
    color: #777;
}
form .input-hint {
    display: inline-block;
    font-size: 0.9em;
    color: #666;
    padding: 0;
    margin: 0 0 0 0.25em
}
form .form-field:hover {
    background-color: #92dce5;
}
form .form-field.no-highlight:hover {
    background-color: #fff;
}
form .form-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    border-radius: 10px;
    min-height: 30px;
    width: 310px;
}
form .form-field > div {
    width: 158px;
}
form #settings-saved {
    font-weight: bold;
    text-align: center;
    display: none;
    text-align: center;
    margin: 5px;
    padding: 0.25em;
    color: rgb(0, 66, 64);
    font-size: 1.25em;
    border-radius: 10px;

}
form .column {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}
form .column:last-child {
    margin: 0;
}
form .hint-popper {
    display: inline-block;
    position: relative;
    z-index: 100;
    height: 14px;
    width: 14px;
    border-radius: 14px;
    color: black;
    text-align: center;
    line-height: 14px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #999;
    color: #666;
    opacity: 1.0;
}
form .hint-popper::after {
    content: "?";
    position: relative;
}
form .form-field:hover .hint-popper {
    color: #fff;
    border-color: #fff;
}
form .form-field:hover .hint-popper:hover {
    border: 2px solid #D64933;
    color: #D64933;
    cursor: pointer;
    opacity: 1;
}
form .hint-popper span {
    display: none;
    line-height: 1.5em;
    position: absolute;
    z-index: 101;
    top: 15px;
    left: 15px;
    text-align: left;
    font-weight: normal;
    width: 270px;
    padding: 1em;
    background: #2B303A;
    color: #fff;
    font-size: 10pt;
    border-radius: 15px;
    box-shadow: 5px 10px 20px #000;
}
form .hint-popper:hover span {
    display: block;
}
form .form-field:nth-of-type(1) .hint-popper {
    z-index: 110;
}
form .form-field:nth-of-type(2) .hint-popper {
    z-index: 109;
}
form .form-field:nth-of-type(3) .hint-popper {
    z-index: 108;
}
form .form-field:nth-of-type(4) .hint-popper {
    z-index: 107;
}
form .form-field:nth-of-type(5) .hint-popper {
    z-index: 106;
}
form .form-field:nth-of-type(6) .hint-popper {
    z-index: 105;
}
form .form-field:nth-of-type(7) .hint-popper {
    z-index: 104;
}
form .form-field:nth-of-type(8) .hint-popper {
    z-index: 103;
}
form .validator-error {
    background-color: red;
    color: #fff;
}
form .validator-error:before {
    content: "\26A0";
}
#errors {
    display: none;
}
.form-error {
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 14px;
    color: #ff0000;
}
.form-error.hidden {
    display: none;
}
.form-success {
    background-color: #15171d;
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1.25em;
    color: #fff;
}


/* State settings form specific */
#state-editor {
    z-index: 999;
    display: none;
    position: absolute;
    background-color: #fff;
    border-radius: 10px;
    width: 360px;
    margin: 0 auto;
    box-shadow: 5px 10px 20px #000;
}
#state-editor form {
    padding: 10px 0;
    margin: 0 auto;
    width: 315px;
}
#state-editor h2 {
    padding: 0;
    margin: 0 0 0.25em 0;
    text-align: center;
    font-size: 22px;
}
#state-editor .drag-bar {
    display: block;
    padding: 2px 5px 2px 2px;
    margin-left: 0;
    margin-right: 0;
    text-align: right;
    font-size: 1.25em;
    background: #ddd;
    cursor: move;
    border-radius: 10px;
}
#state-editor .close {
    padding-right: 5px;
    font-family: monospace;
}
#state-editor .close:hover {
    cursor: pointer;
}


/* Gradient button */
.gradient-button {
    text-transform: uppercase;
    margin: 10px;
    font-size: 14px;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    transition: 0.5s;
    background-size: 200% auto;
    color: #FFF;
    box-shadow: 0 0 20px #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    display: inline-box;
    background-image: linear-gradient(to right, #2B303A 0%, #4b6497 51%, #92DCE5 100%);
}
.gradient-button:hover {
    background-position: right center;
}

/* Export */
#export-actions {
    margin: 20px;
    width: 100%;
    text-align: center;
}
#export-pop {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -350px;
    text-align: center;           
    width: 700px;
    z-index: 99999;
    color: #fff;
    padding: 0.5em;
    text-align: left;
}
#export-pop form {
    font-size: 18px;
}
#export-pop .export-code {
    width: 100%;
    min-width: 700px;
    height: 300px;
    font-family: monospace;
    position: relative;
    margin: 1em 0;
}
#export-pop h2 {
    color: #fff;
}
#export-pop p {
    font-weight: normal;
    text-align: left;
}
#export-pop p.prompt {
    font-size: 1.25em;
    color: #92dce5;
}
#export-pop-edit p.prompt {
    font-size: 1.25em;
    color: yellow;
}
#export-pop .public-note {
    font-size: 0.75em;
}
#export-pop .close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 30px;
    color: #fff;
    font-family: monospace;
    cursor: pointer;
    display: block;        
    height: 50px;
    width: 50px;
    z-index: 9999;
    text-align: center;
}
#export-pop .stage1-buttons {
    margin: 20px 0;
    width: 100%;
    text-align: center;
    box-shadow: #fff;
}
#export-pop .show-code {
    color: #eee;
    font-size: 0.8em;
    text-decoration: underline;
    display: inline-block;
    margin: 50px 0;
    text-align: center;
    cursor: pointer;
}
#export-pop .stage2 {
    display: none;
}
#export-pop .stage2-buttons {
    margin: 20px 0;
    width: 100%;
    text-align: center;
    box-shadow: #fff;
    display: none;
}
/* Export editing overrides */


/* Table general */
table {
    border-collapse: collapse;
    border-top: 1px solid #999;
    border-bottom: 2px solid #777;
}
td, th {
    border: 1px solid #333;
    padding: 8px;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #ddd;
}
th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #92DCE5;
    color: #000;
}
table .blank {
    text-align: center;
    padding: 1em;
    font-style: italic;
    color: #333;
    background-color: #ddd;
}


/* State preview table */
#states-preview {
    font-size: 12px;
    width: 100%;
}
#states-preview .red {
    color: red;
    text-align: center;
}
#states-preview a {
    color: #000;
    text-decoration: underline;
}
#states-preview a:hover {
    cursor: pointer;
}
#states-preview span {
    display: inline-block;
}
#states-preview span.preview {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}


/* Login */
#login-container,
#reset-password-container {
    margin: 50px auto;
    text-align: center;
}
#login-form, 
#reset-password-form {
    text-align: left;
    display: inline-block;
}

/* Samples */
#map-samples {
    display: flex;
    list-style: none;
    flex-direction: row;
    margin: 2em 0;
    padding: 0;
}
#map-samples li {
    margin: 1px;
    background: #eee;
    padding: 0.75em 1.5em;
}
#map-samples li.live a {
    font-weight: bold;
}
#faqs {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}
#faqs span {
    font-weight: bold;
    display: block;
    font-size: 150%;
    color: #333;
}
#faqs li {
    padding: 0 0 1em 0;
    margin: 0 0 2em 0;
    border-bottom: 1px solid #ddd;
}


/* Footer */
#footer-container {
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}
#footer-container li {
    margin-right: 20px;
}
#footer-container li a {
    color: #fff;
}
#footer-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
}