@media only screen and (min-width: 1008px) {
  html, body
  {
    background-image: none;
  }

  body
  {
    margin-bottom: 30px;
  }

  .popup
  {
    text-align: left;
    padding: 0px 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #515151;
    font-size: 13px;
  }

  .topic
  {
    font-size: 14pt;
    text-align: left;
  }

  .bottomButtons
  {
    text-align: center;
    position: fixed;
    bottom: 0;
    left:0;
    height: 25px;
    border-top: solid 1px black;
    width: 100%;
    padding-top: 3px;
    background-color: white;
    /*background-color: yellow; /* DEBUG */
  }
  .bottomButtons input.button, .bottomButtons input
  {
    width: 100px;
    background-image: url(../img/b.png);
    background-repeat: repeat-x;
    border: 0;
    color: white;
    height: 22px;
    font-weight: normal;
    cursor: pointer;
  }
}

@media only screen and (max-width: 1007px) {
  html, body
  {
    background-image: none;
  }

  body
  {
    margin-bottom: 30px;
  }

  .popup
  {
    text-align: left;
    padding: 0px 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #515151;
    font-size: 13px;
  }

  .topic
  {
    font-size: 14pt;
    text-align: left;
  }

  .bottomButtons
  {
    text-align: center;
    position: fixed;
    bottom: 0;
    left:0;
    height: 50px;
    border-top: solid 1px black;
    width: 100%;
    background-color: white;
    /*background-color: yellow; /* DEBUG */
  }
  .bottomButtons input.button, .bottomButtons input
  {
    width: calc(50% - 12px);
    background: #ff8800;
    border: #884400 1px solid;
    color: #ffffff;
    border-radius: 5px;
    height: 40px;
    font-weight: normal;
    cursor: pointer;
    margin: 5px;
  }

  #btnSelect
  {
    margin-right: 0;
  }
}