/*

:root {
    --ruffle-blue: #37528c;
    --ruffle-orange: #ffad33;
    --splash-screen-background: #31497d;
}
body {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
    font-family: Lato, sans-serif;
    display: flex;
    flex-flow: column;
    background: black;
}
*/

body {
/*
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  margin: 0;
  font-family: Lato, sans-serif;
  */
  display: flex;
  flex-flow: column;
   user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  
}
  
#loadingScreen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    background-color: #000;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
	    background-size: cover !important;
}


#startButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-sizing: inherit;

    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    font-size: 25px;
    line-height: 45px;
    text-transform: uppercase;
    font-weight: bolder;
    text-decoration: none;
    width: fit-content;
    padding-left: 40px;
    padding-right: 40px;
    white-space: nowrap;
    height: 45px;
    border: 0;
    color: #fff !important;
    border-radius: 35px;
    text-align: center;
    background-color: #1aaffff5; /*#1aafffad;*/
    box-shadow: 0 0 0 0 #222, 0 0px 0px 0 #111, inset 0 0px 0px 0 rgba(250, 250, 250, 0.2), inset 0 0px 0px 0px rgba(0, 0, 0, 0.5);
}


/*
#startButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-family: Arial;
    text-align: center;
    cursor: pointer;
    display: none;
    background-color: #ffad33;
    padding: 10px 20px;
}
*/
#startButton:hover {
    color: #fff;
    background-color: #f63a3ade;
}
#loadSpinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border: 7px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    border-top-color: #fff;
    animation: 1s linear infinite spin;
    -webkit-animation: 1s linear infinite spin;
}
@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}
@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}
#loadingScreenC {
    /*color: #222222e8;*/
	color: #fff;
    max-width: 316px;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: Arial;
    font-size: 24px;
    align-items: center;
}
#progressBarOuter {
    background-color: #fff;
    height: 10px;
    display: none;
}
#progressBarInner {
    background-color: #ff0000b3;
    width: 0%;
    height: 10px;
}
#progressBarC {
    display: block;
}
#progressBarTxt {
    color: #fff;
    max-width: 316px;
    height: 10px;
    margin-top: 5px;
    font-family: Arial;
    font-size: 24px;
}
#loadingScreenC {
    display: none;
}
#playframe {
    position: relative;
    flex: 1;
}
#overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    border: 8px dashed #1a4cff;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    margin: 10px 5px;
}
#overlay.drag {
    opacity: 1;
    transition-timing-function: ease-out;
}
#zone_controller {
    position: absolute;
   left: 0px;
    bottom: 0;
    z-index: 5;
    width: 0px;
    min-width: 0px;
    height: 100%;
	top: 0;
}
#wasd_controller {
    width: 15vw;
    height: 15vw;
    padding: 10px;
    position: absolute;
    left: 10px;
    bottom: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

button, html input[type="button"] {
    cursor: none;
}
	
.btn {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
	margin-left:5px;
	margin-right:5px;
	margin-bottom:5px;
	padding:3px;
	 color: #fff;
	  font-size: 15px;
	  border-radius: 30px;
    background-color: #f63a3a;
    border-color: #f63a3a;
    cursor: pointer;
}



.key_btn {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
#key_up_btn {
    position: absolute;
    left: 50%;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(-50%, -10%);
}
#key_down_btn {
    position: absolute;
    left: 50%;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(-50%, 160%);
}
#key_left_btn {
    position: absolute;
    top: 50%;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(-10%, -50%);
}
#key_right_btn {
    position: absolute;
    top: 50%;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(160%, -50%);
}
#zone_buttons {
    position: absolute;
    right: 0;
    top: 0;
    width: 20%;
    height: 100%;
}

#btn1 {
    position: absolute;
    right: 10px;
    bottom: 95px;
    z-index: 5;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
	  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

#btn1:active {
    background-color:rgba(255, 255, 255, 0.8);
}


#btn2 {
    position: absolute;
    right: 60px;
    bottom: 40px;
    z-index: 5;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
	  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

#btn2:active {
    background-color:rgba(255, 255, 255, 0.8);
}





#btn3 {
    position: absolute;
    right: 110px;
    bottom: 95px;
    z-index: 5;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
	  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

#btn3:active {
    background-color:rgba(255, 255, 255, 0.8);
}


#btn4 {
    position: absolute;
    right: 60px;
    bottom: 150px;
    z-index: 5;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    background-color: rgba(125, 255, 100, 0.1);
    color: #fff;
    font-weight: bold;
	  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

#btn4:active {
    background-color:rgba(125, 255, 100, 0.8);
}

#player {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
}
#nav {
    width: 100%;
    background: var(--ruffle-blue);
    box-shadow: 0 3px 6px 5px var(--ruffle-blue);
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: white;
    padding: 10px 0 5px;
    margin-bottom: 5px;
	display: none;
}
.gamepad-ctr {
    flex-direction: row;
}
#title {
    transition: opacity 0.5s;
}
#title:hover {
    opacity: 0.5;
}
#title img {
    height: 32px;
}
#file-picker select,
#file-picker input,
#author {
    margin-left: 5px;
}
#local-file-container,
#sample-swfs-container {
    display: inline-block;
    vertical-align: middle;
}
#local-file {
    width: 0;
    opacity: 0;
    position: absolute;
}
#fullscreen {
    width: 0;
    opacity: 0;
    position: absolute;
}
#local-file-label {
    color: var(--ruffle-blue);
    padding: 3px 10px;
    margin: 5px 2px;
    cursor: pointer;
    border-radius: 50px;
    background-color: white;
}
#local-file-name {
    min-width: 150px;
    display: inline-block;
    font-size: smaller;
}
#sample-swfs {
    background-color: white;
    color: var(--ruffle-blue);
    border: 1px solid white;
    border-radius: 5px;
}
#author-container {
    font-size: small;
}
#author {
    color: var(--ruffle-orange);
}
.hidden {
    display: none !important;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.modal-content {
    background-color: var(--ruffle-blue);
    margin: 15vh auto;
    padding: 20px;
    border: 2px solid white;
    width: 300px;
    height: 270px;
    overflow: auto;
}
.hidden {
    visibility: hidden;
}
#dpad {
    width: 183px;
    height: 183px;
    position: absolute;
    left: 10px;
    bottom: 40px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 10%;
}
#dpad_container_hidden {
    width: 15vw;
    height: 15vw;
    padding: 10px;
    position: absolute;
    left: 1px;
    bottom: 60px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 10%;
}
#dpad_container {
    padding: 10px;
    width: 15vw;
    height: 15vw;
    position: absolute;
    border-radius: 999px;
    left: 1px;
    bottom: 40px;
    background-color: rgba(255, 255, 255, 0.1);

}
@media screen and (orientation: portrait) {
    #dpad_container {
        width: 30vw;
        height: 30vw;
    }
    #wasd_controller {
        width: 30vw;
        height: 30vw;
    }
    #dpad_container_hidden {
        width: 30vw;
        height: 30vw;
    }
}
#img_gamepad_arrows {
    z-index: 100;
}
.dpad_button {
    background-color: #777;
    opacity: 0.3;
    border: none;
    color: white;
    text-decoration: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
	  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}
.dpad_button:hover {
  opacity: 0.5;

}
.dpad_button_pressed {
   opacity: 0.5;
	
}
#dpad_upleft {
    border-top-left-radius: 10px;
}
#dpad_upright {
    border-top-right-radius: 10px;
}
#dpad_downleft {
    border-bottom-left-radius: 10px;
}
#dpad_downright {
    border-bottom-right-radius: 10px;
}
/*
.button_ {
    border: none;
    color: white;
    text-decoration: none;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
#button_x {
    background-color: #04aa6d;
    opacity: 0.3;
    right: 110px;
    bottom: 30px;
}
#button_x:hover {
    opacity: 0.5;
}
#button_o {
    background-color: #aa046d;
    opacity: 0.3;
    right: 30px;
    bottom: 110px;
}
#button_o:hover {
    opacity: 0.5;
}
*/
#box {
    width: 100%;
    min-width: 560px;
    min-height: 410px;
    background-color: #bcc;
    position: relative;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
#open-modal {
    vertical-align: middle;
    cursor: pointer;
}
#metadata {
    margin: 0 auto;
}
#metadata td {
    padding: 2px 1px;
    border: 1px solid #ddd;
    color: var(--ruffle-orange);
}
#metadata tr td:nth-child(1) {
    font-weight: bold;
    padding: 0 10px;
}
#exitFullscreen {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 30px;
    color: var(--ruffle-orange);
    cursor: pointer;
    display: none;
    z-index: 2000;
}

.btn_show_keyboard_fullscreen {
    position: absolute;
    top: 20px;
    left: 105px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: none;
    z-index: 2000;
    background-color: transparent;
    border: 0;
}


.btn_show_gamepad {
    position: absolute;
    top: 20px;
    left: 5px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: none;
    z-index: 2000;
    background-color: transparent;
    border: 0;
}



@media only screen and (max-width: 800px) {
    #local-file-container,
    #sample-swfs-container {
        display: block;
    }
    #local-file-container {
        margin-bottom: 10px;
    }
}
@media only screen and (max-width: 600px) {
    #local-file-static-label,
    #sample-swfs-label {
        display: block;
        margin-bottom: 5px;
    }
    #author-container {
        font-size: 12px;
        text-align: center;
    }
    #nav {
        flex-flow: column;
    }
}
