/* Основные стили */
input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
}

/* Стили для темной темы */
body.dark-theme {
    background-color: #242424;
    color: white;
}

title-text {
    display: block;
    font-size: 1.5em;
    margin-right: 5px;
    margin-left: 5px;
    font-weight: bold;
    unicode-bidi: isolate;
}

unable-title-text {
    display: block;
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
    unicode-bidi: isolate;
    color: lightblue;
}

unable-h3 {
    display: block;
    font-size: 1.17em;
    margin: 0;
    font-weight: bold;
    unicode-bidi: isolate;
    color: lightblue;
}

h3-text {
    display: block;
    font-size: 1.17em;
    margin: 0;
    font-weight: bold;
    unicode-bidi: isolate;
}

h4 {
    display: block;
    margin: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}


#main-container {
    display: flex;
    flex-direction: column;
    /* max-width: 500px; */
    width: 100%;
    /* overflow-x: auto; */
    /* margin: 10px; */
    /* padding: 10px; */
    /* border-radius: 15px; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    /* background-color: #f1f1f1; */
}

@media (min-width: 700px) {
    #main-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        /* Расстояние между элементами */
        max-width: 100%;
        grid-auto-flow: dense;
        /* Заполняет пустые места */
        align-items: start;
        /* Элементы выравниваются по верху */
    }
}

#footer-container {
    display: flex;
    /* Используем flexbox для выравнивания кнопок */
    justify-content: space-between;
    /* Размещаем кнопки с промежутками */

    margin: 0px 0px;
    border-radius: 15px 15px 0 0;
    background-color: #f1f1f1ad;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.459);

    position: fixed;
    /* Фиксируем контейнер */
    bottom: 0;
    /* Располагаем внизу экрана */

    width: 100%;
    /* Убираем 100% ширину */
    /* max-width: 500px; */
    /* Ограничиваем максимальную ширину */
    z-index: 1000;
    /* Убедимся, что контейнер сверху других элементов */
}

body.dark-theme #footer-container {
    backdrop-filter: blur(2px);
    background-color: #3333336e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#theme-mode-button {
    /* Расположить внизу */
    /* Расположить справа */
    font-size: 20px;
    /* Убираем стандартный контур */
}

/* Верхний горизонтальный контейнер */
#top-horizontal-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0px auto;
    padding: 0px;
}

#bottom-vertical-container {
    flex-direction: column;
    display: flex;
    gap: 10px;
    margin-top: 10px;

    margin: 0px auto;
    padding: 0px;
}

#app-button,
#profile-button {
    flex-grow: 1;
    /* Кнопки растягиваются равномерно */
    flex-basis: 0;
    /* Устанавливаем базовый размер на 0, чтобы flex-grow работал */

    font-family: Arial, sans-serif;
    font-size: 20px;
    cursor: pointer;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

body.dark-theme #app-button {
    color: white;
}

body.dark-theme #profile-button {
    color: white;
}

button {
    font-family: Arial, sans-serif;
    margin: 5px;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background-color: #dddddd;
    /* Убираем стандартный контур */
}

/* Темная тема для кнопок */
body.dark-theme button {
    background-color: #55555562;
    color: white;
}

.main-apps {
    color: white;
    position: relative;
    /* padding: 20px 40px; */
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background-color: transparent;
    /* width: fit-content; */
    min-width: 150px;
    max-width: 150px;
    /* Устанавливаем максимальную ширину кнопки */
    height: 150px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    outline: none;

    text-align: left;
    font-size: 25px;
    /* Размер текста */
    font-weight: bold;
    /* Жирный текст */
    text-shadow: 4px 4px 4px rgb(0, 0, 0);
    /* Тень текста */
    white-space: nowrap;
    /* Запрет переноса текста */
    display: flex;
    flex: 1 1 auto;
    /* Для выравнивания текста */
    align-items: flex-end;
    /* Текст внизу кнопки */
    padding-bottom: 5px;
    /* Отступ текста от нижнего края */
    padding-left: 10px;
    /* Отступ текста от левого края */

}

#bombastik-button {
    background-image: url('/games/static/images/bomb.png');
    /* box-shadow: 0 0 20px #ff9100; */
    width: 150px;
    height: 150px;
}

#tomigochi-button {
    background-image: url('/home/static/images/tomigochi-bg.png');
    box-shadow: 0 0 20px #ff9100;
    width: 150px;
    height: 150px;
}

#chain-reaction-button {
    background-image: url('/home/static/images/chain-war-bg.jpg');
    box-shadow: -10px 0 20px red, 10px 0 20px blue;
}

#miner-button {
    background-image: url('/home/static/images/miner-bg.jpg');
    box-shadow: 0 0 20px #0026ff;
}

#gear-runner-button {
    background-image: url('/home/static/images/gear_runner-bg.jpg');
    box-shadow: 0px 0px 30px red, inset 0px 0px 50px red
        /* , 15px 15px 20px rgb(0, 0, 0) */
    ;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
#kopiKoshka-button {
    background-image: url('/home/static/images/kopiKoshka-bg.png');
    box-shadow: 0px 0px 20px rgb(129, 99, 0)
    /* , 15px 15px 20px rgb(0, 0, 0) */
    ;
    align-items: bottom;
    justify-content: center;
    text-align:center;
    font-size: 31px;
    color: rgba(255, 255, 255, 0.479);
    text-shadow: 
        -1px -1px 0 #ffffff6e,  
         1px -1px 0 #ffffff6e,
        -1px  1px 0 #ffffff6e,
         1px  1px 0 #ffffff6e;
    /* align-items: flex-start; */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

#elias-button {
    background-image: url('/home/static/images/elias-bg.jpg');
}

#svoya_igra-button {
    background-image: url('/home/static/images/svoya-igra-bg.jpg');
}

#daibeerchik-button {
    background-image: url('/home/static/images/daibeerchik-bg.jpg');
}
#karta-button {
    background-image: url('/home/static/images/karta-bg.jpg');
    box-shadow: inset 0 0 30px #4863ff;
}

#pomidorka-button {
    display: block;
    /* background-image: url('/static/images/pomidorka-bg.jpg'); */
}

/* Стиль для неактивных кнопок */
#app-button.inactive,
#profile-button.inactive {
    background-color: rgba(0, 0, 0, 0);
    /* Прозрачный фон */
}

/* Стиль для неактивных кнопок */
body.dark-theme #app-button.inactive,
body.dark-theme #profile-button.inactive {
    background-color: rgba(138, 138, 138, 0);
    /* Прозрачный фон */
}

/* Стиль для активной кнопки */
#app-button.active,
#profile-button.active {
    background-color: #007bff;
    /* Синий фон для активной кнопки */
    color: white;
    /* Белый текст */
}

/* Темная тема: активная кнопка */
body.dark-theme #app-button.active,
body.dark-theme #profile-button.active {
    background-color: #0047b3;
    /* Темно-синий фон для активной кнопки в темной теме */
}



body.dark-theme #app-title-clicks {
    background-color: #55555581;
    border: 2px solid #888;
}





#theme-buttons-container {
    flex-direction: column;
    display: flex;
}

#theme-button {
    background-color: rgba(138, 138, 138, 0);
    border: 2px solid #888;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    outline: none;
    /* Убираем стандартный контур */
}

#theme-button.selected {
    border: 2px solid rgba(0, 255, 115, 0.582);
    background-color: rgba(0, 255, 115, 0.582);
}





#page-info {
    font-size: 12px;
    text-align: center;
    color: gray;
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Темная тема для информации о странице */
body.dark-theme #page-info {
    color: lightgray;
}



/* Горизонтальные вкладки */
#horizontal-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #dddddd;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

body.dark-theme #horizontal-tabs {
    background-color: #333;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: #dddddd;
    transition: background-color 0.3s ease;
}

body.dark-theme .tab-button {
    background-color: #555;
    color: white;
}

.tab-button:hover {
    background-color: #bbb;
}

body.dark-theme .tab-button:hover {
    background-color: #777;
}

/* Содержимое вкладок */
.tab-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .tab-content {
    background-color: #444;
    color: white;
}



/* Вертикальные секции */
#vertical-sections {
    display: flex;
    flex-direction: column;
    /* overflow: auto; */
    overflow: visible;
}

#horizontal-sections {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    /* overflow: auto; */
    overflow: visible;
}

.section {
    /* width: 100%; */
    margin: 10px;
    padding: 10px;
    background-color: #ffffff60;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.5s, color 0.5s;
}

#interactives-block {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* Позволяет элементам переноситься на следующую строку */
    gap: 10px;
    /* Расстояние между элементами */
}

#games-block {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* Позволяет элементам переноситься на следующую строку */
    gap: 10px;
    /* Расстояние между элементами */
}

body.dark-theme .section {
    background-color: #4444443b;
    color: white;
}

.section-500 {
    max-width: 700px;
    max-height:400px; /* Установите нужную вам высоту */
    overflow-y: auto;  /* Скролл появится только если контента больше, чем на 400px */

    margin: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 1.0s, color 1.0s;
}

body.dark-theme .section-500 {
    background-color: #444;
    color: white;
}




#customAlert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
}

body.dark-theme #customAlert {
    background: rgba(44, 44, 44, 0.9);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#understandButton {
    margin-top: 10px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#understandButton:hover {
    background: #0056b3;
}







/* #top-players-section {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
} */


/* #container-0dd083a385ec539aef0d606211f24a7e .container-0dd083a385ec539aef0d606211f24a7e__bn {
    max-width: 50% !important;
} */

#container-0dd083a385ec539aef0d606211f24a7e .container-0dd083a385ec539aef0d606211f24a7e__stand {
    /* display: flex; */
    /* flex-flow: row wrap;
    */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    justify-content: center !important;
    /* gap: 10px !important; */
    width: 100%;
}
#container-0dd083a385ec539aef0d606211f24a7e .container-0dd083a385ec539aef0d606211f24a7e__title {
    font-size: 10px !important;
    font-weight: 700;
    color: #7474747c;
}

#container-3a344bb51cd260b602b0fa4205f634b0 .container-3a344bb51cd260b602b0fa4205f634b0__stand {
    /* display: flex; */
    /* flex-flow: row wrap;
    */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100%;
}
#container-3a344bb51cd260b602b0fa4205f634b0 .container-3a344bb51cd260b602b0fa4205f634b0__title {
    font-size: 10px !important;
    font-weight: 700;
    color: #7474747c;
}