/* =============================================
=                                              =
=                  Base Styles                 =
=                                              =
============================================= */

:root {
    --colorTeal: hsl(182, 75%, 35%);
    --colorTealText: hsl(182, 74%, 29%); /* passes accessability contrast requirements */
    --colorMint: hsl(180, 70%, 50%);
    --colorGold: hsl(41, 89%, 60%);
    --colorDark: hsl(0, 0%, 27%);
    --colorGray: hsl(0, 0%, 60%);
    --colorSmoke: hsl(150, 6%, 93%);
    --colorWhite: hsl(0, 0%, 100%);
    --colorBlack: hsl(0, 0%, 0%);
    --sizePagePadding: 75px;
    --sizeFooterPadding: 54px;
    --sizeSpacingLarge: 44px;
    --sizeSpacingLarge2: 40px;
    --sizeSpacingMedium: 36px;
    --sizeSpacingMedium2: 32px;
    --sizeSpacingMedium3: 21px;
    --sizeSpacingSmall: 18px;
    --sizeSpacingSmall2: 9px;
}

html {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
}

html {
    font-size: calc(12px + (16 - 12) * ((100vw - 600px) / (1800 - 600)));
}

@media (min-width: 1800px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 12px;
    }
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


.btn-button {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 250%;
    background-position: 0 20%;
    background-image: linear-gradient(to bottom, hsl(48, 100%, 50%), hsl(40, 100%, 50%), hsl(48, 100%, 50%));
    box-shadow: inset 0 0 0 2px hsl(48, 100%, 85%), 0 3px 6px hsla(0, 0%, 0%, 0.2);
    text-shadow: 0 2px 3px hsla(25, 100%, 49%, 0.75);
    font-weight: 700;
    color: var(--colorWhite);
    font-size: 1.75rem;
    border-radius: 0.5625rem;
    height: 3.75rem;
    width: 17.1875rem;
    text-transform: uppercase;
    transition: all 0.1s ease-out;
    margin-bottom: var(--sizeSpacingLarge2);
}

    .btn-button:hover {
        text-shadow: 0 2px 3px hsla(25, 100%, 44%, 1);
        background-position: 0 0;
        box-shadow: inset 0 0 0 1px hsl(48, 100%, 65%), 0 5px 10px hsla(0, 0%, 0%, 0.2);
    }

    .btn-button:active {
        text-shadow: 0 0 3px hsla(25, 100%, 44%, 1);
        box-shadow: inset 0 0 0 1px hsl(48, 100%, 65%), 0 1px 2px hsla(0, 0%, 0%, 0.2);
        background-position: 0 80%;
    }

    .btn-button:focus {
        outline: none;
    }



/* ==========  End of Base Styles  =========== */




/* =============================================
=                  Layout                      =
============================================= */


.sw-page {
    color: var(--colorDark);
    font-family: 'Work Sans', sans-serif;
    background-color: var(--colorTeal);
    background-image: url('../images/tempBack.png');
    background-position: 50% 0%;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
    /* Temporary size constraints */
    margin-left: auto;
    margin-right: auto;
}

.sw-page_body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-left: var(--sizePagePadding);
    padding-right: var(--sizePagePadding);
}

.sw-page_header {
    align-items: center;
    flex: 0 0 180px;
    display: grid;
    grid-template-columns: auto 550px;
    grid-template-rows: 1fr;
    grid-gap: var(--sizeSpacingSmall);
    padding-top: var(--sizeSpacingSmall);
}

.sw-page_header {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    text-align: center;
}

.sw-page_content {
    min-height: 775px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-gap: var(--sizeSpacingMedium);
}

.sw-page_footer {
    align-items: center;
    display: flex;
    flex: 0 0 125px;
}

/* ============  End of Layout  ============= */






/* =============================================
=                    Header                    =
============================================= */

.e-logo {
    background-image: url(../images/Indiegogo_ArduinoLogo.png);
    background-position: 0% 1em;
    background-repeat: no-repeat;
    background-size: contain;
    height: 160px;
    width: 555px;
    margin-right: -2px;
    margin-top: -50px;
    float: right;
}

.ht-title {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 30px;
}

.ht-title_text {
    width: calc(100% - 565px);
    min-width: 300px;
    float: left;
}

.ht-title_vote {
    color: var(--colorGold);
    font-size: 2.25rem;
    text-transform: uppercase;
    margin-bottom: -1em;
}

.ht-title_choose {
    color: var(--colorWhite);
    font-size: 3.625rem;
    margin-bottom: 65px;
}

.ht-title_count {
    color: var(--colorGold);
    font-size: 6rem;
    position: relative;
    top: 0.75rem;
}


.-mainPageSocial {
    position: absolute;
    background-color: var(--colorTeal);
    color: var(--colorWhite);
    top: 0;
    z-index: 9999;
}

.c-social__text {
    padding: 0 0 0 1em;
    margin: 0;
}

.c-back {
    margin-left: -0.5em;
}

.c-back__link {
    color: var(--colorWhite);
    text-decoration: none;
    background-color: hsla(0, 0%, 0%, 0.75);
    padding: 0.75em 1em;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease-out;
}

    .c-back__link:hover {
        background-color: hsla(0, 0%, 0%, 1);
    }

.c-back__icon {
    font-size: 1.25em;
    padding-right: 0.5em;
    margin-top: -3px;
}

.c-back__link {
    color: var(--colorWhite);
    text-decoration: none;
    background-color: hsla(0, 0%, 0%, 0.75);
    padding: 0.75em 1em;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease-out;
}

/* ============  End of Header  ============= */








/* =============================================
=             Counter Component                =
============================================= */

.ct-counter {
    align-items: center;
    display: flex;
    margin-top: 10px;
    flex: 0;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2em;
    margin-left: 0;
}

.ct-counter_title {
    color: var(--colorWhite);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.05;
    margin-right: 1em;
    flex: 0 0 100%;
    margin-bottom: 0.5em;
}

.ct-counter_chips {
    display: inline-flex;
}

.ct-chip {
    align-items: center;
    background-color: var(--colorTeal);
    border-radius: 10px;
    border: 2px solid var(--colorWhite);
    color: var(--colorWhite);
    display: flex;
    justify-content: center;
    text-align: center;
    height: 80px;
    margin-left: 0.75em;
    margin-right: 0.75em;
    width: 65px;
}

.ct-chip_count {
    font-weight: 200;
    font-size: 3rem;
    margin-bottom: -0.15em;
}

.ct-chip_label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: -0.05em;
}

/* ========  End of Timer Component  ========= */






/* =============================================
=                 Card Gallery                 =
============================================= */


.cd-card {
    background-color: var(--colorWhite);
    height: 100%;
    box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.20);
}

.cd-card_image {
    width: 100%;
    height: 350px;
    margin-bottom: var(--sizeSpacingSmall);
    background-size: cover;
    background-position-x: 50%;
    background-position-y: 35%;
}

.cd-card_title,
.cd-card_by,
.cd-card_copy {
    padding-left: var(--sizeSpacingMedium);
    padding-right: var(--sizeSpacingMedium);
}

.cd-card_title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--sizeSpacingSmall2);
}

.cd-card_by {
    font-weight: 200;
    font-size: 1.75rem;
    margin-bottom: var(--sizeSpacingMedium);
}

.cd-card_copy {
    font-size: 1.3125rem;
    margin-bottom: var(--sizeSpacingMedium);
    line-height: 1.5;
}

.cd-card_button {
    margin-left: var(--sizeSpacingMedium);
}

/* =========  End of Card Gallery  ========== */






/* =============================================
=                    Footer                    =
============================================= */


.ft-footer {
    align-items: center;
    color: var(--colorWhite);
    display: flex;
    letter-spacing: -0.03em;
    width: 100%;
}

.ft-footer_announce {
    font-size: 2rem;
}

.ft-footer_arduino {
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: auto;
}


/* ============  End of Footer  ============ */


.show-on-mobile {
    display: flex;
}

.hide-on-mobile {
    display: none;
}

.ct-chip {
    background-color: var(--colorBlack);
}

.sw-page_footer {
    flex: 0 0 auto;
}

.ft-footer {
    display: block;
    text-align: center;
    line-height: 1.5;
}

.c-banner {
    align-items: center;
    background-color: hsla(25, 100%, 44%, 1);
    color: var(--colorWhite);
    display: flex;
    font-family: 'Work Sans', sans-serif;
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 2em;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.85);
    width: 100%;
    height: 230%;
    z-index: 1000;
}