@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');

html, body {
  font-family: Montserrat;
  font-weight: 500;
  letter-spacing: .04rem;
  margin: 0px;
  
  height: 100%;
  padding: 0;
  
  touch-action: pan-y; /* Prevent horizontal dragging on touch devices */
  user-select: none; /* Standard */
  -webkit-user-select: none; /* Chrome, Safari, and Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE 10+ */
  scrollbar-width: none;
  overscroll-behavior: none;
}

body {
  padding-top: env(safe-area-inset-top);
}

h1, h2, h3, h4, h5, p, button, .week-calendar-week-day, #greeting, .habit-time, span, .calendar-day, .creation-popup input, .habit-day, input, .progress-bar, .progress-bar-habits, .habit-day-edited, #upgradeMessage, #upgradeMessageGoals, #upgradeMessageHabitEdit, .tag, .category, .global-group-flex-toggles, .ql-editor ol, button, .fc-timegrid-slot, .fc .fc-daygrid-day.fc-day-today, .fc-col-header-cell-cushion, .fc-timegrid-slot-label-cushion {
  font-family: Montserrat;
  font-weight: 500;
  letter-spacing: .05rem;
  color: #5c5c5c;
}

.ql-editor ol {
  font-size: 17px!important;
  padding-left: 0px!important;
  color: #434343!important;
}

ol {
  margin: 0px!important;
  padding-left: 32px!important;
}

p {
  font-size: 14px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 15px;
}

.content {
  padding: 0px 0px 0px 0px;
}

  .flex-widget-top-larger, .flex-widget-bottom, .flex-widget, .flex-widget-bottom-medium, .flex-widget-bottom-small, .doggo_header {
    background-color: #FAFAFA;
  }

  .flex-container {
    overflow: auto;
    display: flex;
    flex-direction: column;
    top: 0;
    bottom: 0;
    height: 100%;
    padding: 0px 8px 8px 8px;
  }

  .flex-widget {
    margin: 0px 0px 16px 0px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    flex: 1;
  }

.stopwatch-counter, .countdown-timer  {
  color: rgb(97, 189, 146);
  font-size: 12px;
  margin: 0px 8px 0px 0px;
}

  /**
   * Header
   */

.flex-widget-header-container {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  background-color: #FAFAFA;
  border-radius: 8px;
  margin: 0px 0px 16px 0px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-image: url("/assets/img/header.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.flex-widget-header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FC6471;
  z-index: 1;
  border-radius: 8px;
}

.flex-widget-header h3, .flex-widget-header h4 {
  color: #FAFAFA!important;
  z-index: 2;
}

.flex-widget-header {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

img.header {
  width: 120px;
}

.flex-titles-header h3 {
  font-size: 30px;
}

.flex-titles-header h3, h4.description, .flex-titles-header-inner-sunrisesunset h4, h4.highslows {
  color: #434343;
  margin: 0px;
}

h4.description {
  margin: 0px 0px 4px 0px!important;
}

.flex-titles-header-inner {
  display: flex;
  width: 114px;
  justify-content: space-between;
  margin-left: 30px;
}

.flex-titles-header-inner-sunrisesunset {
  width: 176px;
  display: flex;
  justify-content: space-between;
}

.flex-titles-header-inner-sunrisesunset .wi {
  font-size: 18px;
}

.wi {
  margin-right: 4px;
  font-size: 20px;
}

/**
 * End of Header
 */

  .global-block-container, .global-block-container-loading-journal, .global-block-container-loading-goal {
    margin: 0px 0px 16px 0px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 1;
    background-color: #FAFAFA;
  }

  .global-block-container-transparent {
    background-color: #fff;
    margin: 0px 0px 26px 0px;
  }

  .flex-widget-top-larger {
    margin-right: 10px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 1;
    flex: 0 0 45%;
    overflow: scroll;
  }

  li span img {
    float: right;
  }

  .status-dropdown {
    cursor: pointer;
    padding: 4px 7px;
    border: 2px solid #f9f4ed;
    border-radius: 8px;
    background-color: #565857;
    color: #f9f4ed;
    font-size: 12px;
  }

  .global-block-container-tasks {
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 1;
    background-color: #FAFAFA;
  }

  .global-block-container-tasks-top, .global-block-container-tasks-top-completed {
    margin: 0px 0px 16px 0px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 1;
    background-color: #FAFAFA;
    min-width: 45%;
  }

  .flex-bottom-tasks {
    display: flex;
    bottom: 54px;
    z-index: 999;
  }

  .flex-widget-bottom {
    margin-right: 10px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin-bottom: 15px;
  }

  .flex-widget-bottom-small {
    margin-right: 10px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 0 0 176px;
    margin-bottom: 15px;
  }

  .flex-widget-bottom-medium {
    margin-right: 10px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 0 0 260px;
    margin-bottom: 15px;
  }

  #habitInput, #habitTimeInput, #noteInput, #taskInputTasks, #favoriteInput, .gifSearch {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 2;
    margin: 0px;
    background-color: #FAFAFA;
    color: #1E1E24;
    border: 0px;
    width: 95%;
  }

  #habitTimeInput {
    margin-bottom: 16px!important;
  }

  .task-list, .completed-task-list, .habit-list, .all-habits-list, #failedTaskList {
    color: #f9f4ed;
    margin: 0px;
    padding: 2px 0px 2px 2px;
  }

.task-priority {
  color: #fafafa;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
}

.task-priority-low {
  background-color: rgb(97, 189, 146);
}

.task-priority-medium {
  background-color: rgba(255, 205, 112, 1)
}

.task-priority-high {
  background-color: #FC6471;
}

.task-priority-critical {
  background-color: #FC6471;
}

.task, .habit, .habit-calendar-list{
  background-color: #fff;
  padding: 6px 0px;
  margin: 0px -1px 0px 0px;
  font-size: 24px;
  color: #434343;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contentManage .task, #contentManage .habit {
  padding: 10px 10px;
  margin: 0px 0px 2px 0px;
  font-size: 24px;
  color: #434343;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: solid;
  border-color: #FEF4EC;
  border-width: 1px;
}

.habit-calendar-list {
  padding: 0px 8px 0px 8px!important;
  border-radius: 4px!important;
  z-index: 999;
}

.habit-calendar-list .habit-calendar-habit-name {
  color: #fafafa;
  font-size: 11px;
  margin: 0px!important;
  max-width: 170px;
}

.habit-calendar-priority {
  background: linear-gradient(90deg, hsla(10, 89%, 70%, 1) 0%, hsla(350, 100%, 69%, 1) 100%);
  max-width: 200px;
  padding: 1px 6px;
  border-radius: 100px;
  text-align: center;
  color: #fafafa;
  font-size: 8px;
  margin: 0px;
}

.habit-calendar-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.habit-calendar-list .global-block-habit-description {
  color: #fafafa!important;
}

.habit-calendar-day-header {
  text-align: center;
}

.global-block-habit-description {
  color: #5C5C5C;
}

.habit-calendar-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.habit-calendar-week-view {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.goal-list {
  padding: 0px;
  margin: 0px;
}

.analytics {
  height: 360px;
}
#dashboardAnalyticsStreak {
  flex: 1;
  min-width: 114px;
  margin: 4px;
  text-align: center;
  min-height: 90px;
}

#dashboardHabitAnalytics {
  list-style: none;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  flex-direction: row;
}

.habit, .task {
  flex-direction: column!important;
  position: relative;
  transition: transform 0.1s ease;
}

.habit-collection {
  position: relative;
}

  .global-block-container-tasks-top-completed span {
    text-decoration: line-through;
  }

  input, #categoryDropdown, #taskCategoryDropdown, #habitCategoryEdit, #archiveDateLabel, .block-task-set {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 2;
    width: 95%;
    color: #434343;
    background-color: #FEF4EC;
    border: 0px;
  }

 .flex-titles.task-toggle {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 15px;
    width: 95%;
    color: #434343;
    background-color: #FEF4EC;
    border: 0px;
  }

  #categoryDropdown {
    margin-bottom: 8px;
  }

  #taskCategoryDropdown, #prioritySelector, #taskDurationSlider, #habitCategoryEdit, #categoryDropdown, #durationSlider {
    width: 100%!important;
  }

  .task-time-picker {
    background-color: #fafafa!important;
  }

  #taskDurationLabel, #durationLabel, #editHabitdurationLabel {
  background-color: #FC6471;
  max-width: 200px;
  padding: 3px 10px;
  border-radius: 100px;
  text-align: center;
  color: #fafafa;
  font-size: 12px;
}

  img {
    max-width: 100%;
  }

  li span img {
    cursor: pointer;
    width: 16px;
    margin-top: 5px;
  }
  
  #weather-app {
      background-color: #212131;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: fixed;
  }

.global-logo {
  border-radius: 100px;
  width: 110px;
}

@media only screen and (max-width: 768px) {
  .menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    height: 100%;
    flex: 1;
    justify-content: center;
  }

  .menu-items.active .menu-text {
    color: #2E86AB;
  }

  .primary-menu {
    position: fixed;
    background-color: #fafafa;
    /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);*/
    z-index: 2;
    color: #fafafa;
    bottom: 0px;
    margin-bottom: 0px;
    left: 0px;
    right: 0px;
    margin: auto;
    padding: 0px;
    height: 60px;
  }

  .primary-menu-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 60px;
  }

  .menu-icons.desktop {
    display: none;
  }
  
  .global-desktop-text {
    display: none;
  }
}

@media only screen and (min-width: 1025px) {
  .menu-icons.mobile {
    display: none;
  }
}

@supports (-webkit-touch-callout: none) {
    @media only screen and (max-width: 768px) {
        .primary-menu {
            padding-bottom: 16px!important;
        }
    }
}

  .left_menu {
    display: flex;
    flex-direction: row;
    min-height: 60px;
    color: #FDE9D8;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0px 16px 0px 16px;
  }

  .right_menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: end;
    bottom: 0px;
    padding: 0px 0px 0px 2px;
    margin-left: -10px;
  }

  .logo {
    margin: 15px 0px 20px -4px;
    width: 120px;
  }

  .menu-text {
    font-size: 11px;
    font-weight: 600;
    margin: 3px 0px 0px 0px;
    color: #2b2b2b;
  }

  .menu-icons {
    width: 20px;
    margin: 0px;
  }

  .menu-bottom-icons {
    width: 21px;
    margin: 0px;
    cursor: pointer;
  }

  .flex-titles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0px 12px 0px;
    width: 100%;
  }

.flex-titles-profile, .flex-titles-goals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0px 12px 0px;
}

.flex-titles-left {
  margin-right: 6%;
}

.flex-titles-profile {
  position: relative;
  padding: 30px;
  background-color: #FEF4EC;
  border-radius: 20px;
  margin: -14px -14px 20px -14px;
}

  .flex-titles-daylight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0px 6px 0px;
  }

  .flex-titles-header, .flex-titles-header-description {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 6px 0px 6px 0px;
  }

  .title-icons {
    width: 15px;
    cursor: pointer;
  }

  label {
    color: #1E1E24;
    font-size: 15px;
  }
 
    ul li a {
      margin: 0px;
      padding: 0px;
    }

    ul li span {
      width: 70%;
    }
    .popup-content {
      text-align: center;
    }

    .popup-content h3 {
      margin-top: 0;
    }

    .icon-list {
      list-style: none;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      margin: 20px 0;
    }

/**
 * Habits
 */

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow: auto;
}

.color-square {
  min-width: 38px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border 0.3s;
  flex: 1;
}

.color-square.selected {
  border-style: solid;
  border-width: 2px;
  border-color: #FDE9D8;
}

.color-square.greyscale {
    filter: grayscale(100%);
}

#filterDropdown {
  text-align: right;
}

#habitFilter {
  border-radius: 100px;
  background-color: #fafafa;
  padding: 6px;
  text-align: center;
  min-width: 150px;
  margin-right: 4px;
  font-size: 12px;
  border-style: none;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.habit-details {
  padding: 20px 40px 10px 40px;
  background-color: #FEF4EC;
  border-radius: 8px;
  width: 98%;
  margin: 20px 0px;
}

.habit-details p {
  font-size: 14px;
}

#allHabitList .habit, #habitList .habit, #habitListDashboard .habit {
  min-height: 58px;
}

.behind-div {
  background-color: #fafafa;
  transition: background-color 0.1s ease;
  height: 56px;
  border-radius: 8px;
  font-size: 0px;
  align-items: center;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  width: 100%;
  margin-top: 1px;
}

.behind-div img {
  width: 26px;
  margin-right: 12px;
}

.due-in {
  font-size: 12px;
  margin-top: 7px;
}

#editTags {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 1000;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  background-color: #FAFAFA;
}

#tagsDisplay {
  display: flex;
  flex-wrap: wrap;
  max-width: 97%;
  justify-content: space-between;
  margin-bottom: 10px;
}

.global-group-flex {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  overflow: auto;
  margin: 0px;
  padding: 0px;
}

/* Add styles for the calendar popup */
.calendar-habit-history-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  border-radius: 20px 20px 0 0;
  top: 120px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 1000;
  padding: 14px;
  background-color: #FAFAFA;
}

.month-navigation {
  justify-content: space-between;
  padding: 20px 40px 10px 40px;
  background-color: #FEF4EC;
  border-radius: 8px;
  width: 98%;
  margin-bottom: 20px;
}

.month-navigation img {
  width: 20px;
  height: 20px;
  margin: 0px 8px 0px 8px;
}

.month-navigation div {
  display: flex;
}

.month-navigation h4 {
  margin-right: 6px;
}

.calendar-habit-history-popup h3 {
  margin: 6px 0px 18px 0px;
}

/* Add flex-wrap to the container, not individual days */
.calendar-habit-history-popup > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
}

/* Style each day in the calendar */
.calendar-habit-history {
  display: flex;
  justify-content: center;
  align-items: center;  
  height: 70px;
  margin: 3px;
  background-color: #FEF4EC;
  font-size: 13px;
  border-radius: 8px;
  border-style: none;
}

/* Style each day in the calendar */
.calendar-habit-history,
.calendar-habit-completed,
.calendar-habit-missed {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  margin: 2px;
  width: 12px;
  height: 36px;
  font-size: 13px;
  text-align: center;
  background-color: #FEF4EC;
  border-radius: 100px;
}

.calendar-habit-completed {
  background-color: #FC6471;
  color: #fafafa;
}

.calendar-habit-missed {
  border-color: #FDE9D8;
  border-style: solid;
  border-width: 2px;
}

/* Style each row of habit days */
.habit-days-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.habit-days-row.first-row {
  justify-content: flex-end;
}

.habit-days-row.last-row {
  justify-content: flex-start;
}

/* Style the days of the week bar */
.days-of-week-bar {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

/* Style each day of the week */
.day-of-week {
  color: #434343;
}

.delete {
  width: 20px;
}

.complete {
  width: 22px;
  margin: 0px 0px 0px 0px;
}

.edit-image {
  width: 15px;
  margin: 0px 0px 0px 0px;
}

.statistics {
  width: 18px;
}

.habit-day-display {
  padding: 6px;
  margin: 0px 4px 0px 0px;
  width: 12px;
  font-size: 10px;
  text-align: center;
  background-color: #FDE9D8;
  border-color: #FDE9D8;
  border-style: solid;
  border-width: 1px;
  border-radius: 100px;
  border: 2px solid transparent;
}

.habit-day-display.completed {
  color: #434343;
  background: linear-gradient(#FDE9D8, #FDE9D8) padding-box, linear-gradient(157deg, rgba(233,76,73,1) 44%, rgba(151,75,167,1) 75%, rgba(93,73,233,1) 100%) border-box;
  border: 2px solid transparent;
  border-radius: 100px;
  text-align: center;
}

.habit-days-display {
  display: flex;
  flex-wrap: wrap;
}

#habitTagInputPopup {
  margin-bottom: 10px!important;
}

.habit-days {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.habit-day {
  border-radius: 100px;
  background-color: #FEF4EC;
  padding: 12px;
  width: 16px;
  height: 16px;
  text-align: center;
}

.habit-day.selected, .priority-box.selected, .habit-day-edited[data-selected="true"] {
  background-color: #FCDFC5;
}

.habit-days-schedule-flex {
  display: flex;
}

.habit-days-schedule, .habit-days-schedule-highlight {
  border-radius: 100px;
  background-color: #F7F5F3;
  color: #5C5C5C;
  border-style: solid;
  border-width: 1.5px;
  border-color: #F7F5F3;
  padding: 4px;
  width: 11px;
  height: 11px;
  text-align: center;
  margin: 0px 4px 0px 0px;
  font-size: 9px;
}

.habit-days-schedule-highlight.active {
  border-color: #D4EDE1;
}

.habit-days-schedule.magnify {
  width: 16px!important;
  height: 16px!important;
  font-size: 12px!important;
  padding: 6px!important;
}

.habit-days-schedule.selected, .priority-box.selected {
  background-color: rgb(97, 189, 146);
  color: #fafafa;
}

.habit-day-edited[data-selected="true"] {
  background-color: #FCDFC5;
  color: #5c5c5c;
}

input.habit-time {
  line-height: 1;
  min-height: unset;
  padding: 0px;
  margin-bottom: 5px;
  font-size: 12px;
  width: 66px;
}

.habit h4 {
  margin: 0px!important;
}

h4.habit-time {
 margin: 0px 0px 5px 0px!important;
}

#contentHabits .habit h4.habit-time {
  margin-bottom: 6px!important;
}

.creation-popup, .create-goal, .edit-goal, .create-category, .habit-calendar-popup, .habit-highlight, .focus-container {
  position: fixed;
  border-radius: 20px 20px 0 0;
  top: 20px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  padding: 20px;
  background-color: #fff;
  overflow: auto;
  z-index: 2;
}

.create-category {
  z-index: 3!important;
}

.habit-calendar-popup {
  padding: 20px 0px 20px 0px!important;
}

.creation-popup input {
  display: block;
  margin-bottom: 20px;
}

.close-popup {
  position: absolute;
  top: 0px;
  right: 10px;
  cursor: pointer;
  font-size: 30px;
  color: #FC6471;
}

#openCreationUI, #openJournalEntryCreate, #openGoalCreate {
  position: fixed;
  bottom: 68px;
  right: 18px;
  width: 46px;
  background-color: transparent;
  z-index: 10;
}

#manageHabits {
  border-radius: 20px 20px 0 0;
  top: 20px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 1000;
  padding: 20px;
  background-color: #FAFAFA;
}

img.templates, .habit-image{
  width: 70px;
  height: 70px;
  padding: 10px;
  background-color: #FEF4EC;
  border-radius: 100px;
}

img.habit-image-preview {
  width: 42px;
  height: 42px;
  background-color: #FC6471;
  border-radius: 100px;
  padding: 4px;
}

/* Flex container for habit items */
.habit-content, .task-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Styles for the left section containing the habit image */
.habit-left, .task-left {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

/* Styles for the middle section containing time and habit text */
.habit-middle, .task-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

span[contenteditable="true"] {
  font-size: 14px;
}

/* Styles for the right section containing complete and delete buttons */
.habit-right {
  display: flex;
  align-items: center;
}

.task-right {
  display: flex;
  align-items: center;
}

.flex-widget-blocks-templates-inner-container {
    display: flex;
    align-items: center;
    overflow: auto;
}

.flex-widget-blocks-templates-inner-container::-webkit-scrollbar {
  display: none;
}

.flex-widget-blocks-templates-inner {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.flex-widget-templates {
  text-align: center;
  margin-right: 10px;
}

/** Edit Habit **/
#habitDaysEdited {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.habit-day-edited {
  border-radius: 100px;
  background-color: #FEF4EC;
  padding: 12px;
  width: 16px;
  height: 16px;
  text-align: center;
}

.edit-habit-image.selected {
  background-color: rgb(214, 219, 178);
}

.edit-habit-image {
  width: 70px;
  height: 70px;
  padding: 10px;
  background-color: #FEF4EC;
  border-radius: 100px;
}

#edithabitCreationPopup {
  border-radius: 20px 20px 0 0;
  top: 20px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 1000;
  padding: 20px;
  background-color: #FAFAFA;
}

.vigasz {
  background-color: #FF6B6B;
}

#tagsDisplayPopup {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.habit-img-limit, .goal-img-limit, .journal-img-limit, .analytics-img-limit {
  width: 16px;
}

/**
 * End of Habits
 */

/**
 * Resources
 */

#contentResources .flex-widget-block-right, #contentResources .flex-widget-block-center {
  flex-direction: column;
}

.resource-tiles {
  width: 38px;
  margin: 0px 0px 4px 0px;
}

/**
 * End of Resources
 */

/**
 * Users
 */

#openSignin {
  background-color: #FAFAFA;
}

.open-signin input,
.open-signin button {
  display: block;
  margin-bottom: 10px;
}

#openSignin {
  position: fixed;
  bottom: 76px;
  right: 20px;
  width: 50px;
}

/**
 * End of Users
 */

/**
 * Calendar
 */

.calendar-day {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3px;
  background-color: #FEF4EC;
  font-size: 13px;
  border-radius: 8px;
  position: relative;
  flex: 60px;
}

#calendar-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.calendar-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -74%);
  height: 50%;
  width: 100%;
  text-align: center;
}

.calendar-day img {
  max-width: 100%;
  height: 100%;
}

.day-number {
  display: block;
}

/* Week */
#calendar-week {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.week-calendar-week-day {
  flex: 1; /* Grow to fill the available space */
  min-width: 68px; /* Set a minimum width */
  height: 70px;
  display: flex;
  flex-direction: column; /* Change flex-direction to column */
  justify-content: center;
  align-items: center;
  margin: 3px;
  font-size: 12px;
  border-radius: 8px;
  background-color: #FEF4EC;
}

.week-calendar-week-content {
  display: flex;
  flex-direction: column; /* Align items in a column */
  height: 50%;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  margin-top: -15px;
}

.week-calendar-week-content img {
  max-height: 80%;
  width: auto;
}

.week-calendar-week-day-number {
  margin-top: 5px;
}

#calendar-week-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex: 1;
}

/**
 * End of Calendar
 */

/**
 * Flex Blocks
 */

.flex-widget-block-left h3, .flex-widget-block-center h3, .flex-widget-block-right h3, .flex-widget-block-upcoming-habits h3, .flex-widget-block-goal-list h3, .flex-widget-block-upcoming-habits-page h3 {
  font-size: 16px;
  margin: 0px;
  color: #fafafa;
}

.flex-widget-blocks {
  display: flex;
  min-height: 100px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.flex-widget-block-left, .flex-widget-block-center, .flex-widget-block-right, .flex-widget-block-upcoming-habits, .flex-widget-block-goal-list, .flex-widget-block-upcoming-habits-page {
  background-color: #DA4167;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 4px;
  min-width: 130px;
  flex: 1;
}

.flex-widget-block-upcoming-habits-page, .flex-widget-block-upcoming-habits, .flex-widget-block-goal-list {
  margin: 0px!important;
}

.flex-widget-block-left {
  background-color: #BCD8C1;
  flex: 100%;
}

.flex-widget-block-center {
  background-color: #E3D985;
}

.flex-widget-block-upcoming-habits, .flex-widget-block-goal-list, .flex-widget-block-upcoming-habits-page {
  background-color: #FEF4EC;
  display: flex;
  min-height: 100px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.flex-widget-block-upcoming-habits h3, .flex-widget-block-goal-list h3, .flex-widget-block-upcoming-habits-page h3 {
  color: #434343;
}

/**
 * End of Flex Blocks
 */

/**
 * Form Popup
 */

#signInEmail, #signInPassword, #signUpName, #signUpEmail, #signUpPassword {
  background-color: #FDE9D8;
}

#firebaseAuthenticationPopup {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1000;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 0 200px rgba(0, 0, 0, 1);
  background-color: #FAFAFA;
}

#firebaseAuthenticationPopup form {
  display: none;
}

#firebaseAuthenticationPopup form.active {
  display: block;
}

#firebaseAuthenticationPopup label {
  display: block;
  margin-bottom: 8px;
}

#firebaseAuthenticationPopup input {
  width: 96%;
  padding: 8px;
  margin-bottom: 16px;
}

/**
 * End Form Popup
 */

/**
 * Profile Popup
 */

#profilePopup {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 70px;
  z-index: 1000;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  background-color: #FAFAFA;
}

#openProfile {
 position: fixed;
 bottom: 76px;
 right: 20px;
 width: 50px;
 background-color: #FAFAFA;
 border-radius: 100px;
}

/**
 * End Profile Popup
 */

/**
 * Progress Bar
 */

.progress-container, .progress-container-habits {
  margin: 10px 0px 10px 20px;
  border-radius: 18px;
  flex: 1;
  background-color: #FEF4EC;
  width: 100%;
}

.progress-container-goals {
  margin: 10px 0px 10px 0px!important;
  border-radius: 18px;
  background-color: #FDE9D8;
  flex: 1;
  width: 100%;
}

.progress-bar-habits, .progress-bar-goals {
  background-color: rgb(97, 189, 146);
  border-radius: 18px;
  padding: 3px 0px 3px 0px;
  color: #434343;
  font-size: 14px;
  height: 0px;
}

.progress-bar-habits p, .progress-bar p {
  margin: 0px 0px 0px 18px;
  font-size: 14px;
  width: 200px;
  color: #434343;
}

/**
 * End of Progress Bar
 */

/**
 * Achievements
 */

.achievement-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.achievement-box {
  padding: 10px 10px;
  border-radius: 8px;
  margin: 5px;
  font-size: 24px;
  background-color: #FEF4EC;
  color: #434343;
  flex: 1;
  min-width: 40%;
  text-align: center;
  height: 250px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.achievement-box img {
  width: 130px;
  height: 130px;
  margin-bottom: 12px;
}

.achievement-box h4 {
  font-size: 14px;
}

.achievement-box p {
  font-size: 12px;
}

/**
 * End of Achievements
 */

/**
 * Journal
 */

.entry-datetime-container {
  display: flex;
  flex-direction:row-reverse;
  justify-content:space-between;
  align-items: center;
  width: 100%;
  margin-top: 16px;
}

@keyframes lineAnimation {
  from { width: calc(var(--length) - 10px); }
  to { width: var(--length); }
}

.create-journal-entry {
    display: none;
    position: fixed;
    border-radius: 20px 20px 0 0;
    top: 60px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 14px;
    background-color: #FAFAFA;
}

.entry-emotion {
  width: 30px;
  margin-right: 8px;
}

.journal-title {
  margin-top: 12px;
}

#journalInput {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 14;
    margin-bottom: 20px;
    color: #434343;
    background-color: #FEF4EC;
    overflow: auto;
    width: 95%;
    border-style: none;
}

.entry-datetime {
  text-align: center;
  margin: 0px;
  color: #434343;
  font-size: 12px;
}

.delete-button {
 width: 16px;  
}

.cancel-button {
  background-color: #FC6471;
}

.delete-confirm-button {
 background-color: #FF6B6B;
}

.overlay {
  position: fixed;
  border-radius: 20px 20px 0 0;
  top: 60px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 14px;
  background-color: #FAFAFA;
}

.overlay p {
  margin-bottom: 20px;
}

.overlay button {
  margin-right: 18px;
}

.dialog {
  padding: 20px;
}

.ql-container {
    max-height: 70%!important;
    margin-bottom: 12px!important;
}

.journal-content {
    background-color: #FEF4EC;
    padding: 28px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 14px;
}

.journal-content h1, .journal-content h2, .journal-content h3, .journal-content h4, .journal-content h5, .journal-content p, .journal-content label, .journal-content .calendar-month {
  margin: -2px!important;
}

.journal-content p {
  font-size: 14px!important;
}

.journal-content h1 {
  font-size: 24px!important;
}

.journal-content h2 {
  font-size: 18px!important;
}

.journal-content img {
  width: 99%;
}

.ql-container.ql-snow {
  border: none!important;
}

.ql-toolbar.ql-snow {
  border: none!important;
  display: flex!important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.ql-formats {
    background-color: #FEF4EC !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 4px !important;
    margin: 0px 0px 12px 0px;
}

/**
 * End of Journal
 */

/**
 * Perks
 */

.my-account {
  position: fixed;
  border-radius: 20px 20px 0 0;
  top: 20px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 14px;
  background-color: #FAFAFA;
  overflow: scroll;
}

#myAccount h3 {
  margin: 0px 0px 4px 0px;
  font-size: 15px;
}

#myAccount .description {
  text-align: center;
}

.feature-description {
  font-size: 13px;
  margin-left: 24px;
}

.feature-box, .feature-box-blue {
  padding: 18px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #FEF4EC;
}

.feature-box-blue {
  background-color: #EFF7FB!important;
}

.feature-box-blue-header {
  margin: -20px -20px 20px -20px;
  background-color: #FC6471;
  padding: 18px;
}

.feature-box h1 {
  font-size: 22px;
  padding: 12px 0px 0px 0px;
}

.feature-box h2 {
  font-size: 16px;
  margin: 0px;
}

.account-title {
  font-size: 18px;
}

.upgrade-icon {
  max-width: 26px;
}

#upgradeMessage p, #upgradeMessageHabits p, #upgradeMessageHabitsCreate p, #upgradeMessageJournal p, #upgradeMessageHabitEdit p, #upgradeMessageGoals p, #upgradeMessageAnalytics p {
  line-height: 1.3;
  margin: 0px;
  color: #434343;
  font-size: 14px;
  text-align: center;
}

#upgradeMessage, #upgradeMessageHabitEdit, #upgradeMessageHabits, #upgradeMessageHabitsCreate, #upgradeMessageJournal, #upgradeMessageGoals {
    padding: 7px 10px;
    border-radius: 8px;
    line-height: 4;
    min-height: 60px;
    background-color: #FDE9D8;
    margin: 0px 0px 10px 0px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    color: #434343;
    border: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#upgradeMessageAnalytics p, #upgradeAnalyticsTrial p {
  font-size: 17px;
}

#welcomeAnalyticsTrial p {
  margin: 0px;
}

#welcomeAnalyticsTrial {
  flex-direction: row;
}

#welcomeAnalyticsTrial img {
  width: 40px;
  margin-right: 12px;
}

.global-highlight {
  color: #FC6471;
}

.global-global-highlight-green {
  color: #00CC63;
}

.global-global-highlight-blue {
  color: #2E86AB;
}

.perks-full-stop {
  color: #FC6471;
  font-size: 20px;
  line-height: 0;
}

/**
 * End of Perks
 */

/**
 * Goals
 */

#goalComplete {
  background-color: #FDE9D8;
}

.progress-text {
  font-size: 13px;
  margin-top: 10px;
}

#habitSelection, #editHabitSelection {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 4;
  min-height: 60px;
  width: 95%;
  margin-bottom: 20px;
  color: #434343;
  background-color: #FEF4EC;
  border: 0px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.goal-frequency {
  display: flex;
}

#completionFrequency, #editCompletionFrequency {
  width: 15%;
  height: 46px;
}

#goal-frequency-type, #editGoalFrequencyType {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 4;
  min-height: 60px;
  width: 89%;
  margin-bottom: 20px;
  margin-left: 10px;
  color: #434343;
  background-color: #FEF4EC;
  border: 0px;
}

.habit-checkbox {
  display: none;
}

.habit-checkbox-wrapper {
  min-width: 148px;
}

.habit-checkbox:checked + label {
  background-color: #FC6471;
  padding: 11px 14px;
  border-radius: 8px;
  color: #fafafa;
}

.habit-checkbox + label {
  padding: 11px 14px;
  border-radius: 8px;
}

.goal-habit-title {
  font-size: 14px;
}

#goal-habit-title {
  margin: 0px;
}

.goal-title {
  font-size: 14px;
  margin-bottom: 12px;
}

.goal { 
  padding: 10px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 24px;
  background-color: #FEF4EC;
  color: #434343;
  list-style: none;
}

.flex-titles-goals {
   margin: 6px 0px 8px 0px!important;
}

.progress-bar-text {
  margin: 0px 0px 0px 12px;
  font-size: 14px;
  color: #434343;
}

/**
 * End of Goals
 */

/**
 * Home Header
 */

.home-header, .subpage-header {
  display: flex;
  align-items: center;
  padding-top: 40px;
  flex: 1;
}

.subpage-header {
  padding-top: 20px!important;
}

.analytic-highlight-group {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.analytic-highlight-widget {
  background-color: rgba(184, 0, 46, 0.4);
  border-radius: 5px 14px;
  padding: 5px 14px;
}

.home-stats {
  display: flex;
  flex-direction: row;
}

.home-h1 {
  color: #fafafa!important;
  font-size: 21px;
  font-weight: 600;
  margin: 0px 0px 0px 0px;
  padding: 0px;
  text-align: left;
}

.home-h2 {
  color: #fafafa;
  font-size: 20px;
  margin: 0px 0px 10px 0px;
  padding: 0px;
}

.home-button-primary, .home-button-secondary {
  background-color: #FC6471;
  padding: 4px 8px 4px 8px;
  border-radius: 100px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  border-color: #fafafa;
  color: #fafafa;
  border-style: solid;
  border-width: 2px;
  font-size: 13px;
}

.home-button-primary {
  margin-right: 10px;
}

.home-header-inner, .home-header-inner-right {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1;
}

.home-header-inner-right {
  width: 30%;
}

.home-header-inner {
  min-width: 70%;
  min-height: 80px;
}

.loading-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
}

.bar {
  background-color: #FDE9D8;
  height: 12px;
  border-radius: 5px;
  animation: growShrink 4s infinite;
  transform-origin: right;
  margin: 5px 0px 5px 0px;
}

/* Define different initial widths for each bar */
.bar1 { width: 75%; animation-delay: 0s; }
.bar2 { width: 65%; animation-delay: 0.4s; }
.bar3 { width: 55%; animation-delay: 0.3s; }
.bar4 { width: 75%; animation-delay: 0.2s; }
.bar5 { width: 90%; animation-delay: 0.6s; }

@keyframes growShrink {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.05); } /* Adjust the scale factor as needed */
}

/**
 * End of Home Header
 */

/**
 * Plan Analytics
 */

.total-count {
  display: flex;
  justify-content:center;
  background-color: #EFF7FB;
  padding: 6px 12px 5px 12px;
  border-radius: 8px;
}

p.habit-total, p.goal-total, p.journal-total, .total-count p {
  color: #2E86AB;
  font-weight: 500;
  letter-spacing: 3px;
  margin: 0px;
  font-size: 11px;
}

/**
 * Loading Content
 */

#loadingContentAnalytics {
  margin: 0px 0px 16px 0px;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  background-color: #FAFAFA;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line {
  height: 8px;
  background-color: #FEF4EC;
  margin: 6px;
  animation: lineAnimation 2s infinite alternate;
}

/**
 * Global
 */

.global-content-inner-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #F7F5F3;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 20px 0px 20px;
}

.global-content-inner-body {
  position: fixed;
  top: 108px;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  border-radius: 33px;
  padding: 10px 20px 0px 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  background-color: #fff;
  z-index: 1;
  overflow: auto;
}

.global-content-inner-body-scrollable {
  overflow: auto;
}

.global-content-inner-body-padding {
  padding-bottom: 180px;
}

.global-content-inner-header-block {
  display: flex;
  justify-content: center;
  flex: 1;
}

.global-content-inner-header-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#shortHabitsList .habit, #shortHabitsList .task {
  background-color: #F7F5F3!important;
}

.global-beta {
  display: none;
}

.global-slider {
  -webkit-appearance: none;
  height: 10px;
  background: #FEF4EC;
  border-radius: 5px;
  outline: none;
  transition: opacity 0.2s;
  padding: 0px;
}

.global-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2E86AB;
  cursor: pointer;
}

.global-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2E86AB;
  cursor: pointer;
}

.spinner {
display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0px 0px -3px 6px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hidden {
  display: none;
}

.global-button-action {
    background-color: #fff;
    padding: 2px;
    border-radius: 100px;
    border-style: solid;
    border-color: #D4EDE1;
    border-width: 3px;
    width: 14px;
    height: 14px;
}

.global-button-action.completed {
  max-width: 14px;
  background-color: #D4EDE1;
  padding: 2px;
  border-radius: 100px;
  margin-left: 8px;
}

.strikethrough {
  text-decoration: line-through
}

.habit-action-buttons-container {
  width: 20%;
  height: 100%;
  display: flex;
}

.complete-habit-btn, .start-habit-btn {
  flex: 1;
  border-style: none;
}

.complete-habit-btn {
  background-color: rgb(97, 189, 146);
  color: #fafafa;
  border-radius: 0px 12px 12px 0px;
}

.start-habit-btn {
  background-color: #fafafa;
  border-radius: 0px 12px 12px 0px;
}

@media only screen and (max-width: 767px) {
    .global-button-action.start {
        display: none;
    }
}

button.global-button-primary {
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
  color: #fafafa;
  background-color: #2E86AB;
  font-size: 12px;
}

button.global-button-primary.blue-palette {
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
  color: #2E86AB;
  background-color: #EFF7FB;
  font-size: 9px;
}

button.global-button-primary-shaded {
  font-weight: 600;
  color: #fafafa;
  border: none;
  border-radius: 100px;
  padding: 5px 12px;
  background-color: rgba(184, 0, 46, 0.4);
  font-size: 10px;
}

button.global-button-primary-green {
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
  color: #fafafa;
  background-color: rgb(97, 189, 146);
  font-size: 12px;
}

button.global-button-secondary {
  font-weight: 600;
  background-color: #E0E0E0;
  color: #2b2b2b;
  font-size: 12px;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
}

button.global-button-warning {
  background-color: #FF6B6B;
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
  color: #FAFAFA;
  margin-left: 8px;
}

button.global-button-light {
  border-radius: 8px;
  border: none;
  background-color: #FEF4EC;
  padding: 8px;
  margin: 4px;
  font-size: 12px;
  color: #434343;
  text-align: center;
  width: 100%;
}

button.global-plan-sticker {
  color: #FDE9D8;
  background-color: transparent;
  min-width: 86px;
  padding: 4px 5px;
  font-size: 11px;
  border-color: #FDE9D8;
  border-style: solid;
  border-width: 2px;
}

.global-no-space {
  margin: 0px!important;
}

.global-half-gap {
  margin: 0px 0px 10px 0px!important;
}

.global-no-top-space {
  margin-top: 0px!important;
}

.global-no-scroll {
  overflow: hidden;
}

.global-analytic-box-container {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin: 0px 0px 16px 0px;
}

.global-analytic-box {
  text-align: center;
  min-width: 126px;
  margin: 0px;
}

.global-button-container {
  margin: 12px 0px 0px 0px;
}

.global-header-title {
  margin: 0px 0px 6px 0px;
}

.global-header-description {
  color: #fafafa;
  font-size: 11px;
  margin: 0px;
}

.global-subheading-description {
  font-size: 13px;
}

.global-block-container-half {
  margin: 0px 8px 0px 0px;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  background-color: #FAFAFA;
  min-width: 80%;
  flex: 1;
}

.global-block-container-shaded {
  margin: 0px 0px 16px 0px;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  background-color: #FDE9D8;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.global-block-flex {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.global-block-flex-row, .global-block-flex-row-wrap {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-evenly;
  overflow: auto;
  overflow-y: hidden!important;
  margin-bottom: 16px;
}

.global-block-flex-row-wrap {
  flex-wrap: wrap;
}

::-webkit-scrollbar { 
  display: none!important;
}

.global-group-flex-toggles {
  border-radius: 100px;
  background-color: #FEF4EC;
  padding: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 70px;
  margin: 4px;
  font-size: 14px;
  color: #434343;
}

.global-shaded-grid {
  background-color: #FEF4EC;
  padding: 10px 10px;
  border-radius: 8px;
  color: #434343;
  margin: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  align-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.global-group-flex-toggles.active {
  background-color: #FC6471;
  color: #fafafa;
}

.global-info-group, .global-info-group-scroll, .global-info-group-flex {
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 24px;
  background-color: #FEF4EC;
  color: #434343;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0px 0px 6px 0px;
}

.global-info-group-scroll {
  min-width: 99%;
  padding: 10px 4px!important;
  flex: 1;
  margin: 8px 20px 0px 0px!important;
  background-color: #fafafa!important;
}

.global-info-group-flex {
  flex-direction: row;
  align-items: center;
}

.global-info-group-inner-flex {
  flex-direction: row;
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0px 0px 6px 0px;
}

.global-info-group-inner {
  flex: 1;
  min-width: 40%;
}

.global-info-group-split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  background-color: #FDE9D8;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}

.global-info-group-split-inner {
  margin-right: 10px;
}

.global-inner-form-blocks {
  margin: 0px 0px 20px 0px;
}

.global-image-space-style {
  border-radius: 8px;
  margin: 14px 0px 0px 0px;
  max-width: 100%;
}

.global-image-grid {
  flex: 1 1 50%;
  max-width: 50%;
  margin: 8px;
}

.no-spacing {
  margin: 0px;
}

h4.global-block-title-impact {
  font-size: 16px;
  font-weight: 600;
  margin: 0px 0px 8px 0px;
}

h2.global-block-title {
  font-size: 15px;
}

h2.global-block-title-light {
  font-size: 15px;
  color: #fff;
}

h3.global-block-subtitle {
  font-size: 14px;
  margin: 2px 0px 2px 0px;
  font-weight: 600;
}

h4.global-block-subtitle {
  font-size: 12px;
  margin: 2px 0px 2px 0px;
}

p.global-block-description {
  font-size: 12px;
  margin: 0px 0px 4px 0px;
}

p.global-block-habit-description, p.global-block-task-description {
  font-size: 10px;
  color: #858585;
  margin: 0px 10px 0px 0px;
}

.global-font-space-top {
  margin-top: 30px!important;
}

/* Buttons */

#subscribeButton, #taskFixedTimeToggle, #habitThemeToggle, #editHabitThemeToggle {
    position: relative;
    height: 26px;
    width: 56px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

/* Circle inside the toggle button */
#taskFixedTimeToggle::before, #habitThemeToggle::before, #editHabitThemeToggle::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Toggle "on" state */
#taskFixedTimeToggle.toggled-on, #habitThemeToggle.toggled-on, #editHabitThemeToggle.toggled-on {
    background-color: #00CC63;
}

/* Circle position for "on" state */
#taskFixedTimeToggle.toggled-on::before, #habitThemeToggle.toggled-on::before, #editHabitThemeToggle.toggled-on::before {
    transform: translateX(30px);
}

#subscribeButton::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

button.global-toggle-button.global-button-warning.global-toggle-on {
  background-color: #00CC63;
}

button.global-toggle-button.global-button-warning.global-toggle-on::before {
  margin-left: 30px
}

/**
 * End of Global
 */

/**
 * Challenges
 */

.global-block-container.colour-pop {
background: hsla(4, 93%, 67%, 1) 0%;
}

.global-block-container.colour-pop .global-info-group-flex {
  background-color: transparent;
  border-color: #fafafa;
  border-style: solid;
}

.global-block-container.colour-pop h4, .global-block-container.colour-pop h3, .global-block-container.colour-pop p {
  color: #fff;
}

.global-block-container.colour-pop button {
  background-color: transparent;
  padding: 4px 8px 4px 8px;
  border-radius: 100px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  border-color: #fafafa;
  color: #fafafa;
  border-style: solid;
  border-width: 2px;
  font-size: 13px;
}

/**
 * Popup
 */
.popup-transition {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.popup-visible {
  opacity: 1;
}

/**
 * End of Popup
 */


/**
 * Habit Creation Icons
 */

.icon-scroll-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.icon-row {
  display: flex;
}

.material-symbols-rounded {
  font-size: 24px!important;
  margin: 0px;
  color: #434343;
  background-color: #FEF4EC;
  transition: background-color 0.3s;
  border-radius: 8px;
  padding: 10px;
  flex: 1;
  text-align: center;
  min-width: 26px!important;
  max-width: 26px!important;
}

#iconPicker, .icon-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.habit-left .material-symbols-rounded {
  padding: 10px;
  font-size: 24px;
}

.icon-picker .material-symbols-rounded.selected {
  filter: none;
  background-color: #FEF4EC;
}

.icon-picker .material-symbols-rounded {
  filter: grayscale(100%);
  background-color: #f0f0f0;
}

.icon-picker .material-symbols-rounded.selected {
  filter: none;
  background-color: #FEF4EC;
}

/**
 * End of Habit Creation Icons
 */

.sub-menu {
  display: flex;
  position: fixed;
  top: 0;
  min-height: 29px;
  padding: 6px;
  margin: 6px 8px 6px 8px;
  border-radius: 8px;
  z-index: 1;
  min-width: 95%;
}

.sub-menu-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 40px;
}

.sub-menu-icons {
  max-width: 28px;
  max-height: 28px;
}

.sub-menu-icons.blue-palette {
  max-width: 16px;
  background-color: #2E86AB;
  padding: 5px;
  border-radius: 100px;
}

.sub-menu-icons.blue-palette-contrast {
  max-width: 16px;
  background-color: #9ED0E5;
  padding: 5px;
  border-radius: 100px;
}

.sub-menu-icons.orange-palette {
  max-width: 17px;
  background-color: rgba(184, 0, 46, 0.4);
  padding: 5px;
  border-radius: 100px;
}

.sub-menu-icons.secondary {
  max-width: 22px;
}

.sub-menu-flex-inner {
    display: flex;
    flex: 1;
    align-items: center;
}

.sub-menu-flex-inner.right {
    display: flex;
    justify-content: flex-end;
}

.sub-menu-flex-inner.left h2 { 
  color: #434343;
  margin-right: 12px;
  font-size: 17px;
}

.menu-icons.analytics {
  width: 29px;
}

.confirm-delete {
  border-radius: 20px 20px 0 0;
  top: 60px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 9999;
  padding: 20px;
  background-color: #FAFAFA;
}

.color-square.greyscale.selected {
  filter: none;
}

.color-square.greyscale {
  filter: grayscale(100%);
}

* {
    user-select: none; /* Standard */
    -webkit-user-select: none; /* Chrome, Safari, and Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
}

.global-info-group-split-goalhabits {
  display: flex;
  flex-wrap: wrap;
}

.global-info-group-split-inner-goalhabits {
  background-color: #FEF4EC;
  margin: 2px;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  min-width: 90px;
}

.global-info-group-split-inner-goalhabits p {
  font-size: 9px;
  margin: 0px;
}

.global-info-group-split-inner-goalhabits .global-highlight {
  font-size: 12px;
  margin-bottom: 4px;
}

.global-block-container.global-challenges .global-block-subtitle {
  margin-top: 8px;
}

.global-block-container.global-challenges h4 {
  margin-bottom: 4px
}

.global-title-above-block {
  margin: 0px 0px 10px 8px;
  font-size: 16px;
}

/**
 * Create Habit & Task
 */

.popup-switcher {
  background-color: #FC6471;
  padding: 10px;
  border-radius: 20px 20px 0px 0px;
  margin: -20px -20px 20px -20px;
  text-align: center;
}

button.switcher-button.active, button.switcher-button {
  background-color: transparent;
  border-radius: 100px;
  padding: 2px 16px;
  border-color: #fafafa;
  border-style: solid;
  color: #fafafa;
  font-size: 14px;
}

button.switcher-button.active {
  background-color: #fafafa!important;
  color: #FF6A91!important;
}

.priority-selector {
  display: flex;
  gap: 8px;
}

.priority-box {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #434343;
  background-color: #FEF4EC;
  border: 0px;
  text-align: center;
}

/**
 * Habit Calendar
 */

.habit-calendar-day-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    /*gap: 10px;*/
}

.time-row {
    display: contents;
}

.time-label {
  font-size: 14px;
  padding: 0px 5px 0px 0px;
  text-align: right;
  border-right: 1px solid #ddd;
  margin-top: -9px;
}

.time-slot {
    border-bottom: 1px solid #ddd;
    min-height: 40px;
    position: relative;
}

.time-slot > .calendar-item {
    position: absolute;
    width: 100%;
    background-color: var(--item-color, #eee);
    border-radius: 5px;
    padding: 5px;
}

/**
 * Task Actions
 */
#taskActions {
  position: fixed;
  left: 10%;
  right: 10%;
  top: 30%;
  padding: 50px;
  border-radius: 12px;
  background: linear-gradient(90deg, hsla(10, 89%, 70%, 1) 0%, hsla(350, 100%, 69%, 1) 100%);
  z-index: 999;
  box-shadow: 0px 10px 10px 1000px rgba(0, 0, 0, 0.8);
}

#taskActions h2 {
  color: #fafafa;
}

#taskActions button {
  color: #fafafa;
  background-color: transparent;
  border-style: solid;
  border-color: #fafafa;
  border-radius: 100px;
  padding: 6px 20px;
  font-weight: 800;
}