* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

@font-face {
  font-family: "SourceCodePro";
  src: url("../font/SourceCodePro-Regular.ttf");
}

body {
  background: url(../img/bg.png) no-repeat;
  background-size: cover;
  font-family: "SourceCodePro";
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  animation: move 400ms ease-in 1;
}

.main .theme {
  color: #5d5fef;
  font-weight: bold;
  font-size: 28px;
}

@keyframes move {
  from {
    transform: translateX(100px);
  }
  to {
    transform: translateX(0);
  }
}

@media screen and (min-width: 769px) {
  .nav {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100vh;
    position: absolute;
    left: 0;
    padding-left: 13.5vw;
    color: #fff;
  }
  .nav .title {
    font-size: 32px;
  }
  .nav a {
    font-size: 20px;
    cursor: pointer;
    animation: move-top 400ms ease-in 1;
  }
  .nav a:hover {
    color: #ffe2f7;
  }
  .nav .title:hover {
    color: #fff;
  }
  @keyframes move-top {
    from {
      transform: translateY(50px);
    }
    to {
      transform: translateY(0);
    }
  }
  .main {
    padding-left: 13.5vw;
  }
}

@media screen and (max-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 28px;
  }
  .nav .title {
    font-size: 28px;
  }
  .nav a {
    font-size: 18px;
    cursor: pointer;
    animation: move-top 400ms ease-in 1;
    margin-left: 28px;
  }
  .nav a:nth-of-type(2) {
    margin-left: 200px;
  }
  .nav a:hover {
    color: #ffe2f7;
  }
  .nav .title:hover {
    color: #fff;
  }
  @keyframes move-top {
    from {
      transform: translateY(50px);
    }
    to {
      transform: translateY(0);
    }
  }
}
