body {
  color: #333;
  background-color: #f5f7f9;
  justify-content: center;
  margin: 0;
  padding: 10px;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
}

#main {
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 1100px;
  display: flex;
}

#header {
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 600;
}

#controls, #notebook-holder, #footer {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  width: 100%;
  padding: 1.5em;
  box-shadow: 0 2px 5px #0000000d;
}

#controls {
  background-color: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding: 20px;
  display: flex;
  box-shadow: inset 0 1px 2px #00000005;
}

#notebook-holder {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  width: 100%;
  min-height: 100px;
  padding: 20px 1.5em 20px 8.5em;
  overflow: auto hidden;
  box-shadow: 0 2px 5px #0000000d;
}

#footer {
  color: #666;
  background-color: #fafbfc;
  padding: 1em;
  font-size: small;
  line-height: 1.5;
}

#file {
  color: #555;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  max-width: 100%;
  padding: 6px 12px 6px 6px;
  font-size: 14px;
  transition: border-color .2s;
  display: inline-block;
}

#file:hover {
  border-color: #0969da;
}

#file::file-selector-button {
  color: #24292f;
  cursor: pointer;
  background-color: #f6f8fa;
  border: 1px solid #1b1f2426;
  border-radius: 6px;
  margin-right: 12px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px #1b1f240a;
}

#file::file-selector-button:hover {
  background-color: #eff2f5;
}

#file::file-selector-button:active {
  background-color: #ebeff2;
  box-shadow: inset 0 1px #1b1f241a;
}

#footer a, #footer a:visited {
  text-decoration: none;
}

.nb-output {
  overflow: auto;
}

div[class*="nb-"][class$="-output"], .nb-stdout, .nb-stderr {
  margin: 0;
}

.nb-text-output {
  margin: .5em 0;
}

@media (width <= 600px) {
  body {
    padding: 5px;
  }

  #controls, #notebook-holder, #footer {
    padding: 1em;
  }

  #notebook-holder {
    padding-left: 1em !important;
  }

  .nb-input:before, .nb-output:before {
    text-align: left;
    margin-bottom: 5px;
    display: block;
    width: auto !important;
    position: static !important;
  }
}
