body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
  height: 100%;
  color: rgb(67, 67, 67);
  line-height: 1.8;
}

.w3-top {
    background-color: white;
}

.logo {
    width: 60px;
    padding-right: 10px;
}

.logo2 {
    width: 90px;
}

.skill-holder {
  border-radius: 20px;
}

.skills {
  border-radius: 20px;
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* First image (Logo. Full height) */
.bgimg-1 {
  background-image: url('../images/one.jpg');
  min-height: 100%;
}

/* Second image (Portfolio) */
.bgimg-2 {
  background-image: url("../images/one.jpg");
  min-height: 400px;
}

/* Third image (Contact) */
.bgimg-3 {
  background-image: url("../images/one.jpg");
  min-height: 400px;
}

.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}

.w3-display-middle {
  background-color: black;
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.card {
  width: 500px;
  height: 350px;
  margin: 1em;
  perspective: 1500px;
}
.card .content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}
.more {
  display: none;
}
.more:checked ~ .content {
  transform: rotateY(180deg);
}
.front, .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  border-radius: 6px;
}
.front .inner, .back .inner {
  height: 100%;
  display: grid;
  padding: 1.5em;
  transform: translateZ(80px) scale(0.94);
}
.front {
  background-color: rgb(133, 133, 133);
  background-size: cover;
  background-position: center center;
}
.front:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(40deg, rgba(0, 0, 0, 0.7), rgba(179, 179, 179, 0.702));
}
.front .inner {
  grid-template-rows: 5fr 1fr 1fr 2fr 1fr;
  justify-items: center;
}
.front h2 {
  grid-row: 2;
  margin-bottom: 0.3em;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.front .technology {
  grid-row: 3;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  flex-flow: row nowrap;
}

.back {
  transform: rotateY(180deg);
  /* backface-visibility: hidden; */
  background-color: #fff;
  border: 2px solid rgb(67, 67, 67);
}
.back .inner {
  grid-template-rows: 1fr 2fr 1fr 2fr 14fr 1fr 1fr;
  grid-template-columns: repeat(4, auto);
  justify-items: center;
}
.back .info {
  position: relative;
  display: flex;
  align-items: center;
  color: rgb(67, 67, 67);
  grid-row: 4;
}

.back .description {
  border-color: rgb(67, 67, 67);
  grid-row: 5;
  grid-column: 1/-1;
  font-size: 1em;
  border-radius: 5px;
  font-weight: 600;
  line-height: 1.4em;
  overflow: auto;
  color: rgb(67, 67, 67);
  padding-right: 10px;
}

.back .project-title {
  font-size: 1.5em;
  grid-column: 1/3;
  justify-self: left;
}

.back .button {
  grid-row: -9;
  grid-column: 4/-1;
  justify-self: center;
}  

.back .demo {
  grid-row: -1;
  grid-column: 4/-5;
  justify-self: center;
}

.back .code {
  grid-row: -1;
  grid-column: 4/-3;
  justify-self: center;
}

.button {
  grid-row: -1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1.5em;
  height: 3em;
  line-height: 2.9em;
  min-width: 3em;
  background-color: transparent;
  border: solid 2px #fff;
  color: #fff;
  border-radius: 4px;
  transition: 0.3s ease-in-out;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.button:hover {
  background-color: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  text-shadow: none;
  color: rgb(67, 67, 67);
}

.button.demo, .button.code {
  line-height: 3em;
  color: rgb(67, 67, 67);
  border-color: rgb(67, 67, 67);
  text-shadow: none;
}

.return {
  line-height: 3em;
  color: rgb(67, 67, 67);
  border-color: rgb(0, 0, 0);
  text-shadow: none;
}

.button.return:hover, .button.code:hover, .button.demo:hover {
  background-color: rgb(67, 67, 67);
  color: #fff;
  box-shadow: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #c3c3c3;
}

::-webkit-scrollbar-thumb {
  background: #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(67, 67, 67);
}

@media (max-width: 480px) {
  .back .demo {
    grid-row: -1;
    grid-column: -4;
    justify-self: center;
  }

  .back .code {
    grid-row: -1;
    grid-column: -3/10;
    justify-self: center;
  }

}

@media (max-width: 480px) {
  .wrapper {
    padding-top: 20%;
  }
}


/* Popup container - can be anything you want */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

.new-project {
position: absolute;
top: 20px;
right: -40px;
background-color: #fff;
height: 22px;
transform: rotate(45deg);
font-size: 20px;
width: 160px;
height: 40px;
text-align: center;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* RESUME SKILLS */
/* .skills-start {
  border-radius: 10px 0 0 10px;
}

.w3-cell-bottom {
  border-radius: 0 10px 10px 0;
}

.w3-cell {
  border-spacing: 15px;
  font-size: small;
  font-style: italic;
} */

.viewmore {
  background-color: #a2a2a2;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  font-size: 16px;
  background-color: rgb(101, 101, 101);
}

.viewmore span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.viewmore span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.viewmore:hover span {
  padding-right: 25px;
}

.viewmore:hover span:after {
  opacity: 1;
  right: 0;
}