@charset "UTF-8";

#game-wrapper {
  border-radius: 10px;
  background: #fff;
  padding: 20px;  
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  text-align: center;
}

#drag-container {
  background: linear-gradient(to bottom, #ffc9c1 0%,#ffffff 35%,#ffffff 65%,#d3d7f5 100%);
}

#drop-container {
  background: #fff;
}

#drop-container, #drag-container {
  position: relative;
  height: 80px;
  margin-bottom: 60px;
  display: none;
}

#feedback-container {
  margin-top: 20px;
  margin-bottom: 20px;
  transition: opacity .2s ease-in-out;
}

.droppable-wrapper, .draggable-wrapper {
  display: inline-block;
  vertical-align: center;
  width: 25%;
  height: 100%;
}

.draggable-wrapper:hover {
  z-index: 5000;
}
.draggable {
  background: linear-gradient(to bottom, #ffc9c1 0%,#ffffff 35%,#ffffff 65%,#d3d7f5 100%);
  height: 100%;
  width: 100%;
  border: 2px solid #666;
  transform: scale(1);
  transition: scale .2s ease-in-out;
  position: relative;
}

.draggable:hover, .draggable.ui-draggable-dragging {
  background: linear-gradient(to bottom, #ed1f00 0%,#ffffff 35%,#ffffff 65%,#3e4dd1 100%);
  transform: scale(1.1);
  transition: none;
  cursor: copy;
  z-index: 5000;
}

.draggable .display-text {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 20%;
  height: 100%;
  font-size: 0.9em;
  line-height: 1;
}

@media (max-width:640px) {
  .draggable .display-text {
    font-size: 0.7em;
    left: 2%;
    right: 2%;
  }
}

@media (max-width:639px) {
  .draggable .display-text {
    font-size: 0.6em;
  }
}

.draggable.placed, .draggable.placed:hover {
  transition: none;
  transform: none;
  cursor: default;
  width: 100%;
  background: linear-gradient(to bottom, #ed1f00 0%,#ffffff 35%,#ffffff 65%,#3e4dd1 100%);
}

.droppable {
  border: 2px dashed #ececec;
  height: 100%;
  width: 100%;
  position: relative;
  display: block;
}

.droppable.ui-droppable-disabled {
    border: 0;
}

.drop-base {
  position: relative;
  display: block;
  padding-top: 1em;
  opacity: 0;
}

.feedback-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6000;
}

.feedback-img.valid {
  background: url("../images/games/valid_drop.png") no-repeat center;
  background-size: contain;
}

.feedback-img.invalid {
  background: url("../images/games/invalid_drop.png") no-repeat center;
  background-size: contain;
}

.display-text {
}

.base-text {
  font-weight: bold;
  color: #666;
  font-size: 1em;
}

.scale {
  font-size: .8em;
  margin-top: -30px;
  color: #666;
}

.scale .left, .scale .right {
  float: left;
  width:  50%;
}

.scale .left {
  text-align: left;
}

.scale .right {
  text-align: right;
}

#drag-container div:first-child {
  margin-left: 0;
}

#drag-container div:last-child {
  margin-right: 0;
}