body {
  background-color: rgb(230, 230, 230);
  padding: 12px;
}

.error {
  color: red;
}

.header {
  display: flex;
  gap: 8px;
  color: rgb(67, 56, 62);
  font-size: 30px;
  padding: 0 15px;
  font-family: Oswald-Medium;
  margin-bottom: 30px;
  margin-top: 12px;
  margin-left: 15px;
  font-weight: 400;
}

.header img {
  display: block;
}

.form-message {
  display: flex;
  background-color: rgb(220, 220, 220);
  border-radius: 8px;
  border: 1px dotted gray;
  padding: 6px;
  margin: 12px;
  width: calc(100% - 24px);
}

.form-message:nth-child(even) {
  background-color: rgb(242, 242, 242);
}

.trash {
  border-radius: 4px;
  padding: 2px;
  display: block;
  margin-right: 6px;
}

.trash:hover {
  background-color: tomato;
}

.input {
  display: block;
  border: 1px solid gray;
  padding: 4px;
  border-radius: 4px;
  width: 480px;
}

.input[type="number"] {
  width: 32px;
}

.input[type="text"] {
  width: 100%;
}

label {
  display: block;
}

.input:focus {
  background-color: azure;
}

.form-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow {
  transform-origin: center;
}

.select-direction {
  visibility: hidden;
  position: absolute;
  background-color: azure;
  top: 0;
  left: 0;
  padding: 2px;
  margin: 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: max-content;
  width: fit-content;
}

.select-direction img {
  display: block;
}

.select-arrow {
  transform-origin: center;
  border: 1px dotted silver;
}

.select-arrow:hover {
  background-color: gold;  
}

.dir-ne {
  transform: rotate(45deg);
}

.dir-e {
  transform: rotate(90deg);
}

.dir-se {
  transform: rotate(135deg);
}

.dir-s {
  transform: rotate(180deg);
}

.dir-sw {
  transform: rotate(225deg);
}

.dir-w {
  transform: rotate(270deg);
}

.dir-nw {
  transform: rotate(315deg);
}

.x:hover {
  background-color: tomato;
}

.button {
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 12px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  word-wrap: break-word;
}

.button img {
  display: block;
}

.button:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button:focus {
  outline: 1px transparent;
}

.button:before {
  display: none;
}

.button:-webkit-details-marker {
  display: none;
}

.button.submit {
  color: white;
  background-color: #1C64F2;
}

.button.submit:hover {
  background-color: #1A56DB;
}

.button.submit:active{
  background-color: #3F83F8;
}

.select {
  display: flex;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid black;
  background-color: rose;
  margin-top: 4px;
}

.select:hover {
  background-color: silver;
}

.selected {
  background-color: #A4CAFE;
}

.selected-img {
  display: block;
}

.selected-name {
  font-weight: bold;
  cursor: pointer;
}

.options {
  display: none;
  position: absolute;
  background-color: whitesmoke;
  z-index: 10;
  max-height: 50vh;
  overflow-y: scroll;
}

.null-option {
  padding: 4px;
  border: 1px dotted black;
  border-radius: 4px;
  cursor: pointer;
}

.null-option:hover:not(.selected) {
  background-color: silver;
}

.icon-option {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px dotted black;
  border-radius: 4px;
  cursor: pointer;
}

.icon-option:hover:not(.selected) {
  background-color: silver;
}

.icon-option img {
  display: block;
}

.select-wrap img {
  width: 22px;
  height: 22px;
}
