main {margin-top:72px;}

.space-r {margin-right:8px;}

#intro {height: 100vh;}

/* table */
.table th, .table td {vertical-align:middle;}
@media screen and (max-width: 639px) {
  .table th, .table td {padding:1px;}
}

@media screen and (min-width: 640px) {
  .table:not(#detail) th, .table:not(#detail) td {padding:5px 1.4rem;}
}

thead {
  position: -webkit-sticky;
  position:sticky;
  top:0;
}

.fixed thead {
  z-index:1000;
}
.fixed tfoot {
  position: sticky;
  bottom: 0;
}
.fixed th:first-child, .fixed td:first-child {
  position: sticky;  position: -webkit-sticky;
  left: 0;
}
.fixed tbody td:first-child {
  background-color: #fff;
}
#table {
  position:fixed;
  top:182px;
  margin-right:12px;
}

.cell:hover {
  background-color: gold;
}

td.right {
  text-align:right;
}

/* copy and paste table */
.table-fade-in {
  -webkit-transition: height 1s;
  -moz-transition: height 1s;
  -ms-transition: height 1s;
  -o-transition: height 1s;
  transition: height 1s;
  height: 0px;
}
.open {
  height: 200px;
}

/* message box */
.flash{
  position:fixed;
  top:150px;
  z-index:1000;
}
.fade-out{
  opacity: 0;
  pointer-events: none;
  -webkit-animation: fadeout 3s linear 0s 1;
}
@-webkit-keyframes fadeout {
  0% {
    opacity :1;
  }
  50%{
    opacity :1;
  }
  100% {
    opacity:0;
    height:0px;
  }
}

/* graph */
.graph-container {
  position: relative;
  width:  100%;
  overflow: hidden;
}

.cvarea, .cvarea:focus {
  transition: all 500ms 0s ease;
}

/* form */ 
input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  text-align:right;
  -moz-appearance:textfield;
}

.form-group{margin-bottom:24px;}


/* report */ 
.report{cursor:pointer;}

#report-view-btn{
  position:fixed;
  top:64px;
  right:8px;
  padding:14px 48px;
  z-index:1000;
}
#report{
  position:fixed;
  width:100%;
  max-width:440px;
  top:104px;
  right:-8px;
}
#report-range{
  position:fixed;
  top:112px;
  padding:16px 34px 16px 51px;
}
#report-range .slider{
  width:100%;
}


@media screen and (max-width: 576px) {
  main {margin-top:0px;}
  #table {top:110px;}
}	
