/* unitPlan */
/* ใส่ขนาดผังห้อง */
#unitPlan {
  width: 200px;
  height: auto;
  margin:10px;
  float: right;
  opacity: 0.5;
}

#unitPlan img {
  max-width:100%;
  display: block;
}

/* ใส่ style ให้จุดทั่วไป */
.point {
  width:30px;
  height:30px;
  background-image:   url(https://tookteecomhome.files.wordpress.com/2019/02/mappoint.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
}

/* ใส่styleให้จุดที่กำลังดูอยุ่ */
.pointActive {
  background-image:   url(https://tookteecomhome.files.wordpress.com/2019/02/mappointactive.png);
}

/* กำหนดว่าจุดที่หนึ่งอยู่ตรงไหน */
#pin-1 {
  top:150px;
  right:80px;
  left: auto;
  bottom: auto;
  opacity: 0.6;
  position: absolute;

}

#pin-2 {
  top:110px;
  right:140px;
  opacity: 0.6;
  position: absolute;
}

#pin-3 {
  top:40px;
  right:90px;
  opacity: 0.6;
  position: absolute;
}


#pin-4 {
  top:150px;
  right:150px;
  opacity: 0.6;
  position: absolute;
}

@media screen and (min-width: 319px) and (max-width:600px) {
  #unitPlan {
    width: 50px;
    height: auto;
    margin-right:10px;
    margin-top: 50px;
    float: right;
    opacity: 0.5;
  }

  #unitPlan img {
    max-width:100%;
    display: block;
  }
  
  .point {
    width:20px;
    height:20px;
    background-image:   url(https://tookteecomhome.files.wordpress.com/2019/02/mappoint.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
  }
  .pointActive {
    background-image:   url(https://tookteecomhome.files.wordpress.com/2019/02/mappointactive.png);
  }

  #pin-1 {
    top:100px;
    right:40px;
    left: auto;
    bottom: auto;
    opacity: 0.6;
    position: absolute;
  }
  
  #pin-2 {
    top: 100px;
    right:80px;
    opacity: 0.6;
    position: absolute;
  }

  #pin-3 {
    top:65px;
    right:50px;
    opacity: 0.6;
    position: absolute;
  }
  #pin-4 {
    top:120px;
    right:65px;
    opacity: 0.6;
    position: absolute;
  }
  
}


/* ถ้าmouse ไปทาบให้ opacity เต็ม */
.pin-1:hover > #pin-1 {
  opacity: 1;
}

.pin-2:hover > #pin-2 {
  opacity: 1;
}

.pin-3:hover > #pin-3 {
  opacity: 1;
}

.pin-4:hover > #pin-4 {
  opacity: 1;
}

/* toggledeviceOrientation */

#toggleDeviceOrientation {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0px;
    left: 40px;
    background-color: rgb(103,115,131);
    background-color: rgba(103,115,131,0.8);
  }
  
  #toggleDeviceOrientation img {
    width: 25px;
    margin: 8px;
  }
  
  #toggleDeviceOrientation .disable {
    display: none;
  }
  
  #toggleDeviceOrientation.enabled .disable {
    display: block;
  }
  
  #toggleDeviceOrientation.enabled .enable {
    display: none;
  }
  
  @media screen and (max-width: 500px) {
    #toggleDeviceOrientation {
      width: 50px;
      height: 50px;
      position: absolute;
      top: 0px;
      left: 50px;
      background-color: rgb(103,115,131);
      background-color: rgba(103,115,131,0.8);
    }
    #toggleDeviceOrientation img {
      width: 30px;
      margin: 8px;
    }
  }
