html,
body {
  margin: 0;
  padding: 0;
}
body,
select {
  font-weight: 400;
  font-size: 16px;
}
b {
  font-weight: 700;
}
#logo {
  width: 220px;
  margin: 0 auto;
  text-align: center;
}
#container {
  position: relative;
  margin: 0 auto;
  width: 800px;
}
#panel {
  position: absolute;
  width: 200px;
  top: 0px;
  right: 0px;
  text-align: right;
  padding: 0px;
}
@media screen and (max-width: 640px) {
  #panel {
    font-size: 12px;
  }
}
#goal {
  height: 120px;
  width: 100%;
}
#levels {
  width: 100%;
  margin: 4px 0 15px 0;
  padding: 3px 0px;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-bottom: 1px solid #aaa;
  border-radius: 3px;
  outline: none;
}
#controls {
  overflow: hidden;
}
.controlBox {
  text-align: center;
  float: left;
}
.left {
  margin-left: 120px;
}
.right {
  margin-left: 80px;
}
/* #program:empty::after {
    content: "Drop functions here";
    font-weight: bold;
    color: #ccc;
}

#available:empty::after {
    content: "No functions available";
    font-weight: bold;
    color: #ccc;
} */
.transformer {
  display: inline-block;
  padding: 1px 4px;
  margin: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #a2a2a2;
  border-radius: 5px;
}
li.sortable-ghost {
  opacity: 0.4;
}
.buttons {
  margin: 5px 0;
}
/* .button {
    cursor: pointer;

    color: #000;
    font-size: @fontSizeSmall;
    text-decoration: none;

    @bgCol: #f0f0f0;
    background-color: @bgCol;
    padding: 2px 5px;

    border: 1px solid #666;
    border-bottom: 1px solid #000;
    border-radius: 3px;

    &:hover {
        background-color: darken(@bgCol, 10);
    }
} */
p.footer {
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  color: #444;
}
a {
  color: #CC333F;
}
.cube {
  display: inline-block;
  vertical-align: middle;
  width: 11px;
  height: 11px;
  margin: 0 1px;
  border: 1px solid #444;
  border-radius: 3px;
}
.stack {
  font-size: 0;
  line-height: 2px;
  display: inline-block;
  vertical-align: middle;
  width: 15px;
}
.stack .cube {
  width: 9px;
  height: 9px;
  vertical-align: baseline;
}
.X {
  background-color: #fff;
  border: 1px dotted #222;
}
.Cyan {
  background-color: #00A0B0;
}
.Brown {
  background-color: #6A4A3C;
}
.Red {
  background-color: #CC333F;
}
.Orange {
  background-color: #EB6841;
}
.Yellow {
  background-color: #EDC951;
}
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
@-webkit-keyframes flash {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}
@keyframes flash {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}
.flash {
  -webkit-animation-name: flash;
  animation-name: flash;
}
#ghstars {
  margin-top: 8px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Open Sans", "sans-serif";
  background-color: #F1F6FF;
  min-height: 100vh;
  position: relative;
}
a {
  text-decoration: none;
  color: inherit;
}
h1 {
  font-size: 24px;
  margin-bottom: 22px;
}
.see-more {
  margin: 12px auto 50px;
  max-width: 1200px;
  text-align: right;
}
.see-more a {
  text-decoration: underline;
  padding-right: 8px;
  padding-bottom: 25px;
}
#ranking {
  padding-bottom: 25px;
}
#landing + #ranking h1 {
  display: none;
}
#landing + #ranking {
  max-width: 1200px;
  margin: 0 auto;
}
#landing {
  text-align: center;
  padding-bottom: 50px;
}
#landing h1 {
  font-size: 24px;
  margin: 18px auto 4px;
}
#landing p {
  font-size: 14px;
  margin-bottom: 24px;
}
@media screen and (max-width: 640px) {
  #landing br {
    display: none;
  }
}
#landing img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
@media screen and (max-width: 640px) {
  #landing img {
    max-width: 80%;
  }
}
#landing .button {
  display: inline-block;
  margin: 0 auto;
}
#header {
  background-color: #773DBD;
  height: 90px;
  padding: 0 12px;
}
#header .box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
@media screen and (max-width: 640px) {
  #header {
    height: 50px;
  }
}
#header img {
  width: 150px;
}
@media screen and (max-width: 640px) {
  #header img {
    width: 100px;
  }
}
#header ul {
  list-style: none;
  margin: 0;
  display: flex;
  color: #FFFFFF;
  text-transform: uppercase;
}
#header ul li {
  padding-right: 24px;
}
#header ul li:last-child {
  padding-right: 0;
}
#header ul li a {
  font-size: 14px;
}
#header ul li a:hover {
  color: #FFFFFF;
}
#wrapper {
  height: calc(100vh - 90px);
  padding: 50px;
}
@media screen and (max-width: 640px) {
  #wrapper {
    height: calc(100vh - 50px);
    padding: 50px 12px;
  }
}
.box {
  max-width: 1200px;
  margin: 0 auto;
}
#subheader {
  background-color: rgba(215, 228, 255, 0.6);
  padding: 24px;
}
@media screen and (max-width: 1024px) {
  #subheader {
    padding: 12px;
  }
}
#subheader .box {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-areas: "level help chrono";
  align-items: center;
}
#subheader .box #level {
  grid-area: level;
}
#subheader .box #help {
  grid-area: help;
}
#subheader .box #chrono {
  grid-area: chrono;
}
@media screen and (max-width: 1024px) {
  #subheader .box {
    display: block;
  }
}
#play-area {
  padding: 24px 24px 48px;
}
@media screen and (max-width: 1024px) {
  #play-area {
    padding: 12px 12px 24px;
  }
}
#play-area .box {
  display: grid;
  grid-gap: 12px;
  grid-template-areas: "functions blocks sequences";
  grid-template-columns: 1fr 3fr 1fr;
}
@media screen and (max-width: 1024px) {
  #play-area .box {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "blocks blocks" "functions sequences";
  }
}
#play-area #functions {
  grid-area: functions;
}
#play-area #blocks {
  grid-area: blocks;
}
#play-area #sequences {
  grid-area: sequences;
}
#canvas {
  width: 100%;
  height: auto;
}
.link {
  background-color: transparent;
  color: #000000;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: underline;
}
.link:hover {
  color: #000000;
}
.button {
  background-color: #773DBD;
  color: #FFFFFF;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  margin-bottom: 12px !important;
  cursor: pointer;
}
.button:hover {
  color: #FFFFFF;
  text-decoration: none;
}
#chrono {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}
@media screen and (max-width: 640px) {
  #chrono {
    font-size: 32px;
    margin-bottom: 8px;
  }
}
#help {
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
@media screen and (max-width: 640px) {
  #help {
    font-size: 14px;
    line-height: 16px;
  }
}
.panel {
  display: flex;
  flex-direction: column;
}
.panel .sortable {
  flex: 1;
}
.panel .link {
  align-self: center;
  margin-top: 12px;
  font-size: 14px;
}
.panel .button {
  display: inline-block;
  font-size: 14px;
  margin: 12px auto 0;
}
.panel-title {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px 8px 0 0;
  padding: 18px 0;
}
@media screen and (max-width: 640px) {
  .panel-title {
    font-size: 14px;
  }
}
#nextlevelbtn {
  text-align: center;
}
.sortable {
  padding: 12px 12px 36px;
  list-style-type: none;
  border-radius: 0 0 8px 8px;
  background-color: rgba(255, 255, 255, 0.5);
}
@media screen and (min-width: 1024px) {
  .sortable {
    min-width: 240px;
  }
}
.sortable li {
  padding: 20px 12px;
  margin-bottom: 10px;
  text-align: center;
  background-color: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  cursor: move;
}
@media screen and (max-width: 640px) {
  .sortable li {
    font-size: 12px;
    padding: 14px 8px;
  }
}
#message {
  visibility: hidden;
  text-align: center;
  background-color: #773DBD;
  color: #FFFFFF;
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  padding: 12px 24px;
  border: 5px solid #542291;
}
#message #solved {
  font-size: 24px;
  font-weight: 700;
}
.participant {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding: 24px;
  margin-bottom: 5px;
}
@media screen and (max-width: 640px) {
  .participant {
    padding: 12px;
    font-size: 14px;
  }
}
.participant:first-child {
  border-radius: 8px 8px 0 0;
}
.participant:last-child {
  border-radius: 0 0 8px 8px;
}
.participant .position {
  background: transparent;
  color: #64748B;
  border-radius: 9999px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 30px;
}
@media screen and (max-width: 640px) {
  .participant .position {
    margin-right: 12px;
  }
}
.participant .position.first {
  background: #E3A008;
  color: #FFFFFF;
}
.participant .position.second {
  background: #9FA6B2;
  color: #FFFFFF;
}
.participant .position.third {
  background: #9F580A;
  color: #FFFFFF;
}
.participant .time {
  margin-left: auto;
  color: #9FA6B2;
}
#landing + #ranking .participant:last-child {
  margin-bottom: 0;
}
.modal-header,
.modal-footer {
  border: none;
}
.modal-body {
  padding: 0;
}
.modal-flex {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
.modal-dialog {
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin: 0;
}
@media screen and (min-width: 640px) {
  .modal-dialog {
    min-width: 400px;
  }
}
label {
  margin-bottom: 4px;
  font-size: 14px;
}
.paginationjs {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  margin-bottom: 120px;
  border-radius: 8px;
}
.paginationjs .paginationjs-pages {
  width: 100%;
  height: 100%;
}
.paginationjs .paginationjs-pages ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
.paginationjs .paginationjs-pages ul li {
  padding: 12px;
  min-width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.paginationjs .paginationjs-pages ul li:hover {
  background-color: #d8e6ff;
}
.paginationjs .paginationjs-pages ul li.paginationjs-prev {
  margin-right: auto;
  margin-left: 0;
  padding-left: 14px;
}
.paginationjs .paginationjs-pages ul li.paginationjs-prev:hover {
  border-radius: 8px 0 0 8px;
}
.paginationjs .paginationjs-pages ul li.paginationjs-next {
  margin-left: auto;
  margin-right: 0;
  padding-right: 14px;
}
.paginationjs .paginationjs-pages ul li.paginationjs-next:hover {
  border-radius: 0 8px 8px 0;
}
.paginationjs .paginationjs-pages ul li.disabled,
.paginationjs .paginationjs-pages ul li.active {
  cursor: not-allowed;
}
.paginationjs .paginationjs-pages ul li.active {
  border-top: 2px solid #773DBD;
}
.paginationjs .paginationjs-pages ul li.active a {
  color: #773DBD;
}
.paginationjs .paginationjs-pages ul li a {
  font-size: 14px;
  font-weight: 600;
}
.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #773DBD;
  background: -moz-linear-gradient(left, #773DBD 10%, rgba(255, 255, 255, 0) 42%);
  background: -webkit-linear-gradient(left, #773DBD 10%, rgba(255, 255, 255, 0) 42%);
  background: -o-linear-gradient(left, #773DBD 10%, rgba(255, 255, 255, 0) 42%);
  background: -ms-linear-gradient(left, #773DBD 10%, rgba(255, 255, 255, 0) 42%);
  background: linear-gradient(to right, #773DBD 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #773DBD;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #f1f6ff;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
