.page {
  background-color: #ececec;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  line-height: 1;
  max-width: 1440px;
  padding: 20px 40px 32px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__title {
  margin: 0;
  font-weight: 900;
  font-size: 24px;
}

.header__link {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.24px;
  text-decoration: none;
  color: #1a1a1a;
}

.nav__links {
  font-weight: 500;
  font-size: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  text-decoration: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: #1a1a1a;
}

.nav__link:hover {
  text-decoration: underline;
}

.page__main-content {
  margin-top: 40px;
  flex-grow: 1;
  margin-bottom: 138px;
}

.page__main-content_location_carousel {
  margin: 106px 0 188px;
}

.wrapping-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wrapping-row__display-contents {
  display: contents;
}

.decks {
  display: flex;
  flex-direction: column;
}

.decks__title {
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 40px;
  margin-top: 0;
}

.decks__list {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  padding: 0;
  list-style-type: none;
  gap: 20px;
  padding: 0;
}

.decks__new-deck-btn {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #1a1a1a80;
  background-color: #d9d9d9;
  padding: 20px;
  width: 325px;
  height: 205px;
  gap: 20px;
  border-radius: 20px;
  align-self: flex-end;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  border: none;
  cursor: pointer;
}

.decks__new-deck-btn:hover {
  background-color: #c5c5c5;
  color: #1a1a1a;
}

.deck {
  width: 325px;
  height: 205px;
  border-radius: 20px;
  background-color: #fefefe;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

.deck__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.deck__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.deck__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck__count {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
}

.deck__delete-btn {
  border: none;
  width: 24px;
  height: 24px;
  background-color: transparent;
  opacity: 50%;
  cursor: pointer;
  background-image: url("../images/delete.svg");
  z-index: 2;
}

.deck__delete-btn:hover {
  opacity: 100%;
}

.deck_color_green {
  background-color: #64d583;
}

.deck_color_blue {
  background-color: #91a8f9;
}

.deck_color_pink {
  background-color: #ee92d7;
}

.deck_color_purple {
  background-color: #aa8ef0;
}

.deck_color_orange {
  background-color: #ee955e;
}

.deck_color_yellow {
  background-color: #f5d770;
}

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

.carousel__title {
  margin: 0 0 32px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a80;
}

.carousel__horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.carousel__flip-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.carousel__card {
  width: 440px;
  height: 300px;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #64d583;
}

.carousel__card-text {
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
}

.carousel__btn {
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.carousel__btn:hover::before {
  opacity: 100%;
}

.carousel__btn_type_left {
  background-color: #fff;
}

.carousel__btn_type_left::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/left.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px;
  opacity: 50%;
}

.carousel__btn_type_right {
  background-color: #fff;
}

.carousel__btn_type_right::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/right.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px;
  opacity: 50%;
}

.carousel__btn_type_flip {
  background-color: #fff;
}

.carousel__btn_type_flip::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/flip.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px;
  opacity: 50%;
}

.carousel__btn_disabled {
  cursor: default;
}

.carousel__btn_disabled::before {
  opacity: 20%;
}

.carousel__btn_disabled:hover::before {
  opacity: 20%;
}

.carousel__card_color_green {
  background-color: #64d583;
}

.carousel__card_color_blue {
  background-color: #91a8f9;
}

.carousel__card_color_pink {
  background-color: #ee92d7;
}

.carousel__card_color_purple {
  background-color: #aa8ef0;
}

.carousel__card_color_orange {
  background-color: #ee955e;
}

.carousel__card_color_yellow {
  background-color: #f5d770;
}

.carousel__card_color_white {
  background-color: #fff;
}

.footer__text {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.16px;
  color: #00000080;
  margin: 0;
}

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}
