*,
*:before,
*:after {
  box-sizing: border-box;
}

@media screen {
  
  body {
    font-family: helvetica, arial, sans-serif;
    margin: 25px;
  }
  
  a {
    text-decoration: none;
  }
  
  button {
    font-size: 16px;
    border-radius: 3px;
    background-color: lightgrey;
    border: 1px solid grey;
    box-shadow: 2px 2px teal;
    cursor: pointer;
    align-self: flex-start;
  }
  button:hover {
    background-color: #eeeeee;
  }
  button:active {
    box-shadow: none;
  }
  
  button a {
    text-decoration: none;
    color: black;
  }
  
  header {
    display: flex;
    margin-bottom: 10px;
  }

  fieldset.borderless {
    border: 0;
    padding: 0;
    margin: 0;
  }
  
  form {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 0 15px 15px 15px;
    background-color: rgb(204, 224, 244);
    display: flex;
    flex-flow: column;
    width: 100%;
    max-width: 642px;
    border-radius: 3px;
    position: relative;
  }
  
  h1 {
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
  }
  
  input {
    /*margin-bottom: 10px;*/
    padding: 5px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    font-size: 16px;
  }
  input:disabled {
    background-color: #e9e9e9;
  }
  
  label {
    margin-right: 7px;
  }
  
  li {
    position: relative;
    z-index: 2;
    margin-bottom: 5px;
  }
  
  p {
    max-width: 600px;
    margin: 8px 0;
  }
  
  span {
    margin-right: 10px;
    display: inline-block;
  }
  
  ul {
    list-style-type: none;
    padding-left: 20px;
  }
  
  .bold {
    font-weight: bold;
  }
  
  .disabled {
    color: lightsteelblue;
  }
  
  .hidden.category, .hidden {
    display: none;
  }

  div.line {
    width: 100%;
    height: 1px;
    background-color: black;
    margin-bottom: 10px;
  }
  
  div.errors {
    color: red;
  }

  /* nav styling */
  #nav-options {
    background-color: aliceblue;
    color: darkslateblue;
    max-width: 300px;
    margin-bottom: 20px;
  }

  #nav-options p {
    width: 80%;
    margin: 8px 8px;
    display: inline-block;
  }
  #nav-options li a {
    color: darkslateblue;
    text-decoration: none;
  }

  #nav-options ul {
    margin-top: 0;
    padding-bottom: 8px;
    display: none;
  }

  .arrow {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid steelblue;
    margin-right: 8px;
    margin-top: 8px;
    display: inline-block;
    transition: transform 600ms ease;
  }

  .rotate {
    transform: rotate(-90deg);
  }
  
  /* FORM STYLING */
  
  div.flex {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
  }

  div.input, ul.row {
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 7px;
    align-items: center;
  }

  div.searchstrategy {
    padding-top: 5px;
  }
  
  div.searchstrategy > div, div.gridtype > div {
    margin-bottom: 7px;
  }
  
  /* method info */
  
  select#methodClass {
    width: 100px;
  }
  
  input#placeNotation {
    flex: 1 335px;
  }
  
  div#methodSearch div {
    position: relative;
    flex: 1 335px;
  }
  
  input#methodName {
    width: 99%;
    border-radius: 3px 3px 0 0;
  }
  
  ul#methodList {
    margin-left: 1px;
    padding-left: 0;
    width: 98.5%;
    /*border: 1px solid black;*/
    position: absolute;
    top: 15px;
    background-color: aliceblue;
    border-radius: 0 0 5px 5px;
    /*z-index: 3;*/
  }
  
  ul#methodList li {
    display: none;
    padding-left: 10px;
    padding-bottom: 5px;
    margin-bottom: 0;
    width: 100%;
    z-index: 4;
    background-color: aliceblue;
  }
  
  ul#methodList li:last-child {
    border-radius: 0 0 5px 5px;
  }
  
  ul#methodList li:hover {
    background-color: lightsteelblue;
  }
  
  ul#methodList li.selected {
    background-color: lightsteelblue;
  }

  div.type h3 {
    margin-top: 4px;
  }
}

@media print {
  header {
    display: none;
  }

  body {
    font-family: helvetica, arial, sans-serif;
    margin: 25px;
  }

  form {
    display: none;
  }

  svg.contain {
    width: 25%;
    height: auto;
    break-inside: avoid-page;
    margin-bottom: 40px;
  }
  
  div.grid-container {
    display: inline-block;
  }
  
  div.grid {
    float: left;
  /*height: 850px;*/
  }
  
  
  div.pageN {
    margin-top: 100px;
  }
  
  
  svg svg {
    width: 16.6%;
  }
  
  footer {
    display: none;
  }
}

