body {

    margin: 0;
    padding: 0rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #F5F5F5;
}


/* 
h1, h2, h3, h4, h5{
    font-weight: 400;
} */

h1{
  font-size: 2.2rem;
}

h2{
  font-size: 1.5rem;
}

h3 {
  margin-bottom: 0.125rem;
  margin-top: 0.5rem;
}

.code{
    color: #6958be;
    background-color: #e7e7e7;
  }

.container {
    width:100%;
    max-width: 768px;
    text-align: left;
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    
}

button {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #7B68D7;
    border:none;
    border-radius:8px;
    color:white;
}

button:hover{
  background: #6958be;
  color:white;
}

button:focus {
  outline: 2px solid #180864;
  outline-offset: 2px;
}

.button-list{
display: flex;
flex-direction: row;
gap:0.5rem;
}
/* input{
 height:2rem;;   
} */

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

dialog{
 
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: absolute;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

button.closeBtn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding:0;
    width:40px;
    height:40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border:1px solid #ddd;
}

button.secondary{
  color: black;
  background-color: #fff;
  border:1px solid #DBDBDB
}
button.secondary:hover{
  color: black;
  background-color: #fff;
  border:1px solid #888
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}


.horizontal-flex{
  display: flex;
  flex-direction: row;
  gap:32px;
}
#myControls{
    justify-content: flex-start;
    flex-wrap: wrap;
    background-color: white;
    border: #DBDBDB 1px solid;
    border-radius:12px;
    padding:1rem;
    margin-bottom: 0.5rem;
    gap: 3.5rem;
}
#myControls > *{
  flex:1;
}
#myControls h2{
  margin-top: 0;
  margin-bottom:0.5rem;
}
label{
  line-height: 1.2;;
  font-size: 1rem;
}

.switch-input{
  display:flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}
.switch {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 30px;
    height: 20px;
    border-radius: 10px;
    background-color: rgb(226, 226, 226);
  }

  .switch::after {
    content: "";
    display: block;
    background-color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(2px, 2px);
    transition: transform 0.1s ease-in-out;
  }

  .switch:checked {
    background-color: dodgerblue;
  }
 

  .switch:checked::after {
    transform: translate(12px, 2px);
  }

ul.no-bullets {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

  [role="radiogroup"] {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  [role="radiogroup"]:focus {
    outline: none;
  }
  
  [role="radio"] {
    padding: 4px 8px;
    border: 0 solid transparent;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    cursor: default;
    outline: none;
    color: black;
  }
  
  [role="radio"] + [role="radio"] {
    margin-left: 1em;
  }
  
  [role="radio"]::before {
    position: relative;
    top: 1px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='14' width='14' style='forced-color-adjust: auto;'%3E%3Ccircle cx='7' cy='7' r='6' stroke='rgb(0, 90, 156)' stroke-width='2' fill-opacity='0' /%3E%3C/svg%3E");
  }
  
  [role="radio"][aria-checked="true"]::before {
    position: relative;
    top: 1px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='14' width='14' style='forced-color-adjust: auto;'%3E%3Ccircle cx='7' cy='7' r='6' stroke='rgb(0, 90, 156)' stroke-width='2' fill-opacity='0' /%3E%3Ccircle cx='7' cy='7' r='3' fill='rgb(0, 90, 156)' stroke-opacity='0' /%3E%3C/svg%3E");
  }
  
  [role="radio"].focus,
  [role="radio"]:hover {
    padding: 2px 6px;
    border: 2px solid #005a9c;
    background-color: #def;
    cursor: pointer;
  }

  fieldset{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border:none;

  }

  .required{
    color:red;
  }

 

  .form-group{
    display:flex;
    flex-direction: column;
    width: 50%;
    padding-bottom:1rem;
  }

  @media screen and (max-width: 520px) {
  
    main{
      height: 100%;
    
    }

    .horizontal-flex{
      flex-direction: column;
      gap:1rem;
    }

    #myControls{
      gap:2rem;
    }

    #openDialogModalBtn{
      margin-bottom:3rem;
    }

    .form-group{
      width: 100%;
    }
  }
