﻿html {
    height: 100%;
    pointer-events: auto;
    font-size: 36px;
    /*RC 010922 using free ttf version of font currently for testing, must be updated after UI finalisation as ttf not suitable for all browser types
        https://css-tricks.com/snippets/css/using-font-face-in-css/ <- See here for deepest poss browser support
    */
    font-family: 'ErasITC-Bold';
}


@font-face {
    font-family: 'ErasITC-Bold';
    src: url('/fonts/ErasITC-Bold.woff');
}

@font-face {
    font-family: 'FranklinGothic';
    src: url('/fonts/franklin.woff');
}

body {
    background-image: url("titlescreen/bg.png");
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
    color: white;
    font-family: 'ErasITC-Bold';
}

button {
    cursor: pointer;
}


.screen {
    height: 100%;
    width: 100%;
}

.unselectable {
    pointer-events: none;
    touch-action: none;
}

.dialog {
    display: flex;
    position: fixed;
    z-index: 1;
    flex-flow: column nowrap;
    left: 50%;
    top: 50%;
    transform: translate( -50%, -50% );
    margin: 2px;
    padding: 2px;
}

.dialog-content {
    display: flex;
    flex-flow: row wrap;
    position: inherit;
    flex: 1 1;
    justify-content: center;
    border: 1px;
    /* margin: 2px; */
    padding: 2px;
    text-align: center;
    font-size: 0.9em;
    width: 20em;
    left: 1em;
}

input {
    display: block;
    border-color: black;
    min-width: 5em;
    font-size: 36px;
    font-family: 'ErasITC-Bold';
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input:focus{
    outline: none;
    border: none;
    text-decoration: none;
    caret-color: black;
}


/*INDEX PAGE*/


/*.logo {
    display: block;
    position: relative;
    top: 0.5em;
    width: 100%;
    max-width: 50%;
    margin: auto;
    padding: 0 10px;
}

    .logo img {
        position: absolute;
        max-width: 80%;
        top: 1em;
        left: 10%;
        border-radius: 3px;
    }
*/

.responsive {
    max-width: 50%;
    max-height: 90%;
}

.center {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
}

parent {
    position: relative;
}

.bottom-bar {
    position: fixed;
    height: auto;
    overflow: hidden;
    max-width: 100%;
}


    .bottom-bar button {
        position: fixed;
        top: 90vh;
        left: 50%;
        background: none;
        transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        border: none;
        cursor: pointer;
    }

/*LOBBY SCREEN*/



.desktop-bar {
    /*    position: fixed;
    left: 0;
    bottom: 0;
    max-width: 100%;
    z-index: -1;
    left: 0;*/
    max-width: 100%;
    z-index: -1;
    min-height: 30%;
    max-height: 32%;
    width: 100%;
    left: 0;
}



.mobile-bar {
    display: none;
}

.lobby-content {
    overflow: auto;
    overflow-x: hidden;
}

.needletail {
    display: inline;
    left: 2vw;
    position: relative;
}

    .needletail img {
        left: 3.5em;
        position: fixed;
        width: 6%;
        bottom: 1.75em;
    }

    .needletail p {
        position: fixed;
        bottom: 0.5vh;
        color: black;
        position: fixed;
        font-size: 16px;
        left: 10%;
        bottom: 1.5em;
        transform: translateX(-50%);
        font-family: 'ErasITC-Bold';
    }


/*STRING INPUT / JOIN*/

.input-bg {
    border: none;
    position: fixed;
    bottom: 11%;
    left: -1%;
    width: 52%;
    height: 41%;
}

#SUBMIT {
    background: none;
    border: none;
    z-index: 150;
    cursor: pointer;
    position: relative;
    top: 5em;
    left: -1em;
}

    #SUBMIT img {
        height: 6.4em;
    }

    #SUBMIT p {
        color: white;
        font-family: 'ErasITC-Bold';
        font-size: 2.6em;
        text-transform: uppercase;
        position: relative;
        top: 1.7em;
        left: -1em;
    }

.submit-img {
    position: relative;
    top: -6.8em;
    left: 10em;
}
.submit-arrow {
    position: relative;
    left: -7em;
    top: -0.1em;
}
.input-container input {
    color: black;
    text-align: center;
    font-family: 'ErasITC-Bold';
    background-color: #01010100;
    z-index: 150;
    border: none;
    max-height: 115px;
    text-transform: uppercase;
    position: relative;
    top: 2.4em;
    left: -0.6em;
}

.input-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    left: 50%;
    height: auto;
    bottom: 11vh;
    font-family: 'ErasITC-Bold';
    margin: auto;
    font-size: 0.7em;
    color: darkgray;
    transform: translateX(-50%);
}


::placeholder {
    color: black;
    opacity: 1; /* Firefox */
    text-transform: uppercase;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: black;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: black;
}

.tos {
    left: 80%;
    position: fixed;
    font-size: 16px;
    color: black;
    position: fixed;
    bottom: 1%;
    left: 48%;
    transform: translateX(-50%);
    font-family: 'ErasITC-Bold';
}

.room-text {
    position: relative;
    bottom: 18vh;
    left: 28vw;
    color: black;
    font-family: 'ErasITC-Bold';
    text-transform: uppercase;
}

.lobby-content a {
    text-decoration: none;
    color: #12066d;
}

/**NAME INPUT*/

.input-container-name {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    left: 50%;
    height: auto;
    bottom: 11vh;
    font-family: 'ErasITC-Bold';
    margin: auto;
    font-size: 0.7em;
    color: darkgray;
    transform: translateX(-50%);
}

    .input-container-name input {
        color: black;
        text-align: center;
        font-family: 'ErasITC-Bold';
        background-color: #01010100;
        z-index: 150;
        border: none;
        max-height: 115px;
    }


.name-input-bg {
    border: none;
    position: fixed;
    bottom: 4%;
    left: -16%;
    width: 75%;
    height: 93%;
}

#SUBMIT-NAME {
    background: none;
    border: none;
    z-index: 150;
    position: fixed;
    left: 79em;
    BOTTOM: 3.8EM;
}


/*DIALOGUE*/
.dialog {
    background-image: url("popup/modal.png");
    background-repeat: no-repeat;
    background-color: none;
    background-size: 20em 19em;
    color: white;
    width: 37%;
    height: 83%;
    font-family: 'FranklinGothic';
}

    .dialog button {
        background-color: transparent;
        border: none;
    }


.alert {
    transform: translate(-50%);
    position: fixed;
    width: 33.3%;
    /* position: relative; */
    left: 50%;
    margin: 0;
    top: 2em;
}

.dialogue-container {
    position: relative;
    top: 10em;
}

.input-room-code {
    COLOR: BLACK;
    POSITION: relative;
    LEFT: -3%;
    BOTTOM: -0.55EM;
}
/*CARDS*/

#card-container {
    display: block;
    position: relative;
    justify-content: center;
    flex-flow: row wrap;
    top: 11em;
    left: 5em;
    margin: auto;
}

.card-text {
    position: absolute;
    text-align: center;
    color: black;
    font-family: 'ErasITC-Bold';
    font-size: 6em;
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-top: -100px;
    margin-left: -100px;
}



#game-button {
    background: none;
    border: none;
    position: relative;
    margin: 0 4EM 0 4EM;
}

    #game-button p {
        z-index: 2;
        color: black;
        margin: auto;
        position: relative;
        top: -4.5em;
        max-width: 9em;
        font-size: 3.5em;
        font-family: 'ErasITC-Bold';
    }


    #game-button img {
        margin-left: auto;
        margin-right: auto;
        margin-top: 5%;
        max-width: 100%;
    }


#mobile-button {
    display: none;
    font-family: 'ErasITC-Bold';
}
/*NUMBER INPUT*/

.or {
    position: relative;
    top: 20.25em;
    color: black;
    left: 25.75em;
}

.option-mobile{
    display: none;
}

.option-desktop {
    POSITION: RELATIVE;
    TOP: 56.5em;
    LEFT: 48EM;
    BACKGROUND: NONE;
    BORDER: NONE;
    width: 25em;
    /* height: 20px; */
}

    .option-desktop img {
        height: 7.5em;
        width: 45em;
    }

    .option-desktop p {
        FONT-FAMILY: 'ErasITC-Bold';
        FONT-SIZE: 3EM;
        COLOR: WHITE;
        POSITION: RELATIVE;
        TOP: -1.9EM;
        LEFT: -.85EM;
        width: 175%;
        text-transform: uppercase;
    }

.pointer {
    width: 7em;
    height: 7em;
    position: absolute;
    top: 0em;
    left: 36em;
}

.number-content input {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: none;
    font-size: calc(1em + 3vw);
    color: white;
    border: none;
    bottom: 45%;
    z-index: 2;
}

    .number-content input:focus {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        background: none;
        font-size: calc(1em + 3vw);
        color: white;
        border: none;
        bottom: 45%;
        z-index: 2;
    }


.number-content img {
    z-index: 1;
}

.number-content {
    margin: auto;
    width: 50%;
}


.input-box {
    position: fixed;
    left: 50%;
    bottom: 30%;
    transform: translateX(-50%);
}


.finger {
    position: fixed;
    left: 74%;
    bottom: 23%;
    transform: translateX(-50%);
    display: block;
}

.submit-number-desktop {
    background: none;
    position: fixed;
    left: 87%;
    bottom: 7%;
    transform: translateX(-50%);
    border: none;
}


.submit-number-mobile {
    display: none;
}

.eye {
    position: relative;
    left: 36%;
    width: 15em;
    top: 2em;
}

.prompt-eye {
    position: relative;
    left: 36%;
    width: 15em;
    top: 2em;
}

.start-btn {
    position: fixed;
    left: 66%;
    /* top: 2%; */
    bottom: 7%;
    background: none;
    border: none;
}

.prompt-txt {
    margin-top: 5%;
    text-align: center;
    color: black;
    text-transform: uppercase;
}

/*question format*/

.question-container {
    position: fixed;
    left: 56%;
    top: 8%;
    font-family: 'ErasITC-Bold';
}

    .question-container img {
        position: fixed;
        left: 50%;
        top: 5%;
    }

/*  #tick{

        display: none !important;
    }*/

.tick {
    width: 7%;
    position: fixed;
    left: 58%;
    top: 56%;
    z-index: 3;
    background: none;
    position: relative;
    background-color: transparent;
}

#btn-click {
    background: none;
}

/*card swiping*/
.row_clr {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

* {
    padding: 0;
    margin: 0;
}

.no-pad {
    padding: 0;
}

.hid {
    opacity: 0;
}


#__bs_notify__ {
    display: none !important;
}

:root {
    touch-action: pan-x pan-y;
    height: 100%;
}

html {
    touch-action: pan-x pan-y;
    padding: env(safe-area-inset);
}

body {
    touch-action: manipulation;
}

#preloader {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 999;
    /*    background-color: #fff;
*/ top: 0;
    left: 0;
}

    #preloader .icon {
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        font-size: 50px;
        text-align: center;
        display: block;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

/*main styles*/

*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.demo {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* background: #f6f6f5;*/
}

    .demo h1 {
        text-align: center;
        margin: 20px auto -10px;
        font-size: 26px;
    }

.content {
    overflow: hidden;
    position: relative;
    height: 100vh;
    padding-top: 80px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.card-cont {
    position: relative;
    width: 50vw;
    height: 50vh;
    margin: 0 auto 5rem;
}

.card {
    cursor: move;
}

#card {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    margin-top: -75px;
    width: 250px;
    height: 150px;
    transform: translateX(-125px);
}

    #card.slide {
        transition: transform 1s;
    }

/*.card {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
}*/

.card.reset {
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
    -webkit-transform: translateX(0) !important;
    transform: translateX(0) !important;
}

    .card.reset .card__choice {
        transition: opacity .3s;
        opacity: 0 !important;
    }

.card.inactive {
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
}

.card.to-left {
    -webkit-transform: translateX(-100rem) rotate(-30deg) !important;
    transform: translateX(-100rem) rotate(-30deg) !important;
}

.card.to-right {
    -webkit-transform: translate(100rem) rotate(30deg) !important;
    transform: translate(100rem) rotate(30deg) !important;
}

.card.below {
    z-index: 1;
}

.card__top {
    height: 100%;
    padding-top: 4rem;
}

.card__img {
    overflow: hidden;
    width: 10rem;
    height: 10rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: .5rem solid #fff;
    background-image: url("//s3-us-west-2.amazonaws.com/s.cdpn.io/142996/profile/profile-512_5.jpg");
    background-size: cover;
}

.card__name {
    font-size: 5rem;
    line-height: 5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    bottom: 20px;
    z-index: 2;
    padding-left: 30px;
}

#card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    z-index: 0;
}

.card__btm {
    height: 11.5rem;
    /*    background: #fff;
*/
}

.card__we {
    text-align: center;
    font-size: 2.2rem;
    line-height: 11.5rem;
}

.card__choice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

    .card__choice:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 2rem;
        height: 2rem;
        margin-left: -1rem;
        color: #fff;
        border-radius: 50%;
        box-shadow: -2rem -3rem #fff, 2rem -3rem #fff;
    }

    .card__choice:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 4rem;
        height: 1.5rem;
        margin-left: -2rem;
        border: .6rem solid #fff;
        border-bottom: none;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .card__choice.m--reject {
        background: #ff945a;
    }

    .card__choice.m--like {
        background: #b1da96;
    }

        .card__choice.m--like:after {
            -webkit-transform: scaleY(-1);
            transform: scaleY(-1);
        }

.card__drag {
    z-index: 5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: -webkit-grab;
    cursor: grab;
}

.tip {
    text-align: center;
    font-size: 2.2rem;
}

.cont-bottom {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    .cont-bottom h3 {
        margin: 0 20px;
    }

        .cont-bottom h3.correct {
            color: #00ad11;
        }

        .cont-bottom h3.incorrect {
            color: red;
        }

    .cont-bottom .tip {
        margin-top: 20px;
        flex-basis: 100%;
    }
