/*v20*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none !important;
  touch-action: pan-y !important;
}

html,
body 
{
  overscroll-behavior-x: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
  width: 100%;
  height: 100%;
  overflow-x: hidden !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0; 
  background-color: grey;
}

.content-container 
{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; 
  overflow-x: hidden;
}

canvas 
{
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    display: block;
    outline: none; 
    position: absolute; 
 -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after
{
  box-sizing: border-box;
}

dialog
{
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: helvetica, tahoma, verdana;
  font-weight: bold;
  transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.65);
  border-radius: 12px;
  border-width: 8px;
  border-color: rgba(255,255,255,0.65);
  padding: 20px 20px 20px 20px;
}

dialog::backdrop
{
  background-color: rgba(0,0,0,0.5);
}

label
{
  color: white;
  display: block;
  font-family: helvetica, tahoma, verdana;
  font-weight: bold;
  text-align: left;
  width: 100%;
  border-radius: 5px;
  height: 44px;
  line-height: 44px;
  font-size: 1.0em;
}

select
{
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: helvetica, tahoma, verdana;
  text-indent: 0.1;
  text-overflow: '';
  text-transform: none;
  font-size: 1.05em;
  line-height: 24px;
  vertical-align: middle;
  background-color: rgba(0,0,0,0.75);
  height: 54px;
  resize: none;
  padding: 15px;
  outline: none;
  border-radius: 12px;
  border-width: 2px;
  border-color: white;
  color: white;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

input
{
  text-transform: none;
  line-height: 20px;
  vertical-align: middle;
  background-color: rgba(0,0,0,0.75);
  height: 44px;
  resize: none;
  padding: 15px;
  outline: none;
  border-radius: 12px;
  border-width: 2px;
  border-color: white;
  color: white;
  text-align: left;
  font-size: 1.05em;
  font-family: helvetica, tahoma, verdana;
  font-weight: bold;
  box-sizing: border-box;
  width: 100%;
}

textarea
{
  width: 90%;
  padding: 15px;
  line-height: 26px;
  vertical-align: middle;
  background-color: rgba(0,0,0,0.75);
  resize: both;
  outline: none;
  border-radius: 12px;
  border-width: 2px;
  border-color: white;
  color: white;
  text-align: left;
  font-weight: bold;
  font-size: 1.05em;
  font-family: helvetica, tahoma, verdana;
}

button
{
  text-align: center;
  font: copperplate;
  font-family: helvetica, tahoma, verdana;
  border: 13;
  font-weight: bold;
  font-size: 1.035em;
  border-radius: 8px;
  border-width: 2px;
  border-color: white;
  background-color: black;
  color: white;
  margin-top: 20px;
  margin-left: 0px;
  width: 25%;
  height: 44px;
}

select, option
{
  width: 100;
  line-height: 20px;
  font-weight: bold;
  font-family: helvetica, tahoma, verdana;
  font-size: 1.05em;
}

option
{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
    font-family: helvetica, tahoma, verdana;
    font-size: 1.05em;
}

.buttontitle
{
    text-align: center;
    margin-bottom: 8px;
    color: white;
}

.buttoncentered
{
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.centered
{
    text-align: center;
    color: white;
}

a
{
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

a:visited 
{
  color: white;
}


        .context-menu {
            position: fixed;
            background: #1f2937;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            border-radius: 8px;
            padding: 6px;
            min-width: 220px;
            display: none;
            z-index: 1000;
            border: 1px solid #374151;
            backdrop-filter: blur(10px);
        }

        .context-menu.visible {
            display: block;
            animation: menuFadeIn 0.15s ease-out;
        }

        @keyframes menuFadeIn {
            from {
                opacity: 0;
                transform: scale(0.98);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .context-menu-item {
            padding: 4px 8px;
            font-family: system-ui, -apple-system, sans-serif;
            font-size: 13px;
            color: #e5e7eb;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            border-radius: 4px;
            margin: 2px 0;
            user-select: none;
        }

        .context-menu-item:hover {
            background-color: #374151;
        }

        .context-menu-item svg {
            width: 16px;
            height: 14px;
            flex-shrink: 0;
        }

        .context-menu-divider {
            height: 1px;
            background-color: #374151;
            margin: 6px 4px;
        }

        .menu-shortcut {
            margin-left: auto;
            color: #9ca3af;
            font-size: 12px;
        }


