@font-face {
    font-family: 'TT Norms Pro';
    src: url('../fonts/TT Norms Pro Regular.ttf') format('truetype');
    font-display: swap; /* Это поможет избежать FOUT */
}
@font-face {
    font-family: 'TT Travels';
    src: url('../fonts/TT Travels Medium.otf') format('truetype');
    font-display: swap; /* Это поможет избежать FOUT */
}

/* Стили для светлой темы */
body[data-theme='light'] {
    background: #ffffff; /* Начальный градиент */
    color: #000000;
    padding: 15px;
    
    .Num, .DescriptionShort{
        color: #000000;
    }

    .PerfCoinsAre span {
        color: rgb(255, 89, 89);
    }

    /* Стили для кнопки в светлой теме */
    .PerfCoinsAre #button {
        background-color: rgb(255, 89, 89); /* Цвет фона кнопки */
        color: #ffffff; /* Белый текст */
        padding: 15px 20px;
        border-radius: 8px;
        font-size: 20px;
        line-height: 24px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .PerfCoinsAre #button:hover {
        background: rgb(161, 63, 63); /* Обратный градиент при наведении */
    }

    #banner-containerNonAds__{
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        width: 100%;
        border-radius: 30px;
        overflow: hidden;
        background-color: #E0E0FF;
    }
}

/* Стили для темной темы */
body[data-theme='dark'] {
    background: #111; /* Темный фон для контраста */
    padding: 15px;

    canvas {
        display: block; /* Убираем пустоты вокруг Canvas */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Растягиваем на всю ширину */
        height: 100%; /* Растягиваем на всю высоту */
    }

    #header {
        background-color: inherit;
    }

    #header .header-icons img {
        filter: brightness(0) invert(1);
    }

    #banner-containerNonAds__{
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        width: 100%;
        border-radius: 30px;
        overflow: hidden;
        background-color: #E0E0FF;
    }

    #header .menu-icon button {
        border-color: #fff;
        color: #fff;
        background-color: #fff;
    }

    #header h4 {
        color: #fff;
    }

    .PerfCoinsAre p {
        color: #fff;
    }

    .PerfCoinsAre #bannerStyle2 {
        border: solid 1px rgb(255, 255, 255);
    }

    .PerfCoinsAre #balance {
        color: #fff;
    }

    .PerfCoinsAre span {
        color: #ff5959;
    }

    .PerfCoinsAre #button {
        background-color: #ff5959;
        color: #fff;
        border: none;
        padding: 16px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 24px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .PerfCoinsAre #button:hover {
        background-color: #bb4141;
    }

    .HowToEarnAndSpend .MuiButtonBase-root .MuiAccordionSummary-root .MuiAccordionSummary-gutters .css-vrnswg-MuiButtonBase-root-MuiAccordionSummary-root {
        background-color: #808080;
    }

    .HowToEarnAndSpend .css-1325e38-MuiButtonBase-root-MuiAccordionSummary-root.Mui-expanded {
        background-color: #E0E0FF;
    }

    .HowToEarnAndSpend #FirstText {
        color: #fff;
    }

    #banner1{
        background-color: inherit;
        border: solid 1px #DEDEF0;
    }

    #perfCoinsBannerText{
        color: white;
    }

    #perfSVG{
        opacity: 1;
    }

    #SpendPerfCoins{
        color: #fff;
    }
    
    #cards{
        background-color: inherit;
        color: #fff;
        border: 1px solid white;
        border-radius: 10px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #first, #second, #third{
        background-color: inherit;;
    }

    
    .cardDescription, #important, 
    #personalAccountText, #balanceText{
        color: #fff;
    }

    #personalAccountRigh, #RightSideOfControlPanel{
        background-color: rgba(255, 255, 255, 0.55); /* Полупрозрачный серый фон */    
    }
    .Column{
        background-color: inherit
    }
}

#cards{
    height: 560px;
    width: 420px;
    background-color: inherit;
    color: black;
    border: 1px solid white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.Column{
    background-color: #ff5959;
    text-align: center;
}

#important{
    margin-top: 15px;
    font-size: 24px;
    font-family: 'TT Norms Pro';
    font-weight: 500;
    line-height: 27px;
    text-align: left;
}

#Corp{
    text-align: left;
    position: relative;
    font-size: 56px;
    line-height: 56px;
    font-weight: 500;
    font-family: 'TT Travels';
    z-index: 1;
    margin-bottom: 20px;
}

#Path{
    position: relative;
    vertical-align: middle;
    z-index: -1;
    top: 35px;
    right: 650px;
}

#Vector{
    width: 40%;
    position: relative;
    vertical-align: middle;
    z-index: -1;
    top: 8px;
    right: 657px;
}

#Val{
    right: -251px;
    top: -20px;
    position: relative;
    font-size: 80px;
    line-height: 80px;
    font-weight: bold;
    font-family: 'TT Travels';
    z-index: 2;
}

.ellipse-image {
    position: relative;
    right: 300px;
    vertical-align: middle; /* Центрирование с текстом */
    z-index: -1;
}

.text-with-icons {
    display: inline-flex; /* Flex-контейнер для текста и иконок */
    align-items: center; /* Центрирует элементы по вертикали */
    position: relative; /* Для позиционирования иконок относительно текста */
  }  

#UWay{
    font-family: 'TT Norms Pro';
    font-size: 24px;
    font-weight: 400;
    line-height: 28.8px;
    text-align: left;
    margin-bottom: 40px;
}

#banner-button {
    text-transform: none;
    background-color: #ff5959;
    border-radius: 5px;
    color: #fff;
    border: 0px solid white;
    font-size: 20px;
    padding: 15px 15px;
    font-family: 'TT Norms Pro';
    font-weight: 400;
    line-height: 24px;
    transition: background-color 0.9s ease;
  }
  
  #banner-button:hover {
    background-color: #8f3030;
  }

  #banner1 {
    border: solid 1px #DEDEF0;
    position: relative; /* Родительский элемент для абсолютного позиционирования SVG */
    display: flex;
    flex-direction: column; /* Располагаем элементы по вертикали */
    justify-content: space-between; /* Размещаем текст сверху и снизу */
    height: 315px;
    width: 70%;
    overflow: hidden; /* Скрываем выходящие за рамки элементы */
    background-color: #fff;
    border-radius: 25px;
    padding: 30px;
    box-sizing: border-box; /* Учитываем padding в размере */
    text-align: left;
}

#perfCoinsBanner {
    color: #ff5959;
    font-family: 'TT Travels';
    font-size: 24px;
    line-height: 28px;
    font-weight: bold;
    z-index: 2; /* Выше SVG */
    position: relative; /* Сохраняем позиционирование в потоке */
}

#perfCoinsBannerText {
    font-family: 'TT Norms Pro';
    color: #000000;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    z-index: 2; /* Выше SVG */
    position: relative; /* Сохраняем позиционирование в потоке */
    width: 80%;
}

#perfSVG {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    right: 0px;
    bottom: -10px;
}

#nameSurnameCardControl{
    font-family: TT Travels;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

#balanceCardControl{
    font-family: TT Norms Pro;
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
}

#loginCardControl, #phoneNumberCardControl{
    font-family: TT Norms Pro;
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
}

#cardControlButtons{
    font-family: TT Norms Pro;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-transform: none;
    padding: 10px 20px;

}

#drawUsersList{
    font-family: TT Norms Pro;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-transform: none;
}

#BannerToText{
    display: flex;
    padding: 63px 55px;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
}

.ovals{
    font-family: 'TT Norms Pro';
    text-transform: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}