/*
 * @license
 * Getting Started with Web Serial Codelab (https://todo)
 * Copyright 2019 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License
 */

 * {
    box-sizing: border-box;
  }
  
  html,
  body {
    color: #444;
    font-family: 'Helvetica', 'Verdana', sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  html {
    overflow: hidden;
  }
  
  body {
    align-content: stretch;
    align-items: stretch;
    background: #292929;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  
  /**
   * Header
   */
  
  .header {
    align-content: center;
    align-items: stretch;
    background: #3f51b5;
    box-shadow:
      0 4px 5px 0 rgba(0, 0, 0, 0.14),
      0 2px 9px 1px rgba(0, 0, 0, 0.12),
      0 4px 2px -2px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-size: 20px;
    height: 8px;
    justify-content: flex-start;
    padding: 16px 16px 0 16px;
    position: fixed;
    transition: transform 0.233s cubic-bezier(0, 0, 0.21, 1) 0.1s;
    width: 100%;
    will-change: transform;
    z-index: 1000;
  }
  
  .header h1 {
    flex: 1;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
  }
  
  /**
   * Main body
   */
  
  .main {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .hidden {
    display: none;
  }
  
  #notSupported {
    padding: 1em;
    background-color: red;
    color: white;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  
  #microbit {
    display: flex;
  }
  
  .mb-button {
    align-self: center;
    background-color: #fff;
    border-radius: 100%;
    box-shadow:
      0 4px 5px 0 rgba(0, 0, 0, 0.14),
      0 2px 9px 1px rgba(0, 0, 0, 0.12),
      0 4px 2px -2px rgba(0, 0, 0, 0.2);
    height: 30px;
    width: 30px;
    
  }
  
  .mb-matrix {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .pressed {
    background-color: #D81B60;  
    box-shadow: inset 0px 0px 5px #c1c1c1;
    outline: none;
  }