html, body {
    position: relative;
    padding: 0;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 200;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
}
*, *:before, *:after {
  box-sizing: inherit;
  -webkit-print-color-adjust: exact;
  font-family: inherit;
}

p, a {
    margin: 0;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 100;
    font-family: 'Lato';
    background-color: green;
    color: white;
    border: none;
    outline: none;
    box-shadow: 2px 2px 4px #0000003b;
    margin-top: 10px;
    cursor: pointer;
}

.danger {
    color: white;
    background-color: red;
}

button:hover {
    transform: scale(1.02);
}

#app {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: url('../images/loader.svg') no-repeat;
    background-position: center;
    background-color: #ffffff8f;
}

.loading {
    transition: transform 350ms ease-in-out, opacity 350ms ease-in-out;
    opacity: 0.5;
    pointer-events: none;
    min-width: 30px;
    min-height: 30px;
}
.loading::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    min-width: 30px;
    min-height: 30px;
    max-width: 115px;
    max-height: 115px;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: url(../images/loader.svg) no-repeat;
    background-size: 30%;
    background-position: center;
}

.multiple-image-preview-container div {
    box-sizing: content-box;
    vertical-align: top;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    margin: 2px;
    position: relative;
    cursor: grab;
}

.multiple-image-preview-container div:hover {
    box-shadow: 0 0 4px #00000038;
}

.multiple-image-preview-container div:hover .close-button,
.multiple-image-preview-container div:hover .rotate-button{
    display: block;
}

.multiple-image-preview-container .close-button, .multiple-image-preview-container .rotate-button {
    display: none;
    position: absolute;
    right: 0;
    text-align: center;
    line-height: 20px;
    top: 0;
    background-color: rgba(0,0,0,0.3);
    color: white;
    width: 20px;
    box-shadow: -1px 1px 3px #00000030;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.multiple-image-preview-container div.fake_image {
    width: 30px;
    cursor: initial;
}
.multiple-image-preview-container div.fake_image:hover {
    box-shadow: none;
}

.multiple-image-preview-container div.fake_image img {
    border: none;
}

.multiple-image-preview-container img, .multiple-image-preview-container video {
    max-height: 60px;
    max-width: 60px;
    border: 1px solid black;
    transition: transform 350ms cubic-bezier(0.52, -0.01, 0.15, 1);
}

.multiple-image-preview-container div.to-upload img {
    border-style: dashed;
}

.multiple-image-preview-container .drag-hovered {
    padding-right: 60px;
    pointer-events: none;
}
.multiple-image-preview-container .drag-hovered-inverted {
    transition: padding-right 50ms ease-in-out, padding-left 50ms ease-in-out;
    padding-left: 60px;
    pointer-events: none;
}

.multiple-image-preview-container {
    text-align: left;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.collapsable-container {
    text-align: center;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.collapsable-container.collapsed {
    height: auto;
    width: 100%;
    padding: 8px;
    box-shadow: 0 0 8px #00000024;
    margin-bottom: 8px;
}

.undraggable {
    user-drag: none; 
    user-select: none;
    pointer-events: none;
}

.topoverlay {
    display: none;
    position: fixed;
    width: 100%;
    background-color: white;
    top: 0;
    left: 0;
    z-index: 3;
    transition: transform 250ms ease-out;
    transform: translateY(-100%);
}

/* OK */
.topoverlay[emphasis='1'] {
    background-color: #c8ffc8;
}
/* WARNING */
.topoverlay[emphasis='2'] {
    background-color: #fff7d0;
}
/* ERROR */
.topoverlay[emphasis='3'] {
    background-color: red;
    color: white;
}

.topoverlay p {
    text-align: center;
    padding: 6px;
    font-size: 14px;
    font-weight: 700;
}

.topoverlay.open {
    transform: translateY(0);
    box-shadow: 0 0 5px #0000006e;
}

.topoverlay span.closebutton {
    position: absolute;
    top: 0;
    right: 8px;
    width: auto;
    padding: 0;
    cursor: pointer;
    font-size: 22px;
}

.topbar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    background-color: #3e3e3e;
    color: white;
    position: relative;
    align-items: baseline;
    height: 60px;
}

.topbar h1 {
    margin: 0 10px 0 90px;
    line-height: 60px;
}

.slidemenu_container {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: transparent;
    transition: background-color 150ms ease-in-out;
}

.slidemenu {
    position: relative;
    width: 300px;
    height: 100%;
    background: #3e3e3e;
    box-shadow: none;
    margin-left: -300px;
    transition: margin-left 150ms ease-in-out, box-shadow 150ms ease-in-out;
    padding-top: 60px;
}

.slidemenu_container.shown {
    background-color: #00000038;
    pointer-events: initial;
    position: fixed;
}

.slidemenu_container.shown .slidemenu {
    margin-left: 0;
    box-shadow: 0 0 20px -4px black;
}

.slidemenu p {
    padding: 16px 33px;
    color: white;
}

.slidemenu p i {
    width: 30px;
    margin-right: 12px;
    font-size: 21px;
    vertical-align: text-top;
}

.slidemenu p:hover {
    background-color: #ffffff0d;
    cursor: pointer;
}

.slidemenu-button {
    position: absolute;
    z-index: 1;
    cursor: pointer;
    pointer-events: all !important;
    color: white;
    font-size: 26px;
    right: 0;
    top: 0;
    transform: translateX(100%);
    background-color: #3e3e3e;
    padding: 17px;
    border-bottom-right-radius: 10px;
}

.dashboard {
    width: 100%;
    height: calc(100% - 60px);
    position: relative;
    background-color: #e8e8e8;
    overflow: hidden;
}

.board {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    overflow: hidden;
    margin: 16px;
    background-color: white;
    box-shadow: 0 0 9px #00000014;
    display: flex;
    flex-direction: column;
}

.pager {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    box-shadow: 0 0 11px #00000038;
}

.number-container {
    display: flex;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: left 350ms ease-in-out;
}

.number-container span {
    width: 40px;
    height: 40px;
    border: 1px solid grey;
    border-right: none;
    line-height: 40px;
    text-align: center;
}

.number-container span:hover {
    background-color: rgba(0,0,0,0.4);
    cursor: pointer;
    color: white;
}

.number-container span.selected {
    background-color: grey;
    color: white;
    font-weight: 700;
    font-size: 21px;
}

.number-container span:nth-last-child(1) {
    border-right: 1px solid grey;
}

.left-shadow, .right-shadow {
    box-shadow: 0 0 380px 110px white;
    position: absolute;
    z-index: 1;
    left: -1px;
    top: 0;
    width: 1px;
    height: 100%;
}

.right-shadow {
    left: initial;
    right: -1px;
    top: 0;
}

.item-container {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.item .header {
    padding: 10px 17px;
    cursor: pointer;
    height: 45px;
}

.item .header i {
    margin-right: 15px;
    display: inline-block;
    line-height: 25px;
}

.item:nth-of-type(odd) .header {
    background-color: #2e869414;
}

.item:not(.reorder_mode):not(.shown) .header:hover {
    background-color: #2e869436;
}

input, textarea, select {
    font-size: 16px;
    padding: 7px;
    margin-top: 8px;
    outline: none;
    border: 1px solid lightgrey;
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
    background-color: white;
    cursor: pointer;
    font-weight: 300;
    width: 300px;
    max-width: 100%;
}
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    -webkit-appearance: none;
    display: block;
}
input:not([type="checkbox"]):not([type="radio"]) {
    cursor: text;
}
input:not([type="checkbox"]):not([type="radio"]):focus {
    box-shadow: 0 0 6px #00000047;
}
input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
    margin: 0 4px 0 0;
}

input[type="radio"] {
    -webkit-border-radius: 100%;
       -moz-border-radius: 100%;
            border-radius: 100%;
}

.item .body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
    height: 0;
    box-shadow: inset 0px -20px 15px -20px #00000026;
}

.body .field {
    flex: 1 0 33.33%;
    width: 33.33%;
    padding: 16px;
    border-bottom: 3px solid #eaeaea;
}

.body .field:nth-of-type(odd) {
    background-color: #00000008;
}

.item.shown .body {
    height: auto;
}

.item.shown .header .collapse-arrow {
    transform: rotate(90deg);
}

.item.shown .header {
    background-color: #3e3e3e;
    color: white;
}

.preview {
    display: block;
    max-width: 100%;
    max-height: 60px;
    margin: 9px auto;
    box-shadow: 1px 1px 8px #00000021;
}

video.preview {
    max-height: 250px;
}


.switch {
  position: relative;
  display: block;
  height: 26px;
  width: 60px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 13px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 100%;
}

input:checked + .slider {
  background-color: green;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  left: calc(100% - 22px);
}

.field.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer {
    width: 100%;
    display: flex;
    height: 0;
    overflow: hidden;
    padding: 0;
    background-color: #00000008;
    justify-content: flex-end;
}

.item.shown .footer {
    height: auto;
    padding: 8px;
    border-bottom: 3px solid #0000000a;
}

.footer button {
    margin: 0 0 0 8px;
    width: auto;
}

.board-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-item-container {
    font-size: 28px;
    display: flex;
    padding: 22px;
    color: green;
    margin: 8px;
    cursor: pointer;
}

.add-item-container p {
    font-size: 23px;
    margin-left: 14px;
}

.add-item-container:hover {
    background-color: #00800014;
}

.board-control .refresh {
    font-size: 26px;
    cursor: pointer;
    color: green;
    padding: 22px;
    border-radius: 100%;
    margin: 8px;
}

.board-control .refresh:hover {
    background-color: #00800014;
}

textarea {
    height: 210px;
    width: 100%;
    resize: none;
}

button.disabled {
    background-color: lightgrey;
}

.body .field.double {
    flex-basis: 66.66%;
    width: 66.66%;
}

.header .reorder {
    float: right;
    margin-right: 6px !important;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    background-color: green;
    color: white;
    cursor: pointer;
}

.header p {
    display: inline-block;
    max-width: calc(100% - 70px);
    overflow: hidden;
}

.board-control button {
    margin: 0;
    width: 300px;
}

.item.reorder_mode.hovered_down {
    padding-bottom: 40px;
}

.item.reorder_mode.hovered_down:after {
    content: 'Mover aquí';
    color: #9e9e9e;
    font-weight: 900;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    width: 100%;
    height: 40px;
    position: absolute;
    bottom: 0;
    background-color: #ffffff;
    box-shadow: inset 0 0 20px -2px #0000005c;
}

.item.reorder_mode.hovered_up {
    padding-top: 40px;
}

.item.reorder_mode.hovered_up:before {
    content: 'Mover aquí';
    color: #9e9e9e;
    font-weight: 900;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    width: 100%;
    height: 40px;
    position: absolute;
    top: 0;
    background-color: #ffffff;
    box-shadow: inset 0 0 20px -2px #0000005c;
}

.item {
    position: relative;
}

.item.to_reorder .header {
    animation: shake-lr 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

.multiple-image-preview-container .rotate-button {
    right: initial;
    left: 0;
}

.multiple-image-preview-container .rotate-button i {
    font-size: 13px;
    transform: scaleX(-1);
}

@keyframes shake-lr {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    transform-origin: 50% 50%;
  }
  10% {
    transform: rotate(.2deg) scale(0.98);
  }
  20%,
  40%,
  60% {
    transform: rotate(-.3deg) scale(1);
  }
  30%,
  50%,
  70% {
    transform: rotate(.3deg) scale(0.98);
  }
  80% {
    transform: rotate(-.2deg) scale(1);
  }
  90% {
    transform: rotate(.2deg) scale(0.98);
  }
}