/* Lesson 4 Specific Styles */

/* Cubes blocks for comparison */
.cubes-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cube {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}
.cube-yellow { background-color: #ffcc00; }
.cube-blue { background-color: #32ade6; }
.cube-red { background-color: #ff3b30; }

.cube-group {
    display: flex;
    gap: 5px;
}

/* Circling interactive group */
.circle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    border: 4px dashed transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    max-width: 350px;
}

.circle-group:hover {
    background-color: rgba(0,0,0,0.02);
}

.circle-group.circled {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.05);
}

.circle-group.wrong-circle {
    border-color: transparent;
    animation: shake 0.4s;
}

/* Number line */
.number-line {
    position: relative;
    width: 100%;
    height: 60px;
    margin: 40px 0;
}
.line-base {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #222;
}
.line-arrow {
    position: absolute;
    top: 25px;
    right: -5px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #222;
}
.ticks-container {
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
}
.tick-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.tick-line {
    width: 2px;
    height: 20px;
    background-color: #222;
}
.tick-num {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    width: 30px;
    text-align: center;
    transition: all 0.3s;
}
.tick-num.highlight {
    background-color: #ffcc00;
    border-radius: 5px;
    font-weight: bold;
    transform: scale(1.2);
}
.tick-num.highlight-red {
    background-color: #ff3b30;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transform: scale(1.2);
}

/* Navigation between parts */
.part-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.btn-next-part {
    background-color: #00c7be;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-next-part:hover {
    background-color: #00a099;
    transform: translateY(-2px);
}
