:root {
    --gold: #FFB81C;
    --grey: #CCCCCC;
    --black: #000000;
    --white: #FFFFFF;
    
    --green: #6CC24A;
    --blue: #007DBA;
    --teal: #3CDBC0;
    
    --light-gold: #FFEABB;
    --light-grey: #E6E6E6;
    --xlight-grey: #F2F2F2;
    --light-green: #D3EDC9;
    --light-blue: #D9EBF5;
    --light-teal: #D8F8F2;
    
    --slot-fade: linear-gradient(0deg, #CCCCCC 0%, #E2E2E2 10.02%, #F2F2F2 21.26%, #FCFCFC 33.78%, #FFFFFF 50%, #FDFDFD 71.61%, #F5F5F5 82.19%, #E8E8E8 90.37%, #D6D6D6 97.27%, #CCCCCC 100%);
}

* {
    margin: 0 auto;
}
*, *::before, *::after {
    box-sizing: inherit;
}
html {
    font-size: 100%;
    box-sizing: border-box;
}
body {
    margin: 0 auto;
    font-family: "Arial",sans-serif;
    text-rendering: geometricPrecision;
    background-color: var(--xlight-grey);
}

img {
    display: block;
}

.bg-yellow {
    background-color: var(--gold);
}

.bg-grey {
    background-color: var(--xlight-grey);
}

.wrapper {
    margin: 5vw;
    /* border: solid; */
    height: calc(100vh - 10vw);
}

.narrow {
    width: 50.26vw;
    margin: 0 auto;
}

.flex {
    display: flex;
    position: relative;
}

.j-center {
    justify-content: center;
}

.j-space {
    justify-content: space-between;
}

.j-end {
    justify-content: flex-end;
}

.a-center {
    align-items: center;
}

.a-bottom {
    align-items: flex-end;
}

.a-top {
    align-items: flex-start;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: calc(100vh - 10vw);
}

.center-text {
    text-align: center;
}

.next-btn {
    position: absolute;
    right: 0;
}

.btn {
    background-color: var(--gold);
    color: var(--black);
    font-size: 40px;
    font-weight: 900;
    border: none;
    box-shadow: 8px 9px 0 var(--grey);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: 0.5s ease transform, 0.5s ease box-shadow, 0.25s ease opacity 0.4s;
    text-decoration: none;
    padding: 1.25rem;
    width: calc(100% - 8px);
    display: inline-block;
    text-align: center;
}

.btn-grey {
    background-color: var(--light-grey);
    color: var(--black);
    font-size: 40px;
    font-weight: 900;
    border: none;
    box-shadow: 8px 9px 0 var(--grey);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: 0.5s ease transform, 0.5s ease box-shadow, 0.25s ease opacity 0.4s;
    text-decoration: none;
    padding: 1.25rem;
    width: calc(100% - 8px);
    display: inline-block;
    text-align: center;
}


.lg-btn {
    background-color: var(--gold);
    color: var(--black);
    font-size: 5.25rem;
    font-weight: 900;
    width: calc(100% - 12px);
    border: none;
    box-shadow: 12px 14px 0 var(--grey);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: 0.5s ease transform, 0.5s ease box-shadow, 0.25s ease opacity 0.4s;
    text-decoration: none;
}

.lg-btn.is-hiding {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--grey);
    opacity: 0;
    pointer-events: none;
}

.lg-btn.is-gone {
    display: none;
}

.sm-btn {
    background-color: var(--gold);
    color: var(--black);
    font-size: 32px;
    font-weight: 900;
    border: none;
    box-shadow: 8px 9px 0 var(--grey);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: 0.5s ease transform, 0.5s ease box-shadow, 0.25s ease opacity 0.4s;
    text-decoration: none;
    padding: 1.25rem;
    /* width: calc(100% - 8px); */
    display: inline-block;
    text-align: center;
}

.slots-width {
    width: 68vw;
}


/* https://medium.com/@victortoschi/how-to-create-a-slot-machine-animation-with-css-and-javascript-9073ab9db9ea */
.slots__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slot {
    background: var(--slot-fade);
    border: solid 5px var(--gold);
    /* box-shadow: inset 0 0 0 5px var(--gold); */
    width: 21.5vw;
    height: 27.03vw;
    overflow: hidden;
    display: block;
}

.boxes {
    transition: transform 1s ease-in-out;
    position: relative;
    /* background: var(--slot-fade); */
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 15.1vw !important;
}

.box.bus {
    background-image: url('../imgs/icon-bus-coloured.svg');
}

.box.leaf {
    background-image: url('../imgs/icon-leaf-coloured.svg');
}

.box.apartment {
    background-image: url('../imgs/icon-apartment-coloured.svg');
}

.box.house {
    background-image: url('../imgs/icon-house-coloured.svg');
}

#win {
    display: none;
}

#win.is-showing {
    display: block;
}

#loose {
    display: none;
}

#loose.is-showing {
    display: block;
}

.star-1 {
    position: absolute;
    animation: starAnimation 1.75s infinite;
    top: 2.24vw;
    left: 3.17vw;
    width: 3vw;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease all;
}

.star-2 {
    position: absolute;
    animation: starAnimation 1.25s infinite 0.25s;
    top: 36vw;
    left: 3.6vw;
    width: 1.56vw;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease all;
}

.star-3 {
    position: absolute;
    animation: starAnimation 2s infinite;
    top: 37vw;
    left: 7.7vw;
    width: 3.38vw;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease all;
}

.star-4 {
    position: absolute;
    animation: starAnimation 1.25s infinite 0.33s;
    top: 2vw;
    right: 8vw;
    width: 1.56vw;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease all;
}

.star-5 {
    position: absolute;
    animation: starAnimation 1.75s infinite;
    top: 3.4vw;
    right: 2vw;
    width: 2.6vw;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease all;
}

.star-1 img, .star-2 img, .star-3 img, .star-4 img, .star-5 img {
    width: 100%;
}

@keyframes starAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes starAnimationSmaller {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

#win.is-showing .star-1, #win.is-showing .star-2, #win.is-showing .star-3, #win.is-showing .star-4, #win.is-showing .star-5 {
    opacity: 1;
}

form {
    width: 80.83vw;
}

.hp {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

#emailqc {
    width: 100%;
    padding: 0;
    margin: 0;
    height: 117px;
    background-color: var(--white);
    box-shadow: inset 0 0 0 5px var(--gold);
    border: none;
    padding: 2rem;
    font-size: 40px;
}

#submit-qc {
    margin: 0 0 0 1rem;
    

    background-color: var(--gold);
    color: var(--black);
    font-size: 40px;
    font-weight: 900;
    border: none;
    box-shadow: 8px 9px 0 var(--grey);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: 0.5s ease transform, 0.5s ease box-shadow, 0.25s ease opacity 0.4s;
    text-decoration: none;
    padding: 1.25rem;
    display: inline-block;
    text-align: center;
    height: 117px;
    min-width: 185px;
}

.success {
    font-size: 32px;
}

.is-hiding {
    display: none;
}






.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: 0.25rem;
}

.mt-8 {
    margin-top: 0.5rem;
}

.mt-12 {
    margin-top: 0.75rem;
}

.mt-16 {
    margin-top: 1rem;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mt-24 {
    margin-top: 1.5rem;
}

.mt-32 {
    margin-top: 2rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mt-48 {
    margin-top: 2.5vw;
}

.mt-56 {
    margin-top: 3.5rem;
}

.mt-64 {
    margin-top: 4rem;
}

.mt-72 {
    margin-top: 4.5rem;
}

.mt-80 {
    margin-top: 5rem;
}

.mt-88 {
    margin-top: 4.58vw;
}

.mt-96 {
    margin-top: 5vw;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 0.25rem;
}

.mb-8 {
    margin-bottom: 0.5rem;
}

.mb-12 {
    margin-bottom: 0.75rem;
}

.mb-16 {
    margin-bottom: 1rem;
}

.mb-24 {
    margin-bottom: 1.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-40 {
    margin-bottom: 2.5rem;
}

.mb-48 {
    margin-bottom: 2.5vw;
}

.mb-56 {
    margin-bottom: 3.5rem;
}

.mb-64 {
    margin-bottom: 4rem;
}

.mb-72 {
    margin-bottom: 4.5rem;
}

.mb-80 {
    margin-bottom: 5rem;
}

.mb-88 {
    margin-bottom: 4.58vw;
}

.mb-96 {
    margin-bottom: 5vw;
}

.ml-0 {
    margin-left: 0;
}

.ml-4 {
    margin-left: 0.25rem;
}

.ml-8 {
    margin-left: 0.5rem;
}

.ml-12 {
    margin-left: 0.75rem;
}

.ml-16 {
    margin-left: 1rem;
}

.ml-24 {
    margin-left: 1.5rem;
}

.ml-32 {
    margin-left: 2rem;
}

.ml-40 {
    margin-left: 2.5rem;
}

.ml-48 {
    margin-left: 2.5vw;
}

.ml-56 {
    margin-left: 3.5rem;
}

.ml-64 {
    margin-left: 4rem;
}

.ml-72 {
    margin-left: 4.5rem;
}

.ml-80 {
    margin-left: 5rem;
}

.ml-88 {
    margin-left: 4.58vw;
}

.ml-96 {
    margin-left: 5vw;
}

.mr-0 {
    margin-right: 0;
}

.mr-4 {
    margin-right: 0.25rem;
}

.mr-8 {
    margin-right: 0.5rem;
}

.mr-12 {
    margin-right: 0.75rem;
}

.mr-16 {
    margin-right: 1rem;
}

.mr-24 {
    margin-right: 1.5rem;
}

.mr-32 {
    margin-right: 2rem;
}

.mr-40 {
    margin-right: 2.5rem;
}

.mr-48 {
    margin-right: 2.5vw;
}

.mr-56 {
    margin-right: 3.5rem;
}

.mr-64 {
    margin-right: 4rem;
}

.mr-72 {
    margin-right: 4.5rem;
}

.mr-80 {
    margin-right: 5rem;
}

.mr-88 {
    margin-right: 4.58vw;
}

.mr-96 {
    margin-right: 5vw;
}