@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600&display=swap');

*{
    text-decoration: none;
    font-family: "Comfortaa", sans-serif;
}

body,html{
    background-color: #2C3E50;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6,p,ul{
    color: white;
}

h1 {
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
}



/* Контент кнопки */
.buttonContainer {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    width: 250px;
}

.buttonSas {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    height: 45px;           /* одинаковая высота */
    border-radius: 20px;
    background-color: #ffd231;
    color: black;
    border: none;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;            /* чтобы все кнопки были одинаковой ширины */
    transition: all 0.2s ease;
}

.buttonSas:hover {
    background-color: #7331ff;
    color: white;
}

button.buttonSas {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
#IICode{ /* Кнопка Исходного кода */
    display: none;
}

#contentButton{
    display: none;
}
/* Контент кнопки */



.container2{ /* Что нового */
    margin-left: 35px;
    margin-right: 35px;
}



/* Анимация загрузки ИЗО */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffd231;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Анимация загрузки ИЗО */


/* Развернутый скрин */
.fullscreen {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.fullscreen .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#fullImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

#fScreen{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#imgFull{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#bClose{
    position: absolute;
    right: 50px;
    top: 10px;
}

#bClose:hover{
    background-color: #a18621;
    cursor: pointer;
}
/* Развернутый скрин */






.devHov{ /* Инфо о издателе */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

span{ /* Спаны */
    font-size: 50px;
    color: #ffd231;
}


/* Кнопка назад */
#BBack{
    position: fixed;
    top: 5px;
    color: rgb(73, 73, 253);
    border: none;
    background: none;
    padding: 10px;
    z-index: 1000;
    font-size: 30px;
}

#BBack:hover{
    color: rgb(91, 91, 182);
}
/* Кнопка назад */




/* Название приложения скачущее */
.text-element {
    position: fixed;
    top: 50px;
    left: 20px;
    font-size: 30px;
    color: white;
    padding: 10px;
    transition: all 0.5s ease;
    z-index: 100;
    background-color: transparent;
}

.text-element.scrolled {
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffd231;
    color: black;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    border-radius: 20px;
    padding: 10px 20px;
}
/* Название приложения скачущее */





/* Лента краткой характеристики */
.info-scroll-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 10px 0;
}

.info-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    justify-content: center;
    width: 100%;
}

.info-scroll::-webkit-scrollbar {
    display: none;
}

.info-block {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    scroll-snap-align: center;
}

.info-block:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(200,200,200,0.5);
}

.info-block h3 {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 600;
}

.info-block p {
    font-size: 16px;
    margin: 3px 0;
}

.info-block img {
    margin: 5px auto;
    display: block;
}
/* Лента краткой характеристики */



.gray {
    color: gray;
}



hr { /*  Горизонтальная полоса */
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}



/* Блок с конфиндец */
.data-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

.data-card * {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.infofo div,a{
    margin-left: 20px;
    margin-right: 20px;
}

.infofo div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}


.infofo h3.label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.infofo h3.value {
    flex: 1 1 auto;
    text-align: right;
    cursor: pointer;
}
/* Блок с конфиндец */




/* Модалки на Зум скринов */
#zoomModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#zoomModal.show {
    opacity: 1;
    pointer-events: all;
}

#zoomModal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-out;
    transition: transform 0.3s ease;
}
/* Модалки на Зум скринов */


/* Модалки на скачивание */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.download-modal-content {
    background: #7331ff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-modal-content h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.download-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.download-close:hover {
    transform: rotate(90deg);
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffd231;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.download-item:hover {
    background: #d7b32d;
    transform: translateY(-2px);
}

.download-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.download-item span:first-child {
    display: flex;
    align-items: center;
    font-size: 18px;
}
/* Модалки на скачивание */




/* Окно отзывов */
#openBubble{
    cursor: pointer;
}

.bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 350px;
    background-color: #7331ff;
    color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 10;
}

.bubble.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.bubble form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble input, .bubble textarea {
    padding: 8px;
    font-size: 14px;
    resize: none;
    border: none;
    border-radius: 10px;
}

.bubble button {
    padding: 10px;
    border: none;
    background: #ffd231;
    color: black;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.bubble button:hover {
    background: #dcb52b;
}

.closeBubble {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

.closeBubble:hover {
    color: #333;
}
/* Окно отзывов */




/* Уведомление копирования ссылки */
#copyToast{
    align-items: center;
    display: flex;
    gap: 10px;
    position:fixed;
    top:20px; right:-300px;
    background: #ffd231;
    color: black;
    padding:12px 20px;
    border-radius:8px;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    transition:right 0.5s ease;
    z-index:9999;
}

#copyToast.show{ right:20px; }
/* Уведомление копирования ссылки */


/* Блок боковых характеристик */
.infoProj {
    background-color: #435e7a;
    width: 500px;
    padding: 20px 40px 10px 40px;
    border-radius: 10px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}
/* Блок боковых характеристик */



/* Описание */
#descryMAX {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#descryMAX::-webkit-scrollbar {
    display: none;
}
/* Описание */



/*Скриншоты*/
.contentImg {
    position: relative;
    display: inline-block;
}

.backIMG {
    width: 50%;
    height: 500px;
    display: flex;
    position: relative;
    border-radius: 10px;
    background-color: black;
}

#imaga {
    flex: 1;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

#imaga img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/*Скриншоты*/



.iconCenter{ /*Иконка приложения сбоку*/
    display: flex;
    justify-content: center;
}




/*Кнопки фоток*/
#b, #n {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    z-index: 10;
}
#b:hover, #n:hover {
    background: rgba(0,0,0,0.8);
}
#b {
    left: 10px;
}
#n {
    right: 10px;
}
/*Кнопки фоток*/



/*Авто-звезды рейтинга*/
.stars {
    display: inline-flex;
  font-size: 50px;
}

.star {
  position: relative;
  color: #ccc;
  cursor: default;
  user-select: none;
  font-size: 50px;
  width: auto;
  height: auto;
  line-height: 1;
  vertical-align: middle;
  overflow: visible;
  display: inline-block;
}

.star::before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  color: gold;
  overflow: hidden;
  white-space: nowrap;
  width: var(--fill, 0%);
  pointer-events: none;
  line-height: 1;
}

.star::before {
    width: var(--fill, 0%);
}
/*Авто-звезды рейтинга*/



.Neurconfiggg{ /* Второе окно о конфиндециальности */
    display: none;
}



/* ПК */
@media (min-width: 1200px) {
    .buttonSas {
        font-size: 20px;
        padding: 16px 28px;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .backIMG {
        width: 100%;
        height: 350px; /* фиксированная высота, можно подогнать */
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        background-color: black;
    }

    #imaga {
        width: 100%;
        height: 100%;
        position: relative;
    }

    #imaga img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* заполняет контейнер, не растягивая */
        display: block;
    }
    .star {
        font-size: 40px;
    }

    .infofo h3 {
        font-size: 15px; /* уменьшаем шрифт для маленьких экранов */
    }

    .infofo img {
        width: 30px; /* уменьшаем иконки */
        height: 30px;
    }

    .infofo div h3, .infofo a h3 {
        margin-bottom: 5px;
    }
    
    .info-scroll {
        justify-content: flex-start;
    }
    .info-block {
        min-width: 120px;
        max-width: none;
        padding: 0 15px;
    }
}