/*
0 - 600px:      Phone
600 - 900px:    Tablet portrait
900 - 1200px:   Tablet landscape
[1200 - 1800] is where our normal styles apply
1800px + :      Big desktop

$breakpoint arguement choices:
- phone
- tab-port
- tab-land
- big-desktop

ORDER: Base + typography > general layout + grid > page layout > components

1em = 16px
*/
@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem); }
  80% {
    transform: translateX(1rem); }
  100% {
    opacity: 1;
    transform: translate(0); } }

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem); }
  80% {
    transform: translateX(-1rem); }
  100% {
    opacity: 1;
    transform: translate(0); } }

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(3rem); }
  100% {
    opacity: 1;
    transform: translate(0); } }

@keyframes yoyo {
  25% {
    transform: translateY(0);
    opacity: 1; }
  50% {
    transform: translateY(50px);
    opacity: 0; }
  50% {
    transform: translateY(0);
    opacity: 1; }
  100% {
    transform: translateY(50px);
    opacity: 0; } }

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit; }

html {
  font-size: 62.5%; }
  @media only screen and (max-width: 75em) {
    html {
      font-size: 56.25%; } }
  @media only screen and (min-width: 112.5em) {
    html {
      font-size: 75%; } }

body {
  box-sizing: border-box;
  max-width: 1700px;
  margin: 0 auto; }

img {
  max-width: 100%;
  height: auto; }

a {
  color: #2ecc71;
  text-decoration: none; }
  a:hover {
    border: none;
    background: linear-gradient(90deg, #8e44ad, #f1c40f);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; }

body {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.7;
  color: #777; }

h1,
h2 {
  font-family: Lato, sans-serif; }

.heading-primary {
  color: #fff;
  text-transform: uppercase;
  backface-visibility: hidden;
  margin-bottom: 6rem; }
  .heading-primary--main {
    display: block;
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: 3.5rem;
    animation-name: moveInLeft;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    /*
        animation-delay: 3s;
        animation-iteration-count: 3;
        */ }
    @media only screen and (max-width: 37.5em) {
      .heading-primary--main {
        letter-spacing: 1rem;
        font-family: 5rem; } }
  .heading-primary--sub {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1.75rem;
    animation: moveInRight 1s ease-out; }
    @media only screen and (max-width: 37.5em) {
      .heading-primary--sub {
        letter-spacing: 0.5rem; } }

.heading-tertiary {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase; }

p:not(:last-child) {
  margin-bottom: 3rem; }

.u-center-text {
  text-align: center !important; }

.u-margin-bottom-small {
  margin-bottom: 1.5rem !important; }

.u-margin-bottom-medium {
  margin-bottom: 4rem !important; }
  @media only screen and (max-width: 56.25em) {
    .u-margin-bottom-medium {
      margin-bottom: 3rem !important; } }

.u-margin-bottom-big {
  margin-bottom: 8rem !important; }
  @media only screen and (max-width: 56.25em) {
    .u-margin-bottom-big {
      margin-bottom: 5rem !important; } }

.u-margin-top-big {
  margin-top: 8rem !important; }

.u-margin-top-huge {
  margin-top: 10rem !important; }

.footer {
  display: flex;
  justify-content: center;
  padding: 5rem 0 1rem;
  font-size: 1.4rem;
  color: #999; }
  .footer__logo-box {
    text-align: center;
    margin-bottom: 8rem; }
    @media only screen and (max-width: 56.25em) {
      .footer__logo-box {
        margin-bottom: 6rem; } }
  .footer__logo {
    width: 15rem;
    height: auto; }
  .footer__navigation {
    border-top: 1px solid #777;
    padding-top: 2rem;
    display: inline-block; }
    @media only screen and (max-width: 56.25em) {
      .footer__navigation {
        width: 100%;
        text-align: center; } }
  .footer__list {
    list-style: none; }
  .footer__item {
    display: inline-block; }
    .footer__item:not(:last-child) {
      margin-right: 1.5rem; }
  .footer__link:link, .footer__link:visited {
    color: #f7f7f7;
    background-color: #333;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.2s; }
  .footer__link:hover, .footer__link:active {
    color: #8e44ad;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    transform: rotate(5deg) scale(1.3); }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  margin-bottom: 3rem; }
  .header__logo {
    width: 8rem;
    height: auto;
    border-radius: 50%; }
    .header__logo-box {
      display: flex;
      align-items: center; }
  .header__domain {
    padding-left: 1.5rem;
    font-size: 2.1rem;
    line-height: 1.8rem;
    text-align: center; }
  .header__dot {
    color: #8e44ad;
    font-size: 4rem; }
  .header__menu {
    display: flex;
    align-items: center;
    padding: 0 3rem 0 2rem;
    font-size: 1.4rem;
    text-transform: uppercase; }

.posts-list {
  max-width: 600px;
  margin: 0 auto; }

.post-l {
  padding-bottom: 3rem;
  margin-bottom: 5rem;
  border-bottom: 1px dashed #f1c40f; }
  .post-l__info {
    padding: 0 4rem; }
  .post-l__header {
    margin-bottom: 2rem; }
  .post-l__title {
    color: #8e44ad;
    font-size: 2.4rem; }
  .post-l__published {
    position: relative;
    font-family: "Lato", serif;
    font-size: 1.2rem; }
    .post-l__published::before {
      content: "";
      display: inline-block;
      width: 20px;
      border-top: 1px solid;
      margin-right: 5px;
      vertical-align: middle; }
  .post-l__excerpt {
    margin-bottom: 3rem; }
  .post-l__more {
    color: #8e44ad;
    font-family: Lato, sans-serif; }
  .post-l__more-icon::before {
    display: inline-block;
    position: relative;
    top: 1px;
    margin-left: 3px;
    color: #2ecc71; }

.section-about {
  display: flex;
  margin-top: -3rem;
  overflow: hidden; }
  @media only screen and (max-width: 56.25em) {
    .section-about {
      flex-direction: column; } }

.cover-letter {
  max-width: 60rem;
  margin: 0 auto 4rem; }
  .cover-letter-container {
    width: 50vw;
    padding: 6rem 6rem 4rem 3rem;
    background-color: #000;
    color: #fff; }
    @media only screen and (max-width: 56.25em) {
      .cover-letter-container {
        width: 100vw; } }

.contact-me {
  display: flex;
  justify-content: flex-end;
  font-size: 1.8rem; }
  .contact-me__icon-box:not(:last-child) {
    margin-right: 4rem; }
  .contact-me__icon {
    margin-right: 4px; }

.slider {
  height: 100%;
  margin: 3rem 2rem 0;
  color: #000;
  font-family: Lato, sans-serif;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: right; }
  @media only screen and (max-width: 37.5em) {
    .slider {
      font-size: 6rem; } }
  .slider__item {
    transform: translateY(50px);
    opacity: 0;
    animation-name: yoyo;
    animation-duration: 3.5s;
    animation-timing-function: cubic-bezier(0.74, -0.6, 0.55, 1.69);
    animation-iteration-count: infinite; }
  .slider__item, .slider__item2, .slider__item3 {
    position: absolute;
    right: 0;
    display: none; }
  .slider .slide-active {
    display: block; }
  .slider__dot {
    color: #27ae60; }
  .slider-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 50vw;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='360' height='15'><text x='5' y='10' fill='grey' font-size='12' font-family='Noto Sans, sans-serif'>CSS3, HTML5, Javascript, React.js, Node.js, PHP, SQL, MongoDB,</text></svg>"); }
    @media only screen and (max-width: 56.25em) {
      .slider-container {
        width: 100vw;
        height: 150px; } }

.post {
  max-width: 96rem;
  padding: 0 4rem;
  margin: 0 auto 6rem; }
  .post__published {
    position: relative;
    font-family: "Lato", serif;
    font-size: 1.2rem; }
    .post__published::before {
      content: "";
      display: inline-block;
      width: 20px;
      border-top: 1px solid;
      margin-right: 5px;
      vertical-align: middle; }
  .post__title {
    margin-bottom: 4rem;
    color: #8e44ad;
    font-size: 4rem;
    line-height: 1.4; }
  .post__content {
    max-width: 600px;
    margin: 0 auto;
    color: #000; }
  .post__footer {
    max-width: 250px;
    margin: 0 auto;
    font-size: 1.3rem;
    text-align: center; }
    .post__footer-title {
      font-style: italic;
      font-weight: 700; }
  .post__share {
    position: relative;
    display: inline-block;
    margin: 14rem 0 4rem;
    z-index: 1; }
    .post__share::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: inline-block;
      width: 11rem;
      height: 11rem;
      border: 2px solid #8e44ad;
      border-radius: 50%;
      z-index: -1; }
    .post__share-list {
      list-style: none; }
    .post__share-item {
      font-size: 1.5rem; }
  .post__tags-list {
    margin-top: 1rem;
    list-style: none; }
  .post__tags-item {
    display: inline-block;
    font-size: 1.5rem; }
    .post__tags-item a {
      padding: 5px 10px;
      margin-right: 10px;
      text-decoration: none;
      border: 1px dashed #8e44ad; }
