﻿/* #region constants, objects */
/* Colors */
:root {
    --secondary-color: #7CFC00;
    --disabled-color: #E9FCD56F;
    --disabled-text-color: #7f7f7f;
    --popup-background: #0000007f;
    --background: #0000007f;
    --logo-url: none;
    --background-url: url("../images/default/splash_background.png");
    max-width: 750px;
    margin: 0 auto;
}

.html{
}

.hidden
{
    display:none;
}
.template {
    display: none;
}
/* #endregion */

/* #region input controls */
img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

input {
    background-color: var(--secondary-color);
    color: black;
    width: 100%;
    text-wrap: normal;
    height: 50px;
    vertical-align: top;
}
select {
    background-color: #00000099;
    border-width: 2px;
    border-color: var(--secondary-color);
    padding: 5px;
    color: var(--secondary-color);
    font-size: 22px;
    text-wrap: normal;
    width: 100%;
    vertical-align: top;
    height:50px;
    left: 10px;
    right: 10px;
}

select#spriteSelector {
        bottom: 0px;
        left: 0px;
        position: absolute;
    }
#selectLabel {
        bottom: 50px;
        left: 0px;
        position: absolute;
    }

select#skinSelector {
    bottom: 100px;
    left: 0px;
    position: absolute;
}

#selectSkinLabel {
    bottom: 150px;
    left: 0px;
    position: absolute;
}

input[type="button"] {
    background-color: var(--secondary-color);
    font-weight: bold;
    color: black;
    font-size: 20px;
    margin: 0 5px;
    margin: 10px 0 0 0;
}


input[type="button"]:disabled {
    background-color: var(--disabled-color);
    color: var(--disabled-text-color);
}

input[type="button"].sendMessage {
    font-size: 15px;
    font-weight:normal;
    bottom:0px;
    left:0px;
    position:absolute;
}


    input[type="button"].reset-round-button {
        bottom: 60px;
        left: 0px;
        position: absolute;
    }

    input[type="button"].reset-game-button {
        bottom: 0px;
        left: 0px;
        position: absolute;
    }

input#ballot-confirm-back {
    margin: 0px 0 0 0;
}

div.topBar{
    position:relative;
    height:90px;
    max-width:500px;
    margin:0 auto;
}

#likes-cycle div.topBar .button {   
    width: 100px;
    height:70px;
    position:absolute;
    top:0px;
    font-size: 40px;
    margin: 0 0px;
}
input[type="button"]#button-prev {
    float:left;
    left:0px;
}
input[type="button"]#button-next {
    float:right;
    right:0px;
}
#likes-cycle div.topBar .likes-current {
    margin: auto auto;
    text-align: center;
    vertical-align: central;
    position: absolute;
    width:100%;
    top: 50%;
    font-size:30px;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
div.text-header{
    font-size:24px;
    margin: 10px 0 0 0;
    font-weight:bold;
}
input[type="checkbox"]#checkbox-like{
    position:absolute;    
    right:10px;
    top:10px;
    width:60px;
    height:60px;
}


input[type="button"].modeButton {
    width: 49.5%;
    margin: 10px 0 0 0;
}
div.submission-options{
    margin:0 -5px;
}
div.caption-image-thumb{
    background-repeat:no-repeat;
    background-position: right top;
    background-size:contain;
    height:80px;
    position:absolute;
    width:100px;
    top:0px;
    right:5px;
}
div.color-options{
    margin: 20px 0 0 0;
    padding:5px;
    display:grid;
    grid-gap:5px 5px;
    grid-template-columns: auto auto auto;
    position:relative;
    background-color:#ffffff
}
div.color-item{
    width:100%;
    position:relative;
    padding-bottom:60%;
    background-color:#ffffff;
}
div.color-item input[type="radio"] {
    position: absolute;
    -webkit-appearance: initial;
    left:0px;
    top: -4px;
    bottom:0;
    right:0;
    width:100%;
    height:100%;
    border: none;
}
    div.color-item input[type="radio"]:disabled {
        border-color: #FFFFFF;
        border-style: solid;
    }
    div.color-item input[type="radio"]:checked {
        border-color: #000000;
        border-width: 5px;
        border-style: solid;
    }

    div.color-item div.color-selector-underlay {
        position: absolute;
        left: 0px;
        top: 0px;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        border: none;
    }

div.letter-options, div.vowel-options {
    margin: 0px 0 0 0;
    padding: 10px;
    display: grid;
    grid-gap: 15px 20px;
    grid-template-columns: auto auto auto;
    position: relative;
}
div.letter-item {
    width: 100%;
    position: relative;
    height: 60px;
    //padding-bottom: 45%;
}
div.letter-item input[type="button"] {
    position: absolute;
    -webkit-appearance: initial;
    left: 0px;
    top: -4px;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}
    div.letter-item input[type="button"]:focus {
        border-color: #000000;
        background-color: #000000;
        color: var(--disabled-text-color);
        border-width: 5px;
        border-style: solid;
    }
    div.letter-item.guessed input[type="button"] {
        background-color: var(--disabled-text-color);
    }
    div.letter-item.bonus-selected input[type="button"] {
        background-color: #ff0000;
    }

div#wheel-body{
}

div#wheel-holder {
    position: absolute;
    overflow: hidden;
    margin: -15px;
    left:0;
    right:0;
    top:250px;
    bottom:-250px;

}
    div#wheel-holder div.wheel-image {
        position: absolute;
        overflow: hidden;
        background-image: url("../images/wheelimage.png");
        height: 180%;
        width: 180%;
        z-index:0;
        margin: 0 auto 0 auto;
        right: 40%;
        left: -40%;
        top: 0%;
        bottom: -40%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position-y: center;
        background-position-x: center;
        /*transform: rotate(0 deg);*/
        /*transform-origin: 50% 50%;*/
    }
div#letter-wheel-selection, div#wheel-wheel-selection {
    position: relative;
    overflow: hidden;
    height: 80px;
    width: 100%;
    left: 0;
    right: 0;
}
input#wheel-spin-button{
    height:100px;
    margin:70px 20px 50px 20px;
    width:calc(100% - 40px);
    font-size:40px;
}

div#wheel-selection-image, div#wheel-selection-image-2 {
    position: absolute;
    background-image: url("../images/wheelimage.png");
    width: 1010px;
    height: 1010px;
    top: -457.5px;
    right: -505px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: center;
    transform: rotate(0 deg);
    transform-origin: 50% 50%;
}

input#gameCode {
    text-transform: uppercase;

}

input#wheel-swipe-area[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
    -webkit-transform: translate(-50%, -50%) rotate(-90deg) translate(50%, 50%);
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: translate(0, 0) rotate(-90deg) translate(-100%, 0);
    -moz-transform-origin: 0 0%;
    -o-transform-origin: 0 0%;
    -ms-transform-origin: 0 0%;
    -webkit-transform-origin: 0 0%;
    transform-origin: 0 0%;
    position: absolute;
    height: 180px;
    width: 100%;
    margin: 25px 15px -25px -15px;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    pointer-events: none;
}
input#wheel-swipe-area[type=range]:disabled {
   visibility:collapse;
}

input#wheel-swipe-area[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input#wheel-swipe-area[type=range]:focus {
    outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input#wheel-swipe-area[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;
    /* Hides the slider so custom styles can be added */
    background: transparent;
    border-color: transparent;
    color: transparent;
}

    /* Special styling for WebKit/Blink */
    input#wheel-swipe-area[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 180px;
        width: 110px;
        background: #ffffff;
        cursor: pointer;
        pointer-events: auto;
        margin-top: 0px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    }

    /* All the same stuff for Firefox */
    input#wheel-swipe-area[type=range]::-moz-range-thumb {
        height: 180px;
        width: 110px;
        background: #ffffff;
        cursor: pointer;
        pointer-events: auto;
    }

    /* All the same stuff for IE */
    input#wheel-swipe-area[type=range]::-ms-thumb {
        box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
        height: 180px;
        width: 110px;
        background: #ffffff;
        cursor: pointer;
        pointer-events: auto;
    }

    input#wheel-swipe-area[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 180px;
        cursor: pointer;
        background: #0000007f;
        pointer-events: none;
    }

    input#wheel-swipe-area[type=range]:focus::-webkit-slider-runnable-track {
        width: 100%;
        height: 180px;
        cursor: pointer;
        background: #0000007f;
        pointer-events: none;
    }

    input#wheel-swipe-area[type=range]::-moz-range-track {
        width: 100%;
        cursor: pointer;
        background: transparent;
        pointer-events: none;
    }

    input#wheel-swipe-area[type=range]::-ms-track {
        width: 100%;
        cursor:auto;
        background: transparent;
        border-color: transparent;
        color: transparent;
        pointer-events: none;
    }

    input#wheel-swipe-area[type=range]::-ms-fill-lower {
        pointer-events: none;
        background: transparent;
    }

    input#wheel-swipe-area[type=range]:focus::-ms-fill-lower {
        pointer-events: none;
        background: transparent;
    }

    input#wheel-swipe-area[type=range]::-ms-fill-upper {
        pointer-events: none;
        background: transparent;
    }

    input#wheel-swipe-area[type=range]:focus::-ms-fill-upper {
        pointer-events: none;
        background:transparent;
    }

textarea, input[type="text"] {
    background-color: #00000099;
    border-width: 2px;
    border-color: var(--secondary-color);
    padding: 5px;
    color: var(--secondary-color);
    font-size: 22px;
    text-wrap: normal;
    width: 100%;
    vertical-align: top;
    left: 10px;
    right: 10px;
}

textarea {
    margin: 10px 0 20px 0;
}
/* #endregion */

/* #region Main window divs */

html {
    min-height: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: relative;
}
.header{

    margin: 0 5px 0 5px;
    display:block;
    position:relative;
}

div.header .inner {
    margin-top: 10px;
    height: 115px;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: center;
    background-size: 400px 400px;
}

div.header .logo {
    background-image: var(--logo-url);
    margin-top: 10px;
    height: 100px;
    width: 100%;
    top: 0;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: left;
}

div.noLogo {
    height:20px;
    background-image: none;
}

div.header.compact .inner{
    height:65px;
}
div.header.compact .logo {
    height: 50px;
}


div.header .userID {
    margin-top: 10px;
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffffff;
    font-size: 30px;
}

div.header .score {
    margin-top: 10px;
    position: absolute;
    top: 0px;
    width: 100%;
    font-weight: bold;
    text-align: center;
    color: var(--disabled-color);
    font-size: 40px;
}
    div.header .score.active {
        color: #ffffff;
    }
    div.header .score.missATurn {
        color:#000000;
    }

div.header .back-button {
    position: absolute;
    top: 2px;
    left: 2px;
    color: #ffffff;
    background-image: url("../images/back-button.png");
    background-size: contain;
    height: 59px;
    width: 59px;
}

body {
    padding-top: 0px;
    padding-bottom: 10px;
    font-family: Arial, sans-serif;
    height: 100%;
    /*min-height: 99vh;*/
    margin: 0;
    background-image: var(--background-url);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
    background-size: cover;
}
footer{

}
div {
    color: var(--secondary-color);
    font-size: 18px;
}

    div.screen {
        position: absolute;
        left: 0;
        right: 0;
    }

    div.submission {
        position: relative;
        min-height: 50px;
        margin: 10px 0 10px 0;
        padding: 10px 0 10px 0;
    }

div.view.active
{
    display:block;
}

div.puzzles {
}

    div.puzzles .puzzle, div.selected-puzzle .puzzle {
        position: relative;
        margin: 0 0 5px 0;
        padding: 10px;
        min-height: 80px;
    }

    div .puzzle .hint, div .puzzle .pages {
        font-size: 12px;
        font-style: italic;
        padding: 0 15px  0 15px;
        pointer-events: none;
    }
  div .puzzle .pages {
        font-size: 14px;
        font-style: italic;
        padding: 5px 10px 5px 10px;
        pointer-events: none;
        position: absolute;
        right:0px;
        top:0px;
    }
    div .puzzle .text {
        font-size: 14px;
        font-weight: bold;
        pointer-events: none;
        margin: 0px 85px 0px 0px;

    }
    div .puzzle .stats {
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 30px 15px 10px 0;
        pointer-events: none
    }
        div .puzzle .stats div {
            position: relative;
            font-size: 10px;
            font-style: italic;
            text-align: left;
            position:relative;
            width:80px;
        }
        div .puzzle .stats .letters {
            position: absolute;
            right: 0px;
        }
        div .puzzle .stats .vowels {
            position: absolute;
            right: 0px;
        }
        div .puzzle .stats .consonants {
            position:absolute;
            right: 0px;
        }
        div .puzzle .stats .stat div {
            font-weight: bold;
            font-size: 12px;
            font-style: normal;
            padding: 0 0 0 5px;
            width:auto;
            display:inline-block;
        }

        input.button-prevnext{
            width:40px;
            top:0px;
            bottom:0px;
            height:100%;
            position:absolute;
            display:inline-block;
            margin:0;
        }
input#puzzle-list-prev {
    left:0px;
}
input#puzzle-list-next {
    right:0px;
}
        div.puzzle-buttons{
            position:relative;
        }

div#puzzle-selected {
    margin: 5px 45px;
    min-height:110px;
}
div#puzzle-selected .text {
    margin: 0 85px 0 0;
}

    div.puzzles .puzzle input.input {
        position: absolute;
        top: -5px;
        bottom: 5px;
        left: 0;
        right: 0;
        height: 100%;
        display: block;
        border-radius: 0px;
        border-width: 5px;
        border-style: solid;
        outline: none;
        border-color: var(--popup-background);
        background-color: transparent;
        -webkit-appearance: none;
    }
        div.puzzles .puzzle input.input:checked, div.selected-puzzle .puzzle {
            border-style: solid;
            border-color: var(--secondary-color);
            background-color: var(--popup-background);
        }


div.player-item{
    position:relative;
    height:70px;
}
div.player-item .player-name{
    position: absolute;
    top:15px;
    left:20px;
    height: 70px;
    font-size:28px;
    font-weight:bold;
    color:#ffffff;
}

div.player-add{
    margin-top:50px;
    position:relative;
    height:70px;
}
input#newPlayerName{
    margin:10px 0px 10px 10px;
    position:absolute;
    top:0px;
    left:0px;
    width:calc(100% - 190px);
}
select#newPlayerPronouns {
    margin: 10px -15px 10px 0px;
    top: 0px;
    float: right;
    width: 180px;
}
input.playerChangeButton{
    width:60px;
    top:0px;
    position:absolute;
    right:10px;
}
div.newPlayerUnderlay{
    position:relative;
    top:0;
    margin-right:100px;
}
div.player-item .player-underlay {
    position: absolute;
    height: 100%;
    width: 100%;
}



/*body .content {
    min-height: calc(100vh - 165px);
}
body .content.compact{
    min-height: calc(100vh - 125px);
}*/

div.view, div.popup-view
{
    min-height:100px;
    display:none;
    margin:0 5px 5px 5px;
    padding:15px;
    border-color:var(--secondary-color);
    background-color:var(--background);
    border-style:solid;
    border-width: 2px;
}

.popup-view .content{
    min-height:initial;
}

div.view .content{
   

}

body div.content{
    position:relative;
}

/* #endregion */

/* #region  Popup divs */

div.popup-background {
    position: fixed;
    background-color: var(--popup-background);
    width: 100%;
    height: 100%;
    top:0;
    bottom:0;
    left:0;
    padding:40px 0px 0px 0px;
    right: 0;
}
div.popup-view{
    position:relative;
    margin: 0 auto;
    max-width:500px;
    min-height:160px;
    padding:50px 50px 0px 50px;

}
div.popup-view input{
    margin: 40px auto 30px auto;
}
div#view-idle div.content {
    margin-top: 10px;
}

    div #view-idle div.background {
    background-image: var(--logo-url);
    position:absolute;
    height:100%;
    width: 100%;
    top: 0;
    left:0;
    background-size: contain;
    opacity:0.2;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: center;
}

div.player-solvebutton {
    width: 100%;
    position: relative;
    height: 100px;
    //padding-bottom: 45%;
}

    div.player-solvebutton input[type="button"] {
        position: absolute;
        -webkit-appearance: initial;
        left: 0px;
        top: -4px;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
div.player-guess-buttons {
    margin: 0px 0 0 0;
    padding: 10px;
    display: grid;
    grid-gap: 15px 20px;
    grid-template-columns: auto;
    position: relative;
}
div.timerTime{
    vertical-align:middle;
    margin: 20px 0 0 0;
    height:50px;

    text-align:center;
    font-size:30px;
}
/* #endregion*/