* {
    margin: 0;
    padding: 0;
}

#main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    background: #f1f1f1;/* цвет фона */
    font-family: Arial, sans-serif;/* шрифт для всего текста на странице  */
    display: flex;/* включает режим флексбокс - это способ прставить элементы внутри контейнера */
    justify-content: center;/* выравнивание по горизонтали */
    align-items: center;/* выравнивание по вертикали */
    height: 100vh;/* высота, vh - процент от высоты экрана */
}
h1 {
    color: black;
    margin-bottom: 20px;/*отступ от элемента снизу*/
    text-align: center;
    margin-top: 40px;
}
/* #dogs, #cats {
    color: black;
    flex: 1;
    text-align: justify;
}


#liniya {
    display: flex;
    gap: 100px;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 100%;
    width: 80%;

} */

#liniya {
    display: flex;
    align-items: flex-start;
}

#cats {
    color: black;
    text-align: center;
    padding-right: 30px;  /* отступ справа от центра */
    border-right: 2px solid rgba(0,0,0,0.2); /* линия по центру — необязательно */
    width: 800px;
}

#dogs {
    color: black;
    text-align: center;
    padding-left: 30px;   /* отступ слева от центра */
    width: 800px;
}

#liniya2 {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

#kot {
    text-align: center;
    padding-right: 160px;  /* отступ справа от центра */
    border-right: 2px solid rgba(0,0,0,0.2); /* линия по центру — необязательно */
    width: 450px;
    height: auto;
}

#pes {
    text-align: center;
    padding-left: 160px;   /* отступ слева от центра */
    width: 450px;
    height: auto;
}

#liniya3 {
    display: flex;
    align-items: flex-start;
    margin: 5px 0;
}

#kotobut {
    text-align: center;
    margin-right: 200px;  /* отступ справа от центра */
    width: 400px;
    height: 80px;
}

#dogbut {
    text-align: center;
    margin-left: 200px;   /* отступ слева от центра */
    width: 400px;
    height: 80px;
}



#drop-zone {
    border: 2px dashed black;
    border-radius: 16px;
    background: #fdffff;
    padding: 48px 24px;
    cursor: pointer ;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    max-width: 100%;
    margin: 0 auto;
    width: 80%;
}
#drop-zone:hover {
    border-color: rgb(141, 135, 135);

}

#drop-zone.dragover {
    border-color: black;
    background: #bec4c2;
}

#drop-zone-icon {
    font-size: 40px;
    margin-bottom: 20px;

}

#drop-zone-text {
    font-size: 16px;
    font-weight: 600;

}

#drop-zone-subtext {
    font-size: 12px;
    color:rgb(46, 43, 43);

}



#status {
    margin-top: 16px;
    text-align: center;
    font-size: small;
}

/* Главный контейнер на весь экран */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 100vh — это 100% высоты экрана */
    z-index: -1; /* Прячем фон за основной текст сайта */
}

/* Общие правила для обеих половин */
.bg-left, .bg-right {
    position: absolute;
    top: 0;
    width: 50%; /* Ширина каждого блока ровно половина */
    height: 100%;
    background-size: cover; /* Растягиваем фото на весь блок */
    background-position: center; /* Центрируем картинку */
    opacity: 0.5; /* Делаем фото полупрозрачными (от 0 до 1) */
}

/* Левая половина */
.bg-left {
    left: 0;
    background-image: url('img/4a56dd5ebceeeefa81cfff7a9052ac22.jpg');
}

/* Правая половина */
.bg-right {
    right: 0;
    background-image: url('img/cb95c8622c5f3a9b83fdf1248a882518.jpg');
}

.hidden {
    display: none !important;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
  
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}


#status.uploading{color:black}
#status.success{color:black}
#status.error{color:red; -webkit-text-stroke: 2px black}

/* ===== Телефоны: экран уже 768px ===== */
@media (max-width: 768px) {
    body {
        height: auto;            /* страница растёт по содержимому, а не равна высоте экрана */
        min-height: 100vh;
        display: block;          /* без центрирования: иначе верх уезжает за экран */
    }

    h1 p {
        font-size: 40px !important;   /* !important — чтобы перебить style="font-size: 80px" в HTML */
    }

    #liniya, #liniya2, #liniya3 {
        flex-direction: column;  /* блоки не в ряд, а друг под другом */
        align-items: center;
        gap: 16px;
    }

    #cats, #dogs {
        width: auto;
        padding: 0 16px;
        border-right: none;
        font-size: 18px !important;
    }

    #kot, #pes {
        width: 90%;
        padding: 0;
        border-right: none;
    }

    #kotobut, #dogbut {
        width: 90%;
        height: 60px;
        margin: 0;
    }

    #drop-zone {
        width: 90%;
    }
}