:root {
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  word-break: break-word;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-wrap: break-word;
}

.qrzap {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 100;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hide-mobile {
  @media (max-width: 639px) {
    display: none !important;
  }
}

.hide-desktop {
  @media (min-width: 639px) {
    display: none !important;
  }
}

/*
 * when this class is assigned to a component, user will not be able to select and copy the content from that component
 */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}

/* Style <pre> tag of markdown editor affected by prism theme */
pre[class*='language-'][class*='w-md-editor-text-pre'] {
  padding: 0;
  line-height: normal;
}

/* Style <code> tag of markdown editor affected by prism theme */
code[class*='language-'][class*='code-highlight'] {
  color: #3e3e3e;
}

.bold-link {
  color: inherit !important;
  font-weight: bold;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dashed-field.Mui-focused fieldset {
  border-color: unset !important;
}

.dashed-field fieldset {
  border-style: dashed !important;
}

.pointer {
  cursor: pointer;
}

.force-pointer {
  cursor: pointer !important;
}

.inherit-color {
  color: inherit;
}

.inherit-color-force {
  color: inherit !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

/* Fonts */
@font-face {
  font-family: 'Roboto';
  src:
    local('Roboto Medium'),
    local('Roboto-Medium'),
    url('assets/fonts/roboto-medium.woff2') format('woff2'),
    url('assets/fonts/roboto-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src:
    local('Roboto Light'),
    local('Roboto-Light'),
    url('assets/fonts/roboto-light.woff2') format('woff2'),
    url('assets/fonts/roboto-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src:
    local('Roboto Bold'),
    local('Roboto-Bold'),
    url('assets/fonts/roboto-bold.woff2') format('woff2'),
    url('assets/fonts/roboto-bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src:
    local('Roboto'),
    local('Roboto-Regular'),
    url('assets/fonts/roboto-regular.woff2') format('woff2'),
    url('assets/fonts/roboto-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
