@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Inter:wght@100..900&family=Italiana&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Quicksand:wght@300..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html {
  scroll-snap-type: y mandatory;
  	font-family: "Open Sans", sans-serif;
}

header {
  top: 0;
  margin: 0;
  position: sticky;
  z-index: 1;
}

nav {
  background: white;
  width: 80%;
  padding: 0 10%;
  position: sticky;
  display: flex;
  justify-content: space-between;
}

nav ul {
  float: right;
  margin-right: 20px;
}
nav ul li {
  display: inline-block;
  line-height: 60px;
  margin: 0 5px;
}
nav ul li a {
  text-decoration: none;
  color: black;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
}

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

#dhtmltooltip{
  position: absolute;
  width: 150px;
  border: 1px solid black;
  padding: 2px;
  background-color: lightyellow;
  visibility: hidden;
  z-index: 100;
  font-family: Arial; 
  font-size: 11px; 
}

.container {
  position: relative;
  width: 100%;
  padding-top: 12vh; 
  overflow: hidden;
}

.hover-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  width: 90%;
  margin-top: 7%;
  padding: 5vh 5% 0 5%;
  display: none;
  transition: .5s ease;
  background-color: #E3E3FF;
}

.checkbtn {
  font-size: 22px;
  color: #0000ff;
  float: right;
  line-height: 80px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

.logo-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 0.5rem;
}

.logo-placeholder h1 {
	animation-name: bounceInLeft;
 	animation-duration: 2s;
}

.logo-placeholder img {
	height: 6vh;
	max-width: 170px;
	animation-name: bounceInRight;
 	animation-duration: 2s;
  padding-top: 10%;
}

.banner {

  width: 100%;
}

article {
	height: 100vh;
	padding: 0 10%;
	scroll-snap-align: start;
  scroll-snap-stop: always;
}

article h1 {
	font-size: 2rem;
	padding-top: 14vh;
	font-weight: normal;
}

article p {
	font-size: 1rem;
}

.title {
  font-weight: 300;
  font-size: 2rem;
}

article h3 {
  font-weight: 400;
  font-size: 1.5rem;
}

.card {
	margin-top: 5%; 
	display: flex;
}
 
.second-image {
  width: 20rem;
  padding-top: 0;
  margin-top: -6vh; 
  margin-left: -1rem;
}

.card .image {
	width: 10rem;
  z-index: 0;
  padding-top: 20%;
}


.card div {
	padding: 0 2%;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  margin-top: 5vh;
  float: left;
  margin-left: 10%;
  margin-right: 10%;
}

.portfolio-card div {
  height: 20vh;
  display: flex;
  justify-content: center;
}

.projects {
  display: none;
  height: 70vh;
  overflow: scroll;
  grid-template-columns: auto auto auto;
  padding: 10px;
}

.portfolio-card img{
  max-width: 100%;
  max-height: 100%;
  display: block; 
  margin: auto; 
}

.projects-image {
  margin-top: -1vh;
  max-height: 75vh;
  max-width: 100%;
}


@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-2000px);
  }
  60% {
    transform: translateX(20px);
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translateX(2000px);
  }
  60% {
    transform: translateX(-20px);
  }
  80% {
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-up {
  transform: translateY(100px);
}

.animate-on-scroll.animated {
  animation: enter-animation 0.8s forwards;
}

.bounceInRight.animated {
  animation-name: bounceInRight;
  animation-duration: 2s;
}
.bounceInLeft.animated {
  animation-name: bounceInLeft;
  animation-duration: 2s;
}

.fadeInUp.animated {
  animation-name: fadeInUp;
  animation-duration: 2s;
}

@media (max-width: 1050px) {
  nav ul li a {
    font-size: 16px;
  }
}

@media (max-width: 890px) {

  html {
      scroll-snap-type: none;
  }

  .container {
    padding-top: 1vh;
    overflow: visible;
  }

  .hover-text {
    height: 80vh;
    padding-top: 0;
    margin-top: 0;
  }

  .container:hover .hover-text {
    display: block;
  }

  .checkbtn {
    display: block;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 40vh;
    background: white;
    padding-top: 20px;
    top: 75px;
    left: -100%;
    text-align: center;
    transition: all .5s;
    padding-left: 0;
  }
  nav ul li {
    display: block;
    margin: 14px 0;
    line-height: 30px;
  }
  nav ul li a {
    font-size: 15px;
  }
  
  #check:checked~ul {
    left: 0;
  }

  .title {
    font-size: 1.8rem;
  }

  article h1 {
    font-size: 1.5rem;
  }

  .card {
    flex-direction: column;
    padding: 15% 0;
  }

  .card .image{
    padding: 0;
  }

  article h3 {
    font-size: 1.2rem;
  }

  .about {
    height: 250vh;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .projects-image {
    display: none;
    max-width: 18rem;
  }
  .projects
  {
    display: grid;
  }

}