body {
    background: #dedede;
}

.main {
    overflow: hidden;
    display: inline-block;
    height: 98vh;
    width: 100%;
}

.hide {
    display: none;
}

iframe.portrait {
    width: 1024px;
    height: 1366px;

    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -o-transform: scale(0.5);
}

iframe.landscape {
    width: 1366px;
    height: 1024px;

    transform: scale(0.65);
    -webkit-transform: scale(0.65);
    -moz-transform: scale(0.65);
    -o-transform: scale(0.65);
}

iframe {
    border-radius: 5px;
}

iframe.scaleVH {
    transform-origin: 5vw 5vh;
    -webkit-transform-origin: 5vw 5vh;
    -moz-transform-origin: 5vw 5vh;
    -o-transform-origin: 5vw 5vh;
}

.editParams {
    position: absolute;
    right: 0;
    top: 0;
    width: 22vw;
    background-color: #337ab7;
    background-image: linear-gradient(141deg, #337ab7 0%, #337ab7 51%, #2cb5e8 75%);
    height: 100vh;
    text-align: center;
    padding: 1vw;
    box-sizing: border-box;
}

.editParams button {
    position: relative;
    cursor: pointer;
    padding: 1em;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5vw;
    border-radius: 5px;
    background: #343a40;
    color: #fff;
    width: 100%;
    margin: 1vw 0;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
}

.editParams button:hover {
    background: #23272b;
}

.editParams button.active {
    border-color: #fff;
}

.upload-file {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    background-size: cover;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #c4c4c4;
    top: 10%;
    right: 10%;
}

.editParams .btnExport {
    background: #f0ad4e;
    border-color: #eea236;
}

.editParams .btnExport:hover {
    background: #ec971f;
}

.editParams .btnReset {
    background: #5cb85c;
    border-color: #4cae4c;
}

.editParams .btnReset:hover {
    background: #449d44;
}

.upload-file:before {
    content: "";
    background-image: url(../template/edit.png);
    background-size: 100%;
    position: absolute;
    width: 45px;
    height: 45px;
    background-repeat: no-repeat;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.upload-file input {
    font-size: 50px;
    opacity: 0;
    width: 100%;
    cursor: pointer;
}

button input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview .zoomout {
    zoom: 0.7;
}

.preview .ipadPro {
    width: 1024px;
    height: 768px;
}

.gameData {
    display: inline-block;
    width: 70vw;
    margin-top: 20em;
}

.field {
    display: inline-block;
    margin: 2vw;
}


.field .label {
    margin: 1em 0;
    font-style: italic;
    font-size: 12px;
}

.field input {
    width: 150px;
    height: 28px;
    border-radius: 5px;
    border: none;
    font-size: 13px;
}

.field.checkbox input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    width: 25px;
}
.field.checkbox .label {
    display: inline-block;
    vertical-align: middle;
}
.loading {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    z-index: 99999;
    top: 0;
    left: 0;
    display: none;
}

.loading.show {
    display: block;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -60px;
    margin-top: -60px;
}

.loader svg path,
.loader svg rect {
    fill: #FF6700;
}

@media only screen and (max-width: 1200px) {

    .main {
        padding-top: 7.5em;
    }

    iframe.scaleVH {
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -o-transform: scale(0.5);
    }
}

@media only screen and (max-width: 800px) {
    body {
        overflow: auto;
        padding-bottom: 5em;
    }
}

@media screen and (orientation:portrait) {

    .editParams {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .editParams button {
        float: left;
        margin: 1vw;
        font-size: 15px;
        width: 180px;
    }

    iframe.scaleVH {
        margin-top: 120px;
    }
}

@media only screen and (orientation:portrait) and (max-width: 768px) {
    iframe.scaleVH {
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -o-transform: scale(0.5);
    }

}

@media only screen and (orientation:portrait) and (max-width: 600px) {
    iframe.scaleVH {
        transform: scale(0.4);
        -webkit-transform: scale(0.4);
        -moz-transform: scale(0.4);
        -o-transform: scale(0.4);
    }

}

@media only screen and (orientation:portrait) and (max-width: 460px) {
    iframe.scaleVH {
        transform: scale(0.25);
        -webkit-transform: scale(0.25);
        -moz-transform: scale(0.25);
        -o-transform: scale(0.25);
    }


    .gameData {
        margin-top: 30em;
        width: 100%;
    }
}



@media screen and (orientation:landscape) {


    .gameData {
        margin-top: 1em;
    }
}

@media only screen and (orientation:landscape) and (max-width: 960px) {
    iframe.scaleVH {
        transform: scale(0.4);
        -webkit-transform: scale(0.4);
        -moz-transform: scale(0.4);
        -o-transform: scale(0.4);
    }

}

@media only screen and (orientation:landscape) and (max-height: 460px) {
    iframe.scaleVH {
        transform: scale(0.25);
        -webkit-transform: scale(0.25);
        -moz-transform: scale(0.25);
        -o-transform: scale(0.25);
    }

}