.main_header hr {
  width: 59px;
  border: none;
  transform: rotate(90deg);
  border-top: 3px solid #29abe2;
  border-radius: 2px;
}

.main_header_summary {
  width: 800px;
}

.main_header p {
  font-size: 27px;
  color: #2a3647;
}

.key_matix {
  /*position: absolute;
  top: 335px;
  left: 328px;*/
  width: 560px;
  height: 562px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summery_and_good_morning {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
  padding: 0 80px;
}

.todo_done {
  display: flex;
  justify-content: space-between;
}

.summary_card_link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.to_do,
.done {
  width: 264px;
  height: 168px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.to_do,
.done,
.urgent,
.tasks_in_board,
.tasks_in_progress,
.awaiting_feedback {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary_icon_swap {
  position: relative;
  width: 69px;
  height: 69px;
  flex-shrink: 0;
}

.summary_icon_swap img {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease;
}

.summary_icon_hover {
  opacity: 0;
}

.to_do:hover .summary_icon_default,
.done:hover .summary_icon_default {
  opacity: 0;
}

.to_do:hover .summary_icon_hover,
.done:hover .summary_icon_hover {
  opacity: 1;
}

.to_do:hover,
.done:hover,
.urgent:hover,
.tasks_in_board:hover,
.tasks_in_progress:hover,
.awaiting_feedback:hover {
  background: #2a3647;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(42, 54, 71, 0.12);
}

.to_do:hover #to_do_count,
.done:hover #done_count,
.urgent:hover #urgent_count,
.urgent:hover #deadline,
.tasks_in_board:hover #board_count,
.tasks_in_progress:hover #progress_count,
.awaiting_feedback:hover #feedback_count,
.to_do:hover #to_do_count span,
.done:hover #done_count span,
.urgent:hover #urgent_count span,
.urgent:hover #deadline span,
.tasks_in_board:hover #board_count span,
.tasks_in_progress:hover #progress_count span,
.awaiting_feedback:hover #feedback_count span {
  color: #ffffff;
}

.urgent:hover hr {
  border-top-color: #ffffff;
}

#to_do_count,
#done_count {
  font-size: 64px;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

#to_do_count span,
#done_count span {
  font-size: 20px;
  font-weight: 400;
  display: flex;
  color: #000000;
}

.icons {
  width: 40px;
  height: 40px;
}

.urgent {
  width: 100%;
  height: 168px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tasks {
  display: flex;
  gap: 24px;
}

.hr_mobile {
  display: none;
  rotate: 90deg;
}

#urgent_count {
  font-size: 64px;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

#urgent_count span {
  font-size: 20px;
  font-weight: 400;
  display: flex;
  color: #000000;
}

.urgent hr {
  width: 102px;
  border: none;
  transform: rotate(90deg);
  border-top: 3px solid #d1d1d1;
  border-radius: 2px;
}

#deadline {
  font-size: 21px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #000000;
}

#deadline span {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

.tasks_in_board,
.tasks_in_progress,
.awaiting_feedback {
  width: 168px;
  height: 168px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#board_count,
#progress_count,
#feedback_count {
  font-size: 64px;
  font-weight: 600;
  color: #000000;
}

#board_count span,
#progress_count span,
#feedback_count span {
  font-size: 20px;
  font-weight: 400;
  display: flex;
  color: #000000;
}

/*#good_morning {
  position: absolute;
  top: 547.5px;
  left: 968px;
}*/

.user_name {
  font-size: 64px;
  font-weight: 700;
  color: #29abe2;
}

.good_morning {
  font-size: 47px;
  font-weight: 500;
  color: rgba(42, 54, 71, 1);
}

@media(min-width: 1160px) and (max-width:1250px) {
  .main_header_summary {
    width: 700px;
  }

  .summery_and_good_morning {
    padding: 0 40px;
  }
}

@media(min-width: 1116px) and (max-width:1159px) {

  .main_header_summary {
    width: 640px;
  }

  .summery_and_good_morning {
    padding: 0 16px;
  }
}

@media(min-width: 320px) and (max-width:1115px) {
  .main_header_summary {
    width: auto;
  }

  .respo_header_text_size {
    font-size: 20px;
  }

  .hr_desktop {
    display: none;
  }

  .hr_mobile {
    display: block;
  }

  .key_matix {
    position: static;
    align-items: center;
    padding: 24px 16px;
    width: 100%;
    height: auto;
  }

  .todo_done {
    gap: 16px;
  }

  .to_do,
  .done {
    width: 130px;
    height: 110px;
  }

  #to_do_count,
  #done_count {
    font-size: 47px;
  }

  #to_do_count span,
  #done_count span {
    font-size: 16px;
  }

  .urgent {
    width: 280px;
    height: 110px;
    padding: 16px;
    gap: 0;
  }

  #urgent_count {
    font-size: 47px;
  }

  #urgent_count span {
    font-size: 16px;
  }

  #deadline {
    font-size: 16px;
  }

  #deadline span {
    font-size: 16px;
  }

  .tasks {
    gap: 16px;
  }

  .tasks_in_board {
    height: 116px;
    width: 80px;
  }

  #board_count {
    font-size: 47px;
  }

  #board_count span {
    font-size: 16px;
  }

  .tasks_in_progress {
    height: 116px;
    width: 80px;
  }

  #progress_count {
    font-size: 47px;
  }

  #progress_count span {
    font-size: 16px;
  }

  .awaiting_feedback {
    height: 116px;
    width: 80px;
  }

  #feedback_count {
    font-size: 47px;
  }

  #feedback_count span {
    font-size: 16px;
  }

  #good_morning {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    height: 95%;
    top: 0;
    left: 0;
    background-color: #f6f7f8;
  }

  .good_morning {
    font-size: 36px;
    font-weight: 400;
    text-align: center;
  }

  .fadeOut {
    animation: splashOut 0.8s ease forwards;
  }

  @keyframes splashOut {
    from {
      opacity: 1;
      transform: scale(1);
    }

    to {
      opacity: 0;
      transform: scale(1.1);
    }
  }
}