/* Remove margins and HTML scrollbars */


/** {
    !*user-select: none;*!
    !*-webkit-touch-callout: none;*!
    !*-webkit-user-select: none;*!
    !*-ms-touch-action: none;*!
    !*touch-action: none;*!
    !*overflow: scroll;*!
}*/

html,
body {
    margin: 0;
    padding: 0;
    background-color: black;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
    /*user-select: none;*/
    /*-webkit-touch-callout: none;*/
    /*-webkit-user-select: none;*/
    /*-ms-touch-action: none;*/
    /*touch-action: none;*/
}

#innerPopupDiv {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#btn1PopupDiv {
    cursor: pointer;
}

#btn2PopupDiv {
    cursor: pointer;
}

.operatorMessagePortrait {
	margin: 10px 20px 0px 20px;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 2vh;
	color: whitesmoke;
}

#orientation {
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(../assets/PP_Rotate_device.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
    background-size: auto 100%;
    display: none;
    z-index: 9999;
}

#orientationFullScreen {
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(../assets/PP_Rotate_device.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
    background-size: auto 100%;
    display: none;
    z-index: 9999;
}

#fingerUpGestureContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    margin: 0px;
    padding: 0px;
    pointer-events: none;
    background: rgba(173, 216, 230, 0.5) no-repeat;
    background-size: 100%;
    display: none;
}

#fingerUpGesture {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0px;
    margin: auto auto;
    background-color: transparent;
    /*background-image: url(assets/SwipeUpGesture.gif);*/
    background-image: url(../assets/HandGestureTap.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30%;
    pointer-events: none;
}

#gameFullScreenContainer {
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    top: 0px;
    background-color: black;
    background-color: black;
    display: flex;
    justify-content: center;
}

#viewportMeasuringContainer {
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    position: absolute;
    z-index: 99999;
    visibility: hidden;
}

canvas {
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    background-color: black;
    width: 100%;
    /*box-sizing: content-box;*/
}

#helpIframe {
    position: fixed;
    width: 99%;
    left: 0px;
    top: 0px;
    overflow: hidden;
    height: 85%;
    -webkit-overflow-scrolling: touch;
}

#backgroundPopup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: rgba(120, 120, 120, 0.5);
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupDiv {
    position: absolute;
    top: 30%;
    /* width: 50%; */
    background: #f1efef;
    background-image: -webkit-linear-gradient(top, #f1efef, #afafaf);
    background-image: -moz-linear-gradient(top, #f1efef, #afafaf);
    background-image: -ms-linear-gradient(top, #f1efef, #afafaf);
    background-image: -o-linear-gradient(top, #f1efef, #afafaf);
    background-image: linear-gradient(to bottom, #f1efef, #afafaf);
    padding-bottom: 3em;
    border-radius: 10px;
    text-align: center;
    font-family: Helvetica, Tahoma, Arial, Verdana, sans-serif;
    box-shadow: 3px 3px 8px black;
    color: #484848;
    min-width: 25%;
    /* max-width: 50%; */
    max-width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#titlePopupDiv {
    width: 100%;
    padding: 1em;
    padding-bottom: 0px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 1.5vw;
}

#messagePopupDiv {
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
    color: #484848;
    font-size: 1vw;
}

#buttonsPopupDiv {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 2vh;
    box-sizing: border-box;
}

#gameFullScreenContainer .button {
    padding: 0.6vw;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2vw;
    cursor: pointer;
    color: white;
    background-color: #3C3C3C;
    float: left
}

#gameFullScreenContainer .button:hover {
    background-color: #262626;
    cursor: pointer;
    color: #FFFFFF;
}

.buttonWide {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-right: 1vw;
    margin-top: 1em;
}

#buttonsPopupDiv button:last-of-type {
    margin-right: 0px;
}

#buttonsNotificationDiv button {
    margin-top: 0px;
}

.buttonNarrow {
    padding-left: 1vw;
    padding-right: 1vw;
    margin-left: 1vw;
    margin-right: 1vw;
}

#dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1em;
    margin-top: 1em;
}

.dropdown-select {
    width: 17%;
    float: right;
    margin-right: 9em;
    height: 2em;
    font-size: 1em;
}

.dropdown-select-portrain {
    width: 20%;
    height: 3em;
}

.dropdown-select-portrain .dropdown-value {
    font-size: 1.8em;
}

.label-time-period {
    float: left;
    width: 35%;
    margin-left: 3em;
}

#notificationDiv {
    background: linear-gradient(#fefdfd, #cfd0cf);
    position: absolute;
    width: 100%;
    font-family: Arial, Verdana, sans-serif;
    left: 0px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-out all;
}

#messageNotificationDiv {
    max-width: calc(92% - 2vw);
    height: auto;
    color: #242424;
    font-size: 1.4vw;
    text-align: left;
    padding-top: 1vh;
    padding-left: 2vw;
    padding-bottom: 2vh;
}

#buttonsNotificationDiv {
    display: flex;
    flex-direction: row;
}

#buttonsNotificationDiv .button {
    margin: 0;
    padding: 0;
    padding: 0.5vw;
    text-align: center;
    font-size: 1.2vw;
    color: #242424;
    background: linear-gradient(#fefdfd, #cfd0cf);
    flex-grow: 1;
    border: none;
    border-left: 1px solid #cfd0cf;
    border-top: 1px solid #cfd0cf;
    border-radius: 0;
}

#buttonsNotificationDiv .button:hover {
    background: #fefdfd;
    cursor: pointer;
    color: #242424;
}

#notificationTitle {
    padding-right: 1vw;
    font-weight: bold;
}

#see-all {
    position: absolute;
    width: 2vw;
    height: auto;
    cursor: pointer;
    padding-left: 0.5vw;
}

.notification-x-button {
    width: 3vw;
    height: auto;
    position: absolute;
    right: 1vw;
    top: 0;
    cursor: pointer;
    border: none;
}

#demo-iframe-holder {
    position: fixed;
    right: 0;
    bottom: 120px;
    left: 0;
    top: 0;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    overflow-x: hidden;
}

#demo-iframe-holder iframe {
    height: 100%;
    width: 100%;
    border-color: black;
}

p#messageParagraph {
    display: block;
    -webkit-margin-before: 0.5em;
    -webkit-margin-after: 0px;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}

@media only screen and (max-width: 1024px) and (orientation: portrait) {
    #popupDiv {
        padding-bottom: 1em;
        min-width: 50%;
        max-width: 50%;
    }
    #titlePopupDiv {
        font-size: 10px;
    }
    #messagePopupDiv {
        font-size: 8px;
    }
    #buttonsPopupDiv {
        bottom: 20px;
        padding-left: 0.2vw;
        padding-right: 0.2vw;
    }
    #gameFullScreenContainer .buttonWide {
        padding-left: 1vw;
        padding-right: 1vw;
        padding-top: 0.5vh;
        padding-bottom: 0.5vh;
        margin-left: 0.2vw;
        margin-right: 0.2vw;
    }
    #gameFullScreenContainer .buttonNarrow {
        padding-left: 1vw;
        padding-right: 1vw;
        padding-top: 0.5vh;
        padding-bottom: 0.5vh;
        margin-left: 0.2vw;
        margin-right: 0.2vw;
    }
    #gameFullScreenContainer .button {
        font-size: 8px;
    }
    #gameFullScreenContainer .button:hover {
        color: white;
        background-color: #3C3C3C;
    }
    #gameFullScreenContainer .button:active {
        background-color: #262626;
        cursor: pointer;
        color: #FFFFFF;
    }
    #buttonsNotificationDiv .button:hover {
        cursor: pointer;
        color: #242424;
        background: linear-gradient(#fefdfd, #cfd0cf);
    }
    #buttonsNotificationDiv .button:active {
        background: #fefdfd;
        cursor: pointer;
        color: #242424;
    }
    .notification-x-button {
        width: 6vw;
    }
    #see-all {
        width: 5vw;
        padding: 0.8em;
        margin: -0.8em;
    }
    #messageNotificationDiv {
        font-size: 4vw;
        height: auto;
        padding-bottom: 1vw;
        max-width: calc(92% - 4vw);
    }
    #buttonsNotificationDiv .button {
        font-size: 2vh;
    }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    #titlePopupDiv {
        font-size: 3vw;
    }
    #messagePopupDiv {
        font-size: 2.5vw;
    }
    #popupDiv {
        padding-bottom: 1em
    }
    #gameFullScreenContainer .button {
        font-size: 2vw;
    }
    #gameFullScreenContainer .button:hover {
        color: white;
        background-color: #3C3C3C;
    }
    #gameFullScreenContainer .button:active {
        background-color: #262626;
        cursor: pointer;
        color: #FFFFFF;
    }
    #buttonsNotificationDiv .button:hover {
        cursor: pointer;
        color: #242424;
        background: linear-gradient(#fefdfd, #cfd0cf);
    }
    #buttonsNotificationDiv .button:active {
        background: #fefdfd;
        cursor: pointer;
        color: #242424;
    }
    #buttonsNotificationDiv .button {
        font-size: 11px;
    }
    #see-all {
        padding: 0.8em;
        margin: -0.8em;
    }
}

@media only screen and (max-width: 450px) and (orientation: landscape) {
    #messageNotificationDiv {
        font-size: 3vw;
        height: auto;
    }
    #buttonsNotificationDiv .button {
        font-size: 15px;
    }
    #buttonsPopupDiv .button {
        font-size: 12px;
    }
    #popupDiv {
        max-width: 75%;
    }
    .notification-x-button {
        width: 5vw;
    }
    #see-all {
        width: 4vw;
    }
}

#ingamehistory-iframe-holder {
	position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
}

#ingamehistory-iframe-holder iframe {
    width: 100% !important;
    height: 100%;
	border: none;
}

#ingamehistory-close-btn {
	position: absolute;
	color: white;
	width: 25px;
	height: 25px;
	right: 15px;
	top: 15px;
	font-size: 25px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transform-origin: center;
}

#ingamehistory-close-btn:hover {
	transform: scale(1.2);
}