@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
  margin: 0;
  padding: 0;
}
:root {
  font-size: 18px;
  --colorGreen: #00a448;
  --colorBlue: #0d468f;
  --colorRed: #e73233; 
  --colorYellow: #f69f21;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  grid-template-rows: 300px 300px 300px;
}
@media only screen and (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (min-width: 1200px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media only screen and (min-width: 1440px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.box {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 300px;
  height: 200px;
  border-radius: 6px;
  box-shadow: 4px 8px 16px rgba(0,0,0,0.1);
}
h4 {
  margin: 2rem auto 1rem;
}
button, a {
  padding: 1em 2em;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  margin-top: .5rem;
}
.bg--dark {
  background-color: #2c3e50;
  color: #fff;
}

/* Hover adds text to Button */
/* [data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
} */

/* Hover effect expanding from Point of touch */
.btn--expanding {
  position: relative;
  display: inline-flex;
  border-radius: 6px;
  color: #fff;
  background-color: var(--colorGreen);
  text-decoration: none;
  letter-spacing: 1px;
  overflow: hidden;
}
.btn--expanding span {
  position: relative;
  z-index: 1;
}
.btn--expanding::before {
  content: '';
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--colorBlue);
  transition: width 0.5s, height 0.5s;

}
.btn--expanding:hover::before {
  width: 300px;
  height: 300px;
}

/* Sliding Border Gap */
.sliding-gap {
  background-color: #353b48;
  color: white;
}
.sliding-gap .btn {
  width: 200px;
  height: 60px;
  padding: unset;
  border: 4px solid;
  background: none;
  color: #3498db;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.sliding-gap .btn::before,
.sliding-gap .btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 4px;
  background-color: #353b48;
  transform: skew(50deg);
  transition: .4s linear;
}
.sliding-gap .btn::before {
  top: -4px;
  left: 10%;
}
.sliding-gap .btn:hover::before {
  left: 80%;
}
.sliding-gap .btn::after {
  bottom: -4px;
  right: 10%;
}
.sliding-gap .btn:hover::after {
  right: 80%;
}

/* Animated Share Button */
.share-button {
  font-family: "montserrat", sans-serif;
  margin-top: .5rem;
  width: 240px;
  height: 60px;
  background-color: #dfe6e9;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: .3s linear;
}
.share-button:hover {
  transform: scale(1.1);
}
.share-button span {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #2d3436;
  color: #f1f1f1;
  text-align: center;
  line-height: 60px;
  z-index: 999;
  transition: .6s linear;
  border-radius: 40px;
  cursor: pointer;
}
.share-button:hover span {
  transform: translateX(-100%);
  transition-delay: .3s;
}
.share-button a {
  padding: unset;
  font-size: unset;
  font-family: unset;
  margin-top: unset;
  font-size: 26px;
  color: #2d3436;
  text-align: center;
  transform: translateX(-100%);
  opacity: 0;
  transition: .3s linear;
  cursor: pointer;
  width: 30px;
  margin-left: 15px;
}
.share-button:hover a {
  opacity: 1;
  transform: translateX(0);
}
.share-button a:nth-of-type(1) {
  transition-delay: 1s;
}
.share-button a:nth-of-type(2) {
  transition-delay: .8s;
}
.share-button a:nth-of-type(3) {
  transition-delay: .6s;
}
.share-button a:nth-of-type(4) {
  transition-delay: .4s;
}
.share-button a i {
  transition: .2s linear;
}
.share-button a:hover i {
  transform: scale(1.2);
}

/* In and Out Underline */
.inAndOutUnderline {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 20px;
  width: 90%;
  height: 80px;
}
.inAndOutUnderline a {
  padding: unset;
  font-size: unset;
  font-family: unset;
  margin-top: unset;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.inAndOutUnderline a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}
.inAndOutUnderline a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
