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

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

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

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

.header__link {
  text-decoration: none;
  color: #1a1a1a;
}

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

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

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

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

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

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

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

.decks__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.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__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.deck__delete-btn {
  width: 24px;
  height: 24px;
  background: url("../images/delete.svg") center no-repeat;
  background-size: contain;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  z-index: 2;
}

.deck__delete-btn:hover {
  opacity: 1;
}

.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;
}

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

.decks__new-decks-btn {
  margin-top: 0;
  padding: 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a80;
  background-color: #d9d9d9;
  display: flex;
  align-items: flex-start;
  width: 325px;
  height: 205px;
}

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

.footer__text {
  margin: 0;
  font-size: 16px;
  color: #00000080;
}

.carousel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.carousel__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

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

.carousel__card {
  width: 100%;
  max-width: 620px;
  min-height: 320px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

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

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

.carousel__card_color_orange {
  background-color: #ee955e;
}

.carousel__card_color_pink {
  background-color: #ee92d7;
}

.carousel__card_color_purple {
  background-color: #aa8ef0;
}

.carousel__card_color_yellow {
  background-color: #f5d770;
}

.carousel__card_color_white {
  background-color: #fff;
}

.carousel__card-text {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.carousel__btn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.carousel__btn:hover {
  opacity: 0.8;
}

.carousel__btn_disabled,
.carousel__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel__btn_type_flip {
  width: 60px;
  height: 60px;
}

.carousel__btn-icon {
  width: 24px;
  height: 24px;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 40px;
}

.not-found__code {
  font-size: 120px;
  font-weight: 900;
  color: #1a1a1a80;
  margin: 0;
}

.not-found__title {
  font-size: 48px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #1a1a1a;
}

.not-found__message {
  font-size: 20px;
  margin-bottom: 30px;
  color: #1a1a1a80;
}

.not-found__link {
  font-size: 18px;
  font-weight: 700;
  color: #91a8f9;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.not-found__link:hover {
  border-bottom: 2px solid #91a8f9;
}
