/*
    ======================================
    + History Style CSS
    @ Team. PLAYWORLD 2025. 03. 02.
    ======================================
*/

/* Root (Common) */
:root {
    --timeline-color: #a6b7ff;
    --year-after-color: #a6b7ff;
}
/* // Root (Common) */

/* PC (Default) */
/* Body */
body {
    background: url(../images/svg/background.svg) center no-repeat fixed;
    background-size: cover;
}
/* // Body */

/* Section 1 : Intro */
.section-intro {
    width: 100%;
    height: 100vh;
}

.intro__wrap {
    justify-content: center;
    width: 60%;
    height: 100%;
    margin: 0 auto;
}

.intro__text-wrap {
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.intro__title {
    position: relative;
    font-weight: 800;
    font-size: 3.5rem;
}

.intro__title:nth-child(2) {
    margin-top: 1.5%;
}

.intro__title::after {
    content: '';
    position: absolute;
    bottom: 5.5%;
    left: 0;
    width: 100%;
    height: 27%;
    background-color: var(--default-blue);
    z-index: -1;
}

.intro__description {
    margin-top: 1.5%;
    font-weight: 600;
    font-size: 1.5rem;
}
/* // Section 1 : Intro */

/* Section 2 : Contents - History */
.section-contents__history {
    display: table;
    width: 100%;
}

.history__arrange {
    position: relative;
    justify-content: center;
    width: 65%;
}
  
.history__arrange::before {
    content: "";
    position: absolute;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    left: 2.25rem;
    width: 2px;
    background: var(--timeline-color);
    transition: background 0.3s ease-out;
}

.history__year-wrap {
    position: relative;
    justify-content: space-between;
    width: 100%;
}
  
.history__year-wrap.start .history__contents-year::after {
    background: #000;
}

.history__contents-wrap {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 3rem;
    margin-bottom: 5rem;
}

.history__contents-wrap:first-child .history__contents-year {
    background: #f2f2f2;
}
  
.history__contents-year {
    position: relative;
    flex: 1;
    height: 3rem;
    line-height: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.8rem;
    transition: all 0.5s;
}

.history__year-wrap.start .history__contents-year > span {
    position: relative;
    left: -0.65rem;
}
  
.history__contents-year:first-child::after {
    content: "";
    position: absolute;
    transform: translateX(-50%);
    bottom: -0.5rem;
    left: 2.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--year-after-color);
    transition: all 0.5s;
}

.history__contents-wrap:not(:first-child) .history__contents-year {
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0;
}

.history__contents-month,
.history__contents {
    font-weight: 500;
    font-size: 1.2rem;
    color: #515151;
    transition: all 0.5s;
}

.history__contents-month {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
}

.history__contents {
    flex: 2;
    text-align: right;
}

.history__contents-wrap.active .history__contents-month,
.history__contents-wrap.active .history__contents {
    color: var(--default-blue);
    font-size: 1.3rem;
    font-weight: 700;
    transform: scale(1.05);
}
/* // Section 2 : Contents - History */
/* // PC (Default) */

/* Mobile */
@media (min-width: 320px) and (max-width: 480px) {
    /* Body */
    body {
        background: #f2f2f2;
    }
    /* // Body */

    /* Section 1 : Intro */
    .intro__wrap {
        width: 80%;
    }

    .intro__title {
        font-weight: 900;
        font-size: 1.95rem;
    }

    .intro__description {
        margin-top: 5%;
        font-weight: 500;
        font-size: 0.95rem;
    }
    /* // Section 1 : Intro */

    /* Section 2 : Contents - History */
    .history__arrange {
        width: 80%;
    }

    .history__arrange::before {
        left: 1.85rem;
    }

    .history__contents-year {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
    }

    .history__year-wrap.start .history__contents-year > span {
        position: relative;
        left: -0.5rem;
    }

    .history__contents-year:first-child::after {
        bottom: -0.5rem;
        left: 1.85rem
    }

    .history__contents-month,
    .history__contents {
        font-size: 1rem;
    }

    .history__contents-wrap.active .history__contents-month,
    .history__contents-wrap.active .history__contents {
        color: var(--default-blue);
        font-size: 1rem;
        font-weight: 500;
        transform: scale(1.0);
    }
    /* // Section 2 : Contents - History */
}
/* // Mobile */