body {
    font-family: 'Open Sans', sans-serif;
}
#myTest {
    position: fixed;
    background-color:#37393e;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-user-select: none; 
    -webkit-user-select: none; 
    -ms-user-select:none; 
    user-select:none;
    -o-user-select:none;
    z-index: -1;
}

#myCanvas {
    position: fixed;
    top: 30;
    left: 0;
    width: 800px;
    height: 600px;
    z-index: 1; /* Ensures that the canvas is behind the HTML divs */
}

#chatBox {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 48px;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: min(660px, calc(100% - 40px));
    /* Canvas resizing still supplies a legacy 72px inline height. Let the
       toolbar wrap without clipping at narrow canvas / side-dock sizes. */
    height: auto !important;
    min-height: 76px;
    max-height: none !important;
    max-width: calc(100% - 16px);
    padding: 7px 8px;
    z-index: 2;
    border: 1px solid #315d7d;
    border-radius: 3px;
    background: linear-gradient(180deg, #102a43 0%, #061423 100%);
    box-shadow: inset 0 0 0 1px #020914, inset 0 2px 0 #4a7795,
        0 3px 10px rgba(0, 0, 0, 0.4);
    color: #dce8f2;
    font: 600 12px "Segoe UI", Tahoma, Arial, sans-serif;
}

#chatBoxInput {
    position: static;
    display: block;
    box-sizing: border-box;
    height: 28px;
    width: 100%;
    margin: 0 0 5px;
    padding: 0 9px;
    border: 1px solid #284f6d;
    border-radius: 2px;
    background: #020914;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
    color: #edf5fb;
    caret-color: #e5c680;
    font: 400 16px "Segoe UI", Tahoma, Arial, sans-serif;
}

#chatBoxInput::placeholder { color: #91a9bc; opacity: 1; }
#chatBoxInput:focus { outline: 1px solid #79a9c8; outline-offset: -1px; }

#chatBox .rm-chat-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: stretch;
}

#chatBox .chatButton {
    all: unset;
    box-sizing: border-box;
    flex: 1 0 auto;
    min-width: 44px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #284f6d;
    border-radius: 2px;
    background: linear-gradient(#102a43, #0a1d31);
    box-shadow: inset 0 1px 0 rgba(151, 192, 220, 0.14);
    color: #dce8f2;
    font: inherit;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

#chatBox .chatButton:hover,
#chatBox .drop-down:hover {
    border-color: #81784c;
    color: #ffe7b6;
    background: linear-gradient(#163a58, #102f4b);
}

#chatBox .chatButton.clicked {
    transform: none;
    text-shadow: none;
    border-color: #81784c;
    background: linear-gradient(#163a58, #102f4b);
    color: #ffe7b6;
    box-shadow: inset 0 -2px 0 #cfb36f;
}

#chatBox .chatButton:active { background: #061423; box-shadow: inset 0 1px 3px #020914; }
#chatBox .chatButton:focus-visible,
#chatBox .drop-down:focus-visible {
    outline: 2px solid #e5c680;
    outline-offset: -2px;
}

button:active {
    /*box-shadow: inset 0 0 5px rgba(0,0,0,0.8);*/
    background-color: #3C3C3C;
}

button.clicked {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    text-shadow: none;
    transform: translateY(2px);
    background-color: #111A0E;
    color: orange;
}

#chatBox .drop-down {
    box-sizing: border-box;
    flex: 1 0 96px;
    min-width: 96px;
    min-height: 26px;
    padding: 0 6px;
    margin: 0;
    border: 1px solid #284f6d;
    border-radius: 2px;
    background: #0a1d31;
    color: #dce8f2;
    font: inherit;
    color-scheme: dark;
    cursor: pointer;
}

/**************** NAV STYLING ********************/
nav ul {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color:#202124;
    color: lightgray;
    z-index: 4;
  }

nav a {
    color: gray;
    text-decoration: none;
    padding-left: 2px;
    padding-right: 2px;
}

nav a:visited {
    color: gray;
}

nav a:hover {
    /* border-style: solid;
    border-width: 1px;
    border-color: #BFBFBF; */
    border-radius: 5px;
    background-color: #454646;
}
  
  nav li {
    display: inline-block;
    padding: 10px;
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: #202124;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 4;
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }



  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 100;
  }
  .modal-dialog {
    max-width: 400px;
  }
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ccc;
  }
  .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
  }
  .modal-header button {
    border: none;
    background-color: transparent;
    font-size: 1.2rem;
    cursor: pointer;
  }
  .modal-body {
    padding: 1rem;
    background-color: #fff;
  }
  .modal-tablist {
    display: flex;
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
    border-bottom: 1px solid #ccc;
  }
  .modal-tablist button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #888;
  }
  .modal-tablist button[aria-selected="true"] {
    color: #000;
    border-bottom: 2px solid #000;
  }
  .modal-tabpanel {
    display: none;
  }
  .modal-tabpanel[aria-hidden="false"] {
    display: block;
  }
