body,
html {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: auto;
}
body {
  min-width: 1145px;
}

:not(input) {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.object {
  width: 100px;
  height: 100px;
  border: none !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  padding: 0px;
  position: absolute !important;
  min-width: 1px;
  min-height: 1px;
}
.object.outOfBounds {
  outline: solid #ff3860 4px;
}

#container {
  width: 480px;
  height: 320px;
  position: absolute;
  left: 320px;
  top: 70px;
  border: solid #ccc 1px;
  box-shadow: 0 0 10px #ddd;
  border-radius: 6px;
  /* Light Blue Background */
  background: #eaf3f6;
}

#pieceHolder {
  border-radius: 6px 6px 0 0;
  background: url("./images/pieceholder.png");
  width: 478px;
  height: 90px;
}

#startButton {
  position: absolute;
  top: 20px;
  left: 367px;
  height: 40px;
}

/* resizable */
.ui-resizable {
  position: relative;
}
.ui-resizable-handle {
  position: absolute;
  font-size: 0.1px;
  z-index: 998;
  display: block;
}
.ui-resizable-n {
  cursor: n-resize;
  height: 7px;
  width: 100%;
  top: -5px;
  left: 0;
}
.ui-resizable-s {
  cursor: s-resize;
  height: 7px;
  width: 100%;
  bottom: -5px;
  left: 0;
}
.ui-resizable-e {
  cursor: e-resize;
  width: 7px;
  right: -5px;
  top: 0;
  height: 100%;
}
.ui-resizable-w {
  cursor: w-resize;
  width: 7px;
  left: -5px;
  top: 0;
  height: 100%;
}
.ui-resizable-se {
  cursor: se-resize;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
}
.ui-resizable-sw {
  cursor: sw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  bottom: -5px;
}
.ui-resizable-nw {
  cursor: nw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  top: -5px;
}
.ui-resizable-ne {
  cursor: ne-resize;
  width: 9px;
  height: 9px;
  right: -5px;
  top: -5px;
}

.handle {
  background: #248ccc;
  width: 10px;
  height: 10px;
  border: solid white 1px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  box-shadow: 0 0 5px #999;
  padding: 0px;
  margin: 0px;
  position: absolute;
  -ms-touch-action: none;
  touch-action: none;
}

#n {
  left: 50%;
  margin-left: -5px;
}
#e {
  top: 50%;
  margin-top: -5px;
}
#s {
  left: 50%;
  margin-left: -5px;
}
#w {
  top: 50%;
  margin-top: -5px;
}
#se {
  left: 100%;
  top: 100%;
  margin-top: -5px;
  margin-left: -5px;
}

.transformable-handle-rotate {
  left: 100%;
  top: 50%;
  margin-top: -5px;
  margin-left: 30px;
  position: absolute;
  z-index: 2000;
  cursor: grab;
}
.transformable-handle-rotate::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
}

.levelCode {
  -webkit-touch-callout: initial;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.modal {
  z-index: 10000;
}
.modal-card-foot {
  justify-content: center;
}

#saveLevelNotification {
  position: absolute;
  width: 280px;
  height: 170px;
  top: 135px;
  left: 830px;
  z-index: 1000;
  padding: 17px;
}
#saveLevelNotification .field {
  margin-top: 5px;
}

#saveLevelNotification .field input {
  text-align: center;
}

#openLevelRecentList {
  max-height: 260px;
  overflow-y: auto;
}
#openLevelRecentList button {
  width: 100%;
  margin-bottom: 4px;
}

/* general pane styles */
.pane {
  margin: 10px;
  border: solid #ccc 1px;
  border-radius: 6px;
  box-shadow: 0 0 10px #ddd;
  background: white;
  overflow: hidden;
  display: block;
  position: absolute;
}
.pane .modal-card-head {
  padding: 15px !important;
}
.pane .modal-card-title {
  font-size: 1.25rem !important;
}
.paneContent {
  height: calc(100% - 50px);
  overflow: auto;
  padding: 0px 10px 10px 10px;
  display: block;
  z-index: 1;
}
.paneSubHeader {
  font-size: small;
  display: block;
  border-bottom: solid #ccc 1px;
  margin: -10px;
  margin-bottom: 8px;
  padding: 8px 8px;
}
.paneTitle {
  display: block;
  font-size: 0.75em;
  border-bottom: solid #ccc 1px;
  margin-bottom: 8px;
}

/* specific pane styles */
#objectsPane {
  width: 280px;
  height: calc(100% - 80px);
  left: 10px;
  top: 60px;
}
#objectsPane input[type="checkbox"] {
  margin-left: 8px;
  margin-right: 4px;
}
#objectsPane table label {
  font-size: 12px;
  font-weight: 500;
}
#detailsPane {
  width: 480px;
  left: 310px;
  top: 400px;
  z-index: 2;
}
#levelPane {
  top: 60px;
  width: 300px;
  height: calc(40% - 10px);
  left: 810px;
  z-index: 5;
}
#helpPane {
  top: calc(40% + 70px);
  width: 300px;
  height: calc(60% - 90px);
  left: 810px;
  z-index: 5;
}
#helpPane .modal-card-body {
  height: calc(100% - 50px);
}
#helpPane ol,
#helpPane ul {
  margin: 0 0 16px 16px;
}
#helpPane .button.is-text {
  margin: -6px;
  padding-left: 6px;
  padding-right: 8px;
  color: #209cee;
}

/* 'Your Level' list styles */
#levelList {
  width: 100%;
  list-style: none;
  padding: 0px;
}
#levelList li {
  width: 100%;
  list-style: none;
  display: block;
  line-height: 30px;
  padding-left: 10px;
  padding-right: 10px;
  cursor: pointer;
}
#levelList li button {
  float: right;
  margin-top: 5px;
}
.currentListItem {
  background: #248ccc !important;
  color: white;
}
#levelList li:nth-child(odd) {
  background: rgba(221, 221, 221, 0.4);
}

/* object editor */
.objectProp {
  width: 80px;
  height: 30px;
  font-size: large;
  background: rgba(255, 255, 255, 0.5);
  border: solid #ccc 1px;
  margin-left: 8px;
  padding-left: 4px;
  border-radius: 2px 2px 0 0;
}
.objectProp:nth-of-type(2) {
  border-radius: 0 0 2px 2px;
  border-top: none;
}
.objectProp:disabled {
  color: gray;
  border-color: transparent;
}
#objectEditorTable td {
  text-align: right;
  vertical-align: top;
  padding: 2px;
  height: 100%;
}
#objectEditorTable td:not(:first-of-type) {
  padding-left: 16px;
}
#objectEditorTable {
  height: 100%;
}
#duplicateObjectButton,
#deleteObjectButton {
  margin: 3px 0 0 0;
  padding-left: 12px;
  padding-right: 12px;
}
#deleteObjectButton {
  margin-left: 5px;
}

/* object-specific code */
.finish {
  max-width: 40px;
  max-height: 52px;
  min-width: 40px;
  min-height: 52px;
}
.gravitydown,
.gravity,
.slowdown,
.speedupl,
.speedupr,
.speedupu,
.speedupd {
  max-width: 26px;
  max-height: 26px;
  min-width: 26px;
  min-height: 26px;
  height: 26px;
  width: 26px;
}
.ground {
  width: 75px;
  height: 50px;
  min-height: 1px;
  min-width: 1px;
}
.ball_blue {
  width: 30px;
  height: 30px;
  max-width: 30;
  max-height: 30px;
  min-width: 30px;
  min-height: 30px;
}
.catapult {
  width: 125px;
  height: 25px;
  max-width: 125px;
  max-height: 25px;
  min-width: 125px;
  min-height: 25px;
}
.metalcircle25x25,
.woodcircle25x25 {
  min-width: 5px;
  min-height: 5px;
  max-width: 50px;
  max-height: 50px;
  width: 25px;
  height: 25px;
}
.metalrect50x50,
.woodrect50x50 {
  width: 50px;
  height: 50px;
}
.metalrect100x100,
.woodrect100x100 {
  width: 100px;
  height: 100px;
}
.metalrect150x25,
.woodrect150x25 {
  width: 150px;
  height: 25px;
}
.metalrect200x50,
.woodrect200x50 {
  width: 200px;
  height: 50px;
}
.metalrtriangle75x75,
.woodrtriangle75x75 {
  width: 75px;
  height: 75px;
  max-width: 100px;
  max-height: 100px;
  min-width: 5px;
  min-height: 5px;
}
.spring50x50 {
  width: 50px;
  height: 50px;
}
.woodcircle75x75 {
  min-width: 5px;
  min-height: 5px;
  width: 75px;
  height: 75px;
  max-width: 150px;
  max-height: 150px;
}
