/* CSSスタイルを定義 */
#tool_sticky_area {
    position: fixed; 
    top: 1%; 
    right : 56px;
    padding:5px 5px 5px 5px; 
    background-color:white; 
    border-radius: 4px;
    display:none;
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 15%), 0 0 5px rgb(0 0 0 / 10%);
}

#add-sticky-container {
  display: flex;
  margin-bottom: 80px;
}

#color-picker {
  top: 30px;
  left: 0;
  background-color: #fff;
  border: 1px solid #000;
  padding: 5px;
}

#color-picker.open {
  display: block;
}

.color-container {
  display: flex;
}

.color {
  width: 30px;
  height: 30px;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.color.selected {
  border-color: #000;
}

.red { background-color: #ffb5b5; }
.blue { background-color: #dff4ff; }
.yellow { background-color: #ffffcc; }
.green { background-color: #eaffca; }
.pink { background-color: #ffddff; }

#input-container {
  margin-top: 10px;
}

#input-buttons {
  margin-left: 10px;
}

textarea {
  width: 250px;
  height: 100px;
  resize: vertical; /* Allow vertical resizing */
  //margin-bottom: 10px;
  padding: 10px;
}

#input-textarea.selected-color {
  background-color: #ffb5b5;
}

.sticky {
  position: absolute;
  user-select: none;
  width: auto;
  max-width: 300px;
  resize: none;
  margin-bottom: 10px;
  border: 1px solid #000;
}

.sticky-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  align-items: left;
  height: auto;
}

/* テキスト表示用のスタイル */
.sticky-text-display {
  font-size: 14px;
  line-height: 1.4;
  padding: 5px;
  background-color: transparent; /* 背景を透明に変更 */
  border: none; /* 境界線をなくす */
  margin-bottom: 10px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.buttons-wrapper {

  display: flex;
  justify-content: space-between;
  width: 100%;
}

#add-sticky {
  border-radius: 100vh;
  border: none;
  width: 60px;
  position: absolute;
  right: 5px;
  cursor: pointer;
}
#add-sticky:active {
	background-color:gray;
}

.sticky-header {
  width: 100%;
  height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab; /* Change cursor when hovering over the header */
  user-select: none;
}

.sticky:hover {
  z-index: 2; /* Bring the sticky to the front when hovered */
}

/* ボタンの共通スタイル */
.sticky-button {
  background-color: transparent;
  border: none;
  color: gray; /* ボタンの文字色をグレーに設定 */
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 14px;
  display: inline-block; /* ボタンを横並びに配置するためのスタイル */
  vertical-align: middle; /* ボタンを垂直方向に中央揃えするためのスタイル */
}

/* 編集ボタン */
.edit-button {
  margin-right: 10px;
  margin-right: 10px; /* ボタン間の間隔を設定 */
}

/* 削除ボタン */
.delete-button {
  color: red; /* ボタンの文字色を赤に設定 */
}

#sticky_list {
    position: fixed; 
    top: 1%; 
    left : 2%;
    padding:5px 5px 5px 5px; 
    background-color:white; 
    border-radius: 4px;
    display:block;
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 15%), 0 0 5px rgb(0 0 0 / 10%);
}

