#doc {
	font-family: "Amstrad CPC464 Regular";
	color: yellow;
	font-size: 0.8em;
	bottom: 0px;
	position: absolute;
	width: 100%;
	background-color: rgba(0, 0, 255, 0.5);
}

#doc table tr td {
	text-align: center;
}

#main {
	cursor: pointer;
}

body {
	margin: 0;
	background-color: black;
}


/* Only show controls on portrait mode screens */

@media screen and (min-aspect-ratio: 1/1) {
	.touch-controls {
		display: none;
	}
}


/* From webmsx */
html.crocods-full-screen,
html.crocods-full-screen body {
    background: black;
}

html.crocods-full-screen .crocods-full-screen-hidden {
    display: none;
}

html:not(.crocods-full-screen) .crocods-full-screen-only {
    display: none;
}

html,
body {
    position: relative;
    margin: 0;
    padding: 0;
    font: normal 16px sans-serif;
    color: hsl(0, 0%, 10%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
}

html {
    height: 100%;
    background: hsl(0, 0%, 97%);
}

body {
    min-height: 100%;
    background: hsl(0, 0%, 97%);
}


#crocods {
    text-align: center;
}

#crocods-screen {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .7);
}

.info {
    display: none;
    height: 44px;
    padding-top: 24px;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
}

@media only screen and (max-width: 499px) {
    #info-thin {
        display: block;
    }
}

@media only screen and (min-width: 500px) {
    #info-wide {
        display: block;
    }
}

@media only screen and (max-width: 620px) {
    .trade {
        display: none
    }
}



html.crocods-full-screen,
html.crocods-full-screen body {
    background: black;
}

#crocods-screen-fs,
#crocods-screen-fs div,
#crocods-screen-fs canvas {
    outline: none;
}

#crocods-screen {
    display: inline-block;
    visibility: hidden;
    font-family: sans-serif;
    font-weight: normal;
    margin: 0;
    padding: 0;
    border: 1px solid black;
    background: black;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
}

html.crocods-full-screen #crocods-screen {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
    z-index: 2147483646;
    /* one behind fsElement */
}

html.crocods-started #crocods-screen {
    visibility: visible;
}

#crocods-screen-scroll-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50%;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0 auto;
    font-size: 16px;
    line-height: 28px;
    color: hsl(0, 0%, 4%);
    white-space: nowrap;
    background: hsl(0, 0%, 92%);
    border-radius: 15px;
    box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.7);
    transition: all 1.7s step-end, opacity 1.6s linear;
    opacity: 0;
    z-index: -1;
}

html.crocods-full-screen-scroll-hack #crocods-screen-fs.crocods-scroll-message #crocods-screen-scroll-message {
    opacity: 1;
    bottom: 23%;
    width: 215px;
    height: 56px;
    padding: 13px 20px;
    z-index: 10;
    transition: none;
}

#crocods-screen-fs {
    position: relative;
    background: linear-gradient(90deg, #009 12.5%, #000 12.5%, #000 37.5%, #009 37.5%, #009 62.5%, #000 62.5%, #000 87.5%, #009 87.5%);
  background-size: 6px 6px;
  background-position: 50px 50px;
        text-align: center;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    tap-highlight-color: rgba(0, 0, 0, 0)
}

html.crocods-full-screen #crocods-screen-fs {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2147483647;
}

html.crocods-full-screen-scroll-hack #crocods-screen-fs {
    position: fixed;
    bottom: 0;
    height: 100vh;
}

html.crocods-full-screen #crocods-screen-fs-center {
    /* Used to center and move things horizontally in Landscape Full Screen */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#crocods-screen-canvas-outer {
    display: inline-block;
    position: relative;
    vertical-align: top;
    line-height: 1px;
    z-index: 3;
    box-shadow: 1px 1px 24px black;
}

#canvas {
    display: block;
}

#crocods-bar {
    position: relative;
    left: 0;
    right: 0;
    height: 26px;
    margin: 0 auto;
    border-top: 1px solid black;
    background: hsl(0, 0%, 16%);
    overflow: visible;
    /* for the Menu to show through */
    box-sizing: content-box;
    z-index: 20;
}

#crocods-bar-inner {
    position: absolute;
    overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
}

html.crocods-bar-auto-hide #crocods-bar,
html.crocods-full-screen #crocods-bar {
    position: absolute;
    bottom: 0;
    transition: height 0.08s ease-in-out;
}



#crocods-bar.crocods-narrow .crocods-narrow-hidden,
#crocods-bar.crocods-semi-narrow .crocods-semi-narrow-hidden {
    display: none;
}

.crocods-bar-button {
    display: inline-block;
    width: 24px;
    height: 22px;
    margin: 0 1px;
    background-image: url("../img/icon.png");
    background-repeat: no-repeat;
    background-size: 568px 206px;
    cursor: pointer;
}

.crocods-bar-button.crocods-media-button {
    background-size: 284px 103px;
}

.crocods-bar-button.crocods-hidden {
    display: none;
}

/* Firefox-specific rules */
@-moz-document url-prefix() {
    .crocods-bar-button {
        image-rendering: optimizequality;
    }
}

/* .crocods-bar-button { border: 1px solid yellow; background-origin: border-box; box-sizing: border-box; } */
#crocods-bar-power {
    margin-left: 6px;
}

#crocods-bar-media-icons {
    margin-left: 10px;
}

#crocods-bar-settings-icons {
    float: right;
    margin: 0 5px 0 -4px;
}

#crocods-bar-settings,
#crocods-bar-video,
#crocods-bar-full-screen,
#crocods-bar-scale-plus,
#crocods-bar-scale-minus {
    margin: 0;
}

#crocods-bar-scale-plus {
    width: 21px;
}

#crocods-bar-scale-minus {
    width: 18px;
}

#crocods-bar-text {
    width: 32px;
    float: right;
}

#crocods-bar-keyboard {
    width: 36px;
}

.crocods-bar-mobile #crocods-bar-settings-icons>* {
    margin: 0 0 0 6px;
}


#crocods-bar-logo {
    position: absolute;
    left: 0;
    right: 0;
    width: 86px;
    margin: 0 auto;
}


#crocods-logo {
    position: absolute;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
}

.crocods-keyboard-key, .crocods-joystick-key {
    position: absolute;
    height: 25px;
    padding: 5px 0 0;
    overflow: hidden;
    font-weight: normal;
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    vertical-align: top;
    color: white;
    background: hsl(0, 0%, 66%);
    border: 3px solid hsl(0, 0%, 50%);
    border-top: 1px solid hsl(0, 0%, 54%);
    border-bottom: 5px solid hsl(0, 0%, 33%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 1px 0 1px rgb(0, 0, 0);
    box-sizing: border-box;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

.crocods-keyboard-key.crocods-keyboard-key-dark {
    background: hsl(0, 0%, 46%);
    border-color: hsl(0, 0%, 36%);
    border-top-color: hsl(0, 0%, 40%);
    border-bottom-color: hsl(0, 0%, 24%);
}

.crocods-keyboard-key.crocods-keyboard-key-red {
    background: hsl(0, 70%, 54%);
    border-color: hsl(0, 70%, 36%);
    border-top-color: hsl(0, 70%, 40%);
    border-bottom-color: hsl(0, 70%, 28%);
}

.crocods-keyboard-key.crocods-keyboard-key-blue {
background: rgb(70, 85, 180);
border-color: hsl(232, 44%, 37%);
border-top-color: hsl(232, 44%, 40%);
border-bottom-color: hsl(232, 44%, 24%);
}

.crocods-keyboard-key.crocods-keyboard-key-green {
    background: rgb(0, 194, 26);
    border-color: hsl(128, 100%, 37%);
    border-top-color: hsl(128, 100%, 40%);
    border-bottom-color: hsl(128, 100%, 24%);
    }
    

.crocods-keyboard-key.crocods-keyboard-key-unmapped {
    color: rgb(30, 30, 30);
    font-weight: bold;
    -webkit-font-smoothing: initial;
    -moz-osx-font-smoothing: initial;
}

.crocods-keyboard-alpha,
.crocods-keyboard-num,
.crocods-keyboard-arrows {
    position: absolute;
}

.crocods-keyboard-alpha>div,
.crocods-keyboard-num>div,
.crocods-keyboard-arrows>div {
    position: absolute;
}

.crocods-keyboard-num {
    left: 416px;
}

.crocods-keyboard-arrows {
    top: 104px;
    left: 417px;
}

.crocods-keyboard-f1,
.crocods-keyboard-f2,
.crocods-keyboard-f3,
.crocods-keyboard-f4,
.crocods-keyboard-f5,
.crocods-keyboard-stop,
.crocods-keyboard-select,
.crocods-keyboard-home,
.crocods-keyboard-insert,
.crocods-keyboard-delete {
    height: 18px;
    padding-top: 2px;
    font-size: 9px;
    line-height: 9px;
    border-width: 1px 2px 4px;
}

.crocods-keyboard-key.crocods-keyboard-keydown {
    border-bottom: 3px solid hsl(0, 0%, 33%);
    height: 22px;
    top: 3px;
}

.crocods-keyboard-stop {
    margin-left: 10px;
    background: hsl(0, 70%, 54%);
    border-color: hsl(0, 70%, 36%);
    border-top-color: hsl(0, 70%, 40%);
    border-bottom-color: hsl(0, 70%, 28%);
}

.crocods-keyboard-enter {
    border-radius: 2px 3px 0 0;
    border-top: none;
    box-shadow: none;
    overflow: visible;
}

.crocods-keyboard-enter::after {
    content: "";
    display: block;
    position: absolute;
    left: -10px;
    bottom: -7px;
    width: 20px;
    height: 2px;
    background: black;
}

.crocods-keyboard-enter_x1 {
    border-radius: 2px 0 0 0;
    border-width: 1px;
    border-right: none;
    box-shadow: -1px 1px 0 0 black;
}

.crocods-keyboard-enter_x2 {
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: 0 3px 0 0;
    box-shadow: none;
    box-shadow: 1px 1px 0 0 black;
}

/* background: rgb(70, 85, 180);
border-color: hsl(232, 44%, 37%);
border-top-color: hsl(232, 44%, 40%);
border-bottom-color: hsl(232, 44%, 24%); */

.crocods-keyboard-enter_x2::after {
    content: "";
    display: block;
    width: 30px;
    height: 50px;
    background: inherit;
    border: 3px solid hsl(232, 44%, 36%);
    border-top: 1px solid hsl(232, 44%, 40%);
    border-bottom: 5px solid hsl(232, 44%, 24%);
    border-radius: 0 3px 0 0;
    box-shadow: 1px 2px 0 0 black, 1px 0 0 0 black;
    box-sizing: border-box;
}
.crocods-keyboard-text {
font-size: 7px;
}

.crocods-keyboard-text2line {
    font-size: 7px;
    padding-top: 1px;
    line-height: 8px;
}

.crocods-keyboard-capslock {
    margin-left: 0px;
}

.crocods-keyboard-space {
    left: 103px;
    width: 217px;
}

.crocods-keyboard-dead {
    left: 333px;
    width: 26px;
}

.crocods-keyboard-shift2 {
    left: 360px;
    width: 50px;
}

.crocods-keyboard-code {
    left: 321px;
    width: 89px;
}

.crocods-keyboard-num .crocods-keyboard-key {
    height: 23px;
    padding-top: 4px;
}

.crocods-keyboard-arrows .crocods-keyboard-key {
    font-size: 8px;
    line-height: 9px;
    background: rgb(70, 85, 180);
    border-width: 1px 2px 4px;
    border-radius: 2px 2px 0 0;
    border-color: hsl(232, 44%, 37%);
    border-top-color: hsl(232, 44%, 40%);
    border-bottom-color: hsl(232, 44%, 24%);
}

.crocods-keyboard-left,
.crocods-keyboard-right {
    width: 26px;
    height: 33px;
    padding: 10px 0 0 4px;
}

.crocods-keyboard-up,
.crocods-keyboard-down {
    width: 37px;
    height: 23px;
    padding: 5px 0 0 4px;
}



.crocods-keyboard-up::after,
.crocods-keyboard-down::after,
.crocods-keyboard-left::after,
.crocods-keyboard-right::after {
    content: "";
    display: block;
    border: 4px solid transparent;
    width: 6px;
    height: 6px;
    box-sizing: border-box;
}

.crocods-keyboard-up::after {
    border-bottom: 5px solid white;
    border-top-width: 0;
}

.crocods-keyboard-up.crocods-keyboard-key-unmapped::after {
    border-bottom-color: black;
}

.crocods-keyboard-down::after {
    border-top: 5px solid white;
    border-bottom-width: 0;
}

.crocods-keyboard-down.crocods-keyboard-key-unmapped::after {
    border-top-color: black;
}

.crocods-keyboard-left::after {
    border-right: 5px solid white;
    border-left-width: 0;
}

.crocods-keyboard-left.crocods-keyboard-key-unmapped::after {
    border-right-color: black;
}

.crocods-keyboard-right::after {
    border-left: 5px solid white;
    border-right-width: 0;
}

.crocods-keyboard-right.crocods-keyboard-key-unmapped::after {
    border-left-color: black;
}

.crocods-keyboard-narrow .crocods-keyboard-num {
    display: none;
}

.crocods-keyboard-narrow .crocods-keyboard-arrows {
    left: 336px;
}

.crocods-keyboard-narrow .crocods-keyboard-space {
    width: 155px;
}

.crocods-keyboard-narrow .crocods-keyboard-code {
    left: 259px;
    width: 39px;
}

.crocods-keyboard-narrow .crocods-keyboard-dead {
    left: 299px;
    top: 25px;
}

.crocods-keyboard-narrow .crocods-keyboard-shift2 {
    display: none;
}

.crocods-keyboard-narrow .crocods-keyboard-left,
.crocods-keyboard-narrow .crocods-keyboard-right {
    top: 9px;
    width: 23px;
    height: 27px;
    padding: 7px 0 0 5px;
    border-bottom-width: 3px;
}

.crocods-keyboard-narrow .crocods-keyboard-up,
.crocods-keyboard-narrow .crocods-keyboard-down {
    left: 24px;
    width: 26px;
    padding-left: 7px;
    border-bottom-width: 3px;
}

.crocods-keyboard-narrow .crocods-keyboard-right {
    left: 51px;
    padding-left: 8px;
}

#crocods-virtual-keyboard {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 34px;
    overflow: hidden;
    margin: 0 auto;
    padding: 5px 0 0 4px;
    width: 494px;
    height: 134px;
    background: hsl(0, 0%, 16%);
    box-sizing: border-box;
    transform: translateX(-50%);
    transform-origin: center bottom;
    transition: height 0.3s ease-in-out;
    text-align: left;
    z-index: 10;
    box-shadow: 1px 1px 24px black;
}

html.crocods-full-screen.crocods-virtual-keyboard-active #crocods-virtual-keyboard {
    display: block;
}


#crocods-touch-left,
#crocods-touch-right {
    position: absolute;
    z-index: 10;
}

#crocods-touch-speed {
    display: none;
}


.crocods-touch-dir-joy .crocods-keyboard-key, .crocods-touch-dir-joy .crocods-joystick-key {
    font-size: 8px;
    line-height: 9px;
    background: rgb(70, 85, 180);
    border-width: 1px 2px 4px;
    border-radius: 2px 2px 0 0;
    border-color: hsl(232, 44%, 37%);
    border-top-color: hsl(232, 44%, 40%);
    border-bottom-color: hsl(232, 44%, 24%);
}

.crocods-joystick-up, .crocods-joystick-down {
    left: 27px;
    width: 26px;
    height: 33px;
    padding: 10px 0 0 7px;
}

.crocods-joystick-left, .crocods-joystick-right {
    top: 16px;
    width: 26px;
    height: 33px;
    padding: 10px 0 0 6px;
}

.crocods-joystick-left {
    left: 0px;
    padding-left: 7px;
}

.crocods-joystick-right {
    left: 54px;
    padding-left: 10px;
}

.crocods-joystick-down {
    top: 33px;
    padding-top: 10px;
}


.crocods-joystick-up::after, .crocods-joystick-down::after, .crocods-joystick-left::after, .crocods-joystick-right::after {
    content: "";
    display: block;
    border: 4px solid transparent;
    width: 6px;
    height: 6px;
    box-sizing: border-box;
}

.crocods-joystick-left::after {
    border-right: 5px solid white;
    border-left-width: 0;
}

.crocods-joystick-up::after {
    border-bottom: 5px solid white;
    border-top-width: 0;
}

.crocods-joystick-right::after {
    border-left: 5px solid white;
    border-right-width: 0;
}

.crocods-joystick-down::after {
    border-top: 5px solid white;
    border-bottom-width: 0;
}

.crocods-touch-dir {
    position: relative;
    color: hsl(0, 0%, 75%);
    border-radius: 100%;
    z-index: 2;
    width: 84px;
    height: 68px;
}

.crocods-touch-dir-right {
    position: relative;
    color: hsl(0, 0%, 75%);
    border-radius: 100%;
    z-index: 2;
    width: 38px;
    height: 228px;
    top: -9px;
}



.crocods-touch-dir-joy .crocods-touch-dir-up,
.crocods-touch-dir-joy .crocods-touch-dir-left {
    position: absolute;
    background: hsl(0, 0%, 31%);
    border-radius: 2px 2px 0 0;
    box-shadow: inset 1px 2px 0px hsl(0, 0%, 43%), inset -1px -1px hsl(0, 0%, 19%), 0 3px 0 1px hsl(0, 0%, 21%);
}

.crocods-touch-dir-joy .crocods-touch-dir-up {
    width: 26px;
    height: 78px;
    top: 24px;
    left: 52px;
}

.crocods-touch-dir-joy .crocods-touch-dir-left {
    width: 78px;
    height: 25px;
    top: 51px;
    left: 26px;
}

.crocods-touch-dir-joy .crocods-touch-dir-left::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 23px;
    width: 33px;
    height: 22px;
    background: inherit;
    z-index: 1;
}

.crocods-touch-dir-joy .crocods-touch-dir-left::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 30px;
    height: 17px;
    width: 17px;
    border-radius: 100%;
    box-shadow: inset 0 0 2px hsl(0, 0%, 22%), inset 1px 2px 3px 1px hsl(0, 0%, 26%), inset -1px -2px 1px hsl(0, 0%, 64%);
    z-index: 2;
}

.crocods-touch-dir-key .crocods-touch-dir-up,
.crocods-touch-dir-key .crocods-touch-dir-left,
.crocods-touch-dir-key .crocods-touch-dir-down,
.crocods-touch-dir-key .crocods-touch-dir-right {
    position: absolute;
    background: rgb(70, 85, 180);
    border: 0 solid hsl(232, 44%, 37%);
    border-width: 1px 2px 4px;
    border-top-color: hsl(232, 44%, 40%);
    border-bottom-color: hsl(232, 44%, 24%);
    border-radius: 2px 2px 0 0;
    box-sizing: border-box;
}

.crocods-touch-dir-key .crocods-touch-dir-up,
.crocods-touch-dir-key .crocods-touch-dir-down {
    left: 50px;
    width: 30px;
}

.crocods-touch-dir-key .crocods-touch-dir-up {
    top: 26px;
    height: 25px;
    border-bottom-width: 2px;
}

.crocods-touch-dir-key .crocods-touch-dir-down {
    bottom: 26px;
    height: 27px;
}

.crocods-touch-dir-key .crocods-touch-dir-left,
.crocods-touch-dir-key .crocods-touch-dir-right {
    top: 47px;
    width: 25px;
    height: 36px;
}

.crocods-touch-dir-key .crocods-touch-dir-left {
    left: 24px;
}

.crocods-touch-dir-key .crocods-touch-dir-right {
    right: 24px;
}

.crocods-touch-dir-key .crocods-touch-dir-up::after {
    content: "";
    position: absolute;
    top: 26px;
    left: -1px;
    width: 28px;
    height: 22px;
    background: hsl(0, 0%, 20%);
}

.crocods-touch-dir .crocods-arrow-up,
.crocods-touch-dir .crocods-arrow-down,
.crocods-touch-dir .crocods-arrow-left,
.crocods-touch-dir .crocods-arrow-right {
    position: absolute;
    border-width: 5px;
    z-index: 2;
}

.crocods-touch-dir .crocods-arrow-up {
    top: 26px;
    left: 60px;
    border-bottom-width: 11px;
}

.crocods-touch-dir .crocods-arrow-down {
    bottom: 29px;
    left: 60px;
    border-top-width: 11px;
}

.crocods-touch-dir .crocods-arrow-left {
    top: 58px;
    left: 26px;
    border-right-width: 11px;
}

.crocods-touch-dir .crocods-arrow-right {
    top: 58px;
    right: 26px;
    border-left-width: 11px;
}

.crocods-touch-button {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    font-size: 10px;
    line-height: 50px;
    color: hsl(0, 0%, 79%);
    border-radius: 100%;
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 0;
}

.crocods-touch-button::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    z-index: -1;
}

.crocods-touch-button-joy::before,
.crocods-touch-button-none::before {
    width: 30px;
    height: 28px;
    top: 10px;
    left: 4px;
    border-radius: 100%;
}

#crocods-screen-fs.crocods-touch-config-active .crocods-touch-button-none::before {
    border: 2px solid hsl(0, 0%, 30%);
}

.crocods-touch-button-joy.crocods-touch-button-joy-A::before {
    border: none;
    background: hsl(120, 76%, 31%);
    box-shadow: inset 0 2px hsl(120, 76%, 41%), 0 4px 0 1px hsl(120, 76%, 20%);
}

.crocods-touch-button-joy.crocods-touch-button-joy-B::before {
    border: none;
    background: hsl(0, 60%, 35%);
    box-shadow: inset 0 2px hsl(0, 60%, 48%), 0 4px 0 1px hsl(0, 60%, 23%);
}

.crocods-touch-button-joy.crocods-touch-button-joy-AB::before {
    border: none;
    background: hsl(240, 50%, 48%);
    box-shadow: inset 0 2px hsl(240, 50%, 60%), 0 4px 0 1px hsl(240, 50%, 31%);
}

.crocods-touch-button-key {
    font-size: 8px;
    line-height: 56px;
}

.crocods-touch-button-key::before {
    width: 33px;
    height: 30px;
    top: 13px;
    left: 2px;
    background: hsl(0, 0%, 44%);
    border: 4px solid hsl(0, 0%, 31%);
    border-top: 2px solid hsl(0, 0%, 54%);
    border-bottom: 6px solid hsl(0, 0%, 22%);
    border-radius: 3px 3px 1px 1px;
}

#crocods-touch-T_A {
    z-index: 7
}

#crocods-touch-T_B {
    z-index: 6
}

#crocods-touch-T_C {
    z-index: 5
}

#crocods-touch-T_D {
    z-index: 4
}

#crocods-touch-T_E {
    z-index: 3
}

#crocods-touch-T_F {
    z-index: 2
}

#crocods-touch-T_G {
    z-index: 1
}

#crocods-touch-T_X {
    z-index: 1
}

#crocods-touch-T_Y {
    z-index: 1
}


html.crocods-full-screen.crocods-touch-active.crocods-dir-big #crocods-touch-left .crocods-touch-dir {
    transform: scale(1.2);
    transform-origin: left center;
}

html.crocods-full-screen.crocods-touch-active.crocods-touch-mirror.crocods-dir-big #crocods-touch-left .crocods-touch-dir {
    transform-origin: right center;
}

#crocods-touch-left .crocods-touch-button {
    margin-left: 11px;
}

html.crocods-touch-mirror #crocods-touch-left .crocods-touch-button {
    margin-left: 47px;
}

#crocods-touch-T_X {
    margin-bottom: var(--touch-left-button-vert-margin);
}

#crocods-touch-T_Y {
    margin-top: var(--touch-left-button-vert-margin);
}

@media only screen and (orientation: landscape) {

    /* Landscape */
    #crocods-touch-left {
        left: 0px;
        transform-origin: left;
        --touch-left-button-vert-margin: 10px;
        height: 100%;
        top: 0px;
        display: flex;
    justify-content: center;
    align-items: center;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-dir-big #crocods-touch-left {
        left: calc(-6px - 143px);
        --touch-left-button-vert-margin: 20px;
    }

    html.crocods-touch-mirror #crocods-touch-left {
        right: calc(-6px - 119px);
        left: initial !important;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-touch-mirror.crocods-dir-big #crocods-touch-left {
        right: calc(0px);
    }

    #crocods-touch-right {
        right: 30px;
        transform-origin: right;
        height: calc(100% - 41px);
        top: 0px;
        display: flex;
    justify-content: center;
    align-items: center;

    }

    html.crocods-touch-mirror #crocods-touch-right {
        left: calc(5px - 80px);
        right: initial !important;
    }

    #crocods-touch-speed {
        position: absolute;
        left: -106px;
        top: 8px;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-dir-big #crocods-touch-speed {
        left: -130px;
    }

    html.crocods-touch-mirror #crocods-touch-speed {
        right: -106px;
        left: initial !important;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-touch-mirror.crocods-dir-big #crocods-touch-speed {
        right: -130px;
    }

    /* Adjust centered elements leaving space to the touch controls on both sides */
    html.crocods-full-screen.crocods-touch-active #crocods-screen-fs-center {
        /* left: 119px;
        right: 80px; */
    }

    

    html.crocods-full-screen.crocods-touch-active.crocods-dir-big #crocods-screen-fs-center {
        left: 143px;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-touch-mirror #crocods-screen-fs-center {
        right: 119px;
        left: 80px;
    }

    html.crocods-full-screen.crocods-touch-active.crocods-touch-mirror.crocods-dir-big #crocods-screen-fs-center {
        right: 143px;
    }
}




@media only screen and (orientation: portrait) {

    /* Portrait */
    #crocods-touch-left {
        left: 2px;
        bottom: 182px;
    }

    html.crocods-touch-mirror #crocods-touch-left {
        right: 2px;
        left: initial !important;
    }

    #crocods-touch-right {
        right: 5px;
        bottom: 36px;
        width: 112px;
        height: 228px;
    }

    html.crocods-touch-mirror #crocods-touch-right {
        left: 77px;
        right: initial !important;
    }

   
    .crocods-touch-button {
        position: absolute;
    }

    #crocods-touch-T_A {
        bottom: 75%;
        right: 50%;
    }

    #crocods-touch-T_B {
        bottom: 100%;
        right: 0%;
    }

    #crocods-touch-T_C {
        bottom: 50%;
        right: 100%;
    }

    #crocods-touch-T_D {
        bottom: 25%;
        right: 50%;
    }

    #crocods-touch-T_E {
        bottom: 50%;
        right: 0%;
    }

    #crocods-touch-T_F {
        bottom: 0%;
        right: 100%;
    }

    #crocods-touch-T_G {
        bottom: 0%;
        right: 0%;
    }

    #crocods-touch-T_X {
        display: none;
    }

    #crocods-touch-T_Y {
        bottom: -88px;
    }

    html.crocods-touch-mirror #crocods-touch-T_B {
        right: 100%;
    }

    html.crocods-touch-mirror #crocods-touch-T_C {
        right: 0%;
    }

    html.crocods-touch-mirror #crocods-touch-T_E {
        right: 100%;
    }

    html.crocods-touch-mirror #crocods-touch-T_F {
        right: 0%;
    }

    html.crocods-touch-mirror #crocods-touch-T_G {
        right: 100%;
    }

    html.crocods-full-screen.crocods-virtual-keyboard-active #crocods-touch-left,
    html.crocods-full-screen.crocods-virtual-keyboard-active #crocods-touch-right {
        display: none;
    }
}

@media only screen and (orientation: portrait) and (max-device-height: 638px) {

    /* Medium Portrait. Like iPhone 5 */
    #crocods-touch-right {
        bottom: -18px;
    }

    #crocods-touch-T_F,
    #crocods-touch-T_G {
        display: none;
    }
}

@media only screen and (orientation: portrait) and (max-device-height: 518px) {

    /* Short Portrait. Like iPhone 4 */
    #crocods-touch-left {
        bottom: 98px;
    }

    #crocods-touch-right {
        bottom: -74px;
    }

    #crocods-touch-T_E,
    #crocods-touch-T_Y {
        display: none;
    }

    #crocods-touch-T_D {
        bottom: 50%;
        right: 0%;
    }

    html.crocods-touch-mirror #crocods-touch-T_D {
        right: 100%;
    }
}
