html {
    padding: env(safe-area-inset);
}
body {
    color: #61443e;
    font-family:Monospace;
    font-size:13px;
    text-align:center;
    background: url('bk.jpg');
    background-size: 100%;
    margin: 0px;
    overflow: hidden;
    height:100%;
    width: 100%;
}
#container {
    width: 100%;
    height: 100%;
    display: block;
}
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#loadingSpinner {
    color: #ffffff;
    font-size: 20px;
    background-color:rgba(0, 0, 0, 0.0);
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
#count_num {
    color: #ffffff;
    font-size: 20px;
    background-color:rgba(0, 0, 0, 0.0);
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
#wrong_way {
    color: #990000;
    font-size: 40px;
    background-color:rgba(0, 0, 0, 0.0);
    position: fixed;
    top: 20%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
#race_time {
    color: #ffffff;
    font-size: 40px;
    background-color:rgba(0, 0, 0, 0.0);
    position: fixed;
    top: 5%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
#track_part_count {
    color: #ffffff;
    font-size: 40px;
    background-color:rgba(0, 0, 0, 0.0);

    position: absolute;
    top: 0px;
    right: 0px;
    padding: 5px;
}
#track_win_time {
    color: #ffffff;
    font-size: 20px;
    background-color:rgba(0, 0, 0, 0.0);

    position: absolute;
    top: 40px;
    right: 0px;
    padding: 5px;
}
#touch_controls {
    font-size: 20px;
    background-color:rgba(0, 0, 0, 0.0);
    position: absolute;
    top: 50%;
    right: 0;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}

#pauseTouchControlContainer {
    color: #ffffff;
    background-color:rgba(0, 0, 0, 0.0);
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
}

#toggleCameraTouchControlContainer {
    color: #ffffff;
    background-color:rgba(0, 0, 0, 0.0);
    position: absolute;
    bottom: 0;
}

#debugInfo {
    color: #ffffff;
    font-size: 10px;
    background-color:rgba(0, 0, 0, 0.0);

    position: absolute;
    bottom: 10px;
    right: 0px;
    padding: 5px;
}

.active_control {
    opacity: 1.0;
}

.disabled_control {
    opacity: 0.5;
}

.touch_up {
    background-size: 70px 70px;
    background-image: url('icons/arrow_up.svg');
    width: 70px;
    height: 70px;
    display: block;
}

.touch_down {
    background-size: 70px 70px;
    background-image: url('icons/arrow_down.svg');
    width: 70px;
    height: 70px;
    display: block;
}

.touch_pause {
    background-size: 50px 50px;
    background-image: url('icons/pause.svg');
    width: 50px;
    height: 50px;
    display: block;
}

.touch_toggle_camera {
    background-size: 50px 50px;
    background-image: url('icons/camera.svg');
    width: 50px;
    height: 50px;
    display: block;
}

.touch_border_stick {
    background-size: 100px 100px;
    background-image: url('icons/circle.svg');
    width: 100px;
    height: 100px;
    display: block;
}

.touch_stick {
    background-size: 50px 50px;
    background-image: url('icons/point.svg');
    width: 50px;
    height: 50px;
    display: block;
    position: relative;
}

.hidden {
    display: none;
}

/* The Modal (background) */

.hiddenModal {
    display: none;
}

.pie-modal {
    /*display: block;*/ /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.pie-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.pie-modal-header {
    text-align: right;
    margin-top: -20px;
}

.pie-modal-container {

}

.pie-modal-footer {
    text-align: right;
}

/* The Close Button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.btn-pie-modal-btn-margin {
    margin: 5px;
}

.display-none {
    display: none;
}

/**
    Cards
 */
.card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 200px;
    height: 200px;
    float:left;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card_logo {
    font-size: 50px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.card_not_available {
    color: #aaaaaa;;
}

.card_available {
    color: blue;
}

.card_selected {
    color: green;
}