/* käytetty esimerkkinä tätä: https://github.com/mdn/css-examples/blob/master/learn/styles.css */
body { 
    background-color: #fff;
    color: #333;
    font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

/* styles for the editor */

.koodit {
  display: flex;
  flex-wrap: wrap;
}


.koodi {
  width: 47%;
  max-width: 47%;
  margin-left: 1%;
  margin-right: 1%;
}
section h2 {
  font-size: smaller;
  text-align: center;
  margin: 0;
  padding: 0;
}

textarea {
 width: 100%;

}

.playable {
    font-family: monospace;
    display: block;
    background-color: #F4F7F8;
    border: none;
    border-left: 6px solid #558ABB;
    color: #4D4E53;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 90%;
    margin-bottom: 1em;
  }

  .playable-css {
    height: 160px;
  }

  .playable-html {
    height: 160px;
  }
  #js {
    height: 160px;

  }
  #console {
    min-height: 160px;
    max-height: 50vh;
    white-space: pre;
    font-family: monospace;
    border: 1px solid black;
    width: 47%
    min-width: 47%;
    overflow: scroll;
  margin: 0;
  padding: 0;
  }


  .playable-buttons {
    float: right;
    padding: 0.5em;
  }
  #run {
    margin: 0.5em;
  }
  input[type="button"] {
    font-size: larger;
  }
  .preview {
    border: 1px solid #4D4E53;
    margin: 1em;
    border-radius: 2px;
    padding: 10px 14px 10px 10px;
  }

  .preview input {
    display: block;
    margin: 5px;
  }
