input[type="number"] {
  width: 50px;
  text-align: right;
}

.right {
  float: right;
}

.red {
  color: red;
}

.disabled {
  color: gray;
}

.tooltip {
  position: relative;
  cursor: pointer;
}
.tooltip-text {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  display: inline-block;
  padding: 5px;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.3;
  background: #333;
  color: #fff;
  border-radius: 3px;
  transition: 0.3s ease-in;
}
.tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

#header, #sec_menu, #sec_update {
  position: fixed;
  text-align: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
  z-index: 90;
  pointer-events: none;
  font-size: large;
}
#sec_zoom button, #sec_ymd button, #sec_depth button, #sec_show button, #sec_update button, #sec_preset button {
  padding: 0.5em;
  font-size: x-large;
  pointer-events: auto;
}
#sec_zoom select, #sec_ymd select, #sec_depth select, #sec_show select, #sec_preset select {
  padding: 0.5em;
  font-size: large;
  pointer-events: auto;
}
#header, #sec_menu {
  display: flex;
  top: 0em;
  width: 100vw;
  justify-content: center;
  align-items: center;
}
#sec_zoom {
  top: 0em;
  margin: 0 1em;
  white-space: nowrap;
  pointer-events: auto;
}
#sec_depth {
  margin: 0;
  pointer-events: auto;
  width: 100px;
}
#sec_ymd {
  position: fixed;
  bottom: 1.5em;
  display: table;
  width: 100vw;
  max-height: 3em;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  z-index: 90;
  pointer-events: none;
  font-size: large;
}
#mainfrm {
  width: 100vw;
  text-align: center;
}
.btn_right {
  text-align: right;
}
.btn_left {
  text-align: left;
}
.ymd_btn {
  display: table-cell;
  vertical-align: middle;
}
.ymd_val {
  display: table-cell;
  width: 12em;
}
#old_ymd {
  font-size: small;
}
#update_ymd {
  position: fixed;
  left: 0;
  bottom: 0;
  text-align: left;
  height: 2.5em;
}
#sec_update {
  top: 5em;
  right: 3em;
}
#sec_note {
  z-index: 99;
  pointer-events: auto;
  font-size: large;
  width: 10em;
  margin-top: 1em;
  height: 6em;
  border: 1px solid #000;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
}

.showdiv {
  width: 8em;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
}

#dialog, #dialog2 {
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, .5);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 900;
}

.popup {
  background-color: white;
  padding: 50px;
  font-size: large;
  text-align: center;
  z-index: 999;
}

.popup input, .popup button {
  font-size: large;
}

.ttl {
  font-size: 120%;
  font-weight: bold;
}

#lonlat {
  padding: 10px;
  margin-bottom: 10px;
  border: solid 1px
}

#editor {
  display: none;
}

@media screen and (max-width: 400px) {
    * {
        font-size: medium !important;
    }
}
@media screen and (max-width: 479px) {
    #mainpng {
      width: 100%;
      margin-top: 3em;
    }
    #mainpng img {
      height: auto;
      width: 90vw;
      object-fit: cover;
      padding: 0px;
    }
    #header {
      display: flow;
    }
    #sec_menu {
      top: calc(100vw * 1.2);
    }
    #sec_preset {
      width: 100vw;
      text-align: center;
      z-index: 100;
    }
    #sec_show {
      margin: 0;
      pointer-events: auto;
    }
}
@media screen and (min-width: 479px) and (max-width: 1080px) {
    #mainpng img {
      height: auto;
      width: 90vw;
      object-fit: cover;
      padding: 0px;
    }
    #sec_menu {
      top: calc(100vw + 60px);
    }
    #sec_show {
      margin: 0 2em;
      pointer-events: auto;
    }
    @media screen and (min-aspect-ratio: 0.7) {
        #mainpng img {
          width: 70vw;
        }
        #sec_menu {
          top: calc(80vw + 50px);
        }
    }
}
/* @media screen and (orientation: landscape) { */
@media screen and (min-width: 1080px), screen and (orientation: landscape) {
    #mainpng img {
      height: 90vh;
      width: auto;
      object-fit: cover;
      padding: 0px;
    }
    #sec_menu {
      top: 5em;
      left: 1em;
      width: 50px;
      display: flow;
    }
    #sec_show {
      margin: 2em 0;
      pointer-events: auto;
    }
}

