* {
    margin: 0;
    padding: 0;
}
body {
    background: #ccc;
}

html,body {
    overscroll-behavior: none;
    overflow: hidden;
}

img
{
    border: 0;
    text-decoration: none;
}

.tilecont {
    position: absolute;
    background-color: #fff;
    transform: translateZ(0);
    border: 1px solid black;
    width:  160px;
    height: 144px;
}

/* This stuff is coupled with templates/style.css */

div.world-container .tilecont.protected-admin {
    background-color: #ddd;
}

div.world-container .tilecont.protected-members {
    background-color: #eee;
}

div.world-container .tilecont.protected-public {
    background-color: #fff;
}

#yourworld {
    background: #ddd;
    font-family: "Courier New";
    overflow: hidden;
    position: absolute;
    top: 0px;
    left: 0px;
    width:  100vw;
    height: 100vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: text;
}

#yourworld table,
span.cell-content {
  line-height: 18px; /* Prevents oversized rows from large characters */
}
#world-input {
    position:  absolute;
    left: -1000px;
    top:  -1000px;
}

#yourworld table {
    table-layout: fixed;
    line-height: 18px;
    width:  160px;
    height: 144px;
}

span.cell-content {
    display: inline-block;
}

#yourworld table tr {
    height: 18px; /* Prevents undersized rows from large characters */
}


/*
td {
    overflow: hidden;
}
*/


/* below is just for tabs etc. */

a, a:link, a:hover, a:active, a:visited {
    text-decoration: none;
    color: inherit;
}

#topbar {
    position: absolute;
    top: 0;
    width: 100%;
}

#topbar_inner {
    width:100%;
    position:absolute;
}

#announce {
    text-align: center;
}

#announce_close {
    font-size: 11px;
    font-weight: bold;
    color: #636060;
    background-color: #C5C2C2;
    border-radius: 2px;
    padding: 0 3px;
}

#announce_close:hover {
    background: #928E8E;
    color: white;
    cursor: pointer;
}

.ui {
    color: #888;
    font-family: Verdana;
    font-size: 12px;
    z-index: 1;
}

.ui-vis {
    background-color: rgba(0, 0, 255, .1);
    padding: 2px;
}

.tab {
    padding-top: 0;
    top: 0px;
    position: absolute;
}

#paused {
    left: 2px;
    display: none;
}

.message {
    margin-left: auto;
    margin-right: auto;
    padding: 5px 0px;
    width: 60%;
    text-align: center;
    background: #E5E5FF;
    color: #333;
}

.message a {
    color: blue;
}

#announce {
    display:none;
}

#loading {
    font-family: Verdana;
}

#coords {
    display:none;
    position: absolute;
    bottom: 0;
    right: 0;
    color: #555;
    background: #E5E5FF;
}

#zoom-controls {
    position: absolute;
    right:  0;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#zoom-controls button {
    margin-bottom: 1px;
    width: 20px;
    height: 20px;
}
#zoom-controls #zoom-label {
    background: rgb(230, 230, 255);
    padding: 2px;
    margin-bottom: 1px;
    border: none;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
}

#minimap {
    width: 30vw;
    height: 30vh;
    border:  1px solid black;
    background: white;
    position: absolute;
    bottom: -1px;
    left: -1px;
    z-index: 1;
}

#accept {
    right: 60px;
}

.menu {
    right: 0;
    display: none; /* title is shown by makeMenu */
}

#menu {
    cursor: pointer;
}

#menu.hover {
    /* change style to match menu content on hover */
    color: #555;
    background: #E5E5FF;
    border-left: 1px solid #ccc;
}

.button {
    border: none;
    cursor: pointer;
    color: #888;
    padding: 2px;
    background: rgb(230, 230, 255);
}

.coordLink {
    color: green;
    text-decoration: underline;
    cursor: pointer;
}

.urlLink {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.hidden {
    visibility: hidden;
}

/*** NAV MENU code taken from jquery.droppy ***/

#nav {
 display: none;
 position: absolute;
 text-align: right;
 top: 1.5em; /* adjusted by JS */
 background: #E5E5FF; /* Like title w/white background, no alpha */
 width: 8em;
 color: #555;
 border-left: 1px solid #ccc;
 border-bottom: 1px solid #ccc;
}

#nav li {
    display: block;
    list-style: none;
    position: relative;
    cursor: pointer;
    border-top: 1px solid #ccc;
}

#nav li:first-child {
  border-top: 0;
}

#nav a {
    display: block;
}

* html #nav ul { line-height: 0; } /* IE6 "fix" */

#nav a { }
#nav li.hover { background-color: white; }
/* #nav ul a { border-bottom: none; } - I also needed this for IE6/7 */


/*** END NAV MENU ***/


/*** SIMPLEMODAL code taken from jquery.simplemodal ***/
#simplemodal-overlay {background-color:#000; cursor:default;}
#simplemodal-container {
       color:#333;
       background-color:#e5e5ff;
       border:6px solid #c3c3ff;
       padding:12px;
   }
#simplemodal-container a {color:#ddd;}

.simplemodal-closelink { color: blue; text-decoration: underline; cursor:pointer}
.simplemodal-closebutton {
    position:absolute;
    top:-15px;
    right:-15px;
    cursor:pointer;
    font-size: 160%;
}

/*** SIMPLEMODAL CONTENT ***/

#goto_submit {
    margin-left: 1em;
    margin-top: 3px;
}

/*** END SIMPLEMODAL ***/
