/* Правило для обычного начертания */
@font-face {
    font-family: 'CustomFont';
    src: url('fonts/Tektur_SemiCondensed-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Важно для производительности! */
}

/* Правило для жирного начертания */
@font-face {
    font-family: 'CustomFont';
    src: url('fonts/Tektur-SemiBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Применяем шрифт ко всему документу */
body {
    font-family: 'CustomFont', 'Arial', sans-serif; /* Указание fallback-шрифтов */
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Контейнер для основного содержимого */
.container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Боковая панель с фото и контактами */
.sidebar {
    flex: 1;
    min-width: 250px;
    background: #2c3e50;
    color: white;
    padding: 30px;
}

/* Основное содержание резюме */
.main-content {
    flex: 2;
    min-width: 300px;
    padding: 30px;
}

/* Стили для фотографии и рамки */
.photo-container {
    text-align: center;
    margin-bottom: 25px;

}

.photo-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 8px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.photo:hover {
    cursor: pointer;
}

/* Стили для текстовых элементов */
h1, h2, h3 {
    color: #2c3e50;
}

h3 {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

p {
    text-align: justify;
}

.sidebar h2 {
    color: white;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.main-content h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.name {
    font-size: 32px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.position {
    font-size: 20px;
    color: #7f8c8d;
}

/* Секции резюме */
.section {
    margin-bottom: 25px;
}

/* Списки */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Ссылки */
.white-link {
    color: white;
}

.custom-blue-link {
    color: #2c3e50;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar, .main-content {
        width: 90%;
    }

    @media print {
        /* Полностью скрыть все содержимое страницы при печати */
        body {
            display: none !important;
        }

        /* Альтернативный вариант: показать только сообщение о запрете */
        body * {
            display: none !important;
        }

        .print-message {
            display: block !important;
            font-size: 24pt;
            text-align: center;
            margin-top: 2cm;
        }
    }
}

.custom-audio-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    background: #4596dc14;
}

#volume-slider {
    width: 100%;
}

button {
    font-size: 24px;
    cursor: pointer;
}

.toggle-play-pause-img-class {
    height: 16px;
    margin-top: 5px;
}

.spark {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: fade-spark 1s forwards;
}

@keyframes fade-spark {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.2);
    }
}

#visualization-container {
    position: fixed;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 15px;
    box-sizing: border-box;
}

.bar {
    width: 10px;
    background: linear-gradient(to top, rgba(221, 0, 255, 0.51), rgba(8, 228, 228, 0.44));
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease;
}

.pulse-effect-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
    transition: opacity 1s ease;
    background: linear-gradient(#ff11b7, #0f3ff8);
}
