html, body {
    margin: 0;
    padding: 0;
    background: black;
    height: 100%;
}
#wrap {
    position: relative;
    padding: 0;
    margin: 0 auto;
    max-width: 320px;
    background-image: url(bgcirc.png), linear-gradient(
      rgba(3, 115, 140, 0.5),
      rgba(3, 115, 140, 0.5)
    ), url(city-small.jpg);
    background-size: 150% auto, cover, cover;
    background-attachment: scroll, scroll, fixed;
    background-position: 50% 0, 0 0, center 100%;
}
header {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    height: 160px;
}
header h1 {
    color: white;
    font-family: CodeProDemoRegular, sans-serif;
    margin: 0;
    padding: 48px 0 0 0;
    text-align: center;
    font-weight: normal;
    font-size: 32px;
}
header p {
    text-align: center;
    color: white;
    font-family: sans-serif;
    max-width: 250px;
    margin: 0 auto;
    font-size: 10px;
}

footer {
    margin: 0;
    padding: 0;
    position: static;
}
footer p {
    text-align: center;
    color: white;
    height: 160px;
    padding: 0;
    margin: 0 10px;
    font-family: sans-serif;
    text-align: center;
    font-size: 12px;
}
footer p a {
    color: white;
}
footer p span {
    display: block;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Core styles for interviews */
#ivs p {
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    color: white;
    position: relative;
}
#ivs img {
    width: 160px;
    height: 160px;
    border-radius: 9999px;
    display: block;
    margin: auto;
}

/* Core flexbox styles for interviews */
#ivs div {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-align: start;
    -moz-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#ivs div p {
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}

#ivs div p:nth-child(1) {
    font-family: CodeProDemoRegular, sans-serif;
}
#ivs div p:nth-child(3) {
    font-family: sans-serif;
}

/* mobile style: narrow */

#ivs div {
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

#ivs div p {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
}

#ivs div p:nth-child(1) {
    -webkit-box-ordinal-group: 3;
    -moz-box-ordinal-group: 3;
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    padding-top: 8px;
}

#ivs div p:nth-child(2) {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    z-index: 2;
}

#ivs div p:nth-child(3) {
    -webkit-box-ordinal-group: 4;
    -moz-box-ordinal-group: 4;
    -webkit-order: 3;
    -ms-flex-order: 3;
    order: 3;
    height: 122px;
    width: 180px;
    margin: auto;
    font-size: 12px;
}

/* video */
#ivs div a, #ivs div span {
    position: absolute;
    display: inline-block;
    width: 160px; /* min-width / 3 */
    height: 160px; /* min-width / 3 */
    border-radius: 80px; /* min-width / 3 / 2*/
    margin-left: -80px; /* min-width / 3 / 2 */
    margin-top: 0px;
    text-indent: -10000px;
    outline: 0;
}
#ivs div span {
    pointer-events: none;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}
#ivs div a::after {
    content: "";
    display: block;
    position: absolute;
    width: 80px; /* min-width / 3 / 2*/
    height: 80px; /* min-width / 3 / 2*/
    background: rgba(255,255,255,0.8) url(media-play.png) center center no-repeat;
    background-size: contain;
    border: 1px solid rgba(255,255,255,1);
    border-radius: 10px;
    top: 50%;
    left: 50%;
    margin-left: -40px; /* width / 2 */
    margin-top: -40px; /* height / 2 */
    text-align: center;
    opacity: 0.3;
}
#ivs div.playing span {
    width: 320px; /* video width */
    height: 240px; /* video height */
    background: rgba(0,0,0,1);
    margin-left: 0;
    margin-top: 0;
    -webkit-transform: translateX(-160px) translateY(-45px); /* work around webkit positioning weirdness */
    transform: translateX(-160px) translateY(-45px);
    border-radius: 0;
    pointer-events: auto;
}
#ivs div.playing a {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: rgba(0,115,150,0.4);
}
#ivs div.playing a::after { display: none; }
#ivs div span iframe { display: block; }
#ivs div.playing p:nth-child(2) { z-index: 3; } /* appear above other picture discs */

@media (min-width: 450px) {
    /* wide layout */
    #ivs div {
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
  
    #ivs div p {
        -webkit-box-ordinal-group: 1;
        -moz-box-ordinal-group: 1;
        -webkit-order: 0;
        -ms-flex-order: 0;
        order: 0;
        -webkit-box-flex: 0;
        -moz-box-flex: 0;
    }

    #ivs div p:nth-child(1) {
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
        padding-top: 0px;
    }

    #ivs div p:nth-child(2) {
        -webkit-box-ordinal-group: 3;
        -moz-box-ordinal-group: 3;
        -webkit-order: 2;
        -ms-flex-order: 2;
        order: 2;
    }

    #ivs div p:nth-child(3) {
        -webkit-box-ordinal-group: 4;
        -moz-box-ordinal-group: 4;
        -webkit-order: 3;
        -ms-flex-order: 3;
        order: 3;
        box-sizing: border-box;
        padding: 0 30px;
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        height: auto;
        width: 150px;
    }
    #ivs div {
        -webkit-align-items: center;
        align-items: center;
    }

    #wrap {
        max-width: 450px; /* min-width */
        background-size: 100% auto, cover, cover;
        background-attachment: scroll, scroll, fixed;
        background-position: 0 0, 0 0, center 100%;
    }
    header { height: 150px; } /* min-width / 3 */
    header h1 {
        padding: 52.5px 0 0 0; /* ((min-width / 3) / 2) - (font-size/2) */
        font-size: 45px; /* min-width / 10 */
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        width: 150px; /* min-width / 3 */
    }
    #ivs img {
        height: 150px; /* min-width / 3 */
        width: 150px; /* min-width / 3 */
    }

    #ivs div a {
        width: 150px; /* min-width / 3 */
        height: 150px; /* min-width / 3 */
        border-radius: 75px; /* min-width / 3 / 2*/
        margin-left: -75px; /* min-width / 3 / 2 */
    }
    #ivs div a::after {
        width: 75px; /* min-width / 3 / 2*/
        height: 75px; /* min-width / 3 / 2*/
        margin-left: -37.5px; /* width / 2 */
        margin-top: -37.5px; /* height / 2 */
    }
    #ivs div.playing span {
        width: 320px; /* video width */
        height: 240px; /* video height */
        margin-left: 0;
        margin-top: 0;
        /* -width/2 */
        /* - (height - min-width)/2 */
        -webkit-transform: translateX(-160px) translateY(-45px);
        transform: translateX(-160px) translateY(-45px);
    }

    header p {
        max-width: 250px;
        font-size: 10px;
    }

    footer p { height: 150px; }

}
@media (min-width: 600px) {
    #wrap { max-width: 600px; } /* min-width */
    header { height: 200px; } /* min-width / 3 */
    header h1 {
        padding: 70px 0 0 0; /* ((min-width / 3) / 2) - (font-size/2) */
        font-size: 60px; /* min-width / 10 */
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        width: 200px; /* min-width / 3 */
    }
    #ivs img {
        height: 200px; /* min-width / 3 */
        width: 200px; /* min-width / 3 */
    }

    #ivs div a {
        width: 200px; /* min-width / 3 */
        height: 200px; /* min-width / 3 */
        border-radius: 100px; /* min-width / 3 / 2*/
        margin-left: -100px; /* min-width / 3 / 2 */
    }
    #ivs div a::after {
        width: 100px; /* min-width / 3 / 2*/
        height: 100px; /* min-width / 3 / 2*/
        margin-left: -50px; /* width / 2 */
        margin-top: -50px; /* height / 2 */
    }
    #ivs div.playing span {
        width: 560px; /* video width */
        height: 315px; /* video height */
        /* -width/2 */
        /* - (height - min-width)/2 */
        -webkit-transform: translateX(-280px) translateY(-57.5px);
        transform: translateX(-280px) translateY(-57.5px);
    }

    header p {
        max-width: 350px;
        font-size: 14px;
    }

    #ivs div p:nth-child(1) { font-size: 18px; }
    #ivs div p:nth-child(3) { font-size: 14px; }

    footer p { height: 200px; font-size: 14px; }

}
@media (min-width: 750px) {
    #wrap { max-width: 750px; } /* min-width */
    header { height: 250px; } /* min-width / 3 */
    header h1 {
        padding: 87.5px 0 0 0; /* ((min-width / 3) / 2) - (font-size/2) */
        font-size: 75px; /* min-width / 10 */
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        width: 250px; /* min-width / 3 */
    }
    #ivs img {
        height: 250px; /* min-width / 3 */
        width: 250px; /* min-width / 3 */
    }

    #ivs div a {
        width: 250px; /* min-width / 3 */
        height: 250px; /* min-width / 3 */
        border-radius: 125px; /* min-width / 3 / 2*/
        margin-left: -125px; /* min-width / 3 / 2 */
    }
    #ivs div a::after {
        width: 125px; /* min-width / 3 / 2*/
        height: 125px; /* min-width / 3 / 2*/
        margin-left: -62.5px; /* width / 2 */
        margin-top: -62.5px; /* height / 2 */
    }
    #ivs div.playing span {
        width: 640px; /* video width */
        height: 360px; /* video height */
        /* -width/2 */
        /* - (height - min-width)/2 */
        -webkit-transform: translateX(-320px) translateY(-65px);
        transform: translateX(-320px) translateY(-65px);
    }

    #ivs div p:nth-child(1) { font-size: 22px; }
    #ivs div p:nth-child(3) { font-size: 18px; }

    header p {
        max-width: 450px;
        font-size: 18px;
    }

    footer p { height: 250px; font-size: 18px; }

}
@media (min-width: 900px) {
    #wrap { max-width: 900px; } /* min-width */
    header { height: 300px; } /* min-width / 3 */
    header h1 {
        padding: 105px 0 0 0; /* ((min-width / 3) / 2) - (font-size/2) */
        font-size: 90px; /* min-width / 10 */
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        width: 300px; /* min-width / 3 */
    }
    #ivs img {
        height: 300px; /* min-width / 3 */
        width: 300px; /* min-width / 3 */
    }

    #ivs div a {
        width: 300px; /* min-width / 3 */
        height: 300px; /* min-width / 3 */
        border-radius: 150px; /* min-width / 3 / 2*/
        margin-left: -150px; /* min-width / 3 / 2 */
    }
    #ivs div a::after {
        width: 150px; /* min-width / 3 / 2*/
        height: 150px; /* min-width / 3 / 2*/
        margin-left: -75px; /* width / 2 */
        margin-top: -75px; /* height / 2 */
    }
    #ivs div.playing span {
        width: 853px; /* video width */
        height: 480px; /* video height */
        /* -width/2 */
        /* - (height - min-width)/2 */
        -webkit-transform: translateX(-426px) translateY(-165px);
        transform: translateX(-426px) translateY(-165px);
    }

    header p {
        max-width: 450px;
        font-size: 18px;
    }

    footer p { height: 300px; font-size: 22px; }

    #ivs div p:nth-child(1) { font-size: 26px; }
    #ivs div p:nth-child(3) { font-size: 22px; }

}
@media (min-width: 1280px) {
    #wrap { max-width: 1200px; } /* min-width */
    header { height: 400px; } /* min-width / 3 */
    header h1 {
        padding: 140px 0 0 0; /* ((min-width / 3) / 2) - (font-size/2) */
        font-size: 120px; /* min-width / 10 */
    }
    #ivs div p:nth-child(1), #ivs div p:nth-child(2), #ivs div p:nth-child(3) {
        width: 400px; /* min-width / 3 */
    }
    #ivs img {
        height: 400px; /* min-width / 3 */
        width: 400px; /* min-width / 3 */
    }

    #ivs div a {
        width: 400px; /* min-width / 3 */
        height: 400px; /* min-width / 3 */
        border-radius: 200px; /* min-width / 3 / 2*/
        margin-left: -200px; /* min-width / 3 / 2 */
    }
    #ivs div a::after {
        width: 200px; /* min-width / 3 / 2*/
        height: 200px; /* min-width / 3 / 2*/
        margin-left: -100px; /* width / 2 */
        margin-top: -100px; /* height / 2 */
    }
    #ivs div.playing span {
        width: 1280px; /* video width */
        height: 720px; /* video height */
        /* -width/2 */
        /* - (height - min-width)/2 */
        -webkit-transform: translateX(-640px) translateY(-160px);
        transform: translateX(-640px) translateY(-160px);
    }

    footer p { height: 400px; }

}