/* General overwrites */
body {
  color: rgb(109, 109, 109);
}

div {
  margin: 0;
}

h3 {
  font-weight: lighter;
  margin-top: 0;
}

a.link {
  background-color: rgba(116, 177, 232, 0.65);
  color: rgba(109, 109, 109, 0.85);
  display: inline-block;
  padding: 3px 5px;
  text-decoration: none;
  transition: all 300ms;
}

a.link:hover {
  background-color: rgba(116, 177, 232, 0.85);
  color: rgba(80, 80, 80, 0.95);
  /*text-decoration: none;*/
}

/* Layout */
.container {
  margin: 0 auto;
  width: 500px;
}

.navbar {
  background-color: #4787e4;
  box-shadow: 0 3px 5px rgba(40, 40, 40, 0.8);
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  height: 65px;
  width: 100%;
}

.navbar > .container {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
}

.logo {
  display: inline-block;
}

.logo > .brick {
  display: inline-block;
  transform-origin: center center;
  transition: all 300ms;
  width: 50px;
}

.logo:hover + .logo-name {
  transform: scale(1.2) translate(47px, 5px);
  transition: all 300ms;
}

.logo > .brick:hover {
  transform: rotate(360deg) scale(1.8) translate(10px, 10px);
}

.logo .brick-body {
  padding: 3px;
}

.logo .brick-slot {
  height: 9px;
  width: 9px;
}

.logo-name {
  font-size: 24px;
  margin-left: 8px;
}

.navbar-links {
  margin-left: auto;
}

.navbar .octicon {
  color: rgb(255, 255, 255);
  fill: currentColor;
  opacity: 0.8;
}

.navbar .octicon:hover {
  opacity: 1;
}

.footer {
  color: #6d6d6d;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

.footer-container {
  border-top: 1px solid #d2d4d7;
  display: inline-block;
  padding: 10px 0;
}

.main-container.map .reduce-only {
  display: none;
}

.inputs-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 22px;
  text-align: center;
}

.inputs-container .input-label {
  margin-bottom: 8px;
}

.inputs-container > div {
  flex-basis: 50%;
}

.input-collection {
  display: inline-flex;
  position: relative;
  z-index: 50;
}

.input-collection-element {
  border: 1px solid rgba(0, 0, 0, 0);
  border-right: none;
  height: 20px;
  text-align: center;
  min-width: 20px;
}

.input-collection-element:last-of-type {
  border-right: 1px solid rgba(0, 0, 0, 0);
}

.input-function {
  margin: 0 auto;
  position: relative;
  width: 90px;
  z-index: 100;
}

.start-button-wrapper {
  margin-bottom: 15px;
  text-align: center;
}


/* Form */
#animate {
  background-color: #74b1e8;
  border: none;
  box-shadow:
    0px 3px 1px -2px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14),
    0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  color: rgb(57, 57, 57);
  cursor: pointer;
  font-weight: lighter;
  opacity: 0.9;
  padding: 8px 12px;
  transition: all 300ms;
}

#animate:hover {
  box-shadow:
    0px 2px 4px -1px rgba(0, 0, 0, 0.2),
    0px 4px 5px 0px rgba(0, 0, 0, 0.14),
    0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

#hof-picker {
  background-color: white;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  height: 35px;
  margin-right: 5px;
  padding: 5px;
}


/* Main brick */
.mainbrick-filled {
  background-color: #d7d7d7;
}

.mainbrick-body {
  height: 200px;
  width: 100%;
}

.mainbrick-slot {
  height: 35px;
  width: 50px;
}


/* Brick */
.brick-body {
  align-content: space-around;
  display: flex;
  font-size: 12px;
  justify-content: center;
  padding: 8px 12px;
  position: relative;
}

.brick-filled {
  background-color: #74b1e8;
  box-shadow: 2px 2px 5px rgba(128, 128, 128, 0.7);
  color: rgb(57, 57, 57);
}

.brick-output {
  position: relative;
}

.brick-slot {
  height: 15px;
  width: 15px;
}

.brick-slots {
  display: flex;
  justify-content: space-around;
}

.animation {
  height: 315px;
}

/* Helper classes */
.invisible {
  visibility: hidden;
}

.dark-text {
  color: rgb(30, 30, 30);
}

.text-center {
  text-align: center;
}
