.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

h1 {
  text-align: center;
}

#indexmodal .modal-body {
  max-height: calc(178px + 3658 / 5781 * (100vw - 32px));
  margin-top: 3%;
  margin-bottom: 15px;
  padding: 0%;
  margin-left: 5% !important;
  width: 90% !important;
}

.indexelepic.hide {
  z-index: 4;
}

.modal-dialog {
  z-index: 1;
}

.modal {
  z-index: 4001;
}

.adminbt {
  position: fixed;
  top: 56px;
  left: 50px;
}

#indexmodal .modal-dialog {
  width: 60%;
  max-width: none;
  margin-top: 5vh;
  min-height: calc(100vh - 56px);
}

.modal-content {
  border-radius: 2rem !important;
  min-height: calc(100vh - 56px);
  background-color: #C1EEF7;
}

.modal-title {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.carousel-inner {
  border-radius: 2rem !important;
  border-style: solid;
  border-color: #2E627B;
  border-radius: 15px;
  border-width: 2px;
}

.carousel-item img {
  width: 100%;
}

.carousel-indicators {
  margin-bottom: 3%;
}

#indexmodalcar {
  width: 90%;

  position: relative;
  top: 0;
  left: 0;
  margin-bottom: 10px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  display: block;
}

#indexmodalp {
  position: relative;
  right: 0;
  top: 0;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
  display: block;
  width: 85%;
  padding: 8px;
  word-wrap: break-word;
  border-style: solid;
  border-color: #2E627B;
  border-top-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  background-color: white;
}

#indexmodalp .p {
  margin: 0;
  max-height: calc(100vh - 56px - 63px - 52px - 0.6 * (100vh - 119px));
  overflow-y: scroll;
}

#indexmodal p {
  margin: 0;
}

body {
  min-height: 100vh;
  top: 0;
  height: auto;
  width: auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #FFF9DC !important;
}

#List_index {
  position: relative;
  display: flex;
  margin-top: 0;
  padding: 0;
}

#List_index li {
  margin: 0 auto;
  display: inline-block;
}

#List_index li:hover {
  cursor: pointer;
}

#List_index img {
  width: 85%;
  margin: 0;
  padding: 0;
}

.picdele {
  cursor: pointer;
}

.main_list_detail {
  position: absolute;
  float: right;
  right: 2%;
  width: 20%;
  z-index: 5;
  border-style: solid;
  border-color: #FDBE6B;
  border-radius: 15px;
  background: #FDBE6B;
  min-width: 270px;
}

.main_list_detail ul {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  max-height: 40vh;
  overflow-y: scroll;
  margin-bottom: 15px;
}

.main_list_detail li {
  text-align: center;
  padding: 0;
  margin: 0;
  padding-right: 15%;
  padding-left: 15%;
  width: 100%;
  color: aliceblue;
  padding-top: 3%;
  padding-bottom: 3%;
}

.elelist:hover {
  cursor: pointer;
}

#listtitle {
  z-index: 1;
  font-weight: bold;
  position: relative;
  font-size: 1.5em;
  margin-top: 4%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

#bar {
  width: 50%;
  height: 3px;
  background-color: #0E4A65;
  margin: 0px auto;
}

.elelist {
  position: relative;
  font-size: 1.2rem;
  font-weight: 650;
}

.elelist:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.mapmove {
  position: relative;
  margin-right: 11%;
  margin-left: 20%;
  margin-top: calc(42vh - 20vw);
  margin-bottom: auto;
  min-height: calc(69vw * 996 / 2000);
  max-height: 400px;
}

main {
  padding-bottom: calc((100vh - 180px - 69vw * 996 / 2000) / 2);
}

#map {
  padding: 0;
  width: 100%;
  position: absolute;
}

body {
  overflow: hidden;
}

#sidebar_left {
  background-color: lightcoral;
  width: 15%;
  margin-left: 2.5%;
  height: 100%;
  text-align: center;
  float: left;
}

#content {
  margin-left: 20.5%;
  margin-right: 2.5%;
  height: 100%;
  background-color: lightslategray;
  text-align: center;
}

#sidebar_left li {
  list-style: none;
  padding-top: 5%;
  padding-bottom: 5%;
  line-height: auto;
}

#sidebar_left li:hover {
  cursor: pointer;
  background-color: lightsalmon;
}

#sidebar_left ul {
  padding-left: 0;
  margin-top: 5%;
  margin-bottom: 5%;
}

tbody {
  display: block;
  max-height: 350px;
  overflow-y: scroll;
}

thead td {
  padding-top: 5%;
  padding-bottom: 5%;
  width: 20%;
}

tbody td {
  padding-top: 4%;
  padding-bottom: 4%;
  width: 20%;
}

thead,
tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

thead {
  width: 100%;
}

table {
  width: 100%;
}

li {
  list-style: none;
}

.pic-title {
  padding-left: 3%;
  padding-right: 3%;
  margin: 0;
}

.pic-title:hover {
  color: grey;
  cursor: pointer;
}

.saved {
  max-width: 300px;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.picdele {
  margin-right: auto;
  margin-left: auto;
  padding: 3%;
  display: block;
  width: auto;
}

.pic {
  width: 300px;
}

#content tbody tr:nth-child(odd) {
  background: #cccccc;
}

.picspace {
  position: relative;
}

.posipic {
  position: absolute;
}

.indexelepic {
  position: absolute;
  z-index: 3;
}

.indexelepic:hover {
  cursor: pointer;
}

.modal-header span {
  position: absolute;
  display: block;
  top: 3%;
  margin: 0;
  padding: 0;
  right: 3%;
}

#indexmodal .modal-header {
  display: inline-block;
  margin-right: auto;
  margin-left: auto;
  border-bottom-width: 0px;
}

.modal-header span svg {
  display: block;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
}

.modal-header span svg:hover {
  cursor: pointer;
}

.carousel-indicators li {
  background-color: #fef9ff;
}

.carousel-indicators .active {
  background-color: #0f0c2e;
}

#closemainlist {
  position: absolute;
  float: right;
  top: 10px;
  right: 35px;
  width: 10%;
  z-index: 1;
}

#closemainlist:hover {
  cursor: pointer;
  transform: scale(1.1);
}

#closemainlist img {
  width: 200%;
}

.title_bar {
  min-width: 150px;
  height: 85px;
  padding-left: 5%;
  width: 20%;
  background-color: white;
  position: absolute;
}

.title {
  height: 50px;
  width: 80px;
  margin-top: 10px;
  margin-left: 10px;
  float: left;
}

.big_title {
  display: block;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: #FB8360;
}

.line {
  height: 80%;
  width: 5px;
  background-color: #7CA7BC;
  margin-top: 10px;
  margin-right: 10px;
  float: left;
}

.small_title {
  color: #767171;
  font-size: 17px;
  font-size: 100%;
}

.bottom_list {
  width: 100%;
  bottom: 2.5%;
  display: flex;
  position: absolute;
}

.sailor1 {
  position: absolute;
  bottom: 0%;
  left: -2%;
  width: 30%;
}

.sailor2 {
  position: absolute;
  display: none;
  bottom: 0%;
  left: -2%;
  width: 15%;
}

.show2D {
  position: absolute;
  left: -20%;
  top: 25%;
  width: 30%;
}

.show3D {
  position: absolute;
  left: 7%;
  top: 30%;
  width: 20%;
}

.show2D img {
  width: 100%;
}

.show3D img {
  width: 100%;
}

.decoration img {
  position: absolute;
  width: 30%;
  bottom: 0px;
}

.map {
  display: flex;
  margin-left: 20%;
  margin-top: calc(42vh - 20vw);
}

.map img {
  z-index: 1000;
}

.bottom {
  width: 100%;
  bottom: 0%;
  display: flex;
  position: absolute;
}

.tur {
  position: absolute;
  bottom: 0%;
  right: 0%;
  width: 40%;
}

.sailor {
  position: absolute;
  bottom: 0%;
  left: -2%;
  width: 22%;
}

.MAP2D {
  width: 56%;
}

.SAM {
  width: 20%;
}

.mg {
  position: relative;
  left: 15vw;
  width: 15%;
}

.zoomContainer {
  z-index: 3000;
}

.zoomLens {
  position: relative;
  background-color: #FFF9DC;
}

.tooltip {
  z-index: 100000;
}

#List_index li img {
  position: relative;
}


@media only screen and (min-width: 770px) {

  #List_index {
    margin-bottom: 0px;
    margin-left: 15%;
    margin-top: 5%;
  }

  .bottom_list {
    bottom: 0%;
    display: flex;
    position: absolute;
    background-image: url("./SEA2.png");
    background-position: bottom, 0px;
    background-size: 100vw;
  }

  .main_list_detail {
    margin-top: 3vh;
  }
}

@media only screen and (max-width: 770px) and (orientation:landscape) {

  #List_index li {
    margin: 0;
    display: inline-block;
    width: 10vw;
  }

  #List_index img {
    width: 75%;
    margin: 0;
    padding: 0;
  }

  #List_index {
    left: 20%;
    margin: 0%;
  }

  .bottom_list {
    bottom: -20%;
  }

  .bottom{
    bottom: -30%;
  }

  body{
    height: 100vh !important;
    overflow: scroll !important;
  }
  
  .show3D {
    top: 50%;
  }

  .MAP2D {
    max-height: 300px;
  }

  .SAM {
    max-height: 300px;
  }
}


@media only screen and (max-width: 770px) and (orientation:portrait) {
  body{
    height: 100vh !important;
    overflow: scroll !important;
  }

  .modal {
    z-index: 4001;
  }

  .adminbt {
    position: fixed;
    top: 56px;
    left: 10px;
    z-index: 10;
  }

  .modal-dialog {
    min-width: 100vw;
    margin: 0;
  }

  .modal-content {
    min-width: 100vw;
    height: calc(50vw * 2.5);
  }

  .modal-body {
    max-height: calc(178px + 3658 / 5781 * (100vw - 32px));
    margin: auto 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mapshadow {
    position: relative;
    display: block;
    padding-top: calc((100vh - 80px - 46vw - 8vw / 2 - 750px*996/2000)/2);
    padding-bottom: calc((100vh - 80px - 46vw - 8vw / 2 - 750px*996/2000)/2);
    margin: 0;
    width: 750px;
    height: 373.5px;
  }

  .mapmove {
    display: block;
    margin: 0 !important;
    height: calc(100vh - 80px - 46vw - 20vw);
    overflow: scroll;
  }

  body {
    min-height: 100vh;
    top: 0;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
  }

  main {
    position: relative;
    top: 60px;
    min-height: calc(100vh - 80px);
    height: calc(69vw * 996 / 2000 + 8vw / 2);
    padding: 0;
  }

  #List_index {
    position: relative;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    height: calc(46vw + 8vw / 4);
  }

  #List_index li {
    width: 25%;
    float: left;
  }

  #List_index li:hover {
    cursor: pointer;
  }

  #List_index img {
    width: 80%;
    margin-right: 10%;
    margin-left: 10%;
  }

  .main_list_detail {
    top: unset;
    position: absolute !important;
    bottom: 0;
    width: 100vw;
    margin: 0;
    float: none;
    right: unset;
    max-height: calc(24px + 52vw + 8vw);
    height: calc(24px + 50vw + 8vw);
  }

  .main_list_detail ul {
    max-height: calc(24px + 46vw + 8vw / 2 - 60px);
    margin: 0;
  }

  .elelist:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    padding: 3%;
  }

  #closemainlist {
    position: absolute;
    float: right;
    right: 40px;
    top: -10px;
    width: 10%;
    z-index: 1;
  }

  #listtitle {
    margin: 0;
  }

  #indexmodalcar {
    margin-top: auto;
    /* width: calc(100vw - 32px); */
  }

  #indexmodalp {
    /* width: calc(100vw - 32px); */
    margin-bottom: auto;
  }

  #indexmodalp .p {
    margin: 0;
    max-height: calc(100vh - 56px - 63px - 52px - 0.6 * (100vh - 119px));
    overflow-y: scroll;
  }

  #indexmodal p {
    margin: 0;
  }

  #map {
    padding: 0;
    width: 100%;
    position: relative;
  }

  .map {
    margin-top: 40px;
    height: 90%;
    margin-left: 0;
    margin-right: 0;
    overflow: scroll;
  }

  .sailor1 {
    display: none !important;
  }

  .sailor2 {
    display: none !important;
  }

  .sbird {
    display: none !important;
  }

  .modal-dialog {
    margin-left: 0% !important;
    margin-right: 0% !important
  }

  .show2D {
    width: 200px;
    left: 100vh;
    top: 5%;
  }

  .show3D {
    z-index: 10000000000000000;
    bottom: -80%;
    position: relative;
    left: unset;
    height: 100px;
    top: unset;
    right: 50%;
  }

  .decoration {
    display: none;
  }

  .MAP2D {
    min-width: 700px;
    height: unset;
    min-height: 700px;
  }

  .SAM {
    min-width: 200px;
    min-height: 30%;
    height: 400px;
    margin-top: 0%;
  }

  .bottom {
    display: none;
  }

  .bottom_list {
    min-height: 200px;
  }

  .sbird {
    display: none;
  }

  .show3D img{
    min-width: 100px;
  }
}

@media only screen and (max-width: 500px) and (max-height: 500px) {
  .show2D {
    width: 200px;
    left: 150vh;
    top: 5%;
  }
}

@media only screen and (max-width: 420px) and (min-height: 700px) {
  #map {
    padding: 0;
    width: 100%;
    position: relative;
    bottom: calc((540px - 100vw) * 0.25);
  }
}

@media only screen and (max-width: 540px) and (min-height: 700px) {
  #map {
    padding: 0;
    width: 100%;
    position: relative;
    bottom: calc((540px - 100vw) * 0.25);
  }
}

@media only screen and (max-width: 420px) and (min-height: 800px) {
  #map {
    padding: 0;
    width: 100%;
    position: relative;
    bottom: calc((540px - 100vw) * 0.65);
  }
}

@media only screen and (max-width: 420px) and (min-height: 900px) {
  #map {
    padding: 0;
    width: 100%;
    position: relative;
    bottom: calc((540px - 100vw) * 1);
  }
}

@media only screen and (max-width: 770px) and (min-height: 1000px) {
  #map {
    padding: 0;
    width: 100%;
    position: relative;
    bottom: calc((540px - 100vw) * -0.4);
  }
  .show2D {
    width: 200px;
    left: 70vh;
    top: 5%;
  }
}