@import 'theme';

body {
  overflow: hidden;
  background-color: white;
  margin: 0;
  height: 100%;
  width: 100%;
}

button {
  user-select: none;
  &:focus {
    outline: 2px solid #008eff;
  }
}

body.using-mouse :focus {
  outline: none;
}

.snipping-tool:lang(ja-JP) {
  font-family: @font-family-ja;

  h4 {
    margin: 3px 0;
  }

  .snipping-tool-symphony-section {
    padding-left: 10px;
  }
}

.snipping-tool:lang(fr-FR) {
  .snipping-tool-symphony-section {
    padding-left: 10px;
  }
}

.snipping-tool {
  display: flex;
  flex-direction: column;
  height: 100vh;

  header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 12px;

    .action-button {
      width: 24px;
      height: 24px;
      margin-left: 15px;
      background: white;
      border-radius: 4px;
      cursor: pointer;
      border-radius: 4px;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 2px solid white;

      &:first-child {
        margin-left: 0;
      }
    }

    .clear-button {
      border: 2px solid #7c7f86;
      border-radius: 16px;
      background: white;
      color: #7c7f86;
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      cursor: pointer;
      height: 24px;
      width: 68px;
    }

    .draw-actions {
      display: flex;
      flex-direction: row;
      justify-content: center;
      text-align: center;
    }

    .clear-actions {
      display: flex;
      flex: none;
      flex-direction: row;
      justify-content: center;
      text-align: center;
      position: absolute;
      right: 20px;
      align-items: center;
    }
  }

  main {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;

    .image-container {
      display: flex;
      align-items: center;
    }
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 16px;
    padding-bottom: 24px;

    .add-to-chat-button {
      border: none;
      border-radius: 16px;
      font-size: 0.75rem;
      font-weight: 600;
      background-color: @electricity-ui-50;
      color: @vanilla-white;
      cursor: pointer;
      text-transform: uppercase;
      border-radius: 16px 0px 0px 16px;
      height: 32px;
      min-width: 102px;
      width: fit-content;
    }

    .add-to-chat-button:hover {
      background-color: @electricity-ui-40;
    }

    .add-to-chat-button:active {
      background-color: @electricity-ui-60;
    }

    .close-button {
      display: flex;
      flex-direction: row;
      align-items: center;
      font-style: normal;
      font-weight: 600;
      font-size: 0.875rem;
      padding: 8px 16px;
      height: 32px;
      border-radius: 16px;
      font-family: @font-family;
      color: @graphite-50;
      text-transform: uppercase;
      margin-right: 16px;
      border: none;
      background-color: transparent;
      cursor: pointer;
    }
  }
}

.color-picker {
  display: flex;
  flex-direction: row;
  margin: 4px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 40px;
  background: #ffffff;
  box-shadow: 0px 4px 16px rgba(15, 27, 36, 0.14),
    0px 4px 8px rgba(15, 27, 36, 0.26);
  border-radius: 24px;
}

.enclosing-circle {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: none;
  margin: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
}

.color-dot {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.menu-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 8px 6px;
  width: 30px;
  height: 32px;
  background: @electricity-ui-50;
  border-radius: 0px 16px 16px 0px;
  margin-left: 1px;
  border: none;
  cursor: pointer;
}

.menu-button:hover {
  background: @electricity-ui-40;
}

.menu-button:active {
  background: @electricity-ui-60;
}

.chevron-down {
  color: @text-color-primary;
}

.menu {
  box-sizing: border-box;
  top: -85px;
  right: 0px;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  padding-left: 0px;
  min-height: 80px;
  background: @vanilla-white;
  box-shadow: 0px 2px 4px rgba(5, 6, 6, 0.08), 0px 12px 28px rgba(5, 6, 6, 0.16);
  border-radius: 8px;
  margin: 0px;
  cursor: pointer;
}

.menu-button-wrapper {
  position: relative;
  margin-right: 32px;
}

.general-font {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 20px;
  color: @graphite-80;
  font-family: @font-family;
}

.list-item {
  display: flex;
  align-items: center;
  list-style-type: none;
  width: 100%;
  box-sizing: border-box;
  border: none;
  padding: 12px 14px;
  background-color: transparent;
  width: 100%;
  text-align: left;
}

.list-item:hover {
  color: @vanilla-white;
  background-color: @graphite-60;
}

.list-item:hover:first-of-type,
.list-item:focus:first-of-type {
  border-radius: 8px 8px 0 0;
}

.list-item:hover:last-of-type,
.list-item:focus:last-of-type {
  border-radius: 0 0 8px 8px;
}

.list-item:focus {
  color: @vanilla-white;
  background-color: @graphite-60;
  border-radius: 8px;
}

.general-font:lang(ja-JP) {
  font-family: @font-family-ja;
}
