body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 34px;
  color: #777777;
  background: url('../images/main2.jpeg');
  background-size: cover;
}
.card {
  text-align: center;
}
.flip-card {
  background-color: transparent;
  width: 350px;
  height: 240px;
  perspective: 1000px;
  display: inline-block;
  margin: 2%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}
.skill {
  text-align: center;
}
.skills {
  background: rgb(18, 24, 83);
  align-content: center;
  display: inline-block;
  width: 15%;
  height: 300px;
  text-align: center;
  margin: 2%;
}
.skills:hover {
  -ms-transform: scale(1.5); /* IE 9 */
  -webkit-transform: scale(1.5); /* Safari 3-8 */
  transform: scale(1.1); 
}
.view-project {
  color:white;
  padding: 25px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: .3s;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
}
.view-project-button:hover {
  background: rgb(102, 89, 145);
}
@import url('https://fonts.googleapis.com/css?family=DM+Sans:500,700&display=swap');

* {
  box-sizing: border-box;
}

.nav {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background-color: #fff;
  padding: 0 20px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(159, 162, 177, .8);
}

.nav-item {
  color: #83818c;
  padding: 15px;
  text-decoration: none;
  transition: .3s;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  opacity: 1;
  bottom: 0;
  background-color: rgb(233, 230, 230);
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  transition: .4s;
  height: 5px;
  z-index: 1;
  border-radius: 8px 8px 0 0;
}
.button {
  background: #2980b9;
  border-radius: 25px;
  padding: 5px;
}
.portfolio {
  color: white;
  padding: 25px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: .3s;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
}
.portfolio:hover{
  color:  #2980b9;
}
.button:hover {
background: white;
}

.connect:hover{
opacity: .7;
cursor: pointer;
}

.view-project-button {
  background: rgb(18, 24, 83);
  border-radius: 25px;
  padding: 5px;
}
@media (max-width: 580px) {
  .nav { overflow: auto; }
}
/* general */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  clear: both;
}

h1,
h2,
h3,
p {
  margin-bottom: 20px;
  font-family: 'Oswald', sans-serif;
  color: white;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, Times, "Times New Roman", serif;
  font-weight: 700;
  color: white;
  font-family: 'Fjalla One', sans-serif;
}

h1 {
  padding-bottom: 20px;
  font-size: 30px;
  line-height: 49px;
  border-bottom: 3px solid #dddddd;
}

h2,
h3 {
  font-size: 22px;
}

/* header */

#masthead {
  position: fixed;
  z-index: 99;
  width: 100%;
  margin: 0 0 30px;
  overflow: auto;
  color: #ffffff;
  background: #ffffff;
  border-bottom: 2px solid #cccccc;
}

#logo {
  float: left;
}

nav {
  float: right;
  margin-top: 25px;
}

nav a {
  display: inline-block;
  padding-left: 15px;
  margin-left: 15px;
  line-height: 18px;
  color: #999;
  text-decoration: none;
  border-left: 1px solid #efefef;
}

nav a:first-child {
  border-left: 0 none;
}

/* footer */

footer {
  padding-top: 20px;
  clear: both;
  font-size: 15px;
  color: #ffffff;
  color: #cccccc;
  text-align: center;
  background: #666666;
  border-top: 8px solid #4aaaa5;
  
}

h3, h2 {
  padding-bottom: 20px;
  margin-bottom: 15px;
  line-height: 22px;
  border-bottom: 2px solid #eeeeee;
}

/* main */

#main-container {
  padding-top: 130px;
  min-height: calc(100vh - 70px);
}

.main-section {
  float: left;
  width: 100%;
  max-width: 960px;
  padding: 30px;
  margin: 0 0 40px;
  background: #ffffff;
  border: 1px solid #dddddd;
}

/* portfolio page */

.work {
  position: relative;
  float: left;
  width: 274px;
  margin: 20px 0 25px 100px;
  overflow: auto;
}

.work:nth-child(even) {
  margin-right: 40px;
}

.work img {
  width: 100%;
  border: 0 none;
  opacity: 0.8;
}

.work h3 {
  position: absolute;
  bottom: 20px;
  width: 100%;
  padding: 15px;
  margin-bottom: 0;
  font-weight: 300;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  background: #4aaaa5;
  border-bottom: 0;
}

.auth-image {
  width: 200px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  display: block;
}

/* contact page */

#contact-form ul {
  margin-bottom: 20px;
}

#contact-form li {
  margin-bottom: 10px;
}

label,
input[type=text],
input[type=email],
textarea {
  display: block;
  width: 100%;
}

input[type=text],
input[type=email],
textarea {
  height: 35px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #dddddd;
}

textarea {
  height: 200px;
}

input[type=submit] {
  padding: 10px 30px;
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  background: #4aaaa5;
  border: 0 none;
}

@media screen and (max-width:768px) {
  #main-container {
    width: 100%; 
    margin: -10px 20px 10px 50px;

  }
  #logo {
    margin: 0px 0px 0px 50px;
  }
  p {
      font-size: 18px;
      line-height: 22px;
      width: 500px;
      margin-left: 15px;
      margin-top: 15px;
      padding-right: 15px;
      
  }
  
  h2 {
    font-size: 20px;
    margin-left: -140px;

  }
  nav {
    margin: 30px 40px 0px 10px;
    padding-bottom: 10px;
  }
  .work {
    width: 220px;
  }
  .auth-image {
    width: 33%;
  }

}


@media screen and (max-width:768px) {
  #main-container {
    width: 680px; 
    margin: -10px 20px 10px 20px;

  }
  #logo {
    margin: 0px 0px 0px 20px;
  }
  p {
      font-size: 18px;
      line-height: 25px;
      width: 600px;
      margin-left: 15px;
      margin-top: 15px;
  }
  
  h2 {
    font-size: 20px;
    margin-left: -140px;
    margin-top: -30px;
  }
  nav {
    margin: 30px 40px 0 10px;
    padding-bottom: 10px;
  }
  .work {
    width: 287px;
  }
  .auth-image {
    margin-top: 5px;
    width: 50%;
  }

}
  
@media screen and (max-width:640px) {
  #main-container {
    width: 550px; 
    margin: -10px 0px 10px 20px;
    padding-top: 180px;

  }
  p {
      font-size: 16px;
      line-height: 25px;
      width: 100%;
      margin-left: 15px;
      margin-top: 15px;
  }
  #logo {
    width: 100%;
    margin: 0px 100px 0px -20px;
  }
  
  h2 {
    font-size: 20px;
    margin-left: -140px;
    margin-top: -30px;
  }
  nav {
    float: left;
    margin: 25px 100px 0 125px;
    padding-bottom: 10px;
  }
  .work {
    width: 490px;
  }

  .auth-image {
    width: 100%;
    padding-bottom: 30px;
  }
 
}
