/*! 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
   ========================================================================== */

@font-face {
    font-family: 'cabinregular';
    src: url('../fonts/cabin-regular-webfont.eot');
    src: url('../fonts/cabin-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/cabin-regular-webfont.woff2') format('woff2'),
    url('../fonts/cabin-regular-webfont.woff') format('woff'),
    url('../fonts/cabin-regular-webfont.ttf') format('truetype'),
    url('../fonts/cabin-regular-webfont.svg#cabinregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'dancing_script_otregular';
    src: url('../fonts/dancingscript-regular-webfont.eot');
    src: url('../fonts/dancingscript-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/dancingscript-regular-webfont.woff2') format('woff2'),
    url('../fonts/dancingscript-regular-webfont.woff') format('woff'),
    url('../fonts/dancingscript-regular-webfont.ttf') format('truetype'),
    url('../fonts/dancingscript-regular-webfont.svg#dancing_script_otregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.mobile{
    display: none;
}

#main-wrapper{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../img/img-bg.jpg');
    background-size: cover;
    overflow: hidden;
}

#main-wrapper:before{
    content: url('../img/img-desktop-bg-flower-left.png');
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: 10%;
}

#main-wrapper:after{
    content: url('../img/img-desktop-bg-flower-right.png');
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 10%;
}

#main-wrapper .cont{
    position: absolute;
    z-index: 1;
    width: 70%;
    margin: 0 auto;
    left: 0;
    right: 0;
    text-align: center;
    padding-top: 50px;
}

.btn{
    position: relative;
    display: inline-block;
    background: #18354e;
    color: white;
    text-decoration: none;
    padding: 0 50px;
    margin-top: 3%;
}
.btn:before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border: 4px solid #6b9195;
    box-sizing: border-box;
}
.btn:after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border: 3px solid #18354e;
    box-sizing: border-box;
}

.cont .title{
    margin-bottom: 5%;
    max-width: 100%;
}

#intro{
    height: 100%;
    width: 100%;
}

#intro .mobile{
    width: 100%;
}

#intro:before{
    content: url('../img/img-splash-card-left.png');
    position: absolute;
    left: 0;
    top: 0;
}

#intro:after{
    content: url('../img/img-splash-card-right.png');
    position: absolute;
    right: 0;
    bottom: 0;
}

#intro .btn p:after{
    content: '';
    position: absolute;
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid white;
    bottom: 0;
    top: 0;
    margin: auto auto auto 10px;
}

#card-select,
#end-screen{
    pointer-events: none;
    opacity: 0;
}

#card-select .card-cont{
    position: relative;
    width: 100%;
    margin: 6% 0 -7% 0;
}

#card-select .card-cont .inner-cont{
    position: relative;
    width: 100%;
    height: 100%;
}

#card-select p.instruc{
    font-family: "dancing_script_otregular", "Dancing Script OT";
    font-size: 7vw;
    color: #60868a;
    text-align: center;
    margin: 0;
}

#card-select .card-cont .card{
    position: absolute;
    height: 70%;
    bottom: -100%;
    opacity: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    cursor: pointer;
}
#card-select .card-cont .card:hover{
    -webkit-box-shadow: 0px 0px 30px 5px rgba(255,255,255,1);
    -moz-box-shadow: 0px 0px 30px 5px rgba(255,255,255,1);
    box-shadow: 0px 0px 30px 5px rgba(255,255,255,1);
}

#card-select .count{
    font-size: 40px;
    font-family: "dancing_script_otregular", "Dancing Script OT";
    color: rgb(226, 99, 41);
    margin: 0;
}

#card-select .count span{
    opacity: 0.7;
}

#card-select .btn{
    pointer-events: none;
    opacity: 0.5;
    margin-top: 0;
}

#card-select .btn p:after{
    content: '';
    position: absolute;
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid white;
    bottom: 0;
    top: 0;
    margin: auto auto auto 10px;
}

#card-select .shuffle{
    display: block;
    position: relative;
    font-size: 12px;
    margin: 5px;
    color: black;
}

#end-screen{
    max-width: 850px;
}

#results-cont{
    position: relative;
    width: 100%;
    height: 100%;
}

#results-cont .inner-cont{
    position: absolute;
    left: 0;
    top: 0;
    width: 732%;
}

#results-cont .result-card{
    position: relative;
    display: inline-block;
    max-width: 850px;
    float: left;
}

#results-cont .result-card .outline{
    position: absolute;
    width: 95%;
    height: 89%;
    border: 1px solid #18354e;
    border-top: none;
    margin: auto;
    right: 0;
    left: 0;
    top: -1%;
    bottom: 0;
}

#results-cont .result-card .outline .left{
    display: block;
    background-color: #18354e;
    width: 40%;
    height: 1px;
    float: left;
}
#results-cont .result-card .outline .right{
    display: block;
    background-color: #18354e;
    width: 5%;
    height: 1px;
    float: right;
}

#results-cont .result-card .reading-title{
    font-size: 29.137px;
    font-family: "dancing_script_otregular", "Dancing Script OT";
    color: #517DA2;
    margin: 0 0 5% 10px;
    line-height: 24px;
    text-align: right;
    float: right;
}

#results-cont .result-card .card-title{
    font-size: 29.137px;
    font-family: "dancing_script_otregular", "Dancing Script OT";
    color: rgb(235, 145, 81);
    margin: 0;
    clear: both;
}

#results-cont .result-card .card-img{
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

#results-cont .result-card div.right{
    display: inline-block;
    width: 50%;
    vertical-align: middle;
    text-align: left;
    margin: 0 5%;
}

#results-cont .result-card .btn-cont{
    text-align: center;
}

#results-cont .result-card .btn-next p:after{
    content: '';
    position: absolute;
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid white;
    bottom: 0;
    top: 0;
    margin: auto auto auto 10px;
}

#results-cont .result-card .btn-prev p:before{
    content: '';
    position: absolute;
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 7px solid white;
    bottom: 0;
    top: 0;
    margin: auto auto auto -19px;
}

#footer{
    position: fixed;
    z-index: 2;
    bottom: 0;
    width: 100%;
    background: white;
}

#footer > a{
    float: left;
    padding: 15px;
    width: 275px;
}

#footer img{
    width: 100%;
}

#footer p{
    float: right;
    font-size: 12px;
    max-width: 300px;
    text-align: right;
    padding: 15px;
}

#end-screen .mobile-foot,
#card-select .mobile-foot{
    width: 95%;
    margin: 40px auto 0;
}

.mobile-foot{
    display: none;
    margin-top: 40px;
    border-top: 1px solid #18354e;
}

.mobile-foot > a{
    padding: 15px 15px 0;
    display: block;
    width: 52vw;
    margin: 0 auto;
}

.mobile-foot img{
    width: 100%;
}

.mobile-foot p{
    font-size: 12px;
    text-align: center;
    padding: 15px;
}

.mobile-foot p a{
    color: #BB5E5C;
}














/* ==========================================================================
   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 (max-width: 1024px) {
    #main-wrapper .cont {
        width: 80%;
    }

    #intro:before,
    #intro:after{
        content: none;
    }
}

@media only screen and (max-width: 800px) {
    #main-wrapper .cont {
        width: 100%;
        padding: 5%;
        box-sizing: border-box;
    }

    #main-wrapper #end-screen,
    #main-wrapper #card-select{
        padding: 5% 0;
    }

    #card-select > img,
    #card-select > p{
        padding: 0 5%;
        box-sizing: border-box;
    }
    
    .mobile{
        display: block;
    }

    #footer{
        display: none;
    }

    #card-select .card-cont .inner-cont{
        width: 300%;
        margin: 0 5%;
    }

    #card-select .card-cont{
        overflow: scroll;
        margin: auto;
    }

    #results-cont{
        overflow: hidden;
    }

    #results-cont .result-card div.right{
        width: auto;
        text-align: center;
    }

    #results-cont .result-card .card-title{
        display: none;
    }

    #results-cont .result-card .reading-title {
        margin: 0 0 5% 0;
        text-align: center;
        float: none;
    }

    #results-cont .result-card .outline {
        border: 1px solid #18354e;
    }

    #results-cont .result-card .outline .left,
    #results-cont .result-card .outline .right{
        display: none;
    }

    #results-cont .result-card .right .descrip{
        font-size: 14px;
    }

    .cont{
        overflow: scroll;
    }
}

@media only screen and (max-width: 650px) {

    #intro .btn{
        width: 60%;
    }

    #intro .cont > p,
    #card-select .text{
        font-size: 14px;
    }

    #main-wrapper #end-screen{
        width: 100%;
        overflow: scroll;
        padding: 2% 0;
    }

    #results-cont .result-card{
        padding: 0 1%;
        box-sizing: border-box;
    }

    #results-cont .btn{
        padding: 0 32px;
    }

    #results-cont .btn p{
        margin: 10px;
    }

    #results-cont .result-card .outline{
        top: 4%;
    }
}

@media only screen and (max-width: 500px) {
/*    #main-wrapper .cont {
        width: 90%;
    }*/
}

@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;
    }
}
