/*
 * port: the header logo used to be its own document in a 300x150 iframe
 * (components/animated-logo-component.html). It is inlined now; these rules
 * rebuild that iframe's box and its stylesheet, renamed under .alogo-* so they
 * cannot collide with the page's .front/.back cube faces, and reset what the
 * page's Bootstrap reboot would otherwise change inside it.
 */
.animated-logo.alogo {
    width: 300px;
    height: 150px;
    position: relative;
    overflow: hidden;
}

/* The iframe's <body>: UA defaults, 8px margin, no page fonts. */
.alogo-doc {
    margin: 8px;
    font-family: serif;
    font-size: 16px;
    line-height: normal;
    color: #000;
}

.alogo svg {
    vertical-align: baseline;
}

.alogo-svg-logo,
.alogo-svg-wrapper {
    z-index: 3;
    position: sticky;
}

.alogo-overlay {
    position: absolute;
    top: 7px;
    left: 11px;
    width: 100%;
    perspective: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* The white component (dark headers) gave the overlay a fixed height. */
.alogo-light .alogo-overlay {
    height: 100px;
}

.alogo-text-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alogo-empty,
.alogo-front,
.alogo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.alogo-empty {
    transform: rotateX(0deg) translateZ(25px);
    opacity: 1;
}

.alogo-front {
    transform: rotateX(90deg) translateZ(25px);
}

.alogo-front svg {
    height: 70px;
}

.alogo-back {
    transform: rotateX(180deg) translateZ(25px);
    left: -18px;
}

.alogo.dark svg * {
    fill: #fff;
}

/* The phone hero morph used to be an iframe too (components/mobile-logo-component.html). */
.mobile-logo-morph {
    display: inline-block;
    width: 100%;
    height: 353px;
    overflow: hidden;
    vertical-align: baseline;
}

.mobile-logo-morph-doc {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.mobile-logo-morph-doc svg {
    vertical-align: baseline;
}
