body, html {
	height: 100%;
}

body {
    overflow: hidden;
    background-color: var(--gray-100) !important;
}

#content {
    height: 100%;
    margin: 0 !important;
    --demoframe-height: 80px;
}

#demoframe-header {
    position: relative;
    width: 100%;
    z-index: 11;
    height: var(--demoframe-height);
    transition: all 0.2s ease-in-out;
    transform: translate(0, 0);
}

.collapsed #demoframe-header {
    transform: translateY(calc(var(--demoframe-height) * -1));
}

#demoframe-header .navbar-brand {
    position: relative;
    width: 250px;
}

#demoframe-header .buttons {
    width: auto;
}

.btn-explore {
    width: 220px;
}

.btn-collapse {
    transition: all 0.4s ease-in-out;
    position: fixed;
    top: 0;
    right: 2rem;
    z-index: 10;
    width: 48px;
    height: 40px;
    transform: translateY(-40px);
    background-color: #001f52;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 0 0 .4rem .4rem;
    opacity: 0;
}

.collapsed .btn-collapse {
    opacity: 1;
    transform: translateY(0px);
}

.btn-collapse:hover {
    color: #efefef;
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(37,27,91, .8);
}

.btn-collapse .fa {
    transform-origin: center;
}

#devices {
    position: relative;
}

#devices > a {
    color: #fff;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    position: relative;
}

#devices > a.active,
#devices > a:hover {
    color: #ffa726;
}

#devices > a[data-target='tablet-h'],
#devices > a[data-target='mobile'] {
    top: 3px;
}

#iframe-container,
#iframe-wrapper {
    transition: all 0.2s ease-in-out;
}

#iframe-container {
    z-index: 9;
    position: absolute;
    top: var(--demoframe-height);
    bottom: 0;
    right: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.collapsed #iframe-container {
    top: 0;
}

#iframe-wrapper {
    margin: 0 auto;
    display: block;
    transform: translate3d(0, 0, 0);
}

#iframe-wrapper > iframe {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.framed-tablet-v #iframe-wrapper,
.framed-tablet-h #iframe-wrapper,
.framed-mobile #iframe-wrapper {
    border: 2px solid #bbb;
    padding: 30px 80px 30px 30px;
    border-radius: 20px;
    position: relative;
    margin-top: 40px !important;
}

.framed-tablet-v #iframe-wrapper:after,
.framed-tablet-h #iframe-wrapper:after,
.framed-mobile #iframe-wrapper:after {
    content: '';
    position: absolute;
    background: #bbb;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.framed-tablet-v #iframe-wrapper iframe,
.framed-tablet-h #iframe-wrapper iframe,
.framed-mobile #iframe-wrapper iframe {
    border: 1px solid #aaa;
}

.framed-desktop #iframe-wrapper {
    width: 100%;
    height: 100%;
}
.framed-desktop #iframe-wrapper iframe {
    border: 0;
}

.framed-tablet-h #iframe-wrapper {
    width: 1024px;
    height: 768px;
}

.framed-tablet-h #iframe-wrapper:after {
    right: 14px;
    top: 50%;
    margin-top: -25px;
}

.framed-tablet-v #iframe-wrapper {
    width: 768px;
    height: 1024px;
    padding: 30px 30px 80px 30px;
    margin-bottom: 20px !important;
}
.framed-tablet-v #iframe-wrapper:after {
    bottom: 14px;
    left: 50%;
    margin-left: -25px;
}
.framed-mobile #iframe-wrapper {
    height: 667px;
    width: 425px;
    padding: 20px 20px 60px 20px;
}

.framed-mobile #iframe-wrapper:after {
    width: 35px;
    height: 35px;
    bottom: 12px;
    left: 50%;
    margin-left: -15px;
    border-radius: 30px;
}

.framed-tablet-v {
    min-width: 1000px;
}

.framed-tablet-h {
    min-width: 1300px;
}

.framed-mobile {
    min-width: 550px;
}
/* dont display header on mobile devices */
@media (max-width: 1024px) {
    #header,
    .btn-collapse {
        display: none;
    }

    #iframe-container {
        height: 100%;
    }
}