.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1200px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    width: 200px;
    text-align: left;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    justify-content: center;
    align-content: center;
    max-width: 800px;
    width: 100%;
}

.grid-container-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Три колонки одинаковой ширины */
    gap: 10px;
    justify-content: center;
    max-width: 1200px; /* Максимальная ширина контейнера */
    width: 100%;
    flex-direction: column;

}

.grid-column {
    display: flex;
    /*flex-direction: column;*/
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px; /* Разрыв между элементами в колонке */
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    position: relative;
    height: 130px;
    width: 130px;
    /*box-shadow: 0 0 20px 5px rgba(255, 221, 0, 0.6);*/
}

.grid-item a {
    text-decoration: none;
    color: black;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
    font-size: 1rem;
}

.red {
    background-color: rgba(255, 87, 113, 0.65);
}

.yellow {
    background-color: rgba(255, 221, 0, 0.6);
}

.gray {
    background-color: rgba(117, 114, 114, 0.6);
}

.purple {
    background-color: rgba(202, 155, 255, 0.6);
}


.grid-tmp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.grid-square {
    border: 1px solid #000;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.level-1, .level-2, .level-3, .level-4, .level-5 {
    width: 300px;
    height: 300px;
}

.level-2, .level-3, .level-4, .level-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.sub-square {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
}

.mini-square, .micro-square, .nano-square {
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}
