:root {
    /** ============ CSS-змінні ============ */
    --color-font-body: #220c0c;
    --color-background-body: #fce8ff;
    --color-title-lesson: #006934;
    --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 {
    width: 45%;
    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;
}

#parent-1, #parent-2,
#child-1, #child-2,
#descendant-1, #descendant-2 {
    margin: 16px;
    padding: 16px;
    border: 4px solid #212121;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
}

#parent-1,
#parent-2 {
    background-color: #673ab7;
}

#child-1,
#child-2 {
    background-color: #448aff;
}

#descendant-1,
#descendant-2 {
    background-color: #ff9800;
}

#buttons-box {
    margin: 16px;
    padding: 20px;
    display: grid;
    gap: 20px;
    justify-content: center;
    color: tomato;
    outline: 1px solid tomato;
}

#buttons-box.active {
    background-color: lightcyan;
}

.buttons-box-button {
    /* width: 75%; */
    padding: 10px 20px;
}

/* .buttons-box-button:nth-child(1) {
    background-color: lightgreen;
} */

.buttons-box-button.active {
    background-color: lightgreen;
}

/*? Палітра кольорів */
.output {
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 3px #636363;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 4px;
}

.color-palette .item {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    /* cursor: pointer; */
    cursor: zoom-in;
    transition: transform 250ms ease-in-out;
}

.color-palette .item:hover {
    transform: scale(1.1);
}

/* ! */
/* .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.Заголовок */