/*--------------------------------------------------------------
Layouts
--------------------------------------------------------------*/

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

body,
button,
input,
select,
textarea {
    color: #888;
    background-color: #222;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4em;
}

em.highlight {
    color: #aaa;
    font-weight: bold;
}

h1 {
    display: block;
    color: #333;
    font-size: 1.5em;
    font-weight: 500;
    text-align: center;
    line-height: 1.5em;
    border-radius: 1em;
    margin-bottom: 1em;
    margin-top: 1em;
    font-family: 'Alegreya Sans SC', Helvetica, Arial, sans-serif;
}

.inline-title {
    display: none;
}

#display-area {
    max-width: 80em;
    margin: 0 auto;
}

.centered {
    margin: 0 auto;
    padding: 0 0;
}

.content {
    font-size: 1em;
    margin: 1em 2em;
}

.disclaimer {
    text-align: center;
    margin-bottom: -.3em;
    font-weight: 300;
    font-style: italic;
}

.disclaimer::after {
    content: 'The Alexa Converge Skill is an independent project';
    font-size: .9em;
    color: #888;
}

section {
    margin-top: 1.3em;
    line-height: 1.6em;
    text-align: left;
}

section:last-of-type {
    margin-bottom: 1em;
}

section:first-of-type {
    margin-top: .6em;
}

.content section a:active,
#footer-links a:active,
#footer-links p:last-of-type a:last-of-type:active {
    color: black !important;
    background-color: whitesmoke !important;
    -webkit-transition: none !important;
    transition: none !important;
}

.content section:nth-of-type(1) h1 {
    background-color: #bb32d9;
    color: #EEE;
    font-weight: normal;
}

.content section:nth-of-type(1) a {
    color: #bb32d9;
}

.content section:nth-of-type(2) h1 {
    background-color: yellow;
}

.content section:nth-of-type(3) h1 {
    background-color: #0fc015;
}

.content section:nth-of-type(3) a {
    color: #0fc015;
}

.content section:nth-of-type(4) h1 {
    background-color: orange;
}

.content section:nth-of-type(5) h1 {
    background-color: cyan;
}

.content section:nth-of-type(5) a {
    color: cyan;
}

.content section:nth-of-type(6) h1 {
    background-color: #E12826;
    color: #EEE;
    font-weight: normal;
}

.content section:nth-of-type(6) a {
    color: #E12826;
}

.content section:nth-of-type(odd) figure {
    margin: 0 0 .5em 1.5em;
    padding: 0;
    float: right;
}

.content section:nth-of-type(even) figure {
    margin: 0 1.5em .5em 0;
    padding: 0;
    float: left;
}

section figure img {
    width: 40vw;
    height: auto;
    border-radius: .6em .6em 0 0;
}

section:last-of-type figure img {
    width: 40vw;
    height: auto;
    border-radius: .6em;
}

figcaption {
    color: #bbb;
    text-align: center;
    font-size: .85em;
    padding: .5em 0;
    background-color: black;
    border-radius: 0 0 .6em .6em;
}

ul {
    clear: both;
    margin-top: 1em;
    color: #999;
    padding: .5em 1em;
    border-radius: 1em;
    background-color: #2C2C2C;
    list-style-type: none;
    text-align: left;
    line-height: 1.75em;
}

.alexaCommandListB {
    display: none;
}

li:before {
    content: "• ";
    padding-right: .5em;
    color: orange;
}

.audioPlayer p {
    margin: 1em .5em;
}

.audioPlayer {
    float: right;
    background-color: black;
    opacity: 1;
    border-radius: .6em;
    padding: .4em;
    width: 40vw;
    height: auto;
    color: #bbb;
    text-align: center;
    font-size: .85em;
    margin: 0 0 .5em 1em;
    line-height: 1.5em;
}

footer {
    clear: both;
    border-top: 1em solid #222;
    background-color: #111;
    height: 8em;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    color: #777;
}

footer img {
    width: 3.5em;
    height: 3.5em;
    box-shadow: .5em .5em .5em black;
}

footer div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 auto;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 20em;
    height: 3.5em;
    font-weight: 500;
}

#footer-links {
    display: block;
    text-align: center;
    font-size: .9em;
    line-height: .5em;
    margin: -1.5em;
}

#footer-links a {
    color: #aaa;
}

#footer-links p:last-of-type a:last-of-type {
    color: #E12826;
    font-size: 1.1em;
    line-height: 2em;
}

/* Hover only on devices that support hover */

@media (hover: hover) {
    .content section:nth-of-type(1) a:hover {
        color: white;
        background-color: #bb32d9;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
    .content section:nth-of-type(3) a:hover {
        color: black;
        background-color: #0fc015;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
    .content section:nth-of-type(5) a:hover {
        color: black;
        background-color: cyan;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
    .content section:nth-of-type(6) a:hover,
    #footer-links p:last-of-type a:hover {
        color: white !important;
        background-color: #E12826;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
    #footer-links a:first-of-type:hover {
        color: #fdda7d;
        background-color: #a02eb5;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
    #footer-links a:last-of-type:hover {
        color: white;
        background-color: #25a0ef;
        -webkit-transition: .2s ease-in 50ms;
        transition: .2s ease-in 50ms;
    }
}

/* Footer for iPhone 5 */

@media screen and (max-width: 330px) {
    footer div {
        width: 18em;
    }
}

/* Two column list */

@media screen and (max-width: 70em) and (min-width: 33em) {
    .alexaCommandList {
        clear: both;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    ul {
        margin-top: .5em;
        margin-bottom: 0;
        -ms-flex-preferred-size: 50%;
            flex-basis: 50%;
    }
    ul:first-of-type {
        margin-right: .6em;
    }
    ul:last-of-type {
        display: block;
        margin-left: .6em;
    }
    ul li:nth-child(7) {
        display: none;
    }
    ul li:nth-child(8) {
        display: none;
    }
    ul li:nth-child(9) {
        display: none;
    }
    ul li:nth-child(10) {
        display: none;
    }
    ul li:nth-child(11) {
        display: none;
    }
    ul li:nth-child(12) {
        display: none;
    }
}

@media screen and (min-width: 40em) {
    .content {
        font-size: 1.2em;
        line-height: 1.4em;
    }
}

@media screen and (max-width:70em) and (min-width: 53em) {
    .content {
        font-size: 1.3em;
        line-height: 1.8em;
    }
    .inline-title {
        display: inline-block;
    }
    .top-title {
        display: none;
    }
    section {
        margin-top: 2.5em;
        line-height: 1.8em;
    }
    section:first-of-type {
        margin-top: 2em;
    }
    section p:first-of-type {
        display: inline;
    }
    h1 {
        display: inline-block;
        margin-top: 0;
        margin-right: .4em;
        min-width: 11em;
        line-height: 1.5em;
        margin-bottom: .2em;
        border-radius: .5em;
    }
    section figure {
        box-shadow: .25em .25em 1em #111;
        border: 4px solid #111;
        border-radius: .6em;
        background-color: black;
    }
    section figure img {
        width: 30vw;
        height: auto;
        border-radius: .4em .4em 0 0;
    }
    section:last-of-type figure img {
        width: 30vw;
    }
    .audioPlayer {
        width: 30vw;
        box-shadow: .25em .25em 1em #111;
    }
    .audioPlayer p:first-of-type {
        display: block;
        padding: .1em;
    }
    .content section:nth-of-type(even) figure {
        margin: 0 0 .5em 1.5em;
        padding: 0;
        float: right;
    }
    .disclaimer {
        margin-bottom: -.5em;
    }
    .content section:nth-of-type(1) a,
    .content section:nth-of-type(2) a,
    .content section:nth-of-type(3) a,
    .content section:nth-of-type(4) a,
    .content section:nth-of-type(5) a,
    .content section:nth-of-type(6) a {
        color: #888;
    }
    .content section:nth-of-type(1) a:active {
        color: white;
        background-color: #888;
    }
}

@media screen and (min-width: 70em) {
    main {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
    .disclaimer {
        margin-bottom: -1.6em;
    }
    .content section {
        width: calc(50% - 1em);
    }
    .content section:first-of-type {
        margin-top: 1.3em;
    }
    .content {
        font-size: 1.3em;
        line-height: 1.8em;
    }
    .content section figure {
        width: 50%;
    }
    .content section img {
        width: 100%;
    }
    section:last-of-type figure img {
        width: 100%;
        border-radius: .6em;
    }
    .hows-it-work {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-flow: column nowrap;
            flex-flow: column nowrap;
    }
    .hows-it-work-text {
        margin-top: -1.3em;
    }
    .audioPlayer {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
        padding: 1em;
        width: calc(100% - 2em);
        margin: 0;
        background-color: #2C2C2C;
    }
}