/* Sensor map builder */
.mapImageUpload-label {
  align-items: center;
  border: 2px solid #d7d7d7;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.mapImageUpload-input {
  display: none;
}

.mapCreator-containerHidden {
  display: none;
}

.mapCreator-sensorTemplate {
  display: none;
}

.mapCreator-container {
  margin-top: 20px;
}

.mapCreator-canvasContainer {
  margin-top: 20px;
  overflow-x: auto;
}

.mapCreator-labelContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

@media screen and (min-width: 640px) {
  .mapCreator-labelContainer {
    align-items: end;
    flex-direction: row;
  }
}

.mapCreator-labelContainer p {
  font-weight: 300;
}

.mapCreator-howToBtn {
  align-items: center;
  border: 2px solid #d7d7d7;
  border-radius: 0.25rem;
  cursor: pointer;
  color: #989898;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.mapCreator-howToModal {
  background-color: rgba(255, 255, 255, 0.9);
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
}

.mapCreator-howToModal-content {
  background-color: white;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  bottom: 0;
  display: flex;
  position: absolute;
  flex-direction: column;
  height: 100vh;
  margin-right: -100%;
  max-width: 400px;
  right: 0;
  top: 0;
  width: 100%;
}

.mapCreator-howToModal-header {
  background: #340d5e;
  color: #fff;
  min-height: 48px;
  padding: 15px;
  position: relative;
}

.mapCreator-howToModal-header > p {
  font-weight: bold;
  line-height: 1.42857143;
  margin: 0;
}

.mapCreator-howToModal-body {
  flex: 1 0 auto;
  overflow-y: auto;
  padding: 15px;
  position: relative;
}

.mapCreator-howToModal-body h5 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 1em;
}

.mapCreator-howToModal-body ul {
  list-style-type: circle;
  padding-left: 1.5em;
}

.mapCreator-howToModal-body li {
  font-size: 14px;
  margin-bottom: 1em;
}

.mapCreator-howToModal-footer {
  border-top: 1px solid #e5e5e5;
  padding: 15px;
  text-align: right;
}

.mapCreator-howToModal-footer button {
  background-color: #fff;
  background-image: none;
  border: 1px solid transparent;
  border-color: #ccc;
  border-radius: 4px;
  color: #333;
  display: inline-block;
  font-size: 14px;
  line-height: 1.42857;
  margin-bottom: 0;
  padding: 6px 12px;
}

.mapCreator-howToModal-footer button:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
  color: #333;
}

.mapCreator-slideIn {
  animation: slideIn 0.5s forwards;
}

.mapCreator-slideOut {
  animation: slideOut 0.5s forwards;
}

.mapCreator-fadeIn {
  animation: fadeIn 0.5s forwards;
}

.mapCreator-fadeOut {
  animation: fadeOut 0.5s forwards;
}

@keyframes slideIn {
  from {
    margin-right: -100%;
  }
  to {
    margin-right: 0;
  }
}

@keyframes slideOut {
  from {
    margin-right: 0;
  }
  to {
    margin-right: -100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    pointer-events: none;
  }
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    pointer-events: auto;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.mapCreator-howToModal-message {
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  margin: 0 0 14px;
  padding: 10px 16px;
}

.mapCreator-howToModal-message img {
  display: inline;
  margin-right: 3px;
  width: 0.75rem;
}

.message-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #3a87ad;
}

.message-warn {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #c09853;
}

.mapCreator-exports {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mapCreator-exports-btns {
  display: flex;
  gap: 10px;
}
