html,body, #bodyContainer {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5em;
    overflow: hidden;
}

#MapContainer{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#mapControlHint {
    position: fixed;
    top: 0px;
    left: 130px;
}

.EntityTooltip{
    color: white !important;
    text-shadow: red 0px 0px 6px !important;
    transform: translateX(-65%);    
}

#ToolContainer{
    /* width: 20%; */
    height: 100px;
    position: absolute;
    z-index: 10;
    padding-right: 5px;
    margin: 5px;
}

.btnAddPoint{ 
    display: flex;
    width: 40px;
    height: 40px;
    background-color: royalblue;
    opacity: 0.8;
    border: 1px solid white;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    margin-top: 5px;
    font-size: 20px;
    border-radius: 50%;
    line-height: 35px;
    justify-content: center;
    align-items: center;
}

.btnContainer{
    display: flex;
    flex-direction: row;
    justify-content:space-around;
    margin-bottom: 5px;;
}

#userName{
    border: 1px solid royalblue;
    border-radius: 5px;
    margin:5px;
    padding: 5px;
    color: royalblue;
    background-color: white;
    width: fit-content;
}
#FooterContainer{
    position:absolute;
    bottom:15px;
    left:15px;
}
.baseLayerSwitch {
    width: 75px;
    height: 75px;
    border: 2px solid #000;
    border-radius: 10%;
    color: white;
    font-size: 14px;
    display: flex;
    justify-content: center;   
    cursor: pointer;
}
.baseLayerSwitch span{
    text-shadow: 0px 0px 5px #000;
    margin-top: auto;
    text-shadow: -1px 0 black, 0 1px black,
      1px 0 black, 0 -1px black;
    background-color: rgba(0,0,0, 0.8);
}
.baseLayerSwitch.map{
background-image: url('img/mapswitch_map.png');
}
.baseLayerSwitch.photo{
background-image: url('img/mapswitch_photo.png');
}

#mapControlHint {
    margin: 5px;
}

#mapControlHint.hide{
    display: none;
}

/* switch */

input[type=checkbox]{
	height: 0;
	width: 0;
	visibility: hidden;
}

.layerSwitchContainer label {
	cursor: pointer;
	width: 50px;
	height: 20px;
	background: grey;
	display: block;
	border-radius: 100px;
	position: relative;
}

.layerSwitchContainer label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 17px;
    height: 16px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.switch-txt::before,
.switch-txt::after {
    font-size:12px;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  box-sizing: border-box;
}
.switch-txt::before {    
  content: attr(turnOn);
  color: #fff;  
  margin-left: 5px;
  top: 1px;
  position: relative;
}
.switch-txt::after {    
    content: attr(turnOff);
    color: #ccc;
    position: relative;
    top: 1px;
    left: 5px;
}

input:checked + label {
	background: #6f42c1;;
}

label:active:after {
	width: 50px;
}

input:checked + label:after {
	left: calc(100% - 5px);
	transform: translateX(-100%);
}
#ToolContainer{
    background-color: rgba(60,60,180, 0.5);
    border-radius: 5px;
    height: fit-content;
}
.layerSwitch{
    font-size:14px;
    display: flex;
    margin-bottom: 5px;
    margin-left: 5px;
    color: white;
    align-items: center;
}

.layerSwitchContainer{
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.eventInfoContationer{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.layerSwitchContainer hr{
    width: 90%;
    margin-bottom: 2px;
}

.eventInfoTextContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 5px;
}
.eventInfoTitle{
    font-size: 14px;
    font-weight: bold;
    margin-top: 3px;
    margin-bottom: 2px;
}
.eventInfo{
    display:flex;
    align-items: center;
    cursor: pointer;
    margin-top: 5px; 
}
.eventInfo:not(:last-child){    
    border-bottom: rgba(200,200,200,0.5) 1px solid;    
}
/* hover with 0.3s color change */
.eventInfo:hover{
    color: goldenrod;
}

.eventInfo {
    transition: color 0.3s;
}

.eventInfoPin{
    margin: 5px;

}

/* overwrite PGWeb3D.css */

.ov-ui-title {
    background-color: goldenrod;
    font-family: "微軟正黑體";
    font-size: 14px;
    font-weight: bold;
    color: maroon;
}