body {
    /* Убираем padding-bottom, который могли добавить ранее */
    padding-bottom: 0;
    /* Устанавливаем высоту body на 100vh, чтобы он занимал весь viewport */
    min-height: auto; /* Убираем фиксированную минимальную высоту */
    /* Запрещаем вертикальную прокрутку */
    overflow-y: hidden;
    background-color: #f8f9fa;
    color: #030703;

    display: flex;
    flex-direction: column; /* Элементы будут размещаться в вертикальном порядке, подобно строкам текста */
    
    background-image: url('geo_img/back_04.png'); /* Устанавливаем изображение фона */
    background-size: cover; /* Масштабируем изображение, чтобы оно покрывало весь фон */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Запрещаем повторение изображения */
    height: 100vh; /* Устанавливаем высоту body на 100% высоты экрана */
}

html {
    /* Устанавливаем высоту html на 100% viewport */
    height: auto; /* Убираем фиксированную высоту */

}

.navbar-light {
    background-color: #6AA0FA !important; /* Устанавливаем цвет фона на #6AA0FA с приоритетом */
}

.navbar-light .navbar-nav .nav-link {
    color: #030703;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #3A893A; /* Use primary color for hover */
}

.bottom-nav .row {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.bottom-nav .text-center {
    flex-grow: 1;
    flex-basis: 0;
}

.bottom-nav{
    background-color: #f8f9fa;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.bottom-nav .nav-link {
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #030703; /* Consistent bottom nav color */
}

.bottom-nav .nav-link i{
    font-size: 1.5rem;
    padding-bottom: 2px;
    padding-right: 5px;
}

.bottom-nav .active,
.bottom-nav .nav-link:focus,
.bottom-nav .nav-link:hover
{
    color: #3A893A !important; /* Use primary color for active bottom nav */
}
.bottom-nav .bottom-nav-text {
    display: none;
}

.bottom-nav .active .bottom-nav-text {
    display: block;
}

header .navbar{
    padding-top: 10px;
    padding-bottom: 10px;
     background-color: #C9ACDD;
}

header .navbar-toggler{
    border: none;
}

header .always-visible{
    display: block !important;
}
.navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-nav li {
    margin-left: 10px;
    margin-right: 10px;
}

.navbar-nav a{
    font-size: 1.1em;
}

.card-scroll-wrapper{
    overflow-x: auto;
    margin-left: -10px;
    margin-right: -10px;
}

.card-scroll {
    display: flex;
    padding: 10px;
    padding-bottom: 30px;
    padding-top: 30px;
    overflow-x: auto; /* Оставляем auto для работы прокрутки */
    /* Скрываем полосу прокрутки для большинства браузеров */
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;    /* Firefox */
}

/* Скрываем полосу прокрутки для Chrome, Safari, Opera */
.card-scroll::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: 280px; /* Минимальная ширина карточки */
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.125);
    overflow: hidden;
}


.card-lesson{
    min-width: 280px; /* Минимальная ширина карточки */
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.125);
}

.card-lesson .progress{
    height: 5px; /* Высота полоски прогресса */
    border-radius: 20px;
}

.list-align {
    max-width: 1180px; /* Устанавливаем максимальную ширину для списка */
    margin-left: auto;
    margin-right: auto;
}

.list-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
     color: #030703;
}

.list-title i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    padding-top: 5px;

    min-height: 10vh; /* Минимальная высота равна 10% высоты экрана */
    display: flex;
    flex-direction: column;
    
}
 /* Стили для плеера */
.audio-player {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
}

.audio-cover {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.audio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 10px;
}

.audio-player-details {
    text-align: center;
}

.list-align {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.arrow-icon {
    font-size: 2rem; /* Например, 2 раза больше, чем обычный размер */
}
.card-deck {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Ensure cards fill available space */
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 300px; /* Set card width */
    margin-right: 10px;

}

.card-deck img{
    height: 150px; /* Fixed image height */
    object-fit: cover; /* Ensure image covers the area */
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}
.card-deck .card-body {
    padding: 10px;
    display: flex;
}
.card-deck .card-body .card-text {
    font-size: 1rem;
    color: #030703;
    text-align: center;
}
.card-deck .btn-group{
    display: flex;
    justify-content: space-around; /* Distribute buttons */
    padding: 10px;
}
.card-deck .btn-group .btn{
    flex-grow: 1;
}

.card-deck .btn-group .btn:not(:last-child){
  margin-right: 5px;
}

.card-deck .btn-group .btn-outline-secondary{
    color: #3A893A; /* Set button text color to primary color */
    border-color: #3A893A; /* Set button border color to primary color */
}
.card-deck .btn-group .btn-outline-secondary:hover{
    color: #fff;
    background-color: #3A893A;
    border-color: #3A893A;
}

.list-group-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #030703;
}

.list-group-item:last-child {
    border-bottom: none;
}

.leader-first {
  background-color: #fff8e0;
  font-weight: bold;
  color: #d4ac0d;
}

.leader-second {
  background-color: #f0f0f0;
  font-weight: bold;
  color: #707070;
}

.leader-third {
   background-color: #f0e5d6;
   font-weight: bold;
    color: #a0522d;
}

.text-bronze {
 color: #a0522d;
}

.bg-bronze {
    background-color: #cd7f32;
}

.score-container {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: white;
}

.score-container .streak-counter {
    font-weight: bold; /* Сделаем текст жирным */
}

.score-container img {
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
     background-color: rgba(145, 64, 200, 0.3); /* Primary color pulse */
    transform: translate(-50%, -50%);
    animation: pulse-animation 2s ease-out infinite;
    z-index: -1;
    opacity:0;
}
@keyframes pulse-animation {
  0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
         transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.subscription-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    color: #030703;
}

.subscription-item h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.subscription-item p {
    margin-bottom: 10px;
    color: #555;
}

.subscription-item .price-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.subscription-item .price-container img {
    height: 20px;
}

.subscription-item .btn-primary {
    margin-left: 10px;
    background-color: #3A893A; /* Use primary color */
    border-color: #3A893A; /* Use primary color */
    color: white;
}

.subscription-item .btn-primary:hover {
    background-color: #3A893A; /* Darker shade of primary */
    border-color: #3A893A;
}

.modal-header {
    border-bottom: 1px solid #AFDDAF;
    padding-bottom:10px;
}
.modal-body {
   padding: 15px;
     color: #362840;
}
.modal-footer {
   border-top: 1px solid #AFDDAF;
   padding-top: 10px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3A893A; /* Primary color for loading spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hidden {
    display: none;
}

/* Отключение выделения текста */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Отключение контекстного меню */
*:not(input)::-webkit-selection,
*:not(input)::-moz-selection,
*:not(input)::selection {
 background: transparent;
}

*:not(input) {
    -webkit-tap-highlight-color: transparent;
}

/* Стили для табов */
.card-header-tabs .nav-link {
    background-color: #f8f9fa; /* Set to light background */
    color: #030703; /* Use main text color */
}

.card-header-tabs .nav-link.active {
    background-color: #fff;
    color: #3A893A; /* Use primary color */
     font-weight: bold;
}

.game-card {
    border: 1px solid rgba(0,0,0,0.125); /* Добавим рамку для карточки */
    flex-basis: 100%;

}

.game-card .card-body {
    padding: 10px; /* Уменьшим отступы внутри card-body */
}

#games .btn {
    margin-top: 10px; /* Добавляем отступ сверху для кнопки Все игры */
    align-items: right;
}

.game-card .btn {
    margin-top: 5px; /* Уменьшим отступ сверху */
}

#games .btn {
    margin-top: 10px;
}

.all-games-container {
  display: flex; /* Используем flexbox для управления положением кнопки */
    justify-content: flex-end; /* Выравниваем кнопку по правому краю */
}

.exercises-container {
    display: flex;
    flex-direction: column; /* Выстраиваем карточки вертикально */
}

.exercises-container .card {
     margin-bottom: 10px; /* Отступ между карточками */
}

.all-exercises-container {
    margin-top: 10px; /* Отступ сверху */
    text-align: right; /* Выравниваем кнопку по правому краю */
}

.currency {
    margin-left: 3px; /* Отступ слева для символа валюты */
}

.currency-icon {
    height: 16px; /* высота иконки */
    width: auto;
    margin-left: 3px; /* Отступ слева для иконки валюты */
}

.price-value {
    font-weight: bold; /* Делаем текст жирным */
     color: #F1851F; /* Устанавливаем цвет */
}

.row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}

.card-img-top {
    height: 150px; /* Increased image height */
    object-fit: cover;
    border-radius: 10px 10px 0 0; /* Add border radius to top corners*/
    
}
.card {
    background-color: #fff; /* Set to white background */
    border: 1px solid #ddd;  /* Set border color */
    border-radius: 10px;
     
}

.card-text {
    color: #362840; /* Set text color to main text color */
}

.btn-outline-secondary {
    border-color: #3A893A; /* Цвет обводки  primary color*/
    color: #3A893A;       /* Цвет текста primary color*/
}
.btn-outline-secondary:hover{
    color: #fff;
    background-color: #3A893A;
    border-color: #3A893A;
}

/* Remove card header and card-body styles */
.card-header {
    background-color: transparent;
    border-bottom: none;
}

.card-body {
    background-color: transparent;
    text-align: center;
}

.btn-outline-primary {
    color: #fff;        /* Цвет текста на белый */
    border-color: #fff; /* Цвет обводки на белый */
}

.btn-outline-primary:hover {
    color: #fff;          /* Цвет текста при наведении */
    background-color: #3A893A; /* Цвет фона при наведении */
    border-color: #3A893A; /* Цвет обводки при наведении */
}

/* Стили для табов по умолчанию (большие экраны) */
.card-header-tabs .nav-link {
    background-color: #f8f9fa;
    color: #030703;
    flex: 1; /* Занимают равное место */
     white-space: nowrap; /* запрещаем перенос строк */
    overflow: hidden; /* Обрезаем лишний текст, если он не помещается */
    text-overflow: ellipsis; /* Добавляем многоточие */
}

.card-header-tabs .nav-link.active {
    background-color: #fff;
    color: #3A893A;
    font-weight: bold;
}

/* Медиа-запрос для узких экранов (например, меньше 768px) */
@media (max-width: 768px) {
  .card-header-tabs .nav-link {
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    padding: 8px 8px; /* Уменьшаем отступы */
   }
}

/* Медиа-запрос для очень узких экранов (например, меньше 576px) */
@media (max-width: 576px) {
  .card-header-tabs .nav-link {
      font-size: 0.75rem; /* Еще меньше шрифт */
  }
}

#greeting {
    color: #362840; /* Устанавливаем цвет текста на #362840 */
}

.scrollable-cards-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* Выравнивание карточек по центру */
    overflow: hidden;
    flex-grow: 1; /* Позволяет контейнеру занимать доступное пространство */
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    z-index: 1;
    color: #3A893A; /* Цвет кнопок */
    transition: opacity 0.3s;
}

.scroll-button:hover {
    opacity: 0.8;
}


.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.modal-content {
    border-radius: 10px;
}
.modal-header {
    background-color: #AFDDAF;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}
.modal-title {
    color: #030703;
}
.modal-body {
     color: #030703;
}
.modal-footer {
    border-top: none;
}

.btn.disabled {
    opacity: 0.5; /* Уменьшаем непрозрачность для неактивных кнопок */
    cursor: not-allowed; /* Изменяем курсор на "недоступно" */
}

@media (max-width: 768px) {
    .card-body {
        height: auto; /* Позволяем высоте адаптироваться */
    }

    .card-deck img {
        max-height: 90vh;
    }
}

.text-center {
    text-align: center !important; /* Принудительное выравнивание текста по центру */
}

#user-score {
    color: #061A06; /* Устанавливаем цвет текста на #061A06 */
}

