body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.back-nav {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    opacity: 0.8;
    transition: all 100ms linear;
    z-index: 10;
}

.back-nav:hover {
    transform: scale(1.2);
    opacity: 1;
}

body>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    width: 90%;
}

@media (max-width: 600px) {

    body>div {
        width: calc(100% - 4rem - 2px);
        max-width: 100%;
        border-radius: 0;
        padding: 2rem;
        margin: 0;
    }
}

body form {

    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
}

form input[type="submit"],
summary {
    width: fit-content;
    padding: 0.5rem 1rem;
    border: var(--panel-outline) solid 2px;
    border-radius: 0.5rem;
    font-weight: 900;
    font-size: 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
}

.user-settings ul {
    padding: 0;
    margin: 0;
}

.user-settings li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--panel-outline) 1px solid;
    flex-wrap: wrap;
}

.user-settings input[type="submit"] {
    background: #5c5;
    color: #fff;
}

.toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
}

.toggle:before {
    content: "";
    position: relative;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 14px;
    display: block;
    background: #9A9999;
    border-radius: 8px;
    transition: all 0.2s linear;
}

.toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
    transition: all 0.2s ease;
}

.toggle span:before {
    content: "";
    position: absolute;
    display: block;
    margin: -18px;
    width: 56px;
    height: 56px;
    background: rgba(79, 46, 220, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

.cbx:checked+.toggle:before {
    background: #947ADA;
}

.cbx:checked+.toggle span {
    background: #4F2EDC;
    transform: translateX(20px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), all 0.15s ease;
    box-shadow: 0 3px 8px rgba(79, 46, 220, 0.2);
}

.cbx:checked+.toggle span:before {
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
}

.change-pw input[type="submit"] {
    background: #59d;
    color: white;
}

.delete-account input[type="submit"],
.delete-account summary {
    background: #f55;
    color: white;
}

.delete-account h4 {
    margin: 0.5rem;
    margin-bottom: 0;
}

/*Radio buttons*/
.cntr {display: flex;}

  .radio {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 15px;
    height: 20px;
    padding-right: 10px;
  }
  .radio .label {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    border: 2px solid #c8ccd4;
    border-radius: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  .radio .label:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #225cff;
    transform: scale(0);
    transition: all 0.2s ease;
    opacity: 0.08;
    pointer-events: none;
  }
  .radio:hover .label:after {
    transform: scale(3.6);
  }
  input[type="radio"]:checked + .label {
    border-color: #225cff;
  }
  input[type="radio"]:checked + .label:after {
    transform: scale(1);
    transition: all 0.2s cubic-bezier(0.35, 0.9, 0.4, 0.9);
    opacity: 1;
  }
  .hidden {
    display: none;
  }