*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    min-height: 100%;
}

.textfield-url {
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    min-width: 240px;
    text-align: center;
}

.preview-main {
    background: #555;
    overflow: hidden;
    height: 100vh;
    padding: 40px 0;
    position: relative;
    padding-left: 250px;
}

.preview-sidebar {
    height: 100%;
    margin: 0;
    width: 250px;
    position: absolute;
    left: 0;
    z-index: 100;
    top: 0;
    bottom: 0;
    overflow: auto;
    background: #fff;
    padding: 15px 0;
}

.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transition: 1s;
    transition: 1s;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    overflow-x: hidden;
    max-width: 3000px;
    margin: 0 auto;
}

.preview-content.device-1 {
    max-width: 160px;
}

.preview-content.device-1 ::-webkit-scrollbar,
.preview-content.device-2 ::-webkit-scrollbar,
.preview-content.device-3 ::-webkit-scrollbar {
    display: none;
}

.preview-content>iframe {
    position: relative;
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    overflow: hidden;
    -webkit-transition: opacity 3s;
    transition: opacity 3s;
    opacity: 0;
}

.preview-content>iframe.ready {
    opacity: 1;
}

.preview-content.device-2 {
    max-width: 350px;
}

.preview-content.device-1 ::-webkit-scrollbar,
.preview-content.device-2 ::-webkit-scrollbar,
.preview-content.device-3 ::-webkit-scrollbar {
    display: none;
}

.preview-content.device-3 {
    max-width: 770px;
}

.preview-content.device-1 ::-webkit-scrollbar,
.preview-content.device-2 ::-webkit-scrollbar,
.preview-content.device-3 ::-webkit-scrollbar {
    display: none;
}

.preview-content.device-4 {
    max-width: 1200px;
}

.preview-content.device-1 ::-webkit-scrollbar,
.preview-content.device-2 ::-webkit-scrollbar,
.preview-content.device-3 ::-webkit-scrollbar {
    display: none;
}

.preview-content.device-5 {
    max-width: 3000px;
}

.preview-content.device-1 ::-webkit-scrollbar,
.preview-content.device-2 ::-webkit-scrollbar,
.preview-content.device-3 ::-webkit-scrollbar {
    display: none;
}

.preview-header,
.preview-footer {
    position: absolute;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    color: white;
    background: #222;
    min-height: 2em;
    -webkit-box-flex: 0;
    flex: 0;
    padding: 5px 0;
    left: 250px;
    right: 0;
    z-index: 99;
}

.preview-header {
    text-transform: capitalize;
    top: 0;
    bottom: auto;
}

.preview-header>label {
    display: block;
    z-index: 1;
    margin: 0
}

.preview-header>.md {
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 250px;
    -webkit-transition: 2s;
    transition: 2s;
}

.preview-header>.md.show {
    width: 100%;
    opacity: 0;
}

.preview-header>.md.show--1 {
    background: rgba(255, 0, 0, 0.5);
}

.preview-header>.md.show--2 {
    background: rgba(0, 128, 0, 0.5);
}

.preview-header>.md.show--3 {
    background: rgba(30, 144, 255, 0.5);
}

.preview-header>.md.show--4 {
    background: rgba(255, 165, 0, 0.5);
}

.preview-header>.md.show--5 {
    background: rgba(255, 20, 147, 0.5);
}

.preview-footer {
    -webkit-box-align: stretch;
    align-items: stretch;
    padding: 0;
    bottom: 0;
    top: auto;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: dodgerblue;
    -webkit-transition: 2s;
    transition: 2s;
    padding: .5em;
    font-size: 14vmin;
}

.loading>div {
    display: inline-block;
    position: relative;
}

.loading>div>span {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    background: #555;
    -webkit-animation: typing 0.5s steps(3) alternate infinite;
    animation: typing 0.5s steps(3) alternate infinite;
}

.loading.done {
    pointer-events: none;
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
    color: white;
    opacity: 0;
}

.loading.done>div {
    display: none;
}

.preview-footer--btn {
    position: relative;
    border: 0;
    max-width: 8em;
    outline: none !important;
    opacity: .5;
    color: #fff;
    display: flex;
    -webkit-box-flex: 1;
    flex: 1;
    align-items: center;
    padding: 8px 12px;
    vertical-align: middle;
    justify-content: center;
    outline: 0 !important;
    box-shadow: none !important;
}

.preview-footer--btn:hover {
    opacity: 1;
    color: #fff;
}

.md-circle-effect {
    border-radius: 50%;
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
}

.effect-1 {
    background: rgba(255, 0, 0, 0.5);
}

.effect-2 {
    background: rgba(0, 128, 0, 0.5);
}

.effect-3 {
    background: rgba(30, 144, 255, 0.5);
}

.effect-4 {
    background: rgba(255, 165, 0, 0.5);
}

.effect-5 {
    background: rgba(255, 20, 147, 0.5);
}

.animate-md {
    -webkit-animation: animate-material-design 1s ease-in forwards;
    animation: animate-material-design 1s ease-in forwards;
}

@-webkit-keyframes animate-material-design {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes animate-material-design {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@-webkit-keyframes typing {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

@keyframes typing {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}