/* common */
body { font-family: 'Pretendard'; }
img, svg { display: block; }
.wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; transition: background-color .5s ease, color .5s ease; }
.light { display: block; }
.dark { display: none; }
.project { display: none !important; }


/* section home */
.section-home { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: width .5s ease .3s; }
.section-home .article { display: flex; flex-direction: column; justify-content: space-between; position: absolute; top: 50%; left: 50%; margin-top: -145px; margin-left: -145px; padding: 20px; width: 290px; height: 290px;
    transition:
        top         .3s ease,
        height      .3s ease,
        margin-top  .3s ease;
}
.section-home .profile-wrap { position: relative; }
.section-home .profile { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.section-home .light-motion { position: absolute; top: -16px; left: -8px; width: 80px; height: 80px; animation: hirameki 5s infinite; }
.section-home .light-motion .horizontal-axis:before { content: ''; display: block; position: absolute; top: 34px; left: 0; border: 6px solid transparent; border-right: 40px solid gold; border-left: 0; }
.section-home .light-motion .horizontal-axis:after { content: ''; display: block; position: absolute; top: 34px; left: 40px; border: 6px solid transparent; border-right: 0; border-left: 40px solid gold; }
.section-home .light-motion .vertical-axis:before { content: ''; display: block; position: absolute; top: 0; left: 34px; border: 6px solid transparent; border-top: 0; border-bottom: 40px solid gold; }
.section-home .light-motion .vertical-axis:after { content: ''; display: block; position: absolute; top: 40px; left: 34px; border: 6px solid transparent; border-top: 40px solid gold; border-bottom: 0; }
.section-home .profile-image { width: 80px; height: 80px; border: 5px solid black; border-radius: 50px; }
.section-home .profile-image img { width: 100%; height: 100%; }
.section-home .profile-name { width: 160px; word-break: keep-all; font-size: 34px; line-height: 1; }
.section-home .profile-intro { margin-left: 7px; font-size: 18px; line-height: 1; }
.section-home .info-wrap { position: relative; padding: 0 7px; }
.section-home .screen-mode-info { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; padding: 8px; width: 130px; height: 36px; background-color: black; color: gold; cursor: pointer; transition: background-color .5s ease; }
.section-home .screen-mode-info:after { content: 'Light mode'; display: block; transition: content .5s ease, color .5s ease; }
.section-home .screen-mode-info .icon-wrap { margin-right: 5px; width:20px; height: 20px; }
.section-home .screen-mode-info .icon-wrap svg { width: 100%; height: 100%; fill: gold; transition: fill .5s ease; }
.section-home .os-info { font-size: 16px; margin-bottom: 2px; }
.section-home .browser-info { font-size: 16px; }
.section-home .btn-wrap button { display: flex; align-items: center; width: 94px; height: 25px; margin-top: 10px; cursor: pointer; }
.section-home .btn-wrap button .icon-wrap { display: block; width: 25px; height: 25px; transform: rotate(90deg); transition: transform .5s ease; }
.section-home .btn-wrap button .icon-wrap svg { transition: fill .5s ease; }
.section-home .btn-wrap button .text { display: block; margin-left: 5px; font-size: 20px; color: black; transition: color .5s ease; }

@keyframes hirameki {
    0% { transform: scale(0) rotate(0); }
    50% { transform: scale(0) rotate(0); animation-timing-function: ease-out; }
    60% { transform: scale(1) rotate(225deg); animation-timing-function: ease-in; }
    65% { transform: scale(0) rotate(360deg); }
    100% { transform: scale(0) rotate(0); }
}

/* section project */
.section-project { position: absolute; top: 50%; left: 0; width: 100%; height: 0; background-color: rgba(0,0,0,.15); opacity: 0; visibility: hidden; transition: top .3s ease, left .5s ease .3s, width .5s ease .3s, height .3s ease, background-color .5s ease, opacity .5s ease .5s, visibility .5s ease .5s; overflow: auto; z-index: 10; }
.section-project .simplebar-content { min-height: 100%; }
.section-project .project-list { position: relative; display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center; width: 100%; min-height: 100%; padding: 10px; }
.section-project .project-list .list { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; width: 150px; height: 150px; margin: 10px; border: 8px solid black; cursor: pointer;  transition: background-color .5s ease, border-color .5s ease; }
.section-project .project-list .list:hover { background-color: gold; }
.section-project .project-list .list h3 { margin-bottom: 2px; font-size: 15px; word-break: keep-all; }
.section-project .project-list .list h5 { margin-top: 5px; font-size: 11px; text-align: right; }
.section-project .project-list .list p { font-size: 11px; word-break: keep-all; }
.section-project .project-list .list p.scope { text-align: right; }
.section-project .project-list .list p.used { text-align: right; }

/* open project */
.project-wrap .home { display: none !important; }
.project-wrap .project { display: block !important; }
.project-wrap .section-home { width: 290px; transition: width .5s ease; }
.project-wrap .section-home .article { top: 0; height: 100%; margin-top: 0;
    transition:
        top         .5s ease .5s,
        height      .5s ease .5s,
        margin-top  .5s ease .5s;
}
.project-wrap .section-home .btn-wrap button .icon-wrap { transform: rotate(-90deg); }
.project-wrap .section-project { top: 140px; height: calc(100% - 280px); opacity: 1; visibility: visible; transition: top .5s ease .5s, left .5s ease, width .5s ease, height .5s ease .5s, background-color .5s ease; }

.invert .light { display: none; }
.invert .dark { display: block; }
.invert .wrap { background-color: black; color: white; }
.invert .section-home .light-motion .horizontal-axis:before { border-right-color: crimson; }
.invert .section-home .light-motion .horizontal-axis:after { border-left-color: crimson; }
.invert .section-home .light-motion .vertical-axis:before { border-bottom-color: crimson; }
.invert .section-home .light-motion .vertical-axis:after { border-top-color: crimson; }
.invert .section-home .screen-mode-info { background-color: white; color: crimson; }
.invert .section-home .screen-mode-info:after { content: 'Dark mode'; }
.invert .section-home .screen-mode-info .icon-wrap svg { fill: crimson; }
.invert .section-home .btn-wrap button .icon-wrap svg { fill: white; }
.invert .section-home .btn-wrap button .text { color: white; }
.invert .section-project { background-color: rgba(255,255,255,.15); }
.invert .section-project .project-list .list { border-color: white; }
.invert .section-project .project-list .list:hover { background-color: crimson; }

@media all and (min-width: 1024px) {
    /* section home */
    .section-home .btn-wrap button .icon-wrap { transform: rotate(-180deg); }
    /* section project */
    .section-project { top: 0 !important; left: 100%; width: calc(100% - 290px); height: 100% !important; }
    .section-project .project-list { min-height: 100vh; }
    /* open project */
    .project-wrap .section-home .btn-wrap button .icon-wrap { transform: rotate(0); }
    .project-wrap .section-project { left: 290px; }
}
@media (prefers-color-scheme: dark) {
    .light { display: none; }
    .dark { display: block; }
    .wrap { background-color: black; color: white; }
    .section-home .light-motion .horizontal-axis:before { border-right-color: crimson; }
    .section-home .light-motion .horizontal-axis:after { border-left-color: crimson; }
    .section-home .light-motion .vertical-axis:before { border-bottom-color: crimson; }
    .section-home .light-motion .vertical-axis:after { border-top-color: crimson; }
    .section-home .screen-mode-info { background-color: white; color: crimson; }
    .section-home .screen-mode-info:after { content: 'Dark mode'; }
    .section-home .screen-mode-info .icon-wrap svg { fill: crimson; }
    .section-home .btn-wrap button .icon-wrap svg { fill: white; }
    .section-home .btn-wrap button .text { color: white; }
    .section-project { background-color: rgba(255,255,255,.15); }
    .section-project .project-list .list { border-color: white; }
    .section-project .project-list .list:hover { background-color: crimson; }
    .invert .light { display: block; }
    .invert .dark { display: none; }
    .invert .wrap { background-color: white; color: black; }
    .invert .section-home .light-motion .horizontal-axis:before { border-right-color: gold; }
    .invert .section-home .light-motion .horizontal-axis:after { border-left-color: gold; }
    .invert .section-home .light-motion .vertical-axis:before { border-bottom-color: gold; }
    .invert .section-home .light-motion .vertical-axis:after { border-top-color: gold; }
    .invert .section-home .screen-mode-info { background-color: black; color: gold; }
    .invert .section-home .screen-mode-info:after { content: 'Light mode'; }
    .invert .section-home .screen-mode-info .icon-wrap svg { fill: gold; }
    .invert .section-home .btn-wrap button .icon-wrap svg { fill: black; }
    .invert .section-home .btn-wrap button .text { color: black; }
    .invert .section-project { background-color: rgba(0,0,0,.15); }
    .invert .section-project .project-list .list { border-color: black; }
    .invert .section-project .project-list .list:hover { background-color: gold; }
}