/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.2;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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

html {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.87);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: all .2s;
}

section {
    width: 65vw;
    margin: 0 auto;
    max-width: 1250px;
}

section img {
    width: 100%;
    margin: 1.58rem 0;
}

section ul h2 {
    font-family: 'Karla', sans-serif;
    font-size: 1.8rem;
    line-height: 1.58;
    color: #333;
    font-weight: 600;
}

section ul {
    margin: 5rem 0;
    padding-left: 1.8rem;
}

section li {
    list-style-type: disc;
    margin-bottom: 1rem;
}

.cta {
    background-color: rgb(255, 250, 210);
    padding: 4rem 18vw;
    width: 64vw;
    margin: 4rem auto 0 auto;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 5.6rem;
    margin:0;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 3.6rem;
    margin:0;
}

.home-header, h2 {
    font-size: 3.6rem;
    font-weight: 400;
}

h6 {
    font-family: 'Karla', sans-serif;
    color:#949895;
    font-size: 16px;
    font-weight: 400;
    margin:0;
}

p {
    font-family: 'Karla', sans-serif;
    font-size: 1.8rem;
    line-height: 1.58;
    color: #333;
}

p a {
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid rgb(58, 228, 197);
}

p a:hover {
    color: rgba(0, 0, 0, 0.87);
    border-bottom: 2px solid rgba(0, 0, 0, 0.87);
}

header {
    width: 65vw;
    margin: 0 auto 6rem auto;
    padding-top: 3rem;
    position: relative;
    max-width: 1250px;
}

header li {
    display: inline-block;
    font-size: 16px;
    font-family: 'Karla', sans-serif;
    margin-right: 2rem;
    position: relative;
}

footer {
    width: 65vw;
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    padding: 1rem 0;
}

footer p {
    font-size: 1.1rem;
    display: inline-block;
    margin-right: 1rem;
}

footer a {
    border-bottom: 1px solid rgb(58, 228, 197);
}

footer a:hover {
    border-bottom: 1px solid #000;
}

footer img {
    width: 50px;
    display: inline-block;
}

footer span {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #000;
}

.active {
    color: rgba(0, 0, 0, 1);
}

.active:after {
    content: " ";
    width: 10px;
    height: 10px;
    position: absolute;
    bottom: 23px;
    border-radius: 6px;
    left: 50%;
    background: rgb(58, 228, 197);
    margin-left: -5px;
}

.active:hover:after {
    background: rgb(58, 228, 197);
}

header ul {
    display: inline-block;
    margin: 0 0 0 0;
    vertical-align: -50px;
}

header a {
    text-decoration: none;
    color: rgba(0, 0, 0, .5);
}

header a:hover {
    color: rgba(0, 0, 0, 1);
}

.logo {
    background: url("/img/spark-logo.png") no-repeat
    center center;
    background-size: cover;
    font-family: 'Playfair Display', serif;
    width: 135px;
    height: 109px;
    display: inline-block;
    text-indent: -999px;
}

.logo a {
    color:rgba(0, 0, 0, 1);
}

.logo a:hover {
    color:rgba(0, 0, 0, .6);
}

.circle {
    max-height: 400px;
    max-width: 400px;
    height: 30vw;
    width: 30vw;
    border-radius: 50%;
    background: #eef6f9;
    position: absolute;
    top: -62px;
    z-index: -1;
    left: -167px;
}

/*mobile menu */

.mobile-menu {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 37px;
    right: 0;
    display: none;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.87);
}

.mobile-menu i {
    font-size: 2rem;
    margin: 10px 0 0 11px;
}

nav {
    background-color: rgba(33, 31, 49, 1);
    width: 100vw;
    height: 100vh;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1;
}

nav a {
    color: #c6c4e4;
    font-size: 2rem;
    text-decoration: none;
    font-family: 'Karla', sans-serif;
    opacity: 0.6;
}

nav li {
    padding: 0;
    list-style-type: none;
    text-align: center;
    margin-bottom: 3rem;
}

nav ul {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -174px 0 0 -50px;
}

.close {
    border: 2px solid white;
}

.close i {
    color: #fff;
    margin-left: 12px;
}

.mobile-active {
    color: white;
    border-bottom: 2px solid rgb(58, 228, 197);
    opacity: 1;
}

nav .active:after {
    display: none;
}

.circle-small {
    height: 1000px;
    width: 1000px;
    border-radius: 50%;
    background: rgb(58, 228, 197);
    position: absolute;
    z-index: -1;
    opacity: .1;
}

.one {
    top: -9%;
    right: 23%;
}

.two {
    top: 25%;
    left: 85%;
}

.three {
    bottom: 7%;
    left: 19%;
}

.four {
    bottom: 16%;
    left: 73%; 
}

.five {
    top: 54%;
    left: 11%;
}

.show {
    display:unset;
    animation-iteration-count: 1;
    animation: fade-in .2s;
    animation-fill-mode: forwards;
}

.hide {
    animation-iteration-count: 1;
    animation: fade-out 1s;
    animation-fill-mode: forwards;
}

/*home*/

.home-choices {
    margin-top: 3rem;
}

.home-6-block {
    width: 48%;
    display: inline-block;
    padding: 2% 0%;
    position: relative;
}

.home-6-block:nth-child(1) {
    margin-right: 3%;
}

a.home-cta {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,.1);
}

a.home-cta:hover {
    background-color: rgba(255,255,255,0);
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-out {
  0%   { opacity: 1; }
  100% { opacity: 1; }
}

@media(max-width:950px) {
    .mobile-menu {
        display:unset;
    }
    .desktop-menu {
        display:none;
    }
    header {
        margin: 0 auto 6rem auto;
    }
    .circle {
        top: -106px;
        left: -59px;
        height: 250px;
        width: 250px;
    }
    h1 {
        font-size: 4.2rem;
    }
    .home-header, h2 {
        font-size: 3rem;
    }
    p, section ul h2 {
        font-size: 1.8rem;
        line-height: 1.58;
    }
}

@media(max-width:570px) {
    h1 {
        font-size: 3.6rem;
    }
    h2 {
        font-size: 2.4rem;
        font-weight: 600;
    }
    .home-6-block {
        width: 100%;
    }
}

@media(max-width:430px) {
    h1 {
        font-size: 2.7rem;
        font-weight: 600;
    }
    h2 {
        font-size: 2rem;
    }
    .home-header{
        font-size: 2.5rem;
    }
    p, section ul h2 {
        font-size: 1.6rem;
        line-height: 1.58;
    }
    header {
        margin: 0 auto 5rem auto;
    }
}














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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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