@import url("./chunkFiveRegular.css");
@import url("./pulseAnim.css");

.loadingText {
    font-size: 5vw;
    color: ivory;
    animation: pulse 0.5s infinite;
}

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    touch-action: none;
    -ms-touch-action: none;
}

#renderCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    touch-action: none;
    -ms-touch-action: none;
}

.uiOverlay {
    display: flex; 
    flex-direction: column;
    position: absolute; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

#uiCentered {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logoContainer {
    position: relative;
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 0;
    height: 25vh;
    padding-top: 3vh;
    padding-bottom: 1vh;
    transition: all 1s linear 0s;
}

#speechAnchor {
    position: absolute;
    width: 30%;
}

.logoSmaller {
    height: 0vh !important;
}

.logo {
    height: 100%;
    cursor: pointer;
}

#sideContainer {
    margin-top: 0.4vw;
    display: none;
}

#uiLoginTray {
    flex-grow: 0;
    flex-shrink: 0; 
}

#uiMain {
    display: flex;
    height: 100%;
}

/* Desktop CSS here */
@media (orientation: landscape) {
    
    #uiMain {
        flex-direction: row;
    }
    
    #sideContainer {
        flex-direction: column;
        width: 15vw;
    }

    #uiLoginTray {
        height: 15vh;
    }

    #bottomRight {
        flex-direction: row;
    }

    #socials {
        margin: 1vw;
        z-index: 1;
        position: absolute;
        right: 0px;
        top: 0px;
    }
}

/* Mobile CSS here */
@media (orientation: portrait) {
    
    #uiMain {
        flex-direction: column;
    }
    
    #sideContainer {
        flex-direction: row;
    }

    #socials {
        display: none !important;
    }
}

#uiSideBar {
    height: 100%;
    display: flex;
    flex-direction: inherit;
}

#uiSideBarAccount {
    flex-grow: 1;
    display: flex;
    flex-direction: inherit;
}

.sideBtn {
    width: 100%;
    height: 100%;
}

#centralUIContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40%;
    width: 95%;
    padding-top: 0.5vh;
    justify-content: center;
    transition: all 1s linear 0s;
}

.uiContainerBigger {
    height: 90% !important;
    margin-top: 1%;
}

#buttonTray {
    display: none;
    flex-direction: row;
    align-items: center;
    height: auto;
    width: 75%;
    padding-top: 4vmin;
    padding-bottom: 4vmin;
    justify-content: center;
}

#imgLogo {
    position: relative;
}

.trayBtn {
    
}

a {
    color: dodgerblue;
}

#bottomRight {
    z-index: 2;
    font-weight: normal;
    color: white;
    font-size: 1.5vmax;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adFooterContainer {
    margin-bottom: 1.5vh;
}

.adFooter {
    background-color: #fff;
    width: 480px;
    height: 90px;
}
@media (max-width: 1150px){
    .adFooter {
        width: 768px;
        height: 90px;
    }
}

/*mobile screen width, show smaller ad*/
@media (max-width: 727px), (max-height: 500px) {
    .adFooter {
        background-color: whitesmoke;
        min-width: 468px;
        min-height: 60px;
        width: 468px;
        height: 60px;
    }
}

#hudTop {
    position: absolute;
    display: flex;
    width: calc(100% - 2vmax);
    top: 0px;
    padding: 2vh;
    flex-direction: row;
    user-select: none;
}

#playBtnContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

#logoImg {
    position: relative;
}

#myGuy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 1vw;
    height: 60%;
    width: 20vw;
    cursor: pointer;
}

#inGameChatBox {
    position: absolute;
    left: 1%;
    bottom: 1%;
    z-index: 2;
    height: 30%;
    width: 20vw;
}

#postGameContainer {
    position: relative;
    height: 95vh;
    width: 90vw;
    margin-right: 5vw;
    margin-left: 5vw;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

#homeAdLeft {
	left:17%;
	top:50%;
	margin-top:-150px;
	position:absolute;
    width:300px;
    height:250px;
    background-color:#fff;
}
@media (max-width: 969px){
    #logoImg{
        width:314px;
        height:auto;
    }
    #homeAdLeft {
        left:0%;
    }
}
