@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+SC&display=swap');
:root {
  --main-color: #7A3695;
  --bg:  #2F2D30; 
  --text-color: #F9EEFD; 
}

* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: 'Encode Sans SC', sans-serif;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
}

img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 2.5rem;
    border: 3px solid var(--main-color);
    box-shadow: 0px 0px 50px rgb(122, 54, 149);
}

header h1 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--text-color);
}

header p {
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--text-color);
}

svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

a svg.icons-btn {
  fill: var(--text-color);
}

.btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--text-color);
  width: 200px;
  margin: 25px 0;
  padding: 15px 25px;
  overflow: hidden;
  border: 2px solid var(--text-color);
  border-radius: 20px;
  position: relative;
}

.btn:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  z-index: -1;
  -webkit-transition: .7s ease;
  transition: .7s ease;
}

.btn-animation:before {
  width: 110%;
  height: 0;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
}

.btn-animation:hover:before {
  height: 450%;
}

.toggle {
  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;
  margin-top: 10px;
}

input[type=checkbox] {
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 52px;
  height: 27px;
  background: var(--text-color);
  float: right;
  border-radius: 100px;
  position: relative;
}

label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--main-color);
  border-radius: 90px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + label {
  background-color: var(--text-color);
}

input:checked + label::after {
  left: calc(100% - 5px);
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}

label:active:after {
  width: 45px;
}

svg.icon-mode {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
}

svg.icon-mode-2 {
  margin-left: 8px;
}
