@font-face {
    font-family: 'Eirian';
    src: URL('Eirian.ttf') format('truetype');
}

@-webkit-keyframes MOVEBG {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}

button {
    border-radius: 0%;
    border-width: 0px;
    border-color: #555555;
    font-family: "Eirian";
    background-color: #aaaaaa;
}

button:hover {
    background-color: #99aa99;
}

button:active {
    background-color: #aaffaa;
}

h1 {
    font-size: 10vh;
}

#main_menu {
    display: block;
    text-align: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
}

#register_menu {
    display: none;
    text-align: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
}

#options {
    display: none;
}

#main_menu2 {
    display: none;
    text-align: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
}

#charList_menu {
    display: none;
    text-align: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
}

.centerelement {
    align-self: center;
    text-align: center;
    padding-bottom: 10vh;
    padding-top: 5vh;
    margin-left: 10vw;
    margin-right: 10vw;

}

#charlist {
    height: 50vh;
    /* background-color:#CCC; */
    overflow-y: auto;
    scrollbar-width: none;
}

#charlist::-webkit-scrollbar {
    display: none;
}

#charEditor {
    font-size: large;
    display: none;
    margin: 5vh 5vw 5vh;
    padding: 5vh 5vw 5vh;
    background-color: #555555ea;
    width: 80vw;
    height: 80vh;
    position: fixed;
    top: 0px;
    left: 0px;
    overflow-y: auto;
    scrollbar-width: none;
}

#charEditor::-webkit-scrollbar {
    display: none;
}

.EditInput {
    font-size: large;
    background-color: #55555522;
    text-align: center;
}

.edit_charbox {
    font-size: large;
    margin: 1vh 1vw 1vh;
    padding: 1vh 1vw 1vh;
    background-color: #424242;
    width: fit-content;
    height: fit-content;
    border-radius: 5px 5px;

}


#mainWindow {
    display: none;
    width: 100vw;
    height: 100vh;
    margin: none;
    padding: none;
}


@media screen and (max-aspect-ratio: 13/9){

    h1 {
        font-size: 5vh;
    }

    input {
        border-radius: 0px;
        border-width: 1px;
        border-color: #555555;
        font-size: 3vh;
    }
    body {
        margin: 0px;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        font-family: "Eirian";
        background-color: #8b8b8b;
        font-size: 4vh;
    }

    #mainWindow_lside {
        width: 100vw;
        height: 100svh;
        margin: none;
        display: none;
        padding: none;
        position: fixed;
        top: 0px;
        left: 0vw;
        text-align: left;
        background: radial-gradient(rgb(110, 110, 110) 15%, transparent 16%) 0 0, radial-gradient(rgb(110, 110, 110) 15%, transparent 16%) 8px 8px, radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 0 1px, radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 8px 9px;
        background-color: #8b8b8b;
        background-size: 16px 16px;
        overflow-y: auto;
    }

    #mainWindow_canvasdiv {
        width: 100vw;
        height: 100vh;
        margin: none;
        padding: none;
        position: fixed;
        top: 0px;
        left: 0vw;
        background: linear-gradient(63deg, #222 23%, transparent 23%) 7px 0, linear-gradient(63deg, transparent 74%, #222 78%), linear-gradient(63deg, transparent 34%, #222 38%, #222 58%, transparent 62%), #111;
        background-size: 16px 48px;
    }

    .tilePreview {
        width: 20vw;
        height: 20vw;
        margin: none;
        padding: none;
        margin-bottom: 10px;
    }

    .sideMenu {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
        padding: 0px;
        display: block;
        overflow-y: none;
        overflow-x: none;
        width: 100%;
    }

    #groundTiles {
        background-color: #8b8b8b; 
        padding: 10px;
        overflow-y: auto;
        height: 40vh;
        width: 90vw;
    }

    hr {
        border: 5px solid #8b8b8b;
        border-radius: 5px;
        margin-top: none;
        margin-bottom: none;
    }

    .smcatag {
        height: fit-content;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .mobilecontrolls {
        display: block;
        width: 0px;
        height: 0px;
        top: 0px;
        left: 0px;
        position: absolute;
    }
    label {
        font-size: 3vh;
        font-weight: bolder;
        background: #8b8b8b;
    }

    button {
        border-radius: 2%;
        border-width: 0px;
        border-color: #555555;
        font-family: "Eirian";
        margin: 1vh;
        padding-left: 4vw;
        padding-right: 4vw;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 4vh;
        background-color: #d3d3d396;
    }

    .tileBtn {
        margin: 0%;
        padding: 0%;
    }
    #closesidemenu{
        display: none;
        position: absolute;
	    width: 12vh;
	    height: 12vh;
	    margin: 0px;
	    top: 0vh;
        right: 0px;
    }
    #minimap{
        display:none;

    }
    #infopopup{
        position:absolute;
        left: 0vw;
        top: 0px;
        width: 50vw;
        height: 5vh;
        background: #8b8b8b;
        padding: 10px;
        display: none;
    }

}

@media screen and (min-aspect-ratio: 13/9){
    #minimap{
        display:block;
        position:absolute;
        top: 0px;
        left: 20vw;
        z-index: 6;
        border-width: 5px;
        border-color: #8b8b8b;
    }
    #closesidemenu{
        display: none;
    }
    input {
        border-radius: 0px;
        border-width: 1px;
        border-color: #555555;
    }

    body {
        margin: 0px;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        font-family: "Eirian";
        background-size: 60px 60px;
        background-color: #8b8b8b;
        background-image:
            linear-gradient(to right, #777777 2px, transparent 1px),
            linear-gradient(to bottom, #777777, 2px, transparent 1px);

        -webkit-animation: MOVEBG;
        -webkit-animation-duration: 100s;
        -webkit-animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
    }

    #mainWindow_lside {
        width: 20vw;
        height: 100vh;
        margin: none;
        padding: none;
        position: fixed;
        top: 0px;
        left: 0vw;
        text-align: left;
        background: radial-gradient(rgb(110, 110, 110) 15%, transparent 16%) 0 0, radial-gradient(rgb(110, 110, 110) 15%, transparent 16%) 8px 8px, radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 0 1px, radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 8px 9px;
        background-color: #8b8b8b;
        background-size: 16px 16px;
        overflow-y: auto;
    }

    #mainWindow_canvasdiv {
        width: 80vw;
        height: 100vh;
        margin: none;
        padding: none;
        position: fixed;
        top: 0px;
        left: 20vw;
        background:
            linear-gradient(63deg, #222 23%, transparent 23%) 7px 0,
            linear-gradient(63deg, transparent 74%, #222 78%),
            linear-gradient(63deg, transparent 34%, #222 38%, #222 58%, transparent 62%),
            #111;
        background-size: 16px 48px;
    }

    .tilePreview {
        width: 5vw;
        height: 5vw;
        margin: none;
        padding: none;
        margin-bottom: 10px;
    }

    .sideMenu {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100vh;
        padding: 5px;
    }

    #groundTiles {
        background-color: #8b8b8b;
        padding: 10px;
        overflow-y: auto;
        height: 25vh;
    }

    hr {
        border: 5px solid #8b8b8b;
        border-radius: 5px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .smcatag {
        height: auto;
    }

    .mobilecontrolls {
        display: none;
    }

    label {
        font-size: medium;
        font-weight: bolder;
        background: #8b8b8b;
    }

    button {
        border-radius: 0%;
        border-width: 0px;
        border-color: #555555;
        font-family: "Eirian";
        margin: 2px;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 15px;
        background-color: #aaaaaa;
    }

    .tileBtn {
        margin: 0%;
        padding: 0%;
    }
    #infopopup {
        position: absolute;
        left: 21vw;
        top: 0px;
        width: 20vw;
        height: 5vh;
        background: #8b8b8b;
        padding: 10px;
        text-align: center;
        display: none;
    }

}

#up {
	visibility: visible;
	position: absolute;
	top: 0px;
	left: 35vw;
	height: 7vh;
	width: 30vw;
    margin: 0px;
}

#down {
	visibility: visible;
	height: 7svh;
	width: 30vw;
	top: 93svh;
	position: absolute;
	left: 35vw;
	margin: 0px;
}
#myentitys{
    width: 70%;
}
#entityname{
    width: 70%;
}
#left {
	visibility: visible;
	position: absolute;
	height: 10vh;
	width: 15vw;
	top: 40vh;
	left: 0px;
	margin: 0px;
}

#right {
	visibility: visible;
	height: 10vh;
	width: 15vw;
	position: absolute;
	top: 40vh;
	left: 85vw;
	margin: 0px;
}

#mobilecontextmenu {
	visibility: visible;
	position: absolute;
	width: 12vh;
	height: 12svh;
	margin: 0px;
	top: 88svh;
}
select {
    width: 100%;
    border-radius: 0px;
}

#maincanvas {
    display: block;
    width: 100%;
    height: 100%;
}


#lobbylist {
    border: 2px;
    border-radius: 2px;
    padding: 10px;
}

#lobbyscreen {
    display: none;
}


#lobbyscreen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    text-align: center;
    padding-top: 20vh;
}

#loadmapmenu {
    display: none;
}

#loadmapmenu {
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    text-align: center;
    background-color: #8b8b8ba6;
}

.loadmapelement {
    width: fit-content;
    background-color: #8b8b8b;
    padding: 2vw;
    margin: auto;
}

#maplist {
    background-color: #858585;
    padding: 20px;
    height: 50vh;
    overflow-y: auto;
}

.maplistelement {
    margin: 5px;
    padding: 5px;
    width: 90%;
    background-color: #8b8b8b;
}
.mobilearrowimg {
	width: 2vh;
	height: 2vh;
}

#entitynotes{
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    text-align: center;
    background-color: #8b8b8ba6;
}
#entitynotepad{
    width: 100%;
    height:80%;
}
p {
	font-size: large;
	font-weight: bold;
}
#playernotes {
    display: none;
	width: 100vw;
	height: 100vh;
	position: absolute;
	background: #8b8b8baa;
	text-align: center;
	padding: 2vw;
}
#playernotepad {
	width: 70%;
	height: 50%;
	border: whitesmoke;
}