﻿body {
  
   margin: 0;
	background-color:#f4f2f5;
	font-family:"微軟正黑體", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
}

.container {
	position: absolute;
	left: 0;
	right: 0;
	top: 45px;
	bottom: 0;
	margin: 10px;
	width: auto;
	height: auto;
	background: unset;
	border: none;
}

.container model-viewer{
	width: 100%;
	height: calc(100vh - 94px);
	margin: 0;
	background-color: unset;
	--progress-bar-color: #7a4dff;
	--poster-color: transparent;
}
@media screen and (max-device-width: 480px){
.container {
	margin: 5px;
}
.container model-viewer{
	width: 100%;
	height: 100vw;
}
}

.Hotspot {
	background-image: url(hotspot.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-color: unset;
    border-radius: 0;
    border: 0;
    cursor: pointer;
    height: 24px;
    padding: 0;
    position: relative;
    transition: opacity 0.3s;
    width: 24px;	
}

.Hotspot:not([data-visible]) {
    height: 24px;
    pointer-events: none;
    width: 24px;
}

.Hotspot:not([data-visible])>* {
    opacity: 0.3;
    pointer-events: none;
    transform: translateY(calc(-50% + 4px));
    transition: transform 0.3s, opacity 0.3s;
}

.Hotspot:focus {
    height: 28px;
    outline: none;
    width: 28px;
}

.Hotspot>* {
    opacity: 1;
    transform: translateY(-50%);
}
.Hotspot.Event {
	background-image: url(hotspot-red.png) !important;	
}

.Marker {
    background: #ffca50;
    border-radius: 32px;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    cursor: pointer;
    height: 24px;
    padding: 8px;
    position: relative;
    transition: opacity 0.3s;
    width: 24px;
}

.bot_modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.4);
}

.layout_vertical {
    display: flex;
	flex-direction: column;
}

.layout_horizontal {
    display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}
.layout_horizontal img{
     layout:"responsive";
	max-width: 100%;
   height: auto;
}

.close-bttn {
    position: absolute;
	top: 10px;
	right: 10px;
    border-radius: 50%;
    border: none;
	padding: 4px 4px;
    background-color: #f5f5f5;
	background-image: url('close-black.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    cursor: pointer;
	z-index: 100;
}
.close-bttn:hover,
.close-bttn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.bot_iframe{
	width: 30vw;
	height: 30vw;
	max-width: 400px;
	max-height: 400px;
	position: relative;
	overflow: hidden;
}
.bot_iframe iframe {
   border: 0;
   height: 100%;
   left: 0;
   position: absolute;
   top: 0;
   width: 100%;
}

.modal_content {
    display: flex;
	position:relative;
	flex-direction: row;
    text-align: center;
	align-items: center;
    border-radius: 8px;
	width: 80%;
	height: auto;
	min-width: 300px;
	max-width: 800px;
	max-height: 100%;
    color: black;
    background-color: white;
    padding: 2.5em 2.5em;
	font: 14px 'Helvetica Neue',Helvetica,Arial,sans-serif;
    letter-spacing: 2px;
    box-sizing: border-box;
	overflow-y: auto;
}

@media screen and (max-device-width: 480px){
.bot_iframe{
	width: 70vw;
	height: 70vw;
}

.modal_content {
	flex-direction: column;
	width: 90%;
	height: auto;
	min-width: 90vw;
	max-width: 100vw;
	padding: 1em 1em;
}
}

.modal_content_inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  float:left;

}

.modal_content_item {
  width: calc(100% - 20px);
  height: auto;
  margin: 10px;
  &.bottom {
    display: flex;
	flex-direction: row;
  }
}
.modal_content_item button{
	width: calc(50% - 20px);
	font: 400 20px Arial;
	color: #ffffff;
    padding: 8px 8px;
    border-width: 0;
	border-radius: 4px;
    margin: 0.25em 0.25em;
}
.modal_content_item h3{
	font: 28px Arial;
	color: #333333;
	text-align:left;
	margin-bottom: -20px;
}
.modal_content_item .content {
	font: 16px Arial;
	color:#8F8F8F;
}
.modal_content_item .price {
	font: 16px Arial;
	color:#333;
}
.big_text{
	font: 32px Arial;
}
.modal_content_item button.view { background-color: #7a4dff; }
.modal_content_item button.view::before { content: "AR觀看"; }
.modal_content_item button.buy { background-color: #7a4dff; }
.modal_content_item button.buy::before { content: "看詳情";}
.modal_content_item button.viewbuy { background-color: #7a4dff;  width: 100%; }
.modal_content_item button.viewbuy::before { content: "觀看AR&看詳情";}
.modal_content_item button.join { background-color: #7a4dff; width: 100%; }
.modal_content_item button.join::before { content: "登記去";}

#controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    left: 0px;
	top: 0px;
    height: auto;
    width: 100%;
	font-size: 14px;
    font-weight: 500;
}

.CamDropdown {
	font: 400 16px Arial;
	color: #7335f5;
	width: 50%;
	height: auto;
	margin: 8px 2px 8px 2px;
	padding: 6px 6px;
    border: #7335f5 1px solid;
	border-radius: 4px;	
	max-width: 320px;
}

#layout-head {
    padding: 35px 35px
    flex-shrink: 0;
    text-align: center;
}
.desc {
    max-width: 80%;
    margin: 13px auto 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 300;
    color: #58595b;
	padding-bottom: 15px;
	letter-spacing:2px;
}
.title-t1 {
   font-weight: 400;
    font-size: 30px;
    color: #441d8d;
    margin-bottom: -8px;
	line-height: 32px;
	font-weight:bold;
}

@media screen and (max-device-width: 480px){
.container {
	margin: 5px;
}
.container .model-viewer{
	width: 100%;
	height: 100vw;
}
	
	.modal_content_item h3{
	font: 18px Arial;	
	margin-bottom: -10px;
}
.modal_content_item .content {
	font: 12px Arial;
	color:#8F8F8F;
}
.modal_content_item .price {
	font: 12px Arial;
	color:#333;
}
.big_text{
	font: 22px Arial;
}
.title-t1 {
    font-size: 22px;
	font-size: 5vw;
    margin-bottom: -6px;
	line-height: 26px;
}
.desc {
    max-width: 90%;
    margin: 13px auto 0;
    font-size: 14px;
	font-size: 3vw;
    line-height: 16px;
	padding-bottom: 15px;		
}
}

.splash {
	background-image: url('splash-2.jpg');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: unset;
	border: none;
	border-radius: 8px;
	position: relative;
    top: 5%;
    left: calc(50% - 27vh);
    height: 90%;
    width: 54vh;
	transition: opacity 1.0s;
}

@media screen and (max-device-width: 480px){
.splash {
	left: 5%;
    top: calc(50% - 75vw);
    width: 90%;
    height: 150vw;	
}
}

.instruct-bttn {
    border-radius: 5px;
    border: none;
    background-color: #7f20ff;
    height: auto;
    cursor: pointer;
    margin: 0 auto 1px 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #f4f2f5;
	padding: 4px 15px 4px 15px;
	letter-spacing: 2px;	
}
.instruct-bttn:hover,
.instruct-bttn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#instruct-pc {
	color: #7f20ff !important;
	background-color: #f4f2f5 !important;
}
#instruct-app {
	position: absolute;
	top : 10px;
	right: 10px;
	display: none;
}

@media screen and (max-device-width: 480px){
#instruct-app {
	display: inline-block;
    font-size: 14px;
	font-size: 3vw;	
}
#instruct-pc {
	display: none;
}
}