/* font including */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500;700&display=swap');

/* Master Styles */
*{
  margin: 0;
  border: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans TC', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
}

.title-wrapper {
  text-align: center;
}

.title-wrapper h1{
  padding-top: 100px;
  margin: 0px auto;
  font-size: 300%;
  width: 50vw;
  color: white;
  border-bottom: 2px solid red;
}

.title-wrapper h2{
  margin: 0px auto;
  font-size: 130%;
  color: white;
  padding-bottom: 30px;
}

/* new responsive nav bar */
.header {
  background-color: rgba(0,0,0,0.5);
  position: fixed;
  width: 100%;
  z-index: 3;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  text-transform: uppercase;
}

.header li a {
  display: block;
  padding: 20px 20px;
  text-decoration: none;
  color: white;
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: rgba(255,255,255,0.5);
}

.header .logo {
  color: white;
  display: block;
  float: left;
  font-size: 200%;
  padding: 10px 20px;
  text-decoration: none;
}

/* menu */

.header .menu {
  text-align: right;
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: white;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: white;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* frontpage styles */
.banner {
  width: 100%;
  height: 100vh;
  background: url("../img/cover.jpg") center/cover fixed no-repeat;
}

.banner-box {
  display: inline-block;
  width: 30vw;
  background-color: #ffffff;
  opacity: 0.6;
  position: relative;
  top: 40vh;
  left: 10vw;
  padding: 20px;
}

.banner-big {
  color: #533;
  font-size: 400%;
  font-weight: 700;
}

.banner-small {
  color: #533;
  font-size: 200%;
  font-weight: 700;
}

/* projects and blogs styles */
.projects,
.blogs {
  width: 100%;
  min-height: 100vh;
  background: url("../img/cover.jpg") rgba(0,0,0,0.7) center/cover fixed no-repeat;
  background-blend-mode: multiply;
}

.projects-items-wrapper,
.blogs-items-wrapper {
  margin: 0px auto;
  width: 70vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr
}

.projects-item-wrapper,
.blogs-item-wrapper {
  position: relative;
  padding: 1.5vw;
}

.project-img-background,
.blogs-img-background {
  transition: all 0.7s;
  width: 100%;
  height: 30vh;
  background: center/cover no-repeat;
}

.project-logo a,
.blogs-logo a {
  font-size: 130%;
  color: #8a8a8a;
  text-decoration: none;
}

.img-text-wrapper {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding-left: 15%;
  padding-right: 20%;
}

.subtitle {
  font-weight: 700;
  transition: all 0.7s;
}

.projects-item-wrapper:hover,
.blogs-item-wrapper:hover .subtitle {
  color: #6291c5;
}

.projects-item-wrapper:hover .project-img-background,
.blogs-item-wrapper:hover .blogs-img-background {
  background: rgba(0,0,0,0.7) center/cover no-repeat;
  background-blend-mode: multiply;
}

/* selection sytles */

::-moz-selection {
  background: #000;
  color: #fff; }

::selection {
  background: #000;
  color: #fff; }

/* device styles */
@media screen and (min-width: 770px) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
}


:root {
  --mobile-screen-move: 50% /*-300px*/;
}

@media screen and (max-width: 770px) {


.nav-wrapper {
  display: none;
}

.banner-box {
  width: 60vw;
  position: relative;
  top: 30vh;
}

.banner-big {
  color: #533;
  font-size: 200%;
  font-weight: 500;
}

.banner-small {
  color: #533;
  font-size: 100%;
  font-weight: 500;
}

.projects-items-wrapper,
.blogs-items-wrapper {
  margin: 0px auto;
  width: 70vw;
  display: grid;
  grid-template-columns: 1fr
}

.banner {
  background: url("../img/cover.jpg") cover fixed no-repeat;
  background-position: var(--mobile-screen-move);
}

.projects,
.blogs {
  background: url("../img/cover.jpg") rgba(0,0,0,0.7) cover fixed no-repeat;
  background-position: var(--mobile-screen-move);
}

/* need JS to do the 'activate depends on scroll condition' */
.project-logo,
.blogs-logo {
  color: white;

}

.subtitle {
  font-size: 120%;
  color: #6291c5;
  font-weight: 700;
}

.project-img-background,
.blogs-img-background {
  height: 50vh;
  margin-bottom: 10vh;
  background: rgba(0,0,0,0.7) center/cover no-repeat;
  background-blend-mode: multiply;
}
}
