@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    background-color: #001a00; /* Dark green background */
    color: #00ff00; /* Matrix green text */
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 3px #00ff00;
}

/* Blinking Cursor */
#cursor::after {
    content: "_";
    animation: blink 0.8s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

header .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    animation: glitch 2s infinite;
}

header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(120%);
}

@keyframes glitch {
    0% {
        transform: scale(1);
    }
    10% {
        transform: translate(2px, -2px);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    30% {
        transform: scale(1.02);
    }
    40% {
        transform: translate(1px, -1px);
    }
    100% {
        transform: scale(1);
    }
}

h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* Main Content */
main {
    width: 90%;
    max-width: 800px;
}

main section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    /*text-transform: uppercase;*/
    /*text-shadow: 0 0 2px #00ff00;*/
    text-align: left;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    font-weight: 500;
}

/* Footer */
footer {
    width: 100%;
    padding: 10px 20px;
    background-color: #003300;
    border-top: 1px solid #00ff00;
    position: fixed;
    bottom: 0;
    left: 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

footer a:hover {
    color: #00cc00;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* Стилі для кнопки керування музикою */
.music-toggle-button {
    position: fixed; /* Фіксоване позиціонування відносно вікна браузера */
    bottom: 60px;    /* Відступ від нижнього краю */
    right: 20px;     /* Відступ від правого краю */
    background-color: #003300; /* Темно-зелений фон, як у футера */
    color: #00ff00;          /* Колір іконки (матрично-зелений) */
    border: 1px solid #00ff00; /* Рамка в стилі матриці */
    border-radius: 50%;       /* Робить кнопку круглою */
    width: 32px;              /* Ширина кнопки */
    height: 32px;             /* Висота кнопки */
    font-size: 24px;          /* Розмір іконки динаміка */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;          /* Курсор-рука при наведенні */
    z-index: 1000;            /* Переконатися, що кнопка поверх інших елементів */
    box-shadow: 0 0 10px #00ff00; /* Тінь для ефекту світіння */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.music-toggle-button:hover {
    background-color: #004d00; /* Трохи світліший фон при наведенні */
    box-shadow: 0 0 15px #00ff00, 0 0 20px #00ff00; /* Яскравіша тінь */
}

.music-toggle-button:active {
    background-color: #001a00; /* Ще темніший фон при натисканні */
}
