/* Set website body style */

body {
    padding: 0px;
    margin: 0px;
    background-color: #1b1b1d;
    transition: 500ms;
}

p {
    color: white;
    font-size: 16px;
}


/* Set header-wrappe navigation style */

.main-nav {
    background-color: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
}

.nav-left {
    width: 35px;
    height: 35px;
    float: left;
    margin: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.51);
    border-radius: 2px;
}

.nav-left img {
    width: 100%;
}

.nav-right {
    float: right;
    height: 60px;
    width: 700px;
    margin-right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right a {
    color: white;
    text-decoration: none;
    padding: 10px 5px;
}

.nav-right a:hover {
    color: #338bff;
    transition: all 200ms;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition: all 300ms;
}

.dropdown-link::after {
    border-color: currentcolor transparent;
    border-style: solid;
    border-width: .4em .4em 0;
    content: "";
    margin-left: .3em;
    position: relative;
    top: 15px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.dropdown-menu {
    background-color: #242526;
    opacity: 0;
    visibility: hidden;
    margin-top: 5px;
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, .2);
    position: absolute;
    list-style: none;
    font-size: 14px;
}

.dropdown-menu li {
    margin: 10px 2px;
    padding: 5px 3px;
    border: solid 1px rgba(245, 222, 179, 0);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0);
    transition: all 300ms;
}

.dropdown-menu li:hover {
    background-color: rgba(205, 205, 205, 0.247);
}

#studyNotes {
    width: 350px;
    transform: translateX(-70px) translateY(-10px);
}

.dropdown:hover #studyNotes {
    transform: translateY(0px) translateX(-70px);
}

#JSTools {
    width: 250px;
    transform: translateX(-10px) translateY(-10px);
}

.dropdown:hover #JSTools {
    transform: translateY(0px) translateX(-10px);
}

#personalProjects {
    width: 280px;
    transform: translateX(-10px) translateY(-10px);
}

.dropdown:hover #personalProjects {
    transform: translateY(0px) translateX(-10px);
}

#modeBtn {
    float: right;
    border: none;
    background: rgba(128, 128, 128, 0);
    font-size: large;
    line-height: 45px;
    border-radius: 8px;
    transition: all 500ms;
}

#modeBtn:hover {
    background: rgba(128, 128, 128, 0.184);
}


/* Set page main style */

#page {
    width: 100%;
}

#logo {
    width: 100%;
    height: 100vh;
}

.logo-picture {
    float: right;
    width: 57%;
    margin-top: 4%;
    margin-right: 0%;
}

.logo-picture img {
    width: 100%;
}

#content {
    clear: both;
}

.markWords {
    color: #338bff;
}

.firstWords {
    float: left;
    position: relative;
    top: 12vw;
    left: 2%;
    padding: 20px;
    width: 38%;
}

#titleWord {
    font-size: 40px;
    color: white;
}

.illustrate p {
    line-height: 24px;
    margin-top: 30px;
}

.linkIcon {
    width: 40%;
    display: flex;
    justify-content: space-between;
    margin-top: 10%;
}

.linkIcon img {
    height: 24px;
    width: 24px;
}

.content {
    width: 100%;
}

.introduce {
    width: 80%;
    margin: 30px auto;
}

.introduce>p {
    margin: 15px auto;
    line-height: 20px;
}

.introduce-title {
    color: white;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

#aboutMe>p:first-child {
    font-size: 20px;
}

.introduce-content {
    width: 80%;
    margin: 30px auto 160px auto;
    padding: 10px 30px 40px 30px;
    box-shadow: 20px 20px 60px #253748, -20px -20px 60px #253748;
    border-radius: 8px;
}

.introduce-content li {
    color: white;
    font-size: 20px;
    margin: 20px auto;
}

.introduce-work {
    width: 90%;
    margin: 30px auto 160px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.introduce-work-content {
    width: 45%;
    box-shadow: 20px 20px 60px #253748, -20px -20px 60px #253748;
    border-radius: 8px;
    margin-bottom: 40px;
}

.introduce-work-content>p {
    padding: 2px 15px;
}

.introduce-work-content img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.footer-warpper {
    width: 100%;
}

footer {
    width: 100%;
    background-color: #303846;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer>div {
    width: 25%;
    padding: 20px 60px;
}

.footer-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    margin: 20px auto;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    transition: all 300ms;
    font-weight: 300;
}

footer a:hover {
    color: #338bff;
    text-decoration: underline;
}

#copyright {
    padding: 0px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
}

@media all and (max-width: 1200px) {
    .firstWords {
        top: 6vw;
        left: 0;
    }
    .logo-picture {
        position: relative;
        z-index: -20;
    }
}

@media all and (max-width: 945px) {
    .logo-picture {
        float: unset;
        width: 80%;
        margin: 20px 10%;
        transform: translateY(30px);
    }
    .firstWords {
        clear: both;
        width: 90%;
        margin: 20px 5%;
        margin-bottom: 150px;
    }
    .logo::after {
        clear: both;
    }
    .nav-right {
        width: 80px;
    }
    .link {
        display: none;
    }
}