@import url("./templates.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Easing text */
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    position: relative;
    height: 100vh;
    color: #C5BFC9;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    background: #FAFAFA;
}

/*

Top

*/

.top {
    position: fixed;
    width: 100%;
    height: 60px;
    top: 0;
    z-index: 3;
    
    background-color: #FFF;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
    -moz-box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
    box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
}

.logo {
    position: relative;
    height: 100%;
    display: inline-block;
    padding: 0 30px 0 60px;    
    font-weight: 700;    
    line-height: 60px;
}

    .logo img{
        height: 60px;
        width: auto;
        float: left;
        padding-right: 30px;
    }

    .logo .title{
        float: left;
        padding-left: 30px;
        font-weight: 700;
        /* background: url('../img/logo.png') no-repeat left center; */
    }

    .logo .version {
        float: left;
        height: 20px;
        padding: 0 10px;
        margin: 20px 0 0 18px;
        font-size: 8px;
        text-transform: uppercase;
        line-height: 18px;
        border-radius: 15px;
        border: 1px solid #FAFAFA;
        background: #FFF;
    }

.controls {
    height: 60px;
    float: right;
    padding-right: 60px;
}

/* Top > Buttons */

.btn_options, .btn_save {
    position: relative;
    top: 50%;
    line-height: 18px;
    transform: translateY(-50%);
}

    .btn_options::before, .btn_save::before {
        font-weight: 400;
    }

.btn_info, .btn_support {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 0 10px 19px;
    color: #C8C2CC;
}

.btn_save, .btn_info, .btn_support, .btn_options {
    float: left;
    cursor: pointer;
}

.btn_options {
    color: #C8C2CC;
    padding: 15px 18px;
    -webkit-transition: color 0.3s;
    -moz-transition: color 0.3s;
    -o-transition: color 0.3s;
    transition: color 0.3s; 
}

    .btn_options:hover {color: #9d94a3;}

.btn_save {
    padding: 8px 20px;
    border-radius: 5px;
    color: #FFF;
    overflow: hidden;
}

    .btn_options::before{
        font-family: "Ionicons";
        content: "\f37b";
        float: left;
        padding-right: 10px;
        font-size: 18px;
    }

    .btn_save::before{
        font-family: 'Ionicons';
        content: '\f147';
        float: left;
        padding-right: 10px;
        font-size: 18px;
    }

    .btn_info::before{
        font-family: 'Ionicons';
        content: '\f142';
    }

    .btn_support::before{
        font-family: 'Ionicons';
        content: '\f27c';
    }

    .btn_options::before, .btn_info::before, .btn_support::before {
        -webkit-transition: color 0.3s;
        -moz-transition: color 0.3s;
        -o-transition: color 0.3s;
        transition: color 0.3s; 
    }

    .btn_options:hover::before, .btn_info:hover::before, .btn_support:hover::before {
        color: #1d7afd;
    }

/* 
Boxes
Flat UI Switch by Sergej MÃ¼ller
*/

.boxes {
    position: fixed;
    right: 0;
    z-index: 2;
}

.options_box {
    position: absolute;
    width: 240px;
    top: -260px;
    right: 95px;  
    color: #FFF;
    font-size: 13px;
    border-radius: 5px;
    line-height: 21px;
}

.option_titles, .option_colors, .option_templates {
    float: left;
    width: 100%;
}

    .options_box input {
        display: block;
        opacity: 0;
        height: 0;
    }

    .options_box label {
        position: relative;
        display: inline-block;
        width: 49px;
        height: 21px;
        background: #042ec8;
        border-radius: 30px;
        cursor: pointer;
        transition: background-color 0.4s;
        -moz-transition: background-color 0.4s;
        -webkit-transition: background-color 0.4s;
    }

    .options_box label:after {
        position: absolute;
        width: 13px;
        height: 13px;
        left: 0;
        margin: 4px;
        content: '';
        background: #2b24ff;
        border-radius: 10px;
    }

    .options_box input:checked + label {
        background: #2495ff;    
    }

    .options_box input:checked + label:after {
        left: auto;
        right: 0;
        background: #FFF;
    }

/*.options_box p {
  font: normal 8px/40px Arial;
  color: rgb(189, 189, 189);
  display: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.options_box input:checked ~ p:nth-of-type(1) {
  color: #dd24ff;
  display: block;   
}

.options_box input:not(:checked) ~ p:nth-of-type(2) {
  display: block;
}*/

.option_titles {
    padding: 25px 30px 10px 30px;
}

    .option_titles div {
        float: left;
        padding: 0;
        margin: 0;
    }

    .option_titles section {
        float: right;
    }

.option_colors {
    padding: 0px 30px 20px 30px;
}

    .option_colors div:nth-of-type(1) {
        float: left;
        line-height: 21px;
    }

    .option_colors div:nth-of-type(2) {
        float: right;
    }

    .option_colors div .btn {
        float: left;
        width: 21px;
        height: 21px;
        background: white;
        border-radius: 20px;
        cursor: pointer;
    }

    .option_colors div .color_light {
        margin-right: 5px;
        background: #FFF;
    }

    .option_colors div .color_dark {
        background: #18068d;
    }

    .option_colors div .color_light, .option_colors div .color_dark {
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .option_colors div .color_light:hover, .option_colors div .color_dark:hover {
        opacity: 1;
        transition: opacity 0.3s;
    }

.option_templates {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 30px 25px 30px;
}

    .option_templates div:nth-of-type(1) {
        padding-bottom: 14px;
    }

    .option_templates .btn {
        float: left;
        width: 52px;
        height: 52px;
        border: 2px solid rgba(255,255,255,0.4);
        border-radius: 30px;
        font-family: 'Montserrat', sans-serif;
        font-size: 17px;
        line-height: 49px;
        text-align: center;
        cursor: pointer;
        transition: background 0.3s;
    }

            .option_templates .btn:hover{
                background: #06658d;
                border: none;
                line-height: 52px;
                transition: background 0.3s;
            }

    .option_templates .current_template {
        background: #0452c8;
        border: none; 
        line-height: 52px;
    }

    .option_templates .btn:nth-of-type(2){
        margin: 0 12px;
    }

.info_box, .support_box {
    position: absolute;
    width: 270px;
    top: -250px;
    right: 50px;
    padding: 25px;
    font-size: 11px;
    color: #FFF;
    border-radius: 0px 0px 5px 5px;
}

.options_box, .info_box, .support_box {display: none;}

.warning_box {
    position: fixed;
    top: -100px;
    right: 30px;
    background: #006bdd;
    color: #FFF;
    padding: 25px 30px;
    border-radius: 0px 0px 5px 5px;
    font-size: 13px;
    text-align: left;
    line-height: 18px;
    
    background: rgb(46, 155, 238);
    background: -moz-linear-gradient(left, rgb(238, 225, 46) 0%, rgba(255,146,30,1) 100%);
    background: -webkit-linear-gradient(left, rgba(238,46,60,1) 0%,rgba(255,146,30,1) 100%);
    background: linear-gradient(to right, rgba(238,46,96,1) 0%,rgba(255,146,30,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ee2e60', endColorstr='#ff921e',GradientType=1 );
    
    cursor: pointer;
}

    .warning_box::after {
        font-family: "Ionicons";
        content: "\f128";
        float: right;
        padding-left: 10px;
        font-size: 20px;
    }

/*

Reusable Classes

*/

.gradient {
    background-image: linear-gradient(to right, #0700dc 0%, #1e70fe 26%, #1e38fe 51%, #1ea7fe 76%, #0ee5d3 100%);
    background-size: 400% auto;
    transition: 0.5s;
}

    .gradient:hover{
       background-position: right center;
    }

.gradient135 {
    background: rgb(0, 84, 220);
    background: -moz-linear-gradient(left, rgba(0, 7, 220,1) 0%, rgba(30, 123, 254,1) 100%);
    background: -webkit-linear-gradient(left, rgba(0, 7, 220,1) 0%, rgba(30, 123, 254,1) 100%);
    background: linear-gradient(135deg, rgba(0, 7, 220,1) 0%, rgba(30, 123, 254,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0075dc', endColorstr='#1e56fe',GradientType=1 );
}

.outline {
    border: 2px solid rgba(255,255,255,0.1);
    background: none;
    transition: 0.4s;
}

    .outline:hover {
        border: 2px solid rgba(255,255,255,1);
    }

.visible { display: block!important; }

input:focus{
    outline: none;
}

.hover {
    background-image: linear-gradient(135deg, #f6f5f7 7%, #e0dde3 100%)!important;
    background-size: 100% 100%!important;
    transition: 0.3s;
}
    
.preview_mode {border-radius: 0!important; box-shadow: none!important; margin: 0!important; top: 0!important; left: 0!important;}

/*

Workspace / Map

*/

.workspace {
    display: block;
    min-height: 100%;
    background: #FAFAFA;
    padding: 60px 0;
}

.map_cover {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    z-index: 998;
    display: none;
}

.app {
    display: block;
    width: 612px;
    height: 831px;
    margin: 60px auto 60px auto;
    background: #FFF;
    border-radius: 5px;
    background-color: #FFF;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
    -moz-box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
    box-shadow: 0px 0px 10px 0px rgba(79,59,92,0.13);
}

.author {
    width: 100%;
    padding-top: 37px;
    color: #a2aab4;
    font-size: 13px;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
}

    .author .text {letter-spacing: 2px;}

.input_author{
    /*display: block;
    margin-left: 50%;
    transform: translateX(-50%);*/
    width: 88%;
    color: #3b455c;
    font-family: 'Lato';
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    background: none;
    border: 0;
}

.map {
    position: relative;
    width: 540px;
    height: 650px;
    margin: 29px 0 0 36px;
}

.credits {
    width: 100%;
    bottom: 0;
    padding: 22px 0;
    color: #b4a2b3;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.img_box {
    position: absolute;
    overflow: hidden;
    width: 100px;
    height: 100px;
    background-image: linear-gradient(135deg, #f6f5f7 4%, #f6f5f7 55%, #f6f5f7 56%, #e8e5ea 100%);
    background-size: 200% 100%;
    background-color: #f6f5f7;
    border-radius: 5px;
    transition: background 0.3s;
}

    .img_box img {
        user-drag: none; 
        user-select: none;
        -moz-user-select: none;
        -webkit-user-drag: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        cursor: all-scroll;
    }

    .img_box:hover{
       background-position: right center;
        
    }

.btn_delete_image {
    position: absolute;
    display: none;
    width: 26px;
    height: 26px;
    top: 8px;
    right: 8px;
    color: #d2c7d1;
    font-size: 20px;
    background: #FFF;
    border-radius: 20px;
    cursor: pointer;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(59, 79, 92,1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(59, 79, 92,1);
    box-shadow: 0px 0px 10px 0px rgba(59, 79, 92,1);
    background-image: linear-gradient(to right, #FFF 0%, #FFF 26%, #FFF 51%, #1e9aff 76%, #2e31ee 100%);
    background-size: 400% auto;
    transition: 0.3s;
}

    .btn_delete_image::before {
        font-family: "Ionicons";
        content: "\f129";
        font-size: 14px;
        position: absolute;
        top: 6px;
        left: 8px;
    }

    .btn_delete_image:hover {
        color: #FFF;
        background-position: right center;
    }

.btn_upload_image {
    position: absolute; 
    display: none;
    width: 60px;
    height: 51px;
    top: 50%;
    left: 50%;
    margin-top: -27px;
    transform: translateX(-50%);
    color: #bec3c9;
    font-size: 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

    .btn_upload_image:hover {
        color: #3b3f5c;
        transition: color 0.3s;
    }

.input_file {
   opacity: 0;
   position: absolute;
   z-index: -1;
}

.input_title {
    position: absolute;
    width: 90%;
    left: 0;
    bottom: 0;
    margin-left: 7px;
    margin-bottom: 7px;
    padding: 0;
    border: none;
    color: #FFF;
    font-size: 11px;
    font-family: 'Montserrat';
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0px 0px 5px rgb(59, 72, 92);
    /*text-indent: 3px;*/
    background: none;
    resize: none;
    overflow: hidden;
}

textarea::-webkit-input-placeholder {color: #FFF;}
textarea:-moz-placeholder { /* Firefox 18- */color: #FFF; }
textarea::-moz-placeholder { /* Firefox 19+ */color: #FFF; }
textarea:-ms-input-placeholder { color: #FFF; }

textarea:hover, textarea:active, textarea:focus {
    outline: 0px !important;
    -webkit-appearance: none;
}

/*

Imagem Preview Box

*/

.img_preview_box, .confirm_box {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    top: 0;
    left: 0;
    text-align: center;
}

.img_preview_box .img_holder {
    position: absolute;
    /*-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);*/
    border-radius: 5px;
    overflow: hidden;
}

.img_preview_box {
    display: none;
}

.img_preview_box .loading::before {
    position: absolute;
    top: 50%;
    color: #FFF;
    font-family: 'Ionicons';
    font-size: 40px;
    font-weight: 400;
    content: '\f29d';
    transform: translateY(-50%);
    -webkit-animation: rotation 2s infinite linear;   
}

@-webkit-keyframes rotation {
    from {
            -webkit-transform: rotate(0deg);
    }
    to {
            -webkit-transform: rotate(359deg);
    }
}

.img_preview_box .bg_overlay, .confirm_box .bg_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: rgba(15,8,17,0.75);
    cursor: pointer;
}

    .confirm_box .bg_overlay {
        background: rgba(15,8,17,0.85);
    }

.btn_preview_download, .btn_preview_close {
    position: absolute;
    width: 100px;
    padding: 8px 15px;
    border-radius: 30px;
    color: #FFF;
    font-size: 13px;
    text-decoration: none;
}

.preview_box .btn_delete_image {
    display: none!important;
}

.confirm_holder {
    position: relative;
    width: 430px;
    left: 50%;
    top: 50%;
    padding: 40px;
    color: #FFF;
    font-size: 22px;
    border-radius: 10px;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    cursor: default;
}

    .confirm_buttons {
        margin-top: 40px;
    }

    .confirm_buttons div {
        display: inline-block;
        width: 112px;
        height: 33px;
        padding: 10px 30px;
        margin: 0 5px;
        color: #FFF;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
        line-height: 14px;
        border-radius: 30px;
        cursor: pointer;
    }

    .confirm_buttons .btn_yes {
        line-height: 10px;
    }

/*

Dark theme

*/

.dark .app {
    background: rgb(42,38,48);
    background: -moz-linear-gradient(top, rgba(38, 42, 48,1) 0%, rgba(26, 30, 37,1) 100%);
    background: -webkit-linear-gradient(top, rgba(38, 42, 48,1) 0%,rgba(26, 30, 37,1) 100%);
    background: linear-gradient(to bottom, rgba(38, 42, 48,1) 0%,rgba(26, 30, 37,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#262c30', endColorstr='#1a1e25',GradientType=0 );
}

.dark .img_box {
    background-image: linear-gradient(135deg, #292e35 4%, #292e35 55%, #292e35 56%, #33414b 100%);
    background-size: 200% 100%;
    background-color: #292e35;
    transition: background 0.3s;
}

    .dark .img_box:hover {
        background-position: right center;
    }

.dark .author, .dark .credits {
    color: #79898c;
}

.dark .input_author {
    color: #FFF;
}

.dark .btn_upload_image {
    color: #4d7474;
}

    .dark .btn_upload_image:hover {
        color: #67aeaf;
    }

/* 

Media Query

*/

@media screen and (min-height: 920px) {
 
    .app {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
}

@media screen and (max-width: 820px) {
 
    .logo .title, .logo .version {
        display: none;
    }
    
}

@media screen and (max-width: 620px) {
 
    .logo {
        display: none;
    }
    
    .controls {
        width: 340px;
        float: none;
        position: relative;
        left: 50%;
        margin-left: -148px;
    }
    
}
