@import url('https://fonts.googleapis.com/css2?family=Signika&display=swap');
body {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right bottom, #d13cff, #031f6a);
}
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
}
h1 {
  color: white;
  font-family:'Signika', sans-serif;
  font-size: 3rem;
}
textarea {
  width: 40rem;
  border-radius: 1rem;
  height: 200px;
  margin: 25px 0px;
  font-family:'Signika', sans-serif;
  font-size: 1.3rem;
  padding: 15px;
  color: #031f6a;
}
button {
  background-color: rgb(151, 246, 215);
  border: 1px solid rgb(126, 126, 126);
  padding: 10px;
  width: 80px;
  font-size: 1rem;
  font-family:'Signika', sans-serif;
  border-radius: 0.5rem;
  cursor: pointer;
}
button:hover{
    scale: 1.1;
    transition: 500ms;
}
.container {
    margin: auto;
    color: white;
    font-size: 2rem;
    display: flex;
    font-family:'Signika', sans-serif;
  }
  
  .toggle {
    width: 30px;
    height: 70px;
    background-color: hsl(0, 0%, 80%);
    border-radius: 1.7rem;
    padding: .25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: background-color 300ms 300ms;
  }
  
  .toggle__circle {
    width: 25px;
    height: 25px;
    background-color: hsl(0, 0%, 95%);
    border-radius: 50%;
    margin-top: calc(103px - (.25rem * 2) - 50px);
    transition: margin 500ms ease-in-out;
  }
  
  .toggle-text {
    display: flex;
    flex-direction: column;
    line-height: .8;
    padding: 10px;
  }
  
  #check:checked + .toggle > .toggle__circle {
    margin-top: 0;
  }
  
  #check:checked + .toggle {
    background-color: #d13cff;
  }
  @media only screen and (max-width: 600px){
    textarea{
      width: 17rem;
    }
    h1{
      font-size: 1.8rem;
    }
    .toggle{
      width: 20px;
      height: 50px;
    }
    .toggle__circle{
      width: 17px;
      height: 17px;
      margin-top: calc(90px - (.25rem * 2) - 50px);

    }
  }
