@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    box-sizing: border-box;
}

.content {
    width: 75%;
    margin: auto;
}

.main.cabinet {
    padding-top: 50px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 459px;
    gap: 31px;
}

.rounded {
    background-color: #F4F7FA;
    border-radius: 25px;
}

.two-row-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;
}

.two-row-cell {
    grid-row: 1 / 3;
}

.label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label_text {
    color: #66686F;
    font-size: 16px;
    font-weight: 500;
}

.cabinetArrow {
    display: none !important;
}

.default {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-info {
    /*align-self: end;*/
}

.main-info__greeting {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 9px;
}

.main-info__description {
    font-size: 24px;
    font-weight: 400;
    color: #66686F;
    margin-bottom: 30px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.services__item {
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 47px;
}

.services__item_red {
    background-color: #FFCDEE;
}

.services__item_red .services__item-name {
    color: #661D56;
}

.services__item_yellow {
    background-color: #FFF4CD;
}

.services__item_yellow .services__item-name {
    color: #66521D;
}

.services__item_blue {
    background-color: #CDEAFF;
}

.services__item_blue .services__item-name {
    color: #1D4766;
}

.services__item_purple {
    background-color: #D7CDFF;
}

.services__item_purple .services__item-name {
    color: #421D66;
}

.services__item_green {
    background-color: #E3FFCD;
}

.services__item_green .services__item-name {
    color: #4A661D;
}

.services__item-icon {
    align-self: flex-end;
}

.cards-list {
    width: 459px;
    overflow-x: hidden;
    position: relative;
}

.cards-list__switch {
    position: absolute;
    right: 12px;
    top: 50%;
    padding: 8px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 1px solid #849FB4;
    box-sizing: content-box;
}

.cards-list__switch, .cards-list__switch-icon {
    width: 24px;
    height: 24px;
}

.cards-outer {
    width: 866px;
}

.cards-slider {
    gap: 10px;
    align-items: center;
    height: 262px;
}

.card {
    padding: 37px 20px;
    border-radius: 25px;
    color: #000000;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 428px;
    height: 232px;
    transition: height 0.2s linear;
    border: 1px #000000 solid;
}

.card.current_slide {
    height: 262px;
    /*box-shadow: 5px 5px 16px 3px #275C9B59;*/
}

/*.card_blue {
    background: linear-gradient(111.02deg, #0052B4 4.33%, #0273FA 98.36%);
}

.card_green {
    background: linear-gradient(112.02deg, #2FC562 1.2%, #1F713A 97.38%);
}

.card_black {
    background: #1D222C;
}*/

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

.card__logo {
    height: 78.57px;
    margin-top: -25px;
}

.card__type {
    font-size: 18px;
    font-weight: 700;
}

.card__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card__amount {
    font-size: 42px;
    font-weight: 700;
}

.card__number {
    font-family: Inconsolata;
    font-size: 24px;
    font-weight: 400;
}

.wallet__button {
    font-size: 18px;
    font-weight: 500;
    color: #1D4766;
    padding: 14px;
    border-radius: 500px;
    background-color: #82CAFF;
    color: #1D4766;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    position: relative;
}

.wallet__button.first {
    width: 100%;
}

.wallet__button.first::before, .wallet__button.first::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #82CAFF; /* Цвет линий */
    border-radius: 500px; /* Совпадает с кнопкой */
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: -1;
    animation: pulse 2s infinite ease-in-out;
}

.wallet__button.first::after {
    animation-delay: 2s; /* Задержка для второго элемента */
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5); /* Увеличиваем размер "полосок" */
        opacity: 0;
    }
}

.wallet__button::after {
    content: url('../../images/icons/cross.svg');
    width: 24px;
    height: 24px;
}

.chart-outer {
    padding: 24px 20px 26px 20px;
}

.chart-outer__header {
    display: flex;
    justify-content: space-between;
    margin-left: 104px;
}

.chart-outer__legend {
    display: flex;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-item__marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-item__marker_dark {
    background-color: #1D4766;
}

.legend-item__marker_light {
    background-color: #82CAFF;
}

.legend-item__text {
    font-size: 14px;
    font-weight: 400;
    color: #66686F;
}

.measurements {
    display: flex;
    gap: 10px;
}

.measurements__item {
    background-color: #DFE8EE;
    color: #66686F;
    font-size: 12px;
    font-weight: 400;
    padding: 5px 15px;
    border-radius: 50px;
}

.history {
    grid-row: 2 / 4;
    grid-column: 2;
}

.history__list {
    overflow: hidden;
    height: 100%;
    max-height: 500px;
    position: relative;
}

/*.history__list::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 196px;
    background: linear-gradient(180deg, rgba(244, 247, 250, 0) 0%, #F4F7FA 81%);
}*/

.transaction {
    grid-template-columns: 64px auto auto;
    padding: 8px 10px;
    height: 56px;
    align-items: center;
    border-bottom: 1px solid #849FB4;
}

.transaction__img {
    height: 30px;
}

.transaction__name {
    color: #1A2833;
    font-size: 14px;
    font-weight: 500;
}

.transaction__currency {
    justify-self: end;
}

.transaction__currency_dark {
    color: #1A2833;
    font-size: 14px;
    font-weight: 600;
}

.transaction__currency_light {
    color: #66686F;
    font-size: 12px;
    font-weight: 500;
}

.transaction__time {
    display: flex;
    gap: 5px;
}

.transaction__time-item {
    font-size: 12px;
    font-weight: 400;
    color: #66686F;
}

.investment__list {
    display: flex;
    gap: 15px;
}

.investment-info {
    padding: 20px 30px 20px 20px;
    border-radius: 20px;
    border: 1px solid #849FB4;
}

.investment-info__top {
    grid-template-columns: 48px auto auto;
    gap: 8px 11px;
}

.investment-info__logo-outer {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #849FB4;
    position: relative;
    padding: 8px 0;
}

.investment-info__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.investment-info__company-name {
    font-weight: 600;
    font-size: 16px;
}

.investment-info__stock-name {
    color: #66686F;
    font-weight: 500;
    font-size: 14px;
}

.investment-info__chart {
    justify-self: end;
}

.investment-info__bottom {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.investment-info__amount {
    font-weight: 700;
    font-size: 24px;
}

.investment-info__difference {
    font-weight: 700;
    font-size: 10px;
    border-radius: 20px;
}

.investment-info__difference_green {
    color: #39B463;
    background-color: #F1FCEE;
}

.investment-info__difference_red {
    color: #C10B0E;
    background-color: #F8E0E0;
}

.footer {
    padding-bottom: 49px;
    border-radius: 40px 40px 0px 0px;
}

.footer__top {
    display: flex;
    border-bottom: 1px solid #1E283311;
}

.footer__top-side {
    padding-bottom: 63px;
    padding-top: 49px;
}

.footer__text {
    font-size: 15px;
    font-weight: 400;
    color: #66686F;
}

.footer__top-left {
    display: flex;
    align-items: start;
    gap: 65px;
    padding-left: 153px;
    padding-right: 65px;
    border-right: 1px solid #1E283312;
    width: 50%;
}

.logo-block {
    column-gap: 12px;
    justify-content: start;
}

.logo-block__img {
    width: 40px;
    height: 40px;
}

.logo-block__text {
    color: #1D4766;
    font-size: 18px;
    font-weight: 500;
}

.footer__top-right {
    display: flex;
    padding-left: 68px;
    gap: 79px;
    width: 50%;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group__title {
    color: #1D4766;
    font-weight: 700;
    font-size: 17px;
}

.link-group__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group__item {
    color: #1A2833;
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    font-family: DM Sans;
}

.link-group__list_horizontal {
    flex-direction: row;
    justify-content: space-around;
    gap: 16px;
}

.footer__text-block {
    padding: 20px;
    margin-top: 32px;
    margin-left: 120px;
    margin-right: 120px;
    border-radius: 20px;
    background-color: #DFE8EE;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.footer__paragraph {
    text-align: center;
}

.footer__paragraph-link {
    color: #66686F;
}

.footer__copyright {
    display: block;
    margin: auto;
    margin-top: 32px;
    text-align: center;
    font-family: DM Sans;
}

.header_user_block {
    display: flex;
    border: 1px solid rgba(132, 159, 180, 1);
    border-radius: 50px;
    padding: 5px;
    justify-content: space-between;
    align-items: center;
}

.header_user_block img {
    width: 36px;
    height: 36px;
}

.user_block_name {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
}

.user_block_name_text {
    font-family: Inter;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    text-align: left;
    color: rgba(51, 45, 61, 1);
}

.user_block_email {
    font-family: Poppins;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    color: rgba(102, 104, 111, 1);
}

.user_block_logout a:hover {
    cursor: pointer;
}

.wallet__button:hover {
    cursor: pointer;
}


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 20px;
    width: 500px;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -14px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

select {
    display: block;
    margin-bottom: 15px;
    background-color: rgb(244, 247, 250);
    border: none;
    padding: 13px 20px 13px 10px;
    border-radius: 10px;
    width: 102%;
}

input {
    display: block;
    margin-bottom: 15px;
    background-color: rgb(244, 247, 250);
    border: none;
    padding: 13px 20px 13px 10px;
    border-radius: 10px;
    width: 102%;
}

textarea {
    display: block;
    margin-bottom: 15px;
    background-color: rgb(244, 247, 250);
    border: none;
    padding: 13px 20px 13px 10px;
    border-radius: 10px;
    width: 102%;
}

input::placeholder, select::placeholder {
    color: rgb(132, 159, 180);
    font-family: Inter;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    caret-color: rgb(132, 159, 180);
}

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

.topUp {
    background-color: #2bc435;
    color: white;
    max-width: 50%;
    width: 100%;
    margin-bottom: 20px;
}

.topUp::after {
    content: '';
    width: 0;
    height: 0;
}

.withdraw {
    background-color: red;
    color: white;
    max-width: 50%;
    width: 100%;
    margin-bottom: 20px;
}

.withdraw::after {
    content: '';
    width: 0;
    height: 0;
}

.modal ol {
    padding-left: 30px;
}

.block-notification {
    display: block;
    border-radius: 30px;
    padding: 20px 30px;
    margin-bottom: 30px;
    position: relative;
}

.waiting {
    background-color: #CDEAFF;
    border: 1px solid #CDEAFF;
}

.error {
    background-color: red;
    border: 1px solid red;
    color: white;
}

.success {
    background-color: #E3FFCD;
    border: 1px solid #E3FFCD;
    color: black;
}

.close-info-modal {
    position: absolute;
    right: 15px;
}

.close-info-modal a {
    color: black;
    text-decoration: none;
}

.history__list {
    overflow: auto;
}

.support_footer {
    position: fixed;
    right: 3%;
    bottom: 2%;
}

.support_footer img {
    width: 100px;
    height: 100px;
}

body {
    position: relative;
}

@media (max-width: 1225px) {
    .support_footer {
        right: 1%;
        bottom: 2%;
    }

    .main.cabinet {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .wallet {
        width: 100%;
    }

    .cards-list {
        margin: auto;
    }

    .revenue {
        order: 5;
        width: 100%;
    }

    .history {
        order: 4;
        width: 100%;
    }

    .investment {
        order: 6;
        width: 100%;
    }

    .content {
        width: 100%;
    }

    .main-info {
        width: 100%;
    }

    .history__list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {

    .main-info__description {
        max-width: 80% !important;
    }

    .cabinetArrow {
        margin-top: -40px;
        padding: 9px !important;
        display: block !important;
    }

    .services {
        display: none;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .services__item {
        width: 45%;
    }

    .services__item:last-child {
        width: 100%;
    }

    .services__item-icon {
        align-self: center;
    }

    .investment__list {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .investment__item {
        width: 45%;
    }

    .investment__item:last-child {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .support_footer {
        right: 0;
        bottom: 0;
    }

    .support_footer img {
        width: 80px;
        height: 80px;
    }

    .user_block_name, .user_block_logout {
        display: none;
    }

    .header_user_block {
        border: none;
    }

    .cards-list {
        max-width: 380px;
    }

    .card {
        max-width: 370px;
    }

    .modal-content {
        max-width: 400px;
    }
}
