@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 100vh;
  background: #001925;
}

.list {
  padding: 30px 100px 10px 100px;
  position: relative;
  background: #042b3e;
  /* border-top: 50px solid #03a9f4; */
}

.list h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  padding: 10px 0;
  margin-left: 10px;
  display: inline-block;
  /* border-bottom: 4px solid #fff; */
}

.list label {
  position: relative;
  display: block;
  margin: 40px 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.list input[type="checkbox"] {
  -webkit-appearance: none;
}

.list i {
  position: absolute;
  top: 2px;
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
}

.list span {
  position: relative;
  left: 40px;
  -webkit-transition: .5s;
  transition: .5s;
}

.list span::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  -webkit-transform: translateY(-50%) scaleX(0);
          transform: translateY(-50%) scaleX(0);
  -webkit-transform-origin: right;
          transform-origin: right;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
}

.list input[type="checkbox"]:checked ~ i {
  top: 1px;
  border-top: none;
  border-right: none;
  height: 15px;
  width: 25px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.list input[type="checkbox"]:checked ~ span {
  color: #154e6b;
}

.list input[type="checkbox"]:checked ~ span::before {
  -webkit-transform: translateY(-50%) scaleX(1);
          transform: translateY(-50%) scaleX(1);
  -webkit-transform-origin: left;
          transform-origin: left;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
}
