/* From Uiverse.io by MRez321 */ 
.theme-switch {
    position: relative;
    display: flex;
    justify-content: center;
    direction: rtl;
  }
  
  #theme-checkbox {
    display: none;
  }
  
  #theme-checkbox + label {
    /* change the font-size below to change the size of the switch button*/
    font-size: 2rem;
    height: 1em;
    width: 2.5em;
    border-radius: 0.25em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background-color: #cecece;
    position: relative;
  }
  
  #theme-checkbox:checked + label {
    background-color: #3a3a3a;
  }
  
  #theme-checkbox + label:active {
    transform: scale(0.85);
    transition: transform 0.2s;
  }
  
  #theme-checkbox + label div {
    width: 0.8em;
    height: 0.8em;
    border-radius: inherit;
    position: absolute;
    top: 0.1em;
    left: 0.1em;
    z-index: 10;
    transition: 0.5s cubic-bezier(1, 0.33, 0.11, 1.34);
    background-color: #f2f2f2;
  }
  
  #theme-checkbox:checked + label div {
    /* left: calc(2.5em - .8em - .1em); */
    left: 1.6em;
    background-color: #212121;
  }
  
  #theme-checkbox + label span {
    display: flex;
  }
  
  #theme-checkbox + label svg {
    display: inline-block;
    height: 1em;
    width: 1em;
    padding: 0.15em;
    box-sizing: border-box;
  }
  
  #theme-checkbox + label span:first-of-type {
    color: #3a3a3a;
  }
  
  #theme-checkbox + label span:last-of-type {
    color: #cecece;
  }
  
  /* From Uiverse.io by Codecite */ 
.btn {
    border: 0 solid;
    cursor: pointer;
    font-family: system-ui;
    font-size: 100%;

    border-radius: 999px;
    font-weight: 900;
    padding: 1.8rem 5rem;
    position: relative;
    text-transform: uppercase;
  }

  #btn1 {
    background: linear-gradient(90deg, #f8f9fa, #03045e);
  }
  #btn2 {
    background: linear-gradient(90deg, #f3bfbf, #590d22);
  }
  #btn3 {
    background: linear-gradient(90deg, #ffff3f, #007f5f);
  }
  
  .btn span {
    background: #1e293b;
    border-radius: 999px;
    color: #fff;
    display: grid;
    inset: 5px;
    place-items: center;
    position: absolute;
    transition: background 0.3s;
  }
  
  .btn:hover span {
    background: none;
  }