/*手機版直轉橫*/

.landscape {
  background: #000000;
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 9991;
}

.landscape.forceHide {
  display: none !important;
  visibility: hidden !important;
  border: 5px solid red;
}

/*手機版直轉橫*/

.landscape img {
  position: relative;
  width: 90%;
  height: auto;
  margin-left: 5%;
  margin-right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

/* slot不顯示橫屏提示 */

.landscape.hide {
  display: none !important;
}

/*minify size, 1 橫的以高度為主*/

@media (orientation: landscape) {
  @media only screen {
    .landscape {
      display: none;
    }
  }
}

/*minify size, 2 直的以寬度為主*/

@media (orientation: portrait) {
  @media only screen {
    .landscape {
      display: block;
    }
  }
}


/*手機版橫轉直*/

.portrait {
  background: #000000;
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 9991;
}

.portrait.forceHide {
  display: none !important;
  visibility: hidden !important;
  border: 5px solid red;
}

/*手機版直轉橫*/

.portrait img {
  position: relative;
  width: auto;
  height: 90%;
  margin-top: 5%;
  margin-bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* slot不顯示橫屏提示 */

.portrait.hide {
  display: none !important;
}

/* 錯誤訊息彈窗 */

.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
  width: auto;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;;
  transform: translateY(-25%);
}

.modal-dialog.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.modal-content {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #333333;
  color: #ffffff;
  border-radius: .3rem;
}

.modal-body {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem 1rem 0 1rem;
}

.modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1rem;
}

.modal-btn {
  cursor: pointer;
  color: #fff;
  background-color: #6c757d;
  border: 1px solid #6c757d;
  text-align: center;
  white-space: nowrap;
  padding: .375rem .75rem;
  font-size: 1rem;
  border-radius: .25rem;
}

/*minify size, 1 橫的以高度為主*/

@media (orientation: landscape) {
  @media only screen {
    .portrait {
      display: block;
    }
  }
}

/*minify size, 2 直的以寬度為主*/

@media (orientation: portrait) {
  @media only screen {
    .portrait {
      display: none;
      
    }
  }
}

@media(max-width: 576px) {
  .modal-dialog {
    max-width: 320px;
  }
}