html {
  font-size: 12px;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-smooth: never;
}

body {
   -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
  user-select: none;
  image-rendering: pixelated;
  background-size: 16px 16px;
  margin: 0px;
}
.w31 {
  color: #000000;
  width: 70px;
  height: 23px;
  border-radius: 2px;
  background-color: #c3c3c3;
  border: solid 1px black;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  box-shadow: inset -2px -2px 0px #828282, inset 2px 2px 0px #ffffff;
  margin-bottom: 3px;
  overflow: none;
}

.w31:active {
  box-shadow: inset 1px 1px 0px #828282;
}

.w31:focus {
  border-width: 2px;
  outline: none;
}

.w31:focus span{
  display:inline-block;
  border-radius: 3px;
  padding: 0px 1px 0px 1px;
  border: dotted 1px #000000;
}

.w31:active span{
  transform: translate(1px,1px);
}

.edit-pattern-window {
  position: absolute;
  padding: 3px 4px 3px 4px;
  top: 20px;
  left: 20px;
  width: 351px;
  height: 214px;
  background-color: #c3c3c3;
  border: solid 1px #828282;
  box-shadow: 0.5px 0.5px 0px 0.5px #000000, inset 1px 1px 0px #ffffff;
}

.title-bar {
  position: relative;
  box-shadow: inset -1px -1px 0px #ffffff, inset 1px 1px 0px #828282;
  color: #ffffff;
  text-align: center;
  font-smooth: never;
  display: block;
  width: 100%;
  height: 20px;
  background-color: #000082;
  margin-bottom: 5px;
}

.title-bar span {
  display: inline-block;
  margin-top: 3px;
}
.inner-window {
  margin-left: 10px;
  position: relative;
}

.quit {
  background-image: url(exit.png);
  image-rendering: pixelated;
  width: 19px;
  height: 18px;
  position: absolute;
  top: 1px;
  left: 1px;
}

.sample {
  float: left;
  margin-top: 7px;
  line-height: 18px;
}

#sample-pattern {
  background-image: url(test.png);
  image-rendering: pixelated;
  width: 79px;
  height: 131px;
  box-shadow: -0.5px -0.5px 0px 0.5px #828282, 0px 0px 0px 1px #ffffff;
}

#edit-pattern {
  float: right;
  /*background-image: url(test.png);
  background-size: 100% 100%;*/
  image-rendering: pixelated;
  width: 156px;
  height: 144px;
  margin-top: 12px;
  box-shadow: -0.5px -0.5px 0px 0.5px #828282, 0px 0px 0px 1px #ffffff;
}

.side-buttons {
  /*
  position: absolute;
  right: 0px;
  top: 0px;
   */
  margin-left: 18px;
  display: block;
  float: right;
  width: 70px;
}

select {
  position:relative;
  float: right;
  outline: none;
  box-shadow: -0.5px -0.5px 0px 0.5px #828282, 0px 0px 0px 1px #ffffff, inset 1px 1px 0px 0px #000000, inset -1px -1px 0px 0px #c3c3c3;
  border: none;
  width: 165px;
  height: 20px;
  text-indent: 6px;
  font-weight: bold;
  text-overflow: '';
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select option {
  font-weight: bold;
}

select option:active,
select option:hover {
  background-color: #000082;
}

.dropdown-area {
  position: relative;
  height: 23px;
  width: 254px;
}

.dropdown-area span {
  display: inline-block;
  margin-top: 4px;
}

.dropdown-area::after {
  display: block;
  content: '';
  background-image: url(dropdown-offset.png);
  image-rendering: pixelated;
  width: 25px;
  height: 22px;
  right: 0px; 
  top: -1px;
  position:absolute;
  pointer-events:none;
}
