:root {
    --text-color: #3E3E3E;
    --link-color: #787878;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville';
    background-color: var(--background-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

#essay-links a {
    color:#000000
}

#feature-links a {
    color:#000000
}

/* Sidebar styling */
.logo {
    display: flex;
    width: 120px;
    height: 120px;;
    object-fit: contain;
}

.sidebar {
    width: 200px;
    min-height: 100vh;
    padding: 30px 30px;
    background-color: #f8f8f8;
    font-size: 14px;
    position: sticky;
    top: 0;
}

.sidebar p {
    margin-top: 15px;
    font-size: 17px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    color: #787878;
    text-decoration: none;
}

.sidebar a.active {
    font-weight: bold;
    color: #000000;
}

.sidebar a:hover {
    color: #000000;
}

/*From here, Dark mode CSS*/

body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode a {
    color: #c6c4c4;
}

body.dark-mode .sidebar {
    background-color: #1e1e1e;
}
body.dark-mode .sidebar a.active {
    font-weight: bold;
    color: #dad9e2;
}

body.dark-mode .sidebar a:hover {
    color: #e17acb;
}

.dark-mode .hero-section .text p1 {
    color: #c6c4c4;
}

/* Main container updated to allow sidebar + content */
.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: flex-start;
    min-height: 100vh;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}


.content-wrapper {
    max-width: 600px;
    width: 100%;
}

.hero-section {
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: left;
    padding: 30px 40px;
    max-width: 600px;
}


.hero-section .text h1 {
    font-size: 36px;
    padding-bottom: 10px;
}

.hero-section .text p1 {
    margin-top: 50px;
    padding: 5px 0;
    font-size: 14px;
    color: #787878;
}

/* SECTION HOME */
/* SECTION HOME: ABOUT */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
    max-width: 600px;
}

.about-section .text p {
    margin-bottom: 15px;
    font-weight: bold;
}

.about-section .text .section-title {
    font-size: 14px;
    margin-left: 15px;
}

/* SECTION HOME: INTEREST */
.interest-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
    max-width: 600px;
}

.interest-section .text p {
    margin-bottom: 15px;
    font-weight: bold;
}

.interest-section .text .section-title {
    font-size: 14px;
    margin-left: 15px;
}

/* SECTION ESSAYS */
/* SECTION: ESSAYS: ABOUT */
.essay-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
    max-width: 600px;
}

.essay-section .text .section-title p {
    margin-bottom: 15px;
    font-weight: bold;
}

.essay-section .text .section-body p {
    font-size: 15px;
    font-weight: lighter;
}

/* SECTION EXTRA CURRICULAR */
/* SECTION EXTRA CURRICULAR: EXTRA-CURRICULAR */
.extra-curricular-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
    max-width: 600px;
}

.extra-curricular-section .text .activity-item p {
    font-weight: lighter;
    font-size: 14px
}

.extra-curricular-section .text .activity-item .date p {
    font-size: 14px;
    font-weight: lighter;
    color: #787878;
}

.activity-item {
    margin-bottom: 20px;
    transition: all 0.6s ease;
    position: relative;
}

.detail-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.6s ease, opacity 0.6s ease;
    padding: 0;
    opacity: 0;
    color: #787878
}

.activity-item:hover .detail-box {
    max-height: 9990px;
    padding: 20px 0;
    opacity: 1;
}

/* 다크모드 대응 */
body.dark-mode .detail-box {
    background-color: #121212;
    color: #c6c4c4;
}

body.dark-mode .activity-item:hover .date p {
    color: #c6c4c4;
}

body.dark-mode .extra-curricular-section .text .activity-item .date p {
    color: #c6c4c4;
}

html {
    scrollbar-gutter: stable;
}

/* side-tab */
#side-tab {
    display: block;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background-color: #1e1e1e;
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 60px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1001;
    cursor: pointer;

    /* animation */
    opacity: 1;
    transition: opacity 0.4s ease, left 0.4s ease;
}

/* hide motion */
#side-tab.hidden {
    opacity: 0;
    left: -40px;
    pointer-events: none;
}

/* default: hide */
#side-tab {
    display: none;
}

.close-btn {
    display: none;
}

/* Mobile Ver */
@media (max-width: 768px) {
    #side-tab {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -220px;
        top: 0;
        width: 200px;
        height: 100vh;
        background-color: #f8f8f8;
        transition: left 0.3s ease;
        z-index: 1000;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar.open .close-btn {
        display: block;
    }
}

/* Desktop Ver */
@media (min-width: 769px) {
    .sidebar {
        position: sticky;
        left: 0;
    }

    #side-tab {
        display: none !important;
    }

    .close-btn {
        display: none !important;
    }
}

/* Close button */
.close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}