* + table {
  border-style:solid;
  border-width:1px;
  border-color:#e7e3e7;
  margin-left:auto; 
  margin-right:auto;
}

* + table th, * + table td {
  border-style:solid;
  border-width:1px;
  border-color:#e7e3e7;
}

* + table th {
  border-style:solid;
  border-width:1px;
  font-weight:bold;
  border-color:#e7e3e7;
}

* + table th[align="left"], * + table td[align="left"] {
  text-align:left;
}

* + table th[align="right"], * + table td[align="right"] {
  text-align:right;
}

* + table th[align="center"], * + table td[align="center"] {
  text-align:center;
}

tr:nth-child(even) {background-color: #f2f2f2}

th, td {
    padding: 15px;
    text-align: left;
}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 675px) {
/*(min-device-width: 768px) and (max-device-width: 1024px)  {*/

  /* Force table to not be like tables anymore */
  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  
  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  /*tr { border: 1px solid #ccc; }*/
  
  td { 
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee; 
    position: relative;
    padding-left: 35%; 
    text-align: left;
  }
  
  td:before { 
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    left: 6px;
    width: 25%; 
    height: 250px;
    padding-right: 10px; 
    /*white-space: nowrap;*/
    text-align: right;
    vertical-align: center;
  }
  
  /*
  Label the data
  */
  td:nth-of-type(1):before { content: "Session"; top: 15px; }
  td:nth-of-type(2):before { content: "Machine"; top: 15px; }
  td:nth-of-type(3):before { content: "Training game mode"; top: 4px; }
  td:nth-of-type(4):before { content: "Learning rate decay"; top: 4px; }
}
