/*Цвет выделения текста*/

::selection {
    color: #FF3D3D;      /* цвет текста */
    background: #EAEAEA; /* фон выделения */
    
}

/* Для Firefox (иногда требуется отдельно) */
::-moz-selection {
    color: #FF3D3D;
    background: #EAEAEA;
    
}

/*Цвет бг*/

body {
    background-color: #F8F8F8;
  }
  
/*Логика кнопок*/
/* === BASE === */
.tn-elem.button-round .tn-atom,
.tn-elem.button-round .tn-atom__button-border {
    border-radius: 24px !important;
    overflow: hidden;

    transition-property: border-radius, background-color, color, border-color !important;
    transition-duration: 0.5s !important;
    transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* Фон */
.tn-elem.button-round .tn-atom__button-content {
    transition-property: background-color, border-color, border-radius !important;
    transition-duration: 0.5s !important;
    transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* Текст */
.tn-elem.button-round .tn-atom__button-text {
    transition-property: color !important;
    transition-duration: 0.5s !important;
    transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* === HOVER === */
.tn-elem.button-round:hover .tn-atom,
.tn-elem.button-round:hover .tn-atom__button-border,
.tn-elem.button-round:hover .tn-atom__button-content {
    border-radius: 2px !important;
}


/* === TOUCH DEVICES (убираем hover + анимации) === */
@media (hover: none) and (pointer: coarse) {

    /* отключаем анимации */
    .tn-elem.button-round .tn-atom,
    .tn-elem.button-round .tn-atom__button-content,
    .tn-elem.button-round .tn-atom__button-text {
        transition: none !important;
    }

    /* убираем hover-эффект */
    .tn-elem.button-round:hover .tn-atom,
    .tn-elem.button-round:hover .tn-atom__button-border,
    .tn-elem.button-round:hover .tn-atom__button-content {
        border-radius: 24px !important;
    }
}
