body {
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
  color: #000;
  width: 100%;
  background-color: white;
  text-align: center;
  font-size: 1.4rem;
}

.navbar {
  background-color: #242424;
}

.chinese-name {
  font-size: 0.6em;
}

.news-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 750px;
  margin: 1rem auto 1.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #246F8B;
  border-radius: 2rem;
  background-color: rgba(36, 111, 139, 0.06);
  text-align: left;
  opacity: 0;
  animation: news-fade-in 0.6s ease-out 0.2s forwards;
}

.news-text {
  margin: 0;
  font-size: 1rem;
}

.news-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #246F8B;
  animation: news-pulse 1.8s ease-in-out infinite;
}

@keyframes news-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes news-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(36, 111, 139, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(36, 111, 139, 0);
  }
}

.name-block {
  display: inline-block;
  text-align: center;
  vertical-align: top;
}

.edu-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.edu-program {
  font-size: 1rem;
}

.edu-university {
  font-size: 1.25rem;
}

.pub-subhead {
  text-align: left;
  max-width: 900px;
  margin: 1.5rem auto 0.75rem;
  color: #000;
}

.pub-list {
  list-style: none;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.pub-list li {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  line-height: 1.5;
}

.pub-list a {
  color: #000;
  text-decoration: underline;
}

.pub-list a:hover,
.pub-list a:focus {
  color: #000;
}

.pronunciation {
  display: block;
  font-size: 1rem;
  font-style: italic;
  color: #000;
}

h2,
h5,
h6,
.fa-user-tag,
.list-inline-item i:hover,
.linkedin-link a {
  color: #000;
}

.family-name {
  color: #246F8B;
}

h2,
h4,
h5,
h6,
#sideNav {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}

h1,
.mobile-name {
  font-family: "Times New Roman", Times, serif;
  font-size: 5rem;
  letter-spacing: 0.1rem;
}

.mobile-name,
.edu-icons {
  color: #000;
  margin-top: 1rem;
}

h1 {
  color: #246F8B;
}

.list-social-icons a {
  color: #c4c4c4;
}

a:hover,
a:focus {
  color: #000;
}

.list-social-icons {
  font-size: 1.5rem;
}

.list-icons {
  font-size: 3rem;
}

.list-social-icons a:hover,
#sideNav .navbar-nav .nav-item a:hover,
.nav-link a:hover {
  color: #add8e6;
  transition: all 0.2s ease-in-out;
}

a {
  color: #000;
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-item .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  color: #c4c4c4;
}

.nav-item {
  border-bottom: 0.1rem groove #696969;
}

.navbar-nav:first-child {
  border-top: 0.1rem groove #696969;
}

#mail-address a {
  color: #000;
}

.fa-ul {
  margin-left: 0rem;
}

.form-group {
  padding-left: 0;
}

.progress-bar,
.btn {
  background-image: linear-gradient(
    to right,
    #bfefff,
    #8dd2f3,
    #5fb4e8,
    #3594dc,
    #1874cd
  );
}

.btn {
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: white;
  width: 50%;
  border: none;
}

.card {
  border: 1px solid lightgray;
}

button:focus,
button:active {
  outline: solid #add8e6 2px;
}

.card-image {
  height: 200px;
  align-self: center;
  max-width: 250px;
}

@media (min-width: 320px) and (max-width: 992px) {
  h1,
  h4 {
    font-size: 5rem;
    display: none;
  }

  .mobile-img {
    height: 150px;
    width: 150px;
    border: solid whitesmoke 5px;
    border-radius: 100%;
  }

  .mobile-name {
    font-size: 3rem;
  }

  .mobile-profession {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .resume-section {
    padding-top: 7rem !important;
    min-height: 100vh;
  }

  .linkedin-link {
    text-align: center !important;
  }
}

.contact-form {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-name {
  font-size: 3rem;
}

#skill-bars {
  width: 75%;
  margin: 0 auto;
}

.form-group {
  width: 50%;
}

@media (min-width: 320px) and (max-width: 768px) {
  #skill-bars {
    width: 100%;
    margin: 0 auto;
  }
  .form-group {
    width: 100%;
  }
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 18rem;
  }
  .resume-section {
    padding-top: 3rem !important;
    padding-bottom: 10rem !important;
  }

  #sideNav {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 18rem;
    height: 100vh;
  }
  .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
 .navbar-brand .img-profile {
    max-width: 12rem;
    max-height: 12rem;
    border: 0.3rem solid #246F8B;
    border-radius: 100%;
  }
.navbar-collapse {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  .navbar-collapse .navbar-nav {
    width: 100%;
  }
  .navbar-nav:first-child {
    border-top: none;
  }

  .mobile-name,
  .mobile-profession {
    display: none;
  }
}
