:root {
    --bg-color: #ffffff;
    --text-color: #333333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.dark-theme { /* Выше это для управления темой */
    --bg-color: #121212;
    --text-color: #f0f0f0;
}

.theme-toggle { /*зменекие кнопочки переключения темой*/
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
}

header {
    padding: 1.5vh 0;
    text-align: center;
    top: 1.69vh;
    position: relative;
    font-size: 21px; /* Измените по необходимости */
}

.logo-text {
    position: absolute;
    cursor: pointer;
    top: 1.69vw; /* Измените по необходимости */
    left: 4.44vw; /* Измените по необходимости */
    font-size: 29px; /* Измените по необходимости */
    color: #f8e4ff; /* Цвет текста */
    background-color: #6c40bf8a; /* Полупрозрачный фон для текста */
    padding: 0.85vw 1.5vw; /* Отступы вокруг текста */
    border-radius: 2.5vw; /* Закругленные углы */
}

.part {
    transition: color 0.1s ease;
}

footer {
    background-color: #333;
    padding: 1rem 0;
    text-align: center;
}

/*Общий большой контейнер начало*/
.grid-container-grande {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    grid-template-rows: repeat(30, 1fr);
    height: 2000px;
}
/*Общий контейнер конец*/


/*Левый контейнер начало*/
.item-container-left { /*левый контейнер сеткой размечен Фото ниже ссылки*/
    grid-row: 1 / 11;
    grid-column: 1 / 11;
}

.grid-container-top { /*контейнер распределяем также на части сеткой*/
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    height: auto;
    width: auto;
    position: fixed; /* Делаем элемент фиксированным */
    top: 140px; /* Позиционируем его вверху страницы */
    left: 0; /* Позиционируем его слева */
    width: 100%; /* Ширина на всю страницу */
    z-index: 1000; /* Убедитесь, что он находится поверх других элементов */
}
/* Медиа-запрос для ширины менее 1000px */
@media (max-width: 1000px) {
    .grid-container-grande {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .item-container-left {
        grid-row: 1;
        grid-column: 1;
    }

    .item-container-right {
        grid-row: 2;
        grid-column: 1;
    }

    .grid-container-top {
        position: static; /* Отключаем фиксированное позиционирование на маленьких экранах */
    }
}

.item-top1-photo { /*определили верхний контейнер с фото через сетку*/
    grid-row: 1 / 5;
    grid-column: 1 / 11;
    position: relative;
}

.container-photo { /*контейнер с фото определил через флекс можно перемещать локально по области */
    display: flex;
}

.item-photo {
    position: relative;
    display: inline-block;
    left: -10px;
}

.dialog-bubble {
    position: absolute;
    bottom: 43%;
    left: 84%;
    transform: translateX(-50%);
    background-color: white;
    color: #0c0b0be8;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    opacity: 0.8;
    cursor: pointer;
    font-family: Verdana;
}

    .dialog-bubble::after {
        content: '';
        position: absolute;
        left: -10px;
        top: 50%;
        margin-top: -10px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent white transparent transparent;
        transform: translateY(-50%) rotate(90deg);
    }


.item-top2 { /*ниже контейнер для ссылок под фото через сетку определили обрасть*/
    grid-row: 5 / 6;
    grid-column: 1 / 11;
}

.item-top3 { /*контейнер для ссылок на мои работы определили через сетку*/
    grid-row: 6 / 7;
    grid-column: 1 / 11;
}

.item-top4 { /*контейнер для ссылок на мои работы определили через сетку*/
    grid-row: 7 / 10;
    grid-column: 1 / 11;
}

/*ссылочная часть где они флексят*/
.container-link-up {
    display: flex;
    height: 100%;
    align-items: center;
    margin-left: 15px;
}

.item-link-up {
    position: relative;
}

.item-link {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.a-link {
    position: relative;
}

.container-link-down {
    display: flex;
    height: 100%;
    align-items: center;
    margin-left: 15px;
    flex-wrap: wrap;
}



.a-text { /*этот негодяй отвечает то как выглядит сама ссылка*/
    font-size: 25px;
    color: whitesmoke;
    background-color: #6c40bf8a;
    padding: 0.7vw 1.5vw;
    border-radius: 2.5vw;
    text-transform: lowercase;
    text-decoration: none;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .a-text::before { /*этот негодник отвечает за подстветку ссылки при наведении курсора*/
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        filter: blur(50px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .a-text:hover::before {
        opacity: 1;
    }

    .a-text:hover {
        background-color: #cfd718b0;
        color: #ff0000;
    }
/*конец ссылок и их стилей*/


/*Navigation end*/

/*Левый контейнер конец*/


/*Правый контейнер начало*/
.item-container-right {
    grid-row: 1 / 31;
    grid-column: 12 / 31;
    margin-left: 10px;
}

.grid-container-bootom {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    height: 100%;
    width: 100%;
}

.item-bootom {
    grid-row: 1 / 11;
    grid-column: 1 / 11;
    flex-direction: column;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    margin: 0.5vw;
    overflow: hidden;
    margin-bottom: 20vh;
}

.project {
    display: flex;
    flex-direction: column;
    background-color: #3b186f19;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5vw;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project h2, .biutifil-text {
    margin-top: 5vh;
}

.biutifil-photo {
    position: relative;
    left: 10%;

}
/*Правый контейнер конец*/
/* Медиа-запрос для ширины менее 1000px */
@media (max-width: 1000px) {
    .grid-container-grande {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .item-container-left {
        grid-row: 1;
        grid-column: 1;
    }

    .item-container-right {
        grid-row: 2;
        grid-column: 1;
    }
}
