/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #eaceb5;
    font-family: Lato, Rockwell, "Trebuchet MS", Arial, Helvetica, sans-serif;
}

a, a:visited, a:link, a:hover, a:active {
    font-weight: bold;
    color: #f15950;
    text-decoration: none;
}


.slide {
    background: #fff;
    opacity: 0.5;
    box-sizing: border-box;
    width: 550px;
    height: 400px;
    padding: 15px;
    border-radius: 5px;
    border-top-left-radius: 0px;
    position:relative;
    z-index: -1;
    padding: 15px 20px;
}

.slide.active {
    box-shadow: #999 3px 3px 10px;
    opacity: 1;
    z-index: 1;
}

.question h2 {
    margin-top: 0;
    font-family: Lato, Rockwell, Georgia, "Times New Roman", serif;
    line-height: 1.3;
    margin-bottom: 15px;
}

.question ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.question .answer {
    background: #a1c3bc;
    padding: 9px 10px;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    color: #000;
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
}

.question .answer:hover {
    background: #aed2cb;
}

.question .answer:active,
.question .answer.active {
    background: #ff645b;
}

.slide-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

#intro {
    text-align: center;
    background:#fff url(../img/brain_tiny.png) no-repeat 50% 25px;
    padding-top:60px;
}

#intro p {
    text-align: left;
    line-height: 1.6;
}

p#intro-start-button {
    text-align: center;
    margin-top: 24px;
}

#end {
    padding: 15px 20px;
}

#end p {
    width: 55%;
    float: left;
    margin-top: 0;
}

#end #result-image {
    float: right;
    width: 200px;
    height: 200px;
}

#end h2 {
    margin: 0.25em 0 0.83em;
}

#end ul.share {
    position: absolute;
    bottom: 0;
    right: 10px;
    margin-right: -30px;
}

#end ul.share li {
    display: inline-block;
    list-style-type: none;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Reg-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Reg-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Reg-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Reg-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Reg-webfont.svg?66b14863fe7a#LatoRegular') format("svg");
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Hai-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Hai-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Hai-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Hai-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Hai-webfont.svg?66b14863fe7a#LatoRegular') format("svg");
    font-weight: 100;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Lig-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Lig-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Lig-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Lig-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Lig-webfont.svg?66b14863fe7a#LatoRegular') format("svg");
    font-weight: 300;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-RegIta-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-RegIta-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-RegIta-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-RegIta-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-RegIta-webfont.svg?66b14863fe7a#LatoItalic') format("svg");
    font-weight: normal;
    font-style: italic
}

@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Bol-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Bol-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Bol-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Bol-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-Bol-webfont.svg?66b14863fe7a#LatoBold') format("svg");
    font-weight: bold;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-BolIta-webfont.eot?66b14863fe7a');
    src: url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-BolIta-webfont.eot?&66b14863fe7a#iefix') format("embedded-opentype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-BolIta-webfont.woff?66b14863fe7a') format("woff"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-BolIta-webfont.ttf?66b14863fe7a') format("truetype"), url('http://cdn.theatlantic.com/assets/static/common/fonts/lato/Lato-BolIta-webfont.svg?66b14863fe7a#LatoBoldItalic') format("svg");
    font-weight: bold;
    font-style: italic
}


.rounded-button,
.rounded-button:visited,
.rounded-button:hover,
.rounded-button:active {
	margin: 0;
	display: inline-block; 
	padding: 6px 10px 7px 10px !important;
	text-decoration: none;
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px;
	border-radius: 5px;
	border-bottom: 1px solid rgba(0,0,0,0.25);
	position: relative;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-o-user-select: none;
	-moz-user-select: none;
	-webkit-font-smoothing: subpixel-antialiased !important;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f15950), to(#c54941));
	background: -moz-linear-gradient(top, #f15950, #c54941);
	background-color: #f15950;
	border: 1px solid #a3a3a3;
	border-bottom: 1px solid #9a9a9a;
	color: #eee !important;
	-webkit-text-shadow: rgba(0,0,0,0.5) 0 -1px 0;
	-moz-text-shadow: rgba(0,0,0,0.5) 0 -1px 0;
	text-shadow: rgba(0,0,0,0.5) 0 -1px 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1;
	opacity: 1 !important;
}
.rounded-button:hover {
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fc665d), to(#e55c54));
	background: -moz-linear-gradient(top, #fc665d, #ec5f57);
	background-color: #fc665d;
}
.rounded-button:active {
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e55c54), to(#fc665d));
	background: -moz-linear-gradient(top, #e55c54, #fc665d);
	background-color: #e55c54;
	border: 1px solid #9a9a9a;
	border-bottom: 1px solid #a3a3a3;
	padding: 7px 10px 6px 10px !important;
}

a.social-icon {
    color: #fff
}

a.social-icon.facebook {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    margin: -1px;
    outline: none;
    padding: 0;
    text-shadow: 0 -1px 0 #354c8c;
    display: block;
    overflow: hidden;
}

a.social-icon.facebook span {
    display: block;
    float: left;
}
a.social-icon.facebook span.icon {
    background-image: url(../img/facebook-sprites.png);
    background-position:0 -42px;
    background-size: 30px 72px;
    background-repeat: no-repeat;
    height: 14px;
    width: 14px;
    left: 0;
    margin: 0 4px 0 4px;
    position: relative;
    top: 3px;
    vertical-align: top;
    -ms-high-contrast-adjust: none;
    _overflow: hidden;
}


a.social-icon.facebook {
    -webkit-font-smoothing:antialiased;
    font-weight: normal;
    color: #fff;
    background: #4c69ba;
    background: -webkit-gradient(linear, center top, center bottom, from(#4c69ba), to(#3b55a0));
    background: -webkit-linear-gradient(#4c69ba, #3b55a0);
    -webkit-border-radius: 2px;
    margin-right: 8px;
}

a.social-icon.facebook span.label {
    font-family:'Helvetica Neue', Helvetica, Arial, 'lucida grande',tahoma,verdana,arial,sans-serif;
    font-size: 11px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    height: 20px;
    line-height: 20px;
    padding: 0 5px;
    text-shadow: 0 -1px 0 #354c8c;
    white-space: nowrap;
}