@font-face {
    font-family: 'Typewriter';
    src: url('../fonts/typewcond/typewcond_regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Typewriter';
    src: url('../fonts/typewcond/typewcond_bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Microsoft New Tai Lue';
    src: url('../fonts/ntailu.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*, ::after, ::before {
    box-sizing: border-box;
}

html {
    font-family: 'Microsoft New Tai Lue', sans-serif;
    color: #454556;
    /*background: url("../images/background_paper.jpg") no-repeat;
    background-size: cover;*/
    background: white;
}

body {
    user-select: none;
}


img {
    max-width: 100%;
    max-height: 100%;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

video::-webkit-media-controls-panel {
    background-image: none !important;
    filter: brightness(0.4);
}

p {
    margin: 0;
}

html, body {
    border: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.displayNone {
    display: none !important;
}

.showAfterLoading {
    display: none;
}

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

.btn {
    font-family: 'Microsoft New Tai Lue', sans-serif;
    font-size: 14px;

    cursor: pointer;

    width: 116px;
    height: 40px;
    background: linear-gradient(to right, #87d3d6 0%,#a9d0c9 100%);
    text-align: center;
    border: 0;
    color: #333;

    display: inline-flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;

    transform: scale(1);
    transition: 0.5s all;

    box-shadow: 2px 2px 1px #ccc;

    flex-shrink: 0;
}
.btn:hover, .btn.selected {
    /*transform: scale(1.1);*/
    /*background-image: url("../images/btn-selected.png");*/
    background: linear-gradient(to right, #a9d0c9 0%,#87d3d6 100%);

    transform: translate(1px, 1px);
    box-shadow: 1px 1px 1px #ccc;
}

.btn[style*='display: block'] {
    display: flex !important;
}
.btn[style*='display: inline-block'] {
    display: inline-flex !important;
}


.btn.long {
    width: 162px;
    height: 40px;
    /*background-image: url("../images/btn_long.png");*/
}
.btn.long:hover {
    /*background-image: url("../images/btn_long-selected.png");*/
}

.btn.btnQuad {
    width: 52px;
    height: 52px;
}
.btn.btnQuadMini {
    width: 35px;
    height: 35px;
}
.btn.btnQuad, .btn.btnQuadMini {
    /*background-image: url("../images/btn_base.png");*/
    background-size: 100% 100%;
}
.btn.btnQuad:hover, .btn.btnQuadMini:hover, .btn.btnQuad.selected, .btn.btnQuadMini.selected {
    /*background-image: url("../images/btn_base-selected.png");*/
}

.btn.btnQuadMiniStretch {
    width: auto;
    height: 35px;
    background: #fff;
    /*border-image: url("../images/btn_base.png") 24 / 20px / 0px stretch;*/
    width: auto;
    padding: 0 20px;
}
.btn.btnQuadMiniStretch:hover {
    /*border-image-source: url("../images/btn_base-selected.png");*/
}

.btn .icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

::-webkit-scrollbar-track
{
    width: 10px;
    background-color: #f1f1f1;
}

::-webkit-scrollbar
{
    width: 10px;
    background-color: #f1f1f1;
    background-size: 100% 100%;
}

::-webkit-scrollbar-thumb
{
    background-color: #87d3d6;
    background: linear-gradient(to bottom, #87d3d6 0%,#a9d0c9 100%);
    /*border: 4px solid rgba(84,96,115,0.2);
    border-width: 10px 4px;*/
    min-height:30px;
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box;
}



.fadeIn {
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


#unityContainer.hovering canvas {
    cursor: pointer !important;
}

#unityContainer {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
}

#webContainer, #insetFrame {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 0;
    margin: 0;
    padding: 0;
}

#webContainer {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    transition: 0.5s filter;
}

#insetFrame {
    max-width: 1366px;
    border: 50px solid transparent;
    border-image: url("../images/cornice_pattern.png") 50 round;
    pointer-events: none;
}

.sceneDependentElement {
    display: none;
}

#portraitBlocker {
    display: none;
}

@media screen and (orientation:portrait) {
    #portraitBlocker {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: #f1f1f1;
        z-index: 1000;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 50px;
        font-size: 20px;
        text-align: center;
    }
}



@media (max-height: 400px) {
    .btn {
        transform: scale(0.8) !important;
    }
    .uiContainer .lowerRightButton {
        right: -15px !important;
        bottom: 0 !important;
    }
}


#footerLogo {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
}

#footerLogo a {
    display: inline-block;
}
#footerLogo img {
    height: 80px;
}






header {
    background: #f1f1f1 no-repeat;
    background-size: auto;
    background-position: top right;
    height: 62px;
    width: 100%;
    margin-bottom: 10px;
}

header .btn {
    float: right;
    margin: 10px 22px;
}

header .logo {
    display: none;
    float: left;
    margin: 6px 22px;
}


main {
    height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fullpagePanel {
    height: 100%;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
}
.visiblePage {
    opacity: 1;
}
.hiddenPage {
    opacity: 0;
    pointer-events: none;
}

#startPanel {

}

#gameDescription {
    background: #a9d0c980;
    width: 20vw;
    max-height: 676px;
    min-width: 250px;
    padding-top: 3vw;
    padding-bottom: 3vw;
    margin: 150px 5vw 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

#gameDescription .gameInfo {
    border: 5px solid #87D3D6;
    margin-left: -3vw;
    margin-right: -3vw;
    padding: 3vw;
}

#gameDescription .logo {
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
}
#gameDescription .logo img {
    max-height: 130px;
}
#gameDescription .title {
    font-family: 'Georgia', serif;
    font-style: italic;

    font-size: 36px;
    display: block;
    margin-bottom: 20px;
    /*transform: matrix(1, -0.03, 0.03, 1, 0, 0);*/
}
#gameDescription .description {
    font-size: 16px;
    /*transform: matrix(1, -0.03, 0.03, 1, 0, 0);*/
}
#characters {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1040px;
    overflow-y: auto;
    align-content: center;
}


.labelTitle {
    font-family: 'Georgia', serif;
    font-style: italic;

    height: 34px;
    background: transparent url(../images/label_title.png) no-repeat;
    padding-left: 22px;
    font-size: 20px;
    line-height: 34px;
    margin-bottom: 10px;
}

#charactersContainer {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.characterCard {
    display: inline-block;
    text-align: left;
    width: 300px;
    height: 130px;
    border-width: 5px;
    border-style: solid;
    border-image-source: linear-gradient(to right, #87d3d6 0%,#a9d0c9 100%);
    border-image-slice: 1;

    position: relative;
    margin: 5px 10px;

    background: #f1f1f1;
    box-shadow: 5px 5px 5px #F1F1F1;
}

.characterCard .characterImg {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 90px;
    border: 2px solid #87d3d6;
    overflow: hidden;
    background: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
}
.characterCard .characterData {
    position: absolute;
    top: 15px;
    left: 90px;
    right: 15px;
    font-size: 11px;
    line-height: 16px;
}
.characterData div {
    max-height: 18px;
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}
.characterData span {
    font-size: 12px;
    font-style: italic;
    font-family: 'Georgia';
}
.characterCard .characterBtns {
    position: absolute;
    bottom: -15px;
    right: 25px;
}

.approvalScore:after, #bioApproval:after {
    content: "%";
}


.diamondCharPicture {
    overflow: hidden;
    width: 55px;
    height: 55px;
    transform: rotate(-45deg);
    margin-left: 6px;
}

.diamondCharPicture img {
    transform: rotate(45deg);
    max-width: none;
    max-height: none;
    width: 77px;
    margin-left: -10px;
    margin-top: -10px;
}