html, body {
    width: 100%;
    margin: 0px;
}

body {
    font-family: 'Montserrat', sans-serif;
}

header, main, footer {
    flex-shrink: 0;
}

main {
    flex-grow: 1;
}
.site {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    color: #424242;
    transition: .3s;
}
.site.dark-mode {
    background: #4a4a4a;
    color: #fcfcfc;
    transition: .3s;
}

.container {
    margin: 0px 10%;
    padding: 10vh 15vw;
}

.section {
    min-height: 100vh;
    border-left-width: 8px;
    border-left-style: solid;
}

/* section border */
.section.blue {
    border-left-color: #b1eaff;
}
.section.green {
    border-left-color: #caffb1;
}
.section.yellow {
    border-left-color: #faffb1;
}
.section.orange {
    border-left-color: #ffe0b1;
}
.section.red {
    border-left-color: #ffb1b1;
}

.section .title h2 {
    font-size: 36px;
}
.section .title i {
    font-size: 40px;
}

img.avatar {
    border-radius: 50%;
    max-width: 200px;
    margin-top: 17vh;
}
.text {
    text-align: left;
    line-height: 1.5em;
    color: #585858;
}
.dark-mode .text {
    color: #e4e4e4;
}
.text .subtitle {
    font-size: 26px;
    color: #424242;
}
.dark-mode .text .subtitle {
    color: #fcfcfc;
}

/* side-bar */
.side-bar {
    overflow: hidden;
    position: fixed;
    top: calc(50vh - 215px);
    left: 7vw;
    z-index: 2000;
}
.side-bar .menu-item {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    font-size: 35px;
    border-left-width: 8px;
    border-left-style: solid;
}

/* menu-item colors */
.side-bar .menu-item.blue {
    border-left-color: #b1eaff;
    background: linear-gradient(to left, transparent 50%, #b1eaff 50%) right;
    background-size: 200%;
    transition: .3s ease-out;
}
.side-bar .menu-item.green {
    border-left-color: #caffb1;
    background: linear-gradient(to left, transparent 50%, #caffb1 50%) right;
    background-size: 200%;
    transition: .3s ease-out;
}
.side-bar .menu-item.yellow {
    border-left-color: #faffb1;
    background: linear-gradient(to left, transparent 50%, #faffb1 50%) right;
    background-size: 200%;
    transition: .3s ease-out;
}
.side-bar .menu-item.orange {
    border-left-color: #ffe0b1;
    background: linear-gradient(to left, transparent 50%, #ffe0b1 50%) right;
    background-size: 200%;
    transition: .3s ease-out;
}
.side-bar .menu-item.red {
    border-left-color: #ffb1b1;
    background: linear-gradient(to left, transparent 50%, #ffb1b1 50%) right;
    background-size: 200%;
    transition: .3s ease-out;
}

/* active menu item */
.side-bar .active .menu-item {
    color: #4a4a4a;
    cursor: pointer;
    background-position: left;
}
.side-bar .active .menu-item.blue {
    background-color: #b1eaff
}
.side-bar .active .menu-item.green {
    background-color: #caffb1
}
.side-bar .active .menu-item.yellow {
    background-color: #faffb1
}
.side-bar .active .menu-item.orange {
    background-color: #ffe0b1
}
.side-bar .active .menu-item.red {
    background-color: #ffb1b1
}

/* menu item on hover */
.side-bar .menu-item:hover {
    color: #4a4a4a;
    background-position: left;
}
.side-bar a {
    color: #4a4a4a;
    font-size: 30px;
    text-decoration: none;
}
.dark-mode .side-bar a {
    color: #fcfcfc;
}
  
/* background colors */
.bg-blue {
    background-color: #b1eaff;
}
.bg-green {
    background-color: #caffb1;
}
.bg-yellow {
    background-color: #faffb1;
}
.bg-orange{
    background-color: #ffe0b1;
}
.bg-red {
    background-color: #ffb1b1;
}

/* experience item */
.experience {
    margin-bottom: 20px;
}
.experience .company {
    font-size: 20px;
}
.experience .date-period {
    font-size: 16px;
    margin-right: 35px;
    float: left;
}
.experience .date-range {
    font-size: 15px;
    float: none;
}
.experience .date-range i,
.experience .date-period i {
    font-size: 14px;
    color: #999999;
    margin-right: 3px;
}
.experience .desc {
    font-size: 12px;
    color: #999999;
}
.dark-mode .experience .date-range i,
.dark-mode .experience .date-period i {
    color: #b9b9b9;
}
.dark-mode .experience .desc {
    color: #b9b9b9;
}

/* project item */
.projects {
    margin-bottom: 20px;
}
.projects .title {
    font-size: 20px;
}
.projects .description {
    font-size: 16px;
}

/* social icons */
.socials .link-icon {
    color: #7e7e7e;
    font-size: 24px;
    margin: 0 10px;
    transition: .3s;
    cursor: pointer;
}
.socials .link-icon:hover {
    color: #4a4a4a;
    font-size: 24px;
    margin: 0 10px;
    transition: .3s;
}
.dark-mode .socials a {
    color: #fcfcfc80;
}
.dark-mode .socials a:hover {
    color: #fcfcfc;
}


/* dark mode toggle button */
.mode-toggle i {
    font-size: 30px;
    overflow: hidden;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1900;
    cursor: pointer;
}
.mode-toggle i {
    color: #9c9c9c;
    transition: .3s;
}

.wip-icon {
    margin-top: 50px;
    font-size: 150px;
    color: #9c9c9c;
}

.hidden-mobile {
    display: unset;
}
.hidden-desktop {
    display: none;
}

/* mobile view */
@media only screen and (max-width: 768px) {
    .container {
        padding: 2vh 5vw;
    }

    .section .title h2 {
        margin-top: 10px;
    }

    .side-bar {
        top: calc(50vh - 200px);
        left: 0vw;
    }
    .side-bar .menu-item {
        height: 80px;
        width: 40px;
        font-size: 25px;
        margin: 0px 0px;
    }

    .experience .company {
        width: 100%;
        margin-bottom: 10px;
    }
    .experience .date-period {
        margin-right: 0px;
        float: none;
    }
    .experience .dates {
        margin-top: 5px;
    }
    .experience .desc {
        margin-top: 5px;
    }

    .hidden-mobile {
        display: none;
    }
    .hidden-desktop {
        display: unset;
    }

    .text {
        line-height: 1.2em;
    }
}