.skill {
  grid-column: 2 / 10;
  min-height: 50rem;
  border: 1px solid #000;
  border-radius: 5px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  position: relative;
  padding: 4rem;
  background-color: #fff;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-shadow: 7px 13px 20px -11px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 7px 13px 20px -11px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 7px 13px 20px -11px rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width: 37.5em) {
  .skill {
    padding: 20px;
  }
}
@media only screen and (max-width: 62.5em) {
  .skill {
    grid-column: 3 / 9;
  }
}

@media only screen and (max-width: 37.5em) {
  .skill__list {
    margin-top: 20px;
  }
}

.skill__list li {
  max-width: 70rem;
}

/* Style the tab */
.tab {
  float: left;
  width: 30%;
  border-left: 1px solid #737f9b;
}
@media only screen and (max-width: 62.5em) {
  .tab {
    width: 100%;
  }
}

/* Style the buttons inside the tab */
.tab button {
  display: block;
  background-color: inherit;
  color: #000;
  padding: 1.5rem 1.6rem;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}
@media only screen and (max-width: 62.5em) {
  .tab button {
    padding: 8px 15px;
  }
}

/* Change background color of buttons on hover */
/* Create an active/current "tab button" class */
.tab button.active {
  border-left: 2px solid #ff3e5d;
  margin-left: -1px;
  color: #ff3e5d;
}

/* Style the tab content */
.tabcontent {
  float: left;
  padding: 0px 12px;
  width: 70%;
  border-left: none;
  height: max-content;
  animation: animate1 1.2s;
}
@media only screen and (max-width: 62.5em) {
  .tabcontent {
    width: 100%;
  }
}
@media only screen and (max-width: 37.5em) {
  .tabcontent {
    padding: 0px 0px;
  }
}

@keyframes animate1 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.skill::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;

  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);

  border: 1px solid #ff3e5d;

  top: 8px;
  left: 8px;
  z-index: -1;
}

.skill:hover::after {
  top: 15px;
  left: 15px;
}
