.wrapboard {width: 17rem; font-size: 0.65rem; font-weight: bolder; color: black; background: white; border: none; border-radius: 8px; margin: 10px; z-index: 1;}
#divright{float: right;}
#deletebutton { background-color: white; margin: 3px 3px 3px 1px; border-color: red; text-align: center; font-size: 0.5rem; color: red; font-weight:bold; cursor: pointer;}
#updatebutton { background-color: white; margin: 3px 3px 3px 1px; border-color: blue; text-align: center; font-size: 0.5rem; color: blue; font-weight:bold; cursor: pointer;}

#updateForm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30rem;
  z-index: -2;
  background-color: white;
  border: 0;
  border-radius: 5px;
  padding: 15px;
  transition: z-index 0.3s;
}

#updateForm label {
  display: inline-block;
  width: 80px;
  text-align: right;
  margin-right: 2px;
  margin-bottom: 0;
  white-space: nowrap;
}

#updateForm input[type="text"] {
  padding: 4px;
  margin-top: 2px;
  margin-bottom: 3px;
  white-space: nowrap;
  margin-right : 5px
}

#lat, #lng, #install, #run, #supply, #manege { width: 8rem; }
#title { width: 3rem; } #name {  width: 13rem; }
#assets, #type { width: 3.5rem; }
#speed { width: 2rem; }
#titlelabel, #namelabel, #latlabel, #lnglabel { color: red; font-weight: bolder;}

#sendbutton {
  width: 100px;
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  cursor: pointer;
}

#formclose {
  margin: 3px 0 3px 0;
  border: none;
  background-color: white;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  float: right;
}

#passwordboxclose {
  margin: 3px 0 3px 0;
  border: none;
  background-color: white;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  float: right;
}

#passwordbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 8rem;
  width: 29rem;
  z-index: -2;
  background-color: white;
  border: 0;
  border-radius: 5px;
  padding: 15px;
  transition: z-index 0.3s;
}

#passwordbox h3,
#passwordbox label {
    margin-left: 1.4rem;
}

#message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 1.4rem;
}


/* 휴대폰 화면 크기에 따른 스타일 변경 */
@media (max-width: 768px) {
  #passwordbox {
    height: 8rem;
    width: 100%; /* 화면 너비에 맞게 조절 */
    max-width: 20rem;
  }

  #message, #viewtext {
    font-size: 0.8rem;
  }

  h3 {
    font-size: 1rem;
  }

  #updateForm {
      width: 90%; /* 화면 너비의 90%로 조정 */
      max-width: 300px; /* 최대 너비 설정 */
    }

    #updateForm input[type="text"] {
      padding: 4px;
      margin-top: 2px;
      margin-bottom: 3px;
      white-space: nowrap;
    }
}
