* {
    margin: 0;
    padding: 0;
}

#history-container {
    width: 960px;
    height: 960px;
    position: relative;
    left:50px;
}

.history-deco-line {
    width: 496px;
    height: 0;
    border-top: 3.2px solid #4d8dd3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#history-deco-line-1 {
    justify-content: flex-start;
}

#history-deco-line-1 .history-deco-circle {
    margin-left: 48px;
    margin-right: 27.2px;
}

#history-deco-line-3 {
    justify-content: flex-start;
}

#history-deco-line-3 .history-deco-circle {
    margin-left: 48px;
    margin-right: 27.2px;
}


.history-deco-circle {
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 2.4px solid #4d8dd3;
    border-radius: 50%;
}


.history-line {
    width: 960px;
    height: 33.33%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.history-line-ceiling {
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-line-floor {
    width: 30.2%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#history-line-2 .history-line-ceiling {
    width: 50%;
    margin-right: -96px;
}

#history-line-2 .history-line-floor {
    width: 50%;
    margin-right: 96px;
}

#history-line-3 .history-line-ceiling {
    width: 30.2%;
}

#history-line-3 .history-line-floor {
    width: 50%;
}


.history-leaf-down {
    width: 100px;
    height: 116px;
    background-color: #b9d7e4;
    -webkit-clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0 38%);
    clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0 38%);
    margin-top: -24px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.history-leaf-up:hover {
    scale: 2;
    margin-bottom: 96px;
    z-index: 999;
    border: 3.2px solid #4d8dd3;
    cursor: pointer;
}

.history-leaf-down:hover {
    scale: 2;
    margin-top: 96px;
    z-index: 999;
    border: 3.2px solid #4d8dd3;
    cursor: pointer;
}

.history-leaf-down p {
    position: absolute;
    bottom: 2.4px;
    line-height: 11.2px;
    font-size: 8px;
    margin-left: 4.8px;
    margin-right: 4.8px;
}

.history-leaf-down h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 22.4px;
    font-size: 22.4px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    margin-top: -3.2px;
    color: #fff;
}

.history-leaf-up {
    width: 100px;
    height: 116px;
    background-color: #b9d7e4;
    -webkit-clip-path: polygon(50% 100%, 100% 62%, 100% 0, 0 0, 0 62%);
    clip-path: polygon(50% 100%, 100% 62%, 100% 0, 0 0, 0 62%);
    margin-bottom: -28.8px;
    position: relative;
    transition: all 0.3s ease-in-out;

}

.history-leaf-up p {
    position: absolute;
    top: 2.4px;
    line-height: 11.2px;
    font-size: 8px;
    margin-left: 4.8px;
    margin-right: 4.8px;
}

.history-leaf-up h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22.4px;
    font-size: 20.8px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    margin-bottom: -3.2px;
    color: #fff;
}


#history-leaf-corner1 {
    position: absolute;
    margin-top: 107.2px;
    margin-left: 176px;
    width: 116px;
    height: 100px;
    background-color: #b9d7e4;
    -webkit-clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
    transition: all 0.3s ease-in-out;

}

#history-leaf-corner1:hover {
    scale: 2;
    margin-left: 240px;
    z-index: 999;
    border: 3.2px solid #4d8dd3;
    cursor: pointer;
}


#history-leaf-corner1 h1 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    position: absolute;
    left: 25.6px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 20.8px;
    font-weight: 700;
}

#history-leaf-corner1 p {
    position: absolute;
    top: 4.8px;
    right: 4.8px;
    line-height: 11.2px;
    font-size: 8px;
    width: 50%;
    height: 90%;
}

#history-leaf-corner2 {
    position: absolute;
    margin-top: 107.2px;
    margin-left: -136px;
    width: 116px;
    height: 100px;
    background-color: #b9d7e4;
    -webkit-clip-path: polygon(62% 0, 100% 50%, 62% 100%, 0 100%, 0 0);
    clip-path: polygon(62% 0, 100% 50%, 62% 100%, 0 100%, 0 0);
    transition: all 0.3s ease-in-out;
}

#history-leaf-corner2:hover {
    scale: 2;
    margin-left: -208px;
    z-index: 999;
    border: 3.2px solid #4d8dd3;
    cursor: pointer;
}

#history-leaf-corner2 h1 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    position: absolute;
    right: 25.6px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 20.8px;
    font-weight: 700;
}

#history-leaf-corner2 p {
    position: absolute;
    bottom: 4.8px;
    left: 4.8px;
    line-height: 11.2px;
    font-size: 8px;
    width: 50%;
    height: 90%;
}

#history-deco-circle-corner1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -9%;
    background-color: #db8783;
    border: 2.4px solid #4d8dd3;
}

#history-deco-circle-corner2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -9%;
    background-color: #db8783;
    border: 2.4px solid #4d8dd3;
}


.history-corner {
    height:323.28px;
    aspect-ratio: 1/2;
    position: absolute;
    border: 3.2px solid #4d8dd3;
}

#history-corner-1 {
    top: 33.33%;
    transform: translateY(-50%);
    right: 72.32px;
    border-left: none;
    border-top-right-radius: 160px;
    border-bottom-right-radius: 160px;
}

#history-corner-2 {
    bottom: 33.33%;
    transform: translateY(50%);
    left: 72.32px;
    border-right: none;
    border-top-left-radius: 160px;
    border-bottom-left-radius: 160px;
}