html {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
.new-line-label {
  display: block;
}
.foreground-visible {
  display: block;
  width: 100%;
  position: absolute;
}
.foreground-hidden {
  display: none;
  width: 100%;
  position: absolute;
}
.background-visible {
  display: block;
  width: 89%;
  position: absolute;
}
.background-hidden {
  display: none;
  width: 89%;
  position: absolute;
}
.weather-image-visible {
  display: block;
  width: 89%;
  position: absolute;
  z-index: 2;
}
.weather-image-hidden {
  display: none;
  width: 89%;
  position: absolute;
}
.image-error {
  display: none;
}

.menu-title {
  margin: 0 0 3px;
}

.time-slider{
  width: 93%;
  margin-bottom: 3%;
}

.margin-center{
  margin: 3px 3px 3px 0;
}

@media screen and (max-width: 1000px) {
  .menu {
    margin-top: 1%;
    font-size: 1.2vw;
    padding-left: 25px;
  }
  #total-rain-cover {
    width: 14vw !important;
  }
  #total-rain-cover #select-total-rain {
    width: 12vw !important;
    font-size: 1.2vw;
  }
  #total-rain-cover button {
    width: 6vw;
    height: 2vw;
    font-size: 1.2vw;
    padding: 0.2vw;
  }
  .single-select-box {
    width: 13vw;
  }
  #transparency-adjust {
    width: 13vw;
  }
  .initialtime-display {
    width: 16vw;
    margin-top: 86%;
    position: relative;
    /*margin-left: 70%;*/
    border: 1px solid #444;
    font-size: 1.2vw;
    border-radius: 5px;
    background: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 10px;
    z-index: 5;
    float: right;
    margin-right: 5%;
  }
  .time-display {
    position: absolute;
    z-index: 4;
    left: 6%;
    top: 10px;
    font-size: 3vw;
    background: rgba(255,255,255,0.6);
    padding: 0 5px;
    border: 1px solid #444;
    border-radius: 5px;
  }
  .margin-center{
    margin: 3px 3px 3px 0;
  }
}
@media screen and (min-width: 1000px){
  .menu {
    margin-top: 1%;
    margin-left: 1%;
    margin-right: -1%;
    font-size: 14px;
  }
  .single-select-box {
    width: 147px;
  }
  #transparency-adjust {
    width: 147px;
  }
  .initialtime-display {
    width: 25%;
    margin-top: 83%;
    position: relative;
    /*margin-left: 68%;*/
    border: 1px solid #444;
    font-size: 15px;
    border-radius: 5px;
    background: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 10px;
    z-index: 5;
    max-width: 200px;
    float: right;
    margin-right: 7%;
  }
  .time-display {
    position: absolute;
    z-index: 4;
    left: 40px;
    top: 15px;
    font-size: 40px;
    background: rgba(255,255,255,0.6);
    padding: 0 5px;
    border: 1px solid #444;
    border-radius: 5px;
  }
  .margin-center{
    margin: 5px 5px 5px 0;
  }
}

.navbar-collapse {
  display: block !important;
  height: auto !important;
  padding-bottom: 0;
  overflow: visible !important;
}
.navbar-nav {
  float: left;
  margin: 0;
}
.navbar-nav > li {
  float: left;
}
.modal-content{
  width: auto;
  max-width: 80%;
  left: 10%;
  top: 1%;
  max-height: 95%;
}
.modal-content > div{
  text-align: center;
  padding: 1vh;
}
.modal-body > div{
  justify-content: center;
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

#gif-loading{
  width: 5%;
}

#gif-img{
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 65vh;
}
button{
  border: 1px solid transparent;
  border-radius: 4px;
}
#canvas:hover{
  cursor:crosshair
}
canvas{
  position: absolute;
  /*width: 90%;*/
  /*height: 100%;*/
  z-index: 10;
}
#image{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#gif-stoptime select{
  min-width: 140px;
  margin-right: 5px;
}
.collapsing {
  -webkit-transition: none;
  transition: none;
  /*display: none;*/
}
.Wave{
  z-index: 0;
}
#mySlider {
  cursor: pointer;
}
#total-rain-cover {
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  width: 148px;
  padding: 4px;
}
#total-rain-cover button {
  margin-top: 5px;
}
#total-rain-cover #select-total-rain {
  width: 138px;
}
#select-total-rain {
  font-weight: bold;
  font-size: 13px;
}
#custom_rain_img_cover {
  text-align: center;
  position: relative;
}
#custom_rain_ruler,
#custom_rain_img_background {
  width: 100%;
  position: relative;
  top: 0;
  left:0;
}

#custom_rain_img_loading {
  width: 100px;
}

#custom_rain_img {
  width: 100%;
  position: absolute;
  top: 0;
  left:0;
  z-index: 2;
}
#custom_rain_time_display {
  left: 10px;
  top: 10px;
  font-size: 13px;
}
#japan-only-image img {
  width: 89%;
  position: absolute;
  z-index: 2;
}
#cb_japan_only_cover {
  margin-left: 10px;
  font-size: 12px;
  display: none;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#result_cover #total_rain_japan_only {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}
input[name="total_rain_level"] {
  margin-left: -15px !important;
}