body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #202020;
    color: #eeeeee;
    font-size: 18px;
}

body p {
    line-height: 1.35;
    margin: 20px 0px 15px 18px;
}

p sub {
    font-size: 17px;
    line-height: 1.3;
    
}

p button.showmore {
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    margin: 0px 0px 0px 2px;
}

body li {
    line-height: 1.3;
    margin: 4px 0px;
}
body a {
    color: #8f3f4f;
}



/* ---------- Navigation bar ---------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 60px 20px 60px;
}

header a.nounderline {
    text-decoration: none; 
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #eeeeee;
}


nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

nav b {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 9px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}



/* ---------- Main homepage section ---------- */

main {
    padding: 15px 60px 15px 60px;
}


.subtitle {
    align-items: left;
    font-size: 21px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 10px 0px 10px 0px;
}

.subtitle a {
    color: #8f3f4f;
}



.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 0px 0px;
    gap: 70px;
}



.profile-picture {
    width: 400px;
    max-width: 100%;
    height: auto;
    margin: 20px 0px 0px 0px;
    border: 1.5px solid #eeeeee;
}



/*----------------- dark-light button style and effects ------------*/


html.light-mode body {
    background-color: #eeeeee;
    color: #202020;
}
html.light-mode header a {
    color: #202020;
}

html.light-mode body nav a {
    color: #202020;
}

html.light-mode body nav b {
    color: #202020;
}

.toggle-container {
    display: flex;
    justify-content: right;
    align-items: left;
    height: 5vh;
    position: relative;
    bottom: 3px;
}

.toggle-button {
    border: 2px solid #000;
    background-color: #fff;
    border-radius: 30px;
    width: 42px;
    height: 24px;
    position: relative;
    cursor: pointer;
}
.toggle-button .toggle-circle {
    background-color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 2px;
    left: 2px;
}



html.light-mode .toggle-button {
    background-color: #262626;
    border-color: #fff;
}
html.light-mode .toggle-button .toggle-circle {
    left: 20px;
    background-color: #fff;
}

html.animate-theme .toggle-button {
    transition: background-color 0.5s, border-color 0.5s;
}

html.animate-theme .toggle-circle {
    transition: left 0.5s;
}

html.animate-theme body {
    transition: background-color 0.5s, color 0.5s;
}

#theme-name .sun {
    display: none;
    
}


html.light-mode #theme-name .moon {
    display: none;
}

html.light-mode #theme-name .sun {
    display: inline;
}
.theme-info {
    text-align: left;
    font-size: 1.2em;
    margin-left: 10px;
    
}
.name {
    margin: -1px 4px 2px 0px;
    vertical-align: middle;
}

html.light-mode .profile-picture {
    border: 1.5px solid #202020;
}


/* --------------- Navigation bar animation --------------*/

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;

    width: 0;
    height: 1px;

    background-color: currentColor;

    transition: width 0.2s ease;
}

nav a:hover::after {
    width: 100%;
}


/* ----------------- Mobile-friendly --------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

@media (max-width: 700px) {
    main {
        padding: 20px;
    }

    .intro {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: none;
        min-width: 0;

        padding: 0;
        gap: 20px;
    }

    .intro > div {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }

    .intro p {
        margin: 0 0 16px;
        line-height: 1.6;
    }

    .intro ul {
        margin: 0 0 16px;
        padding-left: 24px;
    }

    .intro li {
        margin-bottom: 12px;
    }

    main p {
        overflow-wrap: anywhere;
    }

    .profile-picture {
        width: 100%;
        max-width: 400px;
        height: auto;
        align-self: center;
        order: -1;
    }

    header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }

    header > div {
        width: 100%;
        min-width: 0;
    }

    header a.nounderline {
        display: block;
        font-size: 22px;
        letter-spacing: 0.5px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 12px 18px;
    }

    nav a,
    nav b {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 0.8px;
        line-height: 1.5;
        padding: 6px 0;
        white-space: nowrap;
    }

    nav .toggle-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-shrink: 0;
        flex-basis: 100%;
    }
}

