/* common.css */

/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

body
{
  font-family: Montserrat, Arial;
  font-size: 12px;
  background-color: black;
  margin: 0px;
  overflow: hidden;
  color:#606060;
}

input, button, select, textarea
{
  font-family: Montserrat, Arial;
  font-size: 12px;
  padding:2px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

input:focus, button:focus, select:focus, textarea:focus
{
  outline: none;
  box-shadow: 0 0 0 2px rgba(228, 30, 30, 0.3);
  transition: box-shadow 0.4s ease;
}

a:focus
{
  outline-style: dotted;
  outline-color: black;
  outline-offset: 1px;
  outline-width: 1px;
  border-radius: 0;
}

button
{
  background-color: #f0f0f0;
  color:#404040;
  border: 1px solid #ff8080;
  border-radius: 3px;
  margin: 3px;
  box-shadow: 0px 0px 3px 0px rgba(50, 50, 50, 0.2);
}

button:disabled
{
  outline: none;
  color: #c0c0c0;
  border: 1px solid #ffc0c0;
  opacity: 0.7;
}

button:disabled:hover
{
  background-color: #f0f0f0;
}

button:hover
{
  background-color: #ffd8d8;
}

button:active
{
  box-shadow:none;
  outline: none;
}

select
{
  background-color: white;
}

input[readonly]
{
  background: #f0f0f0;
  color: #a0a0a0;
}

fieldset
{
  padding: 6px;
  display: inline-block;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
}

fieldset > label
{
  vertical-align: middle;
  text-align: left;
  display: inline-block;
}

fieldset > label > input
{
  vertical-align: text-bottom;
}

fieldset > label > span
{
  vertical-align: middle;
}

/* selection */

::-moz-selection,
select::-moz-selection
{
  color: #200000;
  background: #ffb0b0;
}

::selection,
select::selection
{
  color: #200000;
  background: #ffb0b0;
}

/* scrollbars */

div, ul, pre
{
  scrollbar-width: thin;
  scrollbar-color: #ffb0b0 transparent;
}

::-webkit-scrollbar
{
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track
{
  background-color: transparent;
}

::-webkit-scrollbar-thumb
{
  background: #ffb0b0;
  border-radius: 0;
}

/* input range */

input[type=range]
{
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb
{
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-thumb
{
  -webkit-appearance: none;
  border: 1px solid rgb(100, 100, 100);
  height: 12px;
  width: 12px;
  border-radius: 2px;
  background: rgba(220, 220, 220, 0.8);
  cursor: pointer;
  box-shadow: 0px 0px 2px #a0a0a0;
}

input[type=range]:disabled::-webkit-slider-thumb
{
  border: 1px solid rgba(100, 100, 100, 0.5);
}

input[type=range]::-moz-range-thumb
{
  border: 1px solid rgb(100, 100, 100);
  height: 12px;
  width: 12px;
  border-radius: 2px;
  background: rgba(220, 220, 220, 0.8);
  cursor: pointer;
  box-shadow: 0px 0px 2px #a0a0a0;
}

input[type=range]:disabled::-moz-range-thumb
{
  border: 1px solid rgba(100, 100, 100, 0.5);
}

input[type=range]::-webkit-slider-runnable-track
{
  width: 100%;
  height: 12px;
  cursor: pointer;
  background: rgba(128, 128, 128, 0.1);
}

input[type=range]::-moz-range-track
{
  width: 100%;
  height: 12px;
  cursor: pointer;
  background: rgba(128, 128, 128, 0.1);
}

/* code editor */

div.code_editor
{
  position: relative;
  height: 100px;
}

div.code_editor > label
{
  position: absolute;
  height: 20px;
  width: 100%;
}

div.code_editor > .cm-editor-holder
{
  position: absolute;
  top: 20px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
  font-size: 14px;
  font-family: monospace;
  height: calc(100% - 20px);
  width: 100%;
  overflow: auto;
  box-sizing: border-box;
}

div.code_editor > .cm-editor-holder > .cm-editor
{
  height: 100%;
}

div.code_editor > .cm-editor-holder > .cm-editor .cm-line
{
  tab-size: 2;
}

/* tags input */

div.tags-container
{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

div.tags-display
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  padding: 4px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #f9f9f9;
}

span.tag
{
  background-color: #e0e0e0;
  border-radius: 4px;
  padding: 0px 6px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #404040;
}

button.tag-remove
{
  cursor: pointer;
  margin-left: 6px;
  line-height: 1;
  color: #666;
  border: none;
  background-color: #e8e8e8;
  background-image: url(images/close.svg);
  background-position: center center;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
  transition: none;
}

button.tag-remove:hover,
button.tag-remove:focus
{
  background-color: #f4f4f4;
}

/* data table */

table.data
{
  padding: 0;
  border: 1px solid #c0c0c0;
  box-sizing:border-box;
  border-collapse: collapse;
  width:calc(100% - 8px);
  margin: 0 auto;
  margin-top: 4px;
  margin-bottom: 4px;
}

table.data > thead > tr
{
  border-bottom: 1px solid #c0c0c0;
  background-color: #fff0f0;
}

table.data > tbody > tr
{
  border-bottom: 1px solid #d0d0d0;
}

table.data > tbody > tr:hover
{
  background-color: #f0f0f0;
}

/* general styles */

.text_left
{
  text-align: left;
}

.text_center
{
  text-align: center;
}

.text_right
{
  text-align: right;
}

.p_2
{
  padding: 2px;
}

.p_4
{
  padding: 4px;
}

.mt_2
{
  margin-top: 2px;
}

.mb_2
{
  margin-bottom: 2px;
}

.mt_4
{
  margin-top: 4px;
}

.mb_4
{
  margin-bottom: 4px;
}

.flex
{
  display: flex;
}

.flex_column
{
  flex-direction: column;
}

.align_items_center
{
  align-items: center;
}

.flex_grow_0
{
  flex-grow: 0;
}

.flex_grow_1
{
  flex-grow: 1;
}

.border_box
{
  box-sizing: border-box;
}

.w_full
{
  width: 100%;
}

.h_full
{
  height: 100%;
}

.hidden
{
  display: none !important;
}

.overflow_hidden
{
  overflow: hidden;
}

.overflow_auto
{
  overflow: auto;
}

/* animation */

@keyframes item_hover
{
  from {background-color: transparent;}
  to {background-color: #C0C0C0;color: black;}
}

@keyframes fade_in
{
  from {opacity:0;}
  to {opacity:1;}
}

@keyframes fade_out
{
  from {opacity:1;}
  to {opacity:0;}
}
