html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
.header a {
    color: #3f463f;
    transition: color 1.5s, opacity 1.5s
}
.header {
    font-size: 24px;
    font-weight: bold;
    color: #3f463f;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
body {
    background-color: #191f1b;
    background-image: url('assets/wanrong.jpg');
    background-size: cover;
    background-position: center calc(50% + 30px);
    background-repeat: no-repeat;
}
.front-page-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.front-page-intro h1 {
    text-align: center;
    color: #333;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.front-page-intro p {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: #666;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.personal-projects {
    transition: opacity 2s ease-in-out;
}
.name {
    position: absolute;
}
.about-me {
    position: absolute;
    top: 0;
    left: 0;
}
.buttons {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 80px;
}
.button-list {
    transition: background 1.5s;
    padding-left: 20px;
    line-height: 0;
}
nav ul {
    list-style: none; /* remove bullet points */
    display: flex; /* display list items as a flex container */
}
nav ul li {
    height: 1em;
    margin-right: 20px; /* add space between list items */
    transition: transform 0.5s;
}
nav ul li a {
    text-decoration: none;
    display: block;
}
.mal-icon {
    width: 1.6em;
    height: 1.6em;
    margin-top: -5px;
}
.button {
    position: center;
}
.about-me-container {
    opacity: 0;
    transition: all 1.5s;
    position: relative;
}
.about-me-text {
    position: absolute;
    top: 33.33%;
    left: 10%;
    color: white;
    opacity: 87%;
    font-size: 54px;
}
.more-about-me {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.interest {
    opacity: 0;
}
#about-me-bg {
    position: absolute;
    height: 100%;
    width: 100%;
    background-size: cover;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 1.5s;
}
#video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s;
    overflow: hidden;
}

#about-me-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
footer {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: transparent;
    color: white;
    padding-right: 10px;
    text-align: right;
}

@media only screen and (max-width: 767px) {
    body {
        background-size: cover;
        background-position: center;
    }
    .header {
        font-size: 20px;
    }
    .about-me {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .about-me ul {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        display: flex;
    }
    .about-me li.about-me-button {
        flex-grow: 1;
        text-align: left;
    }
    .about-me li.personal-projects {
        flex-grow: 1;
        text-align: right;
    }
    .front-page-intro {
        position: relative;
        top: 5%;
    }
    .buttons {
        display: flex;
        top: auto;
        right: auto;
        bottom: 0;
    }
    .button-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 0;
        left: 0;
    }
    .button-list li {
        padding-bottom: 20px;
    }
    .fa-linkedin {
        color: #0072b1
    }
    .fa-github {
        color: white
    }
    .fa-imdb {
        color: #f3ce13
    }
    .fa-square-lastfm {
        color: #c3000d
    }
    .fa-envelope {
        color: white
    }
}