html,
body {
  margin: 0;
  background-color: #222222;
  color: #eeeeee;
}

header {
  height: 70vh;
  min-height: 10em;
  display: flex;
  align-items: center;
  position: relative;
}
header::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-image: url(./assets/header.jpg);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}
header background {
  opacity: 0.8;
  position: absolute;
  display: block;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, darkcyan 0, black 100%);
}
header banner {
  --margin-line: 20px;
  padding: 0.5em 0em;
  color: #efefef;
  background-color: rgba(255, 255, 255, 0.1);
  font-family: var(--title-font);
  display: block;
  text-align: center;
  width: 100vw;
  position: relative;
  text-shadow: 0 0 1px #359bed;
  overflow: hidden;
}
header banner .main {
  font-size: 45px;
  font-weight: 900;
  line-height: 1.5em;
}
header banner .sub {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2em;
}
header banner::before {
  content: "";
  position: absolute;
  display: block;
  width: 400px;
  max-width: calc(100vw - var(--margin-line));
  height: 1px;
  border: none;
  background-color: #ffffff;
  box-shadow: 0 0 4px #ffffff, 0 0 4px #359bed;
  right: var(--margin-line);
  top: 0;
}
header banner::after {
  content: "";
  position: absolute;
  display: block;
  width: 400px;
  max-width: calc(100vw - var(--margin-line));
  height: 1px;
  border: none;
  background-color: #ffffff;
  box-shadow: 0 0 4px #ffffff, 0 0 4px #359bed;
  left: var(--margin-line);
  bottom: 0;
}
header banner .flashing {
  position: absolute;
  left: 1em;
  top: 0;
  height: 100%;
  width: 8em;
  transform: skewX(-30deg);
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
  animation: flashing_anim 13.12s ease-in-out infinite;
  box-shadow: 0 0 13px rgba(255, 255, 255, 0.1);
}
@keyframes flashing_anim {
  0% {
    left: min(17em, 8%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: max(100% - 1em - 16em, 100% - 1em - 8em);
    opacity: 0;
  }
}

article {
  display: flex;
  align-items: center;
  flex-direction: column;
}
article session {
  width: 100%;
  max-width: 60em;
  box-shadow: 0 0 3px #222222;
  margin: 2em 0;
  padding: 1em;
  box-sizing: border-box;
}
article session title {
  display: block;
  font-family: var(--key-font);
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  padding: 0.8em 1em;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px #111111;
}
article session content .part {
  display: block;
  margin: 1.5em 0;
  border-top: solid 1px darkcyan;
  background-color: rgba(51, 51, 51, 0.25);
  padding: 0 1.2em 1.2em 1.2em;
  font-family: var(--main-font);
}
article session content .part .part-container {
  font-size: 13px;
}
article session content .part label {
  display: inline-block;
  background-color: darkcyan;
  color: #ffffff;
  font-size: 13px;
  font-family: var(--code-font);
  padding: 0.6em 1.2em;
}
article session content .part .entry {
  color: #ffffff;
  font-size: 13px;
  font-family: var(--code-font);
  text-decoration: underline;
  margin: 0.8em 0;
}
article session content .part .item {
  display: inline-block;
  padding: 0.2em 1.2em;
  margin: 0.5em;
  background-color: transparent;
  border-radius: 5em;
  border: solid 1px #eee;
  line-height: 2em;
  font-size: 11px;
}
article session content .part .item:hover {
  color: #359bed;
  box-shadow: 1px 1px 5px #111;
}
article session content .part#description {
  padding: 0em;
  border: solid 1px darkcyan;
}
article session content .part#description .text {
  font-family: var(--code-font);
  padding: 1em;
}
article session content .part#link .entry {
  object-fit: fill;
  background-color: rgba(55, 55, 55, 0.7);
  padding: 0.3em 1em 0.3em 3.5em;
  margin: 0.3em;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 2em 2em;
  background-position: 0.2em center;
  transition: background-size 1.2s linear;
  color: #eff;
  border: solid 1px transparent;
}
article session content .part#link .entry:hover {
  background-size: min(2.5em, 100%) min(2.5em, 100%);
  border: solid 1px #fff;
  box-shadow: 1px 1px 5px #000;
}
article session content .part#link .entry a {
  text-decoration: none;
  cursor: pointer;
  color: #eff;
}
article session content .part#link .entry#email {
  background-image: url("./assets/social/mail.png");
}
article session content .part#link .entry#facebook {
  background-image: url("./assets/social/facebook.png");
}
article session content .part#link .entry#twitter {
  background-image: url("./assets/social/twitter.png");
}
article session content .part#link .entry#linkedin {
  background-image: url("./assets/social/linkedin.png");
}
article session content .part#link .entry#leetcode {
  background-image: url("./assets/social/LeetCode.png");
}
article session content .part#link .entry#porfolio {
  background-image: url("./assets/social/hyperlink.png");
}
article session content .part#link .entry#blog {
  background-image: url("./assets/social/hyperlink.png");
}
article session#project .project-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
article session#project .project-list .project-item {
  display: inline-block;
  position: relative;
  width: 26em;
  margin: 0.25em;
  box-shadow: 1px 1px 4px #222222;
  padding: 0.5em;
  border: solid 1px rgba(0, 139, 139, 0.1);
  border-bottom-color: rgba(0, 139, 139, 0.6);
}
article session#project .project-list .project-item:hover {
  border-color: rgba(0, 139, 139, 0.6);
}
article session#project .project-list .project-item:hover .name::before {
  color: #fff;
  background-color: rgba(0, 139, 139, 0.9);
}
article session#project .project-list .project-item:hover .link {
  display: block;
}
article session#project .project-list .project-item .name {
  font-family: var(--key-font);
  font-size: 13px;
}
article session#project .project-list .project-item .name::before {
  content: attr(data-first-letter);
  font-size: 200%;
  color: darkcyan;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  background-color: rgba(0, 139, 139, 0.1);
  border-bottom: solid 1px #00bebe;
  border-radius: 3px;
}
article session#project .project-list .project-item .description {
  font-family: var(--main-font);
  font-size: 12px;
  padding: 0.7em;
  background-color: #222222;
}
article session#project .project-list .project-item .languages {
  display: flex;
  flex-wrap: wrap;
}
article session#project .project-list .project-item .languages .language {
  color: darkcyan;
  font-family: var(--code-font);
  font-size: 11px;
  padding: 0 0.8em;
  border: solid 1px rgba(0, 139, 139, 0.2);
}
article session#project .project-list .project-item .link {
  font-size: 11px;
  display: none;
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  padding: 0.2em 1.5em;
  background-color: rgba(0, 139, 139, 0.1);
  border-right: solid 1px #00bebe;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
article session#project .project-list .project-item .link:hover {
  background-color: rgba(0, 139, 139, 0.8);
  border: solid 1px #00bebe;
}
article session#project .nav-box {
  display: flex;
  justify-content: end;
  margin: 1em;
}
article session#project .nav-box button {
  cursor: pointer;
  background-color: transparent;
  border: solid 1px currentColor;
  color: darkcyan;
  padding: 0.25em 1em;
}
article session#project .nav-box button:disabled {
  color: gray;
}
article session#project .nav-box .page-info {
  display: flex;
  font-family: var(--code-font);
  font-size: 11px;
}
article session#project .nav-box .page-info * {
  padding: 0.5em;
}
article session#project #github .loading {
  font-family: var(--code-font);
  font-size: 12px;
}
article session#project #gitlab .loading {
  font-family: var(--code-font);
  font-size: 12px;
}