.lecture-attachment {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.lecture-attachment-type-quiz .attachment-data {
  display: none;
}

* {
  box-sizing: border-box;
}

/* Quiz Container */
#quizContainer {
  border: 1px solid #ddd;
  position: relative;
  display: none;
  text-align: right;
  max-width: 1010px;
  margin-top: -15px;
}

#quizContainer > div {
  display: flex;
  vertical-align: top;
}

/* Instructions Container */
#instructionsContainer {
  text-align: left;
  width: 39%;
  padding-right: 3%;
  padding-top: 1%;
}

#dragDropContainer {
  width: 59%;
}

#itemContainer {
  position: absolute;
  width: 110px;
  display: inline-block;
  vertical-align: middle;
  left: 40%;
  display: none;
}

#headerContainer {
  display: block;
  padding: 20px;
  text-align: left;
  width: 100%;
}

/* Message Container */
#messageContainer {
  margin-bottom: 10px;
  position: relative;
  text-align: left;
  width: 100%;
}

#messageContainer > div {
  display: none;
  padding: 20px 20px 20px 5px;
  position: relative;
}

#messageContainer .message-error-title:before {
  background-image: url(https://philanthropy.cdn.redcross.ca/teachable/img/general/error.png);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 15px;
  left: 0px;
  position: absolute;
  top: 3px;
  width: 15px;
}

#messageContainer .message-error-body {
  padding-left: 30px;
}

#messageContainer .message-success-title {
  font-weight: bold;
  padding-left: 30px;
  position: relative;
  display: none;
}

#messageContainer .message-success-title:before {
  content: "";
  display: block;
  background-image: url(https://philanthropy.cdn.redcross.ca/teachable/img/general/checkmark.png);
  position: absolute;
  width: 20px;
  height: 20px;
  left: 0px;
  top: 0px;
  background-size: contain;
  background-repeat: no-repeat;
}

#messageContainer .message-success-body {
  padding-left: 30px;
}

/****************/
/* Draggable UI */
/****************/
.draggable {
  border: 1px solid #ddd;
  height: 70px;
  padding: 8px;
  display: inline-block;
  margin: 0 10px 10px 0;
  border-radius: 100%;
  cursor: grab;
  position: relative;
  width: 70px;
}

.draggable img {
  width: 100%;
  height: auto;
}

.dragZone {
  width: 150px;
  height: 150px;
  display: inline-block;
  margin: 0 10px 10px 0;
  position: absolute;
  border-radius: 100%;
}

.completed {
  cursor: default;
}

.hideImage {
  opacity: 0;
}

/*************/
/* Paperdoll */
/*************/
#paperdollContainer {
  height: 100%;
  margin-right: 25px;
  position: relative;
  text-align: center;
  width: 50%;
  z-index: 50;
}

#paperdollContainer img {
  width: 100%;
  vertical-align: middle;
}

#paperdollContainer > div:hover {
  border: 1px dashed #a3a3a3;
}

#target-1 {
  cursor: pointer;
  height: 4%;
  left: 21%;
  padding: 30px;
  top: 53%;
  width: 4%;
  z-index: 10;
}

#target-2 {
  cursor: pointer;
  height: 4%;
  left: 56%;
  padding: 30px;
  top: 53%;
  width: 4%;
  z-index: 9;
}

#target-3 {
  cursor: pointer;
  height: 28%;
  left: 26%;
  padding: 70px;
  top: 22%;
  width: 18%;
  z-index: 8;
}

#target-4 {
  cursor: pointer;
  height: 10%;
  left: 34%;
  padding: 46px;
  top: 2%;
  width: 10%;
  z-index: 6;
}

#target-5 {
  cursor: pointer;
  height: 8%;
  left: 39%;
  padding: 29px;
  top: 7%;
  width: 8%;
  z-index: 5;
}

.ui-draggable-handle {
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
}

/*************/
/* Trash Bin */
/*************/
.trash {
  border: 2px solid transparent;
}

.trash.hovered {
  border: 2px dashed #a3a3a3;
}

#trashBin {
  width: 35%;
  position: relative;
  top: 0;
  cursor: pointer;
  vertical-align: bottom;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#trashBin img {
  width: 100%;
  max-width: 130px;
}
#handWash {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#trashBin button {
  background-color: #e00;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 6px 10px 6px 10px;
  position: relative;
  top: -15px;
  -webkit-transition: all 240ms ease-in-out;
  transition: all 240ms ease-in-out;
  cursor: pointer;
  border: none;
}

#handWash:hover > img {
  opacity: 0.75;
}

/*********/
/* Steps */
/*********/
#activitySteps {
  text-align: left;
}

.hideStep {
  display: none !important;
}

.step-number {
  background: #ee0000;
  border-radius: 100%;
  color: #fff;
  display: inline-block;
  font-weight: bold;
  height: 20px;
  left: -25px;
  position: absolute;
  text-align: center;
  width: 20px;
}

#activitySteps > div:not(:first-child) {
  position: relative;
  font-size: 14px;
  margin-left: 28px;
}

.step-description {
  display: inline-block;
  display: inline-block;
  padding: 0 0 20px 0;
}

.separated {
  border-bottom: solid 1px #8f8f8f;
}

.mobileOnly {
  display: none;
}

/*****************/
/* MEDIA QUERIES */
/*****************/

/* phone only */
@media only screen and (max-width: 598px),
  only screen and (min-width: 768px) and (max-width: 935px) {
  #quizContainer {
    flex-direction: column;
  }
  #quizContainer > div {
    display: inherit;
    justify-content: start;
  }
  #dragDropContainer,
  #instructionsContainer {
    width: 100%;
  }
  #trashBin,
  #paperdollContainer {
    right: 0;
    height: auto;
  }
  #trashBin {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    width: 40%;
  }
  #trashBin img {
    max-width: 100px;
  }
  #trashBin button {
    margin-bottom: auto;
    font-size: 12px;
    padding: 5px;
  }
  #handWash {
    text-align: center;
  }
  #target-1 {
    top: 53%;
    left: 19%;
    height: 4%;
    width: 4%;
    padding: 20px;
  }
  #target-2 {
    top: 53%;
    left: 55%;
    height: 4%;
    width: 4%;
    padding: 20px;
  }
  #target-3 {
    top: 21%;
    left: 25%;
    height: 35%;
    width: 4%;
    padding: 40px;
  }
  #target-4 {
    top: 3%;
    left: 32%;
    height: 4%;
    width: 4%;
    padding: 27px;
  }
  #target-5 {
    top: 5%;
    left: 37%;
    height: 14%;
    width: 25%;
    z-index: 5;
    padding: 23px;
  }
  .dragZone.ui-draggable-dragging {
    width: 50px;
    height: 50px;
  }
  .separated {
    border: none;
  }
  .stepsTitle {
    padding: 8px 10px;
    background: #eee;
    font-weight: bold;
    text-transform: uppercase;
  }
  #messageContainer .message-error-title:before,
  #messageContainer .message-success-title:before {
    left: 20px;
    top: 23px;
  }
  #messageContainer > div {
    padding: 20px 20px 20px;
    padding-left: 45px !important;
  }
  .stepsTitle.collapsed:after {
    content: "\f077";
  }
  .stepsTitle:after {
    content: "\f00d";
    font-family: "FontAwesome";
    font-weight: normal;
    position: absolute;
    right: 10px;
  }
  #instructionsContainer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    flex-direction: column;
    z-index: 999;
    padding: 0;
  }
  #activitySteps {
    background: #eee;
    padding-left: 10px;
    box-shadow: 2px 2px 5px;
  }
  #messageContainer {
    margin: 0;
    background: white;
    border-top: 1px solid #ccc;
    box-shadow: 2px 2px 3px;
  }
  .mobileOnly {
    display: block;
    display: inherit;
  }
  .stepsContainer {
    max-height: 300px;
    transition: max-height 1s;
  }
  .stepsContainer.collapsed {
    transition: max-height 1s cubic-bezier(0, 1, 0, 1);
    max-height: 0px;
  }
  .message-success-body {
    padding-top: 0 !important;
  }
}

@media only screen and (min-width: 599px) and (max-width: 767px) {
  #quizContainer {
    flex-direction: row;
  }
  #dragDropContainer {
    width: 45%;
  }
  #instructionsContainer {
    width: 55%;
  }
  #trashBin {
    vertical-align: middle;
  }
  #messageContainer {
    padding-top: 15px;
  }
  #messageContainer > div {
    padding: 0px 0 20px 25px;
  }
  .dragZone.ui-draggable-dragging {
    width: 70px;
    height: 70px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 935px) {
  #dragDropContainer {
    width: 100%;
  }
  #instructionsContainer {
    width: 55%;
    right: 0;
    left: auto;
  }
}

/* Small Laptop and Higher */
@media only screen and (min-width: 936px) {
  #dragDropContainer {
    width: 50%;
  }
  #instructionsContainer {
    width: 50%;
    flex-direction: column;
  }
  #messageContainer {
    padding-top: 15px;
  }
  #messageContainer > div {
    padding: 0px 0 20px 25px;
  }
  .dragZone.ui-draggable-dragging {
    width: 70px;
    height: 70px;
  }
  #trashBin {
    margin-bottom: 0;
    padding-top: 17%;
    vertical-align: middle;
  }
  .trash {
    margin-top: 30px;
    padding-top: 10px;
  }
  #target-1 {
    left: 18%;
    padding: 12%;
    top: 52%;
  }
  #target-2 {
    left: 54%;
    padding: 12%;
    top: 52%;
  }
  #target-3 {
    height: 53%;
    left: 24%;
    padding: 25%;
    top: 19%;
    width: 18%;
  }
  #target-4 {
    left: 30%;
    padding: 19%;
  }
  #target-5 {
    left: 39%;
    padding: 10%;
    top: 10%;
  }
}
