@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

/* Base styles */

body{
  background: #7f345c;
  margin: 0;
}

.container {
  height: 100vh;
  max-height: 800px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.border {
  height: 410px;
  width: 310px;
  background: transparent;
  border-radius: 10px;
  transition: border 1s;
  position: relative;
}

.border:hover {
  border: 1px solid #7f345c;
}

.card {
  height: 425px;
  width: 325px;
  background: #7f345c;
  border-radius: 10px;
  transition: background 0.8s;
  overflow: hidden;
  background: #7f345c;
  box-shadow: 0 70px 63px -60px #7f345c;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card0 {
  background: url("me.png") center center no-repeat;
  background-size: 369px;
}

.card0:hover {
  background: url("me.png") left center no-repeat;
  background-size: 600px;
}

.card0:hover h2 {
  opacity: 1;
}

.card0:hover .fab {
  opacity: 1;
}

h2 {
  font-family: Merienda, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  margin: 125px 0 0 15px;
  opacity: 0;
  transition: opacity 1s;
  text-shadow: 6px 2px 11px #7B7974;
}

.fab {
  opacity: 0;
  transition: opacity 0.30s;
}

.icons {
  position: absolute;
  fill: #fff;
  color: #fff;
  height: 375px;
  top: 200px;
  margin-left: 125px;
  width: 175px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

a {
  color: #fff;
}

/* Media queries */

@media only screen and (min-width: 600px) and (max-width: 1024px) {
  .container {
    max-height: 600px;
    max-width: 800px;
    min-height: 400px;
    min-width: 600px;
  }

  .border {
    height: 300px;
    width: 225px;
  }

  .card {
    height: 315px;
    width: 240px;
  }

  .card0 {
    background-size: 275px;
  }

  .card0:hover {
    background-size: 525px;
  }

  .card0:hover h2 {
    margin-top: 120px;
  }

  h2 {
    margin: 120px 0 0 15px;
    font-size: 23px;
  }

  .icons {
    height: 160px;
    width: 150px;
    margin-left: 70px;
  }
}



/* For screens smaller than 600px (mobile) */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    max-width: 100%;
    height: auto;
    min-height: 600px;
    justify-content: center;
    align-items: center;
  }
  .border {
    height: 300px;
    width: 220px;
  }
  .card {
    height: 315px;
    width: 225px;
  }
  .card0 {
    background-size: 230px;
  }
  h2 {
    margin: 70px 0 0 15px;
  }
  .icons {
    height: 250px;
    top: 145px;
    margin-left: 75px;
    width: 125px;
  }
}


/* For screens smaller than 600px (mobile) */
@media only screen and (min-width: 100px) and (max-width: 600px) {
  .container {
    flex-direction: column;
    max-width: 100%;
    height: auto;
    min-height: 600px;
    justify-content: center;
    align-content: center;
  }
  .border {
    height: 309px;
    width: 220px;
  }
  .card {
    height: 315px;
    width: 225px;
  }
  .card0 {
    background-size: 275px;
  }
  h2 {
    margin: 70px 0 0 15px;
  }
  .icons {
    height: 285px;
    top: 145px;
    margin-left: 60px;
    width: 150px;
  }
}

