.attribution{
  min-height: 485px;
  bottom: 0px;
  top: 0;
  left: 0px;
  position: absolute;
}

.attribution .attribution-logo{
  background: url(./cclogo.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 360px;
  left: 710px;
  width: 90px;
  height: 40px;
}

.attribution-container-hidden{
  width:0px;
  height:0px;
}

.attribution-container-hidden div{
  display: none;
}

.attribution-container{
  position: fixed;
  background: rgba(0,0,0,0.4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: background 0.5s;
  transition-timing-function: ease;
  z-index: 2
}

.attribution-text{
  position: absolute;
  font-size: 14px;
  top: 50%;
  left: 50%;
  margin: -200px 0 0 -150px;
  padding:20px;
  border-radius:12px;
  border: 1px solid silver;
  background: white;
  width:400px;
  height:300px;
}

.attribution-text div{
  margin:10px;
}

.attribution-text .small-logo{
  background: url(./cclogo.png);
  background-size: 100px 42px;
  width:100px;
  height:42px;
}
#app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 800px;
  max-width: 1600px;
  height: 100%;
  display: flex;
  align-items: flex;
  justify-content: center;
  background-color: #ffffff; }

.app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; }
  .app-container .top-bar {
    width: 100%;
    height: 29px;
    margin-bottom: 3px;
    flex-shrink: 0; }
  .app-container .controls-and-content-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden; }
    .app-container .controls-and-content-container .main-content {
      display: grid;
      grid-template-columns: 50% 50%;
      color: #f1f3f6;
      background-color: #ffffff;
      width: 100%;
      height: 100%; }
      .app-container .controls-and-content-container .main-content .section {
        color: #2c3840;
        background-color: #ffffff;
        border: 3px solid white;
        border-radius: 5px;
        margin: 0;
        border-radius: 0; }
        .app-container .controls-and-content-container .main-content .section.simulation {
          display: flex;
          flex-direction: column; }
          .app-container .controls-and-content-container .main-content .section.simulation .subsection {
            display: flex;
            flex-grow: 1; }
            .app-container .controls-and-content-container .main-content .section.simulation .subsection.simulation {
              position: relative;
              flex-grow: 2; }
            .app-container .controls-and-content-container .main-content .section.simulation .subsection.sim-controls {
              z-index: 1; }
        .app-container .controls-and-content-container .main-content .section.chart-table {
          display: grid;
          grid-template-rows: 280px auto; }
          .app-container .controls-and-content-container .main-content .section.chart-table .subsection {
            overflow: hidden;
            display: flex;
            justify-content: center; }
            .app-container .controls-and-content-container .main-content .section.chart-table .subsection.diagram {
              margin-top: 6px;
              padding-bottom: 16px; }
              .app-container .controls-and-content-container .main-content .section.chart-table .subsection.diagram div {
                text-align: center; }
            .app-container .controls-and-content-container .main-content .section.chart-table .subsection.table {
              border-top: 4px solid #dde2e5;
              border-top-left-radius: 10px;
              margin-top: -6px;
              z-index: 0;
              overflow-y: auto; }
            .app-container .controls-and-content-container .main-content .section.chart-table .subsection.chart {
              position: relative;
              overflow-y: auto;
              padding-bottom: 16px; }

.simulation-controls {
  width: 400px;
  display: flex;
  flex-direction: row;
  align-items: center; }
  .simulation-controls .run-simulation-button {
    margin: 10px 8px;
    display: flex;
    width: 180px;
    height: 65px;
    border-radius: 8px;
    border: 1px solid silver;
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5); }
    .simulation-controls .run-simulation-button:hover {
      background-color: #f0f0f0; }
    .simulation-controls .run-simulation-button:active {
      box-shadow: inset 1px 1px 4px 0px rgba(0, 0, 0, 0.5); }
    .simulation-controls .run-simulation-button.running {
      box-shadow: 0px 0px 0px 8px yellow; }
      .simulation-controls .run-simulation-button.running:hover {
        background-color: #ffffff; }
    .simulation-controls .run-simulation-button.inactive {
      opacity: 0.6;
      background-color: #f0f0f0;
      box-shadow: none; }
    .simulation-controls .run-simulation-button .simulation-button-text {
      padding: 15px 0px 10px 5px;
      width: 120px;
      font-size: 0.9em; }
    .simulation-controls .run-simulation-button .simulation-button-icon {
      margin: 10px 0px 10px 0px;
      width: 50px;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center; }
      .simulation-controls .run-simulation-button .simulation-button-icon.carb {
        background-image: url(./carbs-button.png); }
      .simulation-controls .run-simulation-button .simulation-button-icon.protein {
        background-image: url(./protein-button.png); }

.energy-diagram-key {
  width: 180px;
  height: 100px;
  font-size: 0.9em;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid silver;
  border-radius: 4px;
  padding-top: 8px; }
  .energy-diagram-key .key {
    clear: both;
    width: 100%;
    padding: 6px; }
    .energy-diagram-key .key .key-text {
      float: left;
      width: 140px;
      margin-left: 10px; }
    .energy-diagram-key .key .key-color {
      float: left;
      width: 18px;
      height: 18px;
      border: 1px solid silver; }
    .energy-diagram-key .key.input .key-color {
      background-color: yellow; }
    .energy-diagram-key .key.output .key-color {
      background-color: green; }
    .energy-diagram-key .key.hunger .key-color {
      background-color: orange; }

.simulation-container .simulation-placeholder {
  position: relative;
  width: 400px;
  height: 315px;
  background: silver;
  border: 1px solid silver;
  box-sizing: border-box;
  background-image: url(./dance_placeholder.png);
  background-size: contain; }
  .simulation-container .simulation-placeholder.tired {
    background-image: url(./dance_tired.png); }
  .simulation-container .simulation-placeholder.hungry {
    background-image: url(./dance_hungry.png); }
  .simulation-container .simulation-placeholder video {
    width: 100%;
    position: absolute; }
  .simulation-container .simulation-placeholder .simulation-text {
    position: absolute;
    bottom: 5px;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    text-align: center;
    z-index: 2; }

@-webkit-keyframes pulse {
  from {
    -webkit-filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg); }
  50% {
    -webkit-filter: brightness(1) sepia(1) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(1) saturate(1000%) hue-rotate(0deg); }
  to {
    -webkit-filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg); } }

@keyframes pulse {
  from {
    -webkit-filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg); }
  50% {
    -webkit-filter: brightness(1) sepia(1) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(1) saturate(1000%) hue-rotate(0deg); }
  to {
    -webkit-filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg); } }

.energy-diagram-container {
  width: 150px;
  height: 200px;
  background-image: linear-gradient(#666666, black);
  display: inline-block;
  margin: 10px;
  padding: 10px;
  position: relative;
  border: 8px solid silver;
  border-radius: 20px; }
  .energy-diagram-container.inactive {
    opacity: 0.5; }
  .energy-diagram-container .energy-diagram-placeholder {
    width: 100%;
    height: 100%;
    background-image: url(./silhouette_invert.png);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    -webkit-filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg);
            filter: brightness(1) sepia(0) saturate(1000%) hue-rotate(0deg); }
    .energy-diagram-container .energy-diagram-placeholder.running {
      -webkit-animation-name: pulse;
              animation-name: pulse;
      -webkit-animation-duration: 1.0s;
              animation-duration: 1.0s;
      -webkit-animation-iteration-count: 15;
              animation-iteration-count: 15; }
  .energy-diagram-container .energy-bar-input {
    width: 16px;
    height: 0px;
    background-color: yellow;
    position: absolute;
    left: 8px;
    bottom: 0px;
    transition: 1s; }
  .energy-diagram-container .energy-bar-hunger {
    width: 16px;
    height: 0px;
    background-color: orange;
    position: absolute;
    right: 10px;
    bottom: 0px; }
  .energy-diagram-container .energy-bar-expended {
    width: 16px;
    height: 0px;
    background-color: green;
    position: absolute;
    left: 28px;
    bottom: 0px; }

html, body {
  margin: 0;
  padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none; }

