:root {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  --text-primary: #141418;
  --text-secondary: #23232e;
  --bg-primary: #fff;
  --bg-secondary: #f3f3f3;
}

body{
  margin:0;
  padding: 0;
  color: var(--text-primary);
  background: var(--bg-primary);
}
body,html {
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}
*:focus{
  outline:none;
} 

body::-webkit-scrollbar{
  width: 0.4em;
}

body::-webkit-scrollbar-track{
  background: var(--bg-secondary);
}

body::-webkit-scrollbar-thumb{
  background: rgb(77, 83, 161);
}
main {
  margin-left: 19.5rem;
  padding: 1rem;
}
.h1-big{
  font-size: 2.2rem;
  margin: 0 0 1rem 0;
}
.main-bg{
  height:100vh;
  background-image: url('../img/main.png');
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-container {
  text-align: center; color:white;
}
.main-container h1{
  font-size:5rem; margin: 0 0 1rem 0;
}
.main-container h3{
  font-size:2rem; font-weight:400; margin: 1rem 0 0 0;
}
.navbar{
  position: fixed;
  background: var(--bg-primary);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  z-index: 1000;
  transition: 200ms ease;
}


.navbar .title{
  text-align: center;
  font-size: 2.5rem;
  text-decoration: none;
  margin: 1.2rem 0 3rem 0;
}
.navbar-nav{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height:100%;
}
.nav-link{
  display:flex;
  align-items: center;
  height: 2.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: 200ms ease;
}
.nav-link:hover{
  color: #a7a7a7;
}
.nav-link .active{
  color: #a7a7a7;
}

.item {
  margin: 1rem;
  width: 20%;
}
/*
.item img{
  width: 30rem;
  height: 22rem;
}
*/
.item img{
  width: 100%;
  height: auto;
}

.item p {
  margin: 0;
}
footer{
  display:none;
}
.portfolios{
  display:flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  flex-wrap: wrap;
}
.portfolios a{
  text-decoration: none;
  color: black;
}

@media only screen and (min-width: 1100px){
  .navbar {
    width: 19.5rem;
    height: 100vh;
  }
}

/*작은 스크린*/
@media only screen and (max-width: 1100px){
  footer{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 3rem;
    z-index: 9999;
    text-align: center;
    background-color: rgba(255,255,255, 0.2);
  }
  .small{
    display: none;
  }
  .medium {
    display: block;
  }
  main{
    margin: 4.5rem 0 0 0;
  }
  .h1-fixed{
    top: 4.5rem;
  }
  .navbar{
    top:0;
    width: 100vw;
    height: 4.5rem;
  }
  .navbar-nav {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    font-size: 1.5rem
  }

  .nav-link{
    justify-content: center;
  }

  .navbar .title{
    text-align: left;
    margin: 0;
    padding: 0;
    font-size:1.5rem;
  }
  .main-container h1{
    font-size:3rem; margin: 0 0 1rem 0;
  }
  .main-container h3{
    font-size:1.5rem; font-weight:400; margin: 1rem 0 0 0;
  }
  .pconly{
    display:none;
  }
  .item {
    margin: 0.5rem;
    width: 45%;
  }
}
@media only screen and (max-width: 768px){
  footer{
    height: 5rem;
    padding:1rem;
  }
  .small{
    display: block;
  }
  .medium {
    display: none;
  }
  .mask{
    display:none;
  }
  .item {
    margin: 0.5rem;
    width: 100%;
  }
  .item img{
    width: 25rem;
    height: 21rem;
  }
  .pconly{
    display:none;
  }
}
