html {
  scroll-behavior: smooth;
  
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Alata', sans-serif;
}

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

ul {
  list-style: none;
}

.large-header {
   position: relative;
   width: 100%;
   background: #111;
   overflow: hidden;
   background-size: cover;
   background-position: center center;
   z-index: 1;
}

.demo .large-header {
   background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/499416/demo-bg.jpg");
}

.main-title {
   
   position: absolute;
   margin: 0;
   padding: 0;
   color: #F9F1E9;
   text-align: center;
   top: 50%;
   left: 50%;
   -webkit-transform: translate3d(-50%, -50%, 0);
   transform: translate3d(-50%, -50%, 0);
}

.demo .main-title {
   text-transform: uppercase;
   font-size: 4.2rem;
   letter-spacing: 0.1rem;
}

.main-title .thin {
   font-weight: 200;
   font-size: 2rem;
}

@media only screen and (max-width: 768px) {
   .demo .main-title {
      font-size: 3rem;
   }
}

#navbar {
  padding: 0;
  margin: 0;
  display: flex;
  top: 0;
  background-color: #1a1a2e;
  position: fixed;
  z-index: 10;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

#leftbar {
  display: flex;
  width: 30%;
  font-size: 1.2rem;
  text-align: center;

}

.logo {
  display: block;
  margin: auto 0;
  margin-left: 10px;
  padding: 1vw;
  color: white;
}

#rightbar {
  /* background-color: yellow; */
  width: 80%;
  display: flex;
  justify-content: flex-end;
}

#navbar ul {
  padding: 0;
  margin: 0;
  display: flex;
  
}

#navbar li {
  padding: 0;
  color: white;
}

#navbar a {
  display: block;
  font-size: 1.2rem;
  padding: 1rem;
}

#welcome-section {
  flex-flow: column;
  height: 100vh;
  text-align: center;
  width:  100%;
  }

h1.welcome {
  font-size: 3rem;
}

p.welcome {
  margin-top: 10px;
  font-size: 1.4rem;
}

#projects {
  display: flex;
  width: 100%;
  background-color: #16213e;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
  
}

.bigtext {
  color: white;
  padding-top: 1rem;
  flex-basis: 100%;
  font-size: 2rem;
  text-align: center;
  margin: 0;
}

.project-tile {
  background-color: #293a5c;
  width: 27%;
  margin: 1rem 1rem ;
  height: 280px;
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.project-tile .textlink{
  display: inline-block;
  color: white;
  margin: auto;
}

.project-image {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 85%;
  overflow: hidden;

}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bigtext+p {
  padding: 0;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

#contacts{
  color: white;
  margin-top: 0px;
  background: #e94560;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);

}


#cbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.contact-details {
  margin: 1rem 20px;
  font-size: 1.5rem;
  text-align: center;
}



footer {
  color: white;
  padding: 1rem;
  text-align: center;
  background: #e94560;
  border-top: white solid 4px;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);

}

@media only screen and (max-width: 700px) {
  #projects {
    flex-flow: column;
  }

  .project-tile {
    width: 85%;
  }
}

@media only screen and (max-width: 500px) {
   #leftbar {
      font-size: 4vw;
   }

   #navbar a {
    font-size: 3.5vw;
   }

   #navbar {
     flex-direction: column;
   }

   #leftbar{
     justify-content: center;
     margin: auto;
   }

   .logo{
     margin-left: 0px;
   }

   #rightbar{
    justify-content: center;
    margin: auto;
  }
}

@media(hover: hover) and (pointer: fine) {
    #navbar a:hover {
        background: white;
        color: black;
    }
    .hvr-grow {
        display: inline-block;
        vertical-align: middle;
        -webkit-transform: perspective(1px) translateZ(0);
        transform: perspective(1px) translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: transform;
        transition-property: transform;
    }
    .hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
}