@import url("https://fonts.googleapis.com/css?family=Lato");

html {
  --background: #f2f8fd;
  --surface: #fff;
  --text: #424242;
  --strong_text: #000;
  --secondary_text: #909090;
  --on_surface: #000;
  --primary: rgb(0, 196, 177);
  --primary_transparent: rgba(0, 191, 166, 0.2);
  --error: #e23636;
  --warning: #f7dc6f;
  --success: #82dd55;
  --graph_grey: #eceff1;
  --graph_color_1: #80dfd2;
  --graph_color_2: #a380df;
  --graph_color_3: #df808d;
  --graph_color_4: #cfd8dc;
  --on_primary: #fff;
  --on_primary_secondary: #d7dbdd;
  --on_error: #fff;
  --on_success: #fff;
  --border_radius: 6px;
  --divider: #d5dbdb;
  --divider_light: #eff2f2;
  --deactivate: #d5dbdb;
  --box_shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --light_shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  --scroll_bar: #bfdeff;
  --table_header: #b3d8f2;
  --table_even: #f8f9f9;
  --footer_background: #2c394b;
  --footer_text: #fff;
  --transparent_navbar: rgba(255, 255, 255, 0.7);
  --home_linear_gradiant: linear-gradient(
    156deg,
    rgb(127, 149, 235) 0%,
    rgb(0, 196, 177) 100%
  );
  --home_secondary_color: #4da5e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", "Arial", Times, serif;
  color: var(--text);
}

body {
  width: 100%;
  background-color: var(--background);
}

::-webkit-scrollbar {
  width: 8px;
  background: transparent;
  position: fixed;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll_bar);
  border-radius: 3px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.messages_view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  bottom: 0;
  right: -450px;
  padding: 20px;
  transition: 0.5s;
  width: 450px;
  z-index: 10000;
}

.messages_view.active {
  transform: translateX(-450px);
}

.messages_view .message_elem {
  background-color: var(--surface);
  margin: 5px 0;
  width: 100%;
  padding: 10px 20px;
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  z-index: 10000;
  transition: 0.5s;
}

.messages_view .message_elem.info i {
  color: var(--primary);
}

.messages_view .message_elem.warning i {
  color: var(--warning);
}

.messages_view .message_elem.error i {
  color: var(--error);
}

.messages_view .message_elem.success i {
  color: var(--success);
}

.messages_view .message_center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.messages_view .message_texts {
  width: 100%;
  margin: 0 20px;
}

.messages_view .message_texts h3 {
  font-size: 18px;
  font-weight: bold;
}

.messages_view .message_center i {
  font-size: 24px;
}

.messages_view .message_center i.close_icon {
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.button_primary {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
  background-color: var(--primary);
  margin: 5px 0;
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  color: var(--on_primary);
  cursor: pointer;
  padding: 2px;
}

a.button_primary {
  text-decoration: none;
}

.box {
  padding: 10px 20px;
  background-color: var(--surface);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
}

#description_element {
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 6px 10px;
  background-color: var(--surface);
  border-radius: var(--border_radius);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--divider);
  pointer-events: none;
  opacity: 0;
  max-width: 300px;
  text-align: center;
  transition: opacity 0.3s;
}

#description_element::before {
  content: " ";
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--surface);
  border-radius: 5px;
  position: absolute;
  transform: rotate(45deg);
  bottom: -5px;
}

#description_element.right::before {
  right: 20px;
}

#description_element.left::before {
  left: 20px;
}

#description_element p {
  z-index: 1;
}

#description_element.show {
  opacity: 1;
}

.div_description {
  cursor: default;
}

@media (max-width: 450px) {
  .messages_view {
    width: 100vw;
  }

  .messages_view .message_elem {
    width: 100%;
  }
}

@media (hover: hover) {
  .button_primary:hover {
    background-color: var(--surface);
    color: var(--primary);
  }
}
