﻿.top-message {
  background-color: #3577A9;
  color: white;
  font-size: 26px;
  position: fixed;
  top: 5em;
  right: 4em;
  width: 20em;
  height: 2em;
}

.q2container {
  padding-top: 1em;
}

/* ---------------------------------- */
.newpage {
  float: left;
  width: 30%;
}

.newpage .q2page-placeholder {
  display: none;
}

.command-box {
  z-index: 11;
  background-color: #eee;
  border: 1px solid #bbb;
}

.newquestion {
  float: left;
}

.newquestion .q2item-placeholder {
  display: none;
}

/* ---------------------------------- */
.q2pagelist-container {
  min-height: 50px;
}

.q2itemlist {
  margin-bottom: 100px; /* jotta menu mahtuu*/
}

.q2sublist {
  margin-left: 10%;
  margin-bottom: 100px; /* jotta menu mahtuu*/
}

/* ----------- pagelist ----------------------- */
.q2page, .q2pagemock {
  padding: 5px 5px 5px 5px;
  margin: 5px 5px 5px 5px;
}

.active-page {
  border: 1px solid #E2E2E2;
  background-color: #f7f7f7;
  font-size: 18px;
  color: black;
}

.non-active-page {
  border: 1px solid #C2C2C2;
  background-color: #D5D5D5;
  font-size: 18px;
}

.non-active-page-link {
  font-weight: bold;
  font-size: 18px;
  color: #999 !important;
  word-break: break-word;
}

.q2pagelist .q2item-placeholder { /* inherits q2uestion*/
  border: 1px dotted blue;
  background-color: #f6f6f6;
  font-size: 14px;
}

.q2pagelistindented {
  margin-left: 100px;
}

.q2page-placeholder {
  border: 1px dotted blue;
  background-color: #f6f6f6;
  padding: 2px 2px 2px 2px;
  height: 20px;
  border-radius: 10px;
  font-size: 14px;
}

/* ----------- questionlist ----------------------- */
.q2item {
  display: flex;
  flex-direction: row;
  color: black;
  margin-left: 0;
  margin-bottom: 0.5em;
}

/* ----------- questionlist ----------------------- */
.q2subitem {
  color: blue;
  margin-left: 0;
  margin-bottom: 0.5em;
}

.fade-animate.ng-leave {
  -webkit-transition: 0.5s linear all;
  transition: 0.5s linear all;
}

.fade-animate.ng-leave.ng-leave-active {
  opacity: 0;
}

.fade-animate.ng-leave {
  opacity: 1;
}

.q2question {
  background-color: #E5E5E5;
  font-size: 14px;
  padding: 0.5em 0.5em 0.5em 0.5em;
  border-radius: 10px;
}

.grid {
  position: relative;
  background-color: #E5E5E5;
  font-size: 14px;
  padding: 0.5em 0.5em 0.5em 0.5em;
  border-radius: 10px;
}

.gridedit {
  transition: 0.5s linear all;
  margin-left: -53%;
  position: relative;
}

.gridedit-remove {
  transition: 0.5s linear all;
}

.gridedit > td {
  width: 10em;
}

.heading, .subheading {
  border: 1px solid #E2E2E2;
}

.heading {
  padding: 16px 16px 16px 8px;
  background-color: #f7f7f7;
  margin-bottom: 1em;
  font-size: 22px;
}

.subheading {
  padding: 8px 8px 8px 4px;
  background-color: #EEEEEE;
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 14px;
}

.heading .title, .subheading .title {
  font-weight: bold;
}

.heading .sdesc, .subheading .sdesc {
  font-style: italic;
}

.q2title {
  font-weight: bold;
  margin-left: 10px;
}

.q2ldesc {
  margin-left: 10px;
  margin-top: 10px;
}

.q2questiontype {
  margin-right: 10px;
  float: right;
}

.q2body {
  padding-top: 10px;
  padding-bottom: 10px;
}

.q2item-placeholder {
  background-color: #f6f6f6;
  border: 1px dotted blue;
  font-size: 14px;
  color: black;
  margin-left: 0;
  margin-bottom: 0.5em;
  padding: 0.5em 0.5em 0.5em 0.5em;
  border-radius: 10px;
}

.q2addable-question, .q2addable-page {
  border: 1px gray solid;
  padding-left: 16px;
  padding-right: 16px;
  min-width: 9em;
  float: left;
  margin-right: 1em;
  cursor: pointer;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 16px;
}

.q2page.ng-leave {
  -webkit-transition: 0.5s linear all;
  transition: 0.5s linear all;
}

.q2page.ng-leave.ng-leave-active {
  opacity: 0;
  line-height: 0em;
  padding: 0 0 0 0;
}

.q2page.ng-enter.ng-enter-active {
  opacity: 1;
  line-height: 1em;
  padding: 1em 1em 1em 1em;
}

/* attachments */
.q2drop-box {
  background: #F8F8F8;
  border: 5px dashed #DDD;
  width: 100%;
  height: 100%;
  text-align: center;
  padding-bottom: 10px;
  padding-top: 10px;
  margin: 10px;
}

.q2drop-box-explanation {
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 10px;
}

.q2dragover {
  border: 5px dashed blue;
}

/*uusi grid*/
.left-question {
  flex: 100;
}

.middle-question {
  border-left: 1px solid gray;
  flex: 300;
  /*border: 1px green dotted;*/
  margin: 0px 5px 5px 0px;
  padding-left: 10px;
  padding-top: 0;
  overflow: hidden;
}

.right-question {
  flex: 1;
}

.widegrid {
  width: 10em;
}

.question-type-choice td {
  padding: 5px 3px 5px 3px;
}

.question-type-choice-editing td {
  padding: 1px 1px 1px 1px;
}

.question-type-choice span {
  padding-left: 20px;
}

.layout-only {
  border: none;
}

.table.layout-only td, .table.layout-only th {
  border: none;
}

.remove-left-gutter {
  margin-left: -4px !important;
}
