/*Thematise your prelander by changing the values within the :root brackets. */

:root {
    /*COLOR PALETTE*/
    --primary-color: #f78c5b;
    --secondary-color: #ffbc0d;
    --tertiary-color: #4cb16f;
    --background-color: #00033a;
    --background-color-darker:#10393a;
    --guest-primary: #279ea3;
    --guest-secondary: #008589;

    /*FIRST PLACE GRADIENT*/
    --gold-two:#FCC201;
    --gold-one:#DBA514;

    /*BACKGROUND IMAGE*/
    --background-image: url(pointspin-assets/bg.jpg);
    --mobile-background-image: url(pointspin-assets/bg.jpg);

    /*FONT STYLING*/
    --font-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --font-size: 1rem;
    --line-height: 1.6rem;



    /*PADDING AND MARGINS*/

    /*FORM STYLING*/

}


html,
body {
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    font-family: 'Outfit', sans-serif;
    font-feature-settings: "lnum", "dlig";
    font-variant-ligatures: common-ligatures;
    width: 100%;
    color: var(--font-color);
    height: 100%;
    background: #59319f;
}

body {
    background: var(--background-image);
    height: fit-content;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
    position: relative;
    box-sizing: border-box;
    background-size: cover;
    display: inline-block;
}

a {
    text-decoration: none;
    color: var(--font-color);
}

#winamount {
    font-weight: bold;
    font-size: 4rem;
}

.container {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0rem 1rem 0.5rem rgba(0, 0, 0, 0.4), 0rem 0.4rem 0.2rem rgba(0, 0, 0, 0.4);
}

#spinbutton,
#nextbut,
#userFormSubmit {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    background: var(--primary-color);
    color: var(--font-color);
    max-width: 75rem;
    margin: 5rem auto 0 auto;
    padding: 0 2rem;
    position: relative;
    border-radius: 1.5rem;
    border-width: 0;
    overflow: hidden;
    box-shadow: 0rem 0.2rem 0.2rem var(--background-color), 0rem 0.8rem 2rem var(--background-color-darker);
    cursor: pointer;
    text-align: center;
    font-size: 2.4rem;
    line-height: 8rem;
    vertical-align: middle;
    top: -4rem;
    white-space: nowrap;
    z-index: 1000;
    box-sizing: border-box;
    transition: all 0.3s ease-in 0s;
    font-weight: bold;
    text-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.4), 0.1rem 0.3rem 0.2rem rgba(0, 0, 0, 0.4);
}

#nextbut,
#userFormSubmit {
    top: 0;
}

#spinbutton {
    margin: 0 auto;
    width: 73rem;
    max-width: calc(70% - 2rem);
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: fit-content;
    -webkit-animation: pulsate2 1s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation: pulsate2 1s ease-out;
    animation-iteration-count: infinite;
}

#nextbut,
#userFormSubmit {
    max-width: 42rem;
    -webkit-animation: pulsate2 1s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation: pulsate2 1s ease-out;
    animation-iteration-count: infinite;
}

.activespin {
    top: -2rem !important;
    opacity: 0;
    cursor: default !important;

}

.header {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: block;
    max-width: calc(75rem - 2rem);

}

h1 {
    font-size: 3.2rem;
    line-height: 4.2rem;
    font-weight: normal;
    margin: 2rem auto 2rem auto;
}

.header h1,
#end h1 {
    animation: intro 0.5s linear infinite forwards;
    animation-iteration-count: 1;
}

p {
    font-size: 1.6rem;

}

.contestants h3 {
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    color: #b6d7d8;
    letter-spacing: 0.4rem;
    margin: 1.2rem auto 1rem auto;
}

.spinner {
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0.5rem;
    position: relative;
    width: 75rem;

    padding-top: 70%;
    background: url(pointspin-assets/spot.png) repeat-x;
    background-size: 30% auto;
    background-position: center;
}

.container::after {
    z-index: 101;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(pointspin-assets/frame.png) repeat-x;
    border: 1px solid var(--primary-color);
    border-radius: 1.5rem;
    background-size: 100% 100%;
    background-position: center;
    position: absolute;
}

.spinner::before {
    z-index: 101;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    position: absolute;
    background: url(pointspin-assets/overlay.png) repeat-x;
    background-size: 100% 100%;
    background-position: center;
    mix-blend-mode: multiply;
}

.view {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 85%;
    overflow: hidden;
    position: relative;
    z-index: 100;
    top: 50%;
    position: absolute;
    -webkit-transform: translate(0%, -50%);
    -moz-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.view::after {
    z-index: 111;
    content: '';
    top: 50%;
    left: 50%;
    width: 100%;
    padding-top: 85%;
    max-width: 100vw;
    position: absolute;
    background: url(pointspin-assets/aim.png) repeat-x;
    background-size: 100% 95%;
    background-position: center;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.view.bigwin::after {
    background: url(pointspin-assets/aim_win_big.png) repeat-x;
    background-size: 100% 80%;
    background-position: center;
    position: absolute;
}

.view.smallwin::after {
    background: url(pointspin-assets/aim_win_small.png) repeat-x;
    background-size: 100% 80%;
    background-position: center;
    position: absolute;
}

#col1,
#col2,
#col3 {
    left: 2%;
    width: 32%;
    padding-top: 4800%;
    background: url(pointspin-assets/slide.png) repeat-y;
    position: absolute;
    background-size: 100% auto;
    background-repeat: repeat-y;
    display: inline-block;
    margin: 0;
}

#col2 {
    left: 34%;
}

#col3 {
    left: auto;
    right: 2%;
}

.button img {
    width: 5rem;
}

.top {
    z-index: 121;
    width: 100%;
    max-width: 76rem;
    margin: 0 auto;
    bottom: 0;
    position: relative;
    margin-bottom: 3rem;
}

.element {
    width: 100%;
    max-width: calc(32.5%);
    display: inline-block;
    text-transform: capitalize;
}

.top .element {
    width: calc(15% - 0.2rem);
    border-radius: 1.5rem;

    max-width: 12rem;
    display: inline-block;
    border-width: 0.2rem;
    border-color: var(--primary-color);
    border-style: solid;
    background-color: var(--background-color);

}

.element.last {
    float: right;
}

.element:nth-child(3) svg:nth-child(1) {
    width: 100%;
}

svg {
    width: 100%;
    vertical-align: top;
}

svg#subtract,
svg#add {
    position: absolute;
    width: 4%;
    right: 2%;
    box-shadow: .2rem .2rem 0rem #794b34, .2rem .5rem .5rem #000;
    border-radius: 100%;
    cursor: pointer;
    top: 15%;
    display: none;
}

svg#subtract:active,
svg#add:active {
    box-shadow: .1rem .1rem 0rem #794b34, .1rem 0.25rem 0.25rem #000;
}


svg#subtract {
    bottom: 15%;
}

svg#subtract rect:nth-child(1),
svg#add rect:nth-child(1) {
    fill: #fff;
}

svg#subtract rect:nth-child(2),
svg#add rect:nth-child(2),
svg#add rect:nth-child(3) {
    fill: #000;
}

.top text {
    font-size: 0.7rem;
    font-weight: normal;
    font-weight: normal;
    fill: var(--font-color);

}


.top text:nth-child(2),
.top text:nth-child(3) {
    font-size: 2rem;
    font-weight: bold;
    fill: var(--font-color);
    text-shadow: 0.2rem 0.2rem 0rem #164e50, 0.2rem 0.2rem 0.2rem #000;
}

svg text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#betup,
#betdown {
    font-size: 2rem;
}

#bouncy {
    position: absolute;
    left: 0;
    top: 27.5%;
    right: 0;
    z-index: 160;
}

#bouncy text {
    font-size: 2rem;
    z-index: 160;
    font-weight: 900;
    fill: #fcd65f;
    text-shadow: 0rem -0.2rem 0rem var(--font-color), .2rem .2rem 0rem #794b34, .2rem .5rem .5rem #000;
}

#bouncy svg {
    width: 100%;
    max-width: calc(100%);
}

#bouncy .pulsate {
    -webkit-animation: fillin 0.7s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation: fillin 0.7s ease-out;
    animation-iteration-count: infinite;
}

.pulsate {
    -webkit-animation: pulsate1 0.6s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation: pulsate1 0.6s ease-out;
    animation-iteration-count: infinite;
}

.alert {
    fill: red;
    -webkit-animation: alert 0.3s ease-out;
    -webkit-animation-iteration-count: 2;
    animation: alert 0.3s ease-out;
    animation-iteration-count: 2;
}

/*CONTESTANT*/

.contestants {
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    width: 76rem;
    max-width: 100%;
    margin: 0 auto;
}

.contestant {
    width: 100%;
    border-radius: 1.5rem;
    font-size: 1.6rem;
    max-width: 100%;
    margin: 0 auto;
    background: var(--background-color);
    background: -moz-linear-gradient(90deg, var(--background-color) 0%, var(--background-color-darker) 100%);
    background: -webkit-linear-gradient(90deg, var(--background-color) 0%, var(--background-color-darker) 100%);
    background: linear-gradient(90deg, var(--background-color) 0%, var(--background-color-darker) 100%);
    padding: 1rem;
    position: relative;
    height: fit-content;
    margin-bottom: 0.5rem;
    min-height: 4rem;
    display: flex;
    flex-wrap: nowrap;

    justify-content: stretch;
    box-sizing: border-box;
}

#guest {
    background: var(--background-color);
    background: -moz-linear-gradient(90deg, var(--guest-secondary) 0%, var(--guest-primary) 100%);
    background: -webkit-linear-gradient(90deg, var(--guest-secondary) 0%, var(--guest-primary) 100%);
    background: linear-gradient(90deg, var(--guest-secondary) 0%, var(--guest-primary) 100%);
}

#guest .item:first-child {
    background: url(pointspin-assets/user.svg), #279ea3;
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;

}

.contestant.active {
    background: var(--gold-one) !important;
    background: -moz-linear-gradient(90deg, var(--gold-one) 0%, var(--gold-two) 100%) !important;
    background: -webkit-linear-gradient(90deg, var(--gold-one) 0%, var(--gold-two) 100%) !important;
    background: linear-gradient(90deg, var(--gold-one) 0%, var(--gold-two) 100%) !important;
}
.contestant.active::after {
    content: '';
    position: absolute;
    opacity: 1;
    top: 1.2rem;
    right: 4.5rem;
    height: 100%;
    width: 1.5rem;
    z-index: 1;
    background: url(pointspin-assets/trophy.svg) top center;
    background-repeat: no-repeat;
    background-size: 100%;
}
#guest.contestant.active .item:first-child {
    background: url(pointspin-assets/user.svg), var(--gold-two) !important;
    background-size: 40% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.item {
    font-weight: bold;
    min-width: 1rem;
    min-height: 3.3rem;
}

.contestant .item:nth-child(2) {
    flex-grow: 1;
}

.contestant .item:first-child {
    max-width: 1.5rem;
    display: inline-block;
    background: #174f51;
    padding: 1.5rem 2rem;
    margin: -1rem 1rem -1rem -1rem;
    text-align: center;
    border-radius: 1.5rem;
    font-size: 2.2rem;
}

.contestant.active .item:first-child {
    max-width: 1.5rem;
    display: inline-block;
    background: var(--gold-two) !important;
    text-align: center;
    border-radius: 1.5rem;
    font-size: 2.2rem;
}

.contestant .item:last-child {
    text-align: right;
    margin-left: 1.5rem;
    margin-right: 0.5rem;
    line-height: var(--line-height);
}

.contestant .bet {
    font-size: 1.6rem !important;
}

.name {
    display: inline-block;
    width: fit-content;
    vertical-align: super;
    font-weight: bold;
}

.progress {
    margin-bottom: -1rem;
    height: 1rem;
    display: block;
    background: rgb(252, 134, 46);
    background: -moz-linear-gradient(90deg, rgba(252, 134, 46, 1) 0%, rgba(245, 184, 53, 1) 100%);
    background: -webkit-linear-gradient(0deg, rgba(252, 134, 46, 1) 0%, rgba(245, 184, 53, 1) 100%);
    background: linear-gradient(90deg, rgba(252, 134, 46, 1) 0%, rgba(245, 184, 53, 1) 100%);
    border-radius: 0.5rem;
    z-index: 121;
    bottom: 1rem;
    position: relative;
}

.progressbg {
    content: '';
    background: #277072;
    width: 100%;
    height: 1rem;
    position: relative;
    border-radius: 0.5rem;
    z-index: 120;
}

.points {
    font-size: 1.8rem;
    padding: 1.5rem;
    font-weight: bold;
    display: inline-block;
    text-align: right;
    line-height: 2rem;
    order: 3;
}

.nominator,
.time {
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--font-color);
    opacity: 0.8;
}

.time {
    display: inline-block;
    vertical-align: super;
    margin-left: 0.5rem;
    float: right;
    text-align: right;
}

@keyframes pulsate2 {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes pulsate2 {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}
@keyframes pulsate1 {
    0% {
        font-size: 2rem;
    }

    50% {
        font-size: 1.8rem;
    }

    100% {
        font-size: 2rem;
    }
}

@-webkit-keyframes pulsate1 {
    0% {
        font-size: 2rem;
    }

    50% {
        font-size: 1.8rem;
    }

    100% {
        font-size: 2rem;
    }
}
@keyframes fillin {
    0% {
        fill: #fcd65f;
    }

    50% {
        fill: #ffeebc;
    }

    100% {
        fill: #fcd65f;
    }
}

@-webkit-keyframes fillin {
    0% {
        fill: #fcd65f;
    }

    50% {
        fill: #ffeebc;
    }

    100% {
        fill: #fcd65f;
    }
}

@keyframes spinbutanim {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.1;
    }
}

@-webkit-keyframes spinbutanim {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.1;
    }
}

@keyframes alert {
    0% {
        fill: #ff0000;
    }

    50% {
        fill: #ff4949;
    }

    100% {
        fill: #ff0000;
    }
}

@-webkit-keyframes alert {
    0% {
        fill: #ffffff;
    }

    25% {
        fill: #ff4949;
    }

    50% {
        fill: #ff0000;
    }

    75% {
        fill: #ff4949;
    }

    25% {
        fill: #ffffff;
    }
}

.gimmic {
    margin: 0 auto;
    width: fit-content;
    display: none;
}

/*POP*/

#pop,
#loading,
#end {
    position: absolute;
    background: rgba(255, 255, 255, 0);
    top: 0;
    right: 0;
    left: 0;
    z-index: 190;
    display: none;
    text-align: center;
    min-height: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

#pop img,
#loading img,
#end img {
    animation: scalez 0.5s linear infinite forwards;
    animation-iteration-count: 1;
    max-width: 100%;
    width: 26rem;
    padding: 2rem;
}

#pop img,
#loading img {
    margin-top: 15vh;
}

#pop::before,
#loading::before,
#end::before {
    content: '';
    position: absolute;
    opacity: 0.9;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    z-index: -1;
    background: url(pointspin-assets/spot.png) top center, #222b44 top center;
    background-repeat: no-repeat;
    background-size: 50%;
}

/*TERMS*/
.terms {
    color: var(--font-color);
    font-size: 1.2rem;
    text-align: center;
    max-width: 75rem;
}

.footer {
    padding: 1rem 1rem;
    margin: 0 auto;
}

/*COUNTDOWN*/
#countdown {
    position: relative;
    margin: auto;
    margin-top: 1rem;
    height: 7.6rem;
    width: 7.6rem;
    text-align: center;
    display: none;
}

#countdown-number {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
    line-height: 7.6rem;
}

#countdown svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 7.6rem;
    height: 7.6rem;
    transform: rotateY(-180deg) rotateZ(-90deg);
}

svg circle {
    stroke-dasharray: 24rem;
    stroke-dashoffset: 0rem;
    stroke-linecap: round;
    stroke-width: 0.4rem;
    stroke: rgb(122, 216, 70);
    fill: none;
    animation: countdownz 3s linear infinite forwards;
}

@keyframes countdownz {
    0% {
        stroke-dasharray: 240;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dasharray: 240;
        stroke-dashoffset: 240;
    }
}

@keyframes scalez {
    from {
        transform: scale(0, 0);
    }

    to {
        transform: scale(1, 1);
    }
}

@keyframes intro {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/*FORM STYLE*/
.error {
    display: block;
    line-height: 1.4rem;
    text-shadow: none;
    font-weight: bold;
    margin-top: 0.4rem;
    font-size: 1.4rem;
    color: red;
}

.form-input {
    width: 40rem;
    margin: 0 auto;
}

.input {
    width: 100%;
    box-sizing: border-box;
    line-height: 3rem;
    font-size: 1.8rem;
    padding: 1rem 2rem 1rem 2rem;
    margin-top: .5rem;
    border-radius: 3rem;
}

.input.error {
    border: 1px solid red;
}

.formcontainer {
    margin-top: 20px;
}

.actionbutton {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: -1rem;
}
@media screen and (max-width: 1439px) {
    body {
        background: var(--mobile-background-image);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
    #spinbutton,
    #nextbut,
    #userFormSubmit {
        line-height: 6rem;
    }

    .container {
        max-width: 32.5rem;
        margin: 1rem auto 1rem auto;
        box-sizing: border-box;
    }

    .contestants {
        margin: 0rem auto;
        box-sizing: border-box;
        padding: 1rem;
    }

    .contestant {
        padding: 1rem;
        box-sizing: border-box;
        font-size: 1.2rem;
    }

    .contestant.active .item:first-child,
    .contestant .item:first-child {
        margin: -0.8rem 0.8rem -0.8rem -0.8rem;
        padding: 0.8rem 1.5rem;
        font-size: 1.5rem;
        line-height: 3.2rem;
    }
    .contestant.active::after {
        top: 0.8rem;
        right: 3.6rem;
        width: 1.2rem;
    }
    .contestant {
        padding: 0.8rem
    }

    .top {
        margin-bottom: 1.5rem;
    }

    .top .element {
        width: 12%;
        min-width: 9rem;
        margin: 0 1rem;
    }

    .contestants h3 {
        font-size: 1rem;
        margin: 0.8rem auto 0.8rem auto;
    }

    #spinbutton {
        margin: 0 auto;
        width: 73rem;
        max-width: calc(50% - 2rem);
        box-sizing: border-box;
        position: absolute;
        top: 0;
        left: 25%;
        right: 25%;
        height: fit-content;
    }

    .header h1,
    #end h1,
    #loading h1 {
        font-size: 2.4rem;
        line-height: 2.8rem;
        margin: 1.5rem auto 2rem auto;
        animation: intro 0.5s linear infinite forwards;
        animation-iteration-count: 1;
    }

    .header {
        text-align: center;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        display: block;
    }

    .terms {
        font-size: 1rem;
    }

    .nominator,
    .time {
        font-size: 0.8rem;
    }

    #pop::before,
    #loading::before,
    #end::before {
        background-size: 100%;
    }

    #pop img,
    #loading img,
    #end img {
        animation: scalez 0.5s linear infinite forwards;
        animation-iteration-count: 1;
        max-width: 100%;
        width: 22rem;
        padding: 2rem;
        margin-top: 3vh;
    }
    .contestant .bet {
        font-size: 1.2rem !important;
    }
}
