@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Common */
body, h2, h3, p, div, label, i, span {
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(-45deg, #15f5fd 0%, #036cda 50%, #036cda 100%);
  color: #333;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
input[type="radio"] {
  display: none;
}

/* tabs */
.tabs {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}
.tabs .tabs__tit {
  margin-bottom: 20px;
  font-size: 30px;
}

/* tabs__box */
.tabs__box {
  position: relative;
}
.tabs__box label {
  display: inline-block;
  position: relative;
  width: 90px;
  height: 45px;
  margin-right: 20px;
  padding-left: 10px;
  border-radius: 12px;
  line-height: 45px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all .4s ease 0s;
  z-index: 1;
}
.tabs__box label:last-of-type {
  margin-right: 0;
}
.tabs__box label:hover {
  color: #036cda;
}
#home:checked ~ .home,
#html5:checked ~ .html5,
#css3:checked ~ .css3,
#code:checked ~ .code,
#git:checked ~ .git {
  color: #fff;
}

/* tabs__indicator */
.tabs__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 45px;
  border-radius: 6px;
  background: linear-gradient(-45deg, #15f5fd 0%, #036cda 60%, #036cda 100%);
  transition: all .4s ease 0s;
}
#home:checked ~ .tabs__indicator {
  left: 0;
}
#html5:checked ~ .tabs__indicator {
  left: 125px;
}
#css3:checked ~ .tabs__indicator {
  left: 250px;
}
#code:checked ~ .tabs__indicator {
  left: 375px;
}
#git:checked ~ .tabs__indicator {
  left: 500px;
  width: 100px;
}

/* tabs-content */
.tabs-content {
  overflow-y: scroll;
  width: 100%;
  height: 220px;
}
.tabs-content::-webkit-scrollbar {
  width: 0;
}
.tabs-content__title {
  margin-top: 20px;
}
.tabs-content__txt {
  margin-top: 20px;
  text-align: justify;
  word-break: break-all;
}
.tabs-content > div {
  display: none;
}
.home-content {
  display: block;
} 
#home:checked ~ .tabs-content .home-content,
#html5:checked ~ .tabs-content .html5-content,
#css3:checked ~ .tabs-content .css3-content,
#code:checked ~ .tabs-content .code-content,
#git:checked ~ .tabs-content .git-content {
  display: block;
}
#html5:checked ~ .tabs-content .home-content,
#css3:checked ~ .tabs-content .home-content,
#code:checked ~ .tabs-content .home-content,
#git:checked ~ .tabs-content .home-content {
  display: none;
}
