body {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 95vh;
  font-size: 18px;
  background-color: #f9f9f9;
}

/* common */
#content {
  flex: 1;
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
  min-height: 0;
  max-width: 1000px;
}
.block {
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 500px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}
.title-header {
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}
.list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
}
.card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
}

@media (max-width: 768px) {
  body {
    font-size: 16px; /* 모바일 폰트 크기 */
  }
  #content {
    flex-direction: column;
  }
  #calc_web {
    display: none;
  }
  #calc_mobile {
    display: block;
  }
}
@media (min-width: 769px) {
  #calc_web {
    display: block;
  }
  #calc_mobile {
    display: none;
  }
}

/* require */
@media (min-width: 769px) {
  #require {
    max-width: 300px;
  }
}
#require_select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}
#require_select::after {
  content: '▼';
  font-size: 12px;
  color: #888;
  position: absolute;
  right: 10px;
}
#require_select:hover {
  border-color: #0056b3;
}

/* dropdown */
#dropdown {
  position: relative;
  margin-top: -10px;
  width: 100%;
}
#dropdown .dropdown-content {
  top: 5px;
  display: none;
  position: absolute;
  width: 100%;
  overflow-x: hidden;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}
#dropdown .search-box {
  width: calc(100% - 10px);
  padding: 8px;
  margin: 5px 5px 5px 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#dropdown .dropdown-content div div {
  padding: 10px;
  cursor: pointer;
}
#dropdown .dropdown-content div div:hover {
  background: #f0f0f0;
}
#skill_list {
  max-height: 350px;
  overflow-y: auto;
}

/* selected require */
#require_list .card .name {
  flex: 1;
  font-weight: bold;
}
#require_list select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'><path d='M7 10l5 5 5-5H7z' fill='%23666'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
#require_list .remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
}
#require_list .remove-btn:hover {
  background-color: #333333;
}

/* result */
.calc_ui {
  align-self: center;
  font-size: 18px;
  width: 100%;
  max-width: 400px;
  padding: 12px;
  background: #2e2e2e;
  color: white;
  border: none;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}
.calc_ui:hover {
  background: #5e5e5e;
}
.calc_ui:disabled {
  background: #c7c9cf;
}

/* result */
#result-list .card {
  align-items: start;
  flex-direction: column;
  gap: 5px;
}
#result-list .row {
  display: flex;
  align-items: center;
}
#result-list .card .title {
  display: inline-block;
  width: 70px;
}
#result-list .card .content {
  display: inline-block;
  flex: 1;
  border-left: 2px solid #007bff;
  padding-left: 10px;
}
