:root {
    /** ============ CSS-змінні ============ */
    --color-font-body: #220c0c;
    --color-background-body: #fbffd9;
    --color-title-lesson: #360099;
    --color-title-section: red;
    --color-title-subsection: blue;
}

body {
    font-family: 'Montserrat', serif;
    font-size: 1.2rem;
    /* padding: 20px 20px 150px; */
    padding: 20px 0px 150px;
    /* min-height: 100vh; */
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 20px; */
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    /* text-align: center; */
    /* align-items: center; */
    color: var(--color-font-body);
    background-color: var(--color-background-body);
}

.title-lesson {
    text-align: center;
    color: var(--color-title-lesson);
    text-shadow: 4px 2px 6px #43300088;
    /* ! for position: fixed */
    margin-bottom: 20px;
}

.title-section {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--color-title-section);
    text-shadow: 4px 2px 6px #a17301bd;
}

.title-subsection {
    margin-top: 10px;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--color-title-subsection);
    text-shadow: 4px 2px 6px #0114a1bd;
}

.information-hint {
    font-family: Helvetica;
    font-style: italic;
    margin-bottom: 50px;
    font-size: 1.2rem;
    text-align: center;
    color: darkred;
}

.part {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 20px;
    /* min-height: 100vh; */
    /* width: 100vw; */
    /* outline: 1px solid red; */
}

/* *======================================= */
/*? Загальні властивості кнопок */
button {
    padding: 5px 10px;
    font-family: monospace;
    font-weight: 700;
    border-radius: 5px;
    border-color: gray;
    color: white;
    /* color: yellow; */ /* On */
    background-color: red; /* #b70000 */
    /* background-color: green; */ /* On */
    box-shadow: 6px 6px 8px #636363;
    /* box-shadow: 3px 3px 4px #969696; */ /* On */
}
/*! --------------------------------------------- */


h3 {
    font-size: 1em;
}

.list,
.menu,
.menu2,
.image,
.button-box,
.box {
    min-width: 45%;
    width: max-content;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #dfffdf;
}

.box {
    text-align: center;
}

.box button {
    color: #ad00e2;
    background-color: #fffac4;
}

button.accent {
    color: green;
}

 /*! ПРИКЛАД анімаційної версії в браузері */
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.tasks {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.task {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #afffaf;
    position: relative;
}

.indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-color: gray;
}

/*? миготіння при очікуванні */
.blinking {
    animation: blink 1s infinite;
}

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

/*? статуси */
.success .indicator {
    background-color: #4caf50;
    animation: none;
}

.error .indicator {
    background-color: #f44336;
    animation: none;
}

.results {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #afffaf;
    width: 400px;
    border-radius: 8px;
}

.results h4 {
    margin-top: 0;
}

.result-item {
    margin: 5px 0;
}


/*! "Зоряне небо" на промісах */
.box.stars {
    width: 100vw;
    height: 100vh;
    margin: 5px 0 10px;
    background: radial-gradient(ellipse at center, #000 0%, #020111 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
}

h1 {
    margin: 10px;
}

#sky {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: gray;
    opacity: 0.3;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.glow {
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(2);
    }
}

#controls {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    text-align: center;
}

button#controls {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: #4caf50;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #45a049;
}

#status {
    margin-top: 10px;
    font-size: 18px;
    color: #ffd700;
}






/* ! */
/* .part_1 {
    display: none;
} */
/*! 1.Підключення скриптів */


/* .part_2 {
    display: none;
} */
/*! 2.Підключення декількох скриптів */


/* .part_3 {
    display: none;
} */
/*! 3.Виведення даних в консоль розробника. */
/*! Оголошення змінних */


/* .part_4 {
    display: none;
} */
/*! 4.Tипи даних. Спеціальні значення. Оператор typeof */


/* .part_5 {
    display: none;
} */
/*! 5.Взаємодія з користувачем. Отримання даних */





/*? ______________________________________________________ */
/* ! */
.part_0 {
    display: none;
}
/*! 0.Заголовок */