:root {
    --body:1rem;
    --sm-body:0.875rem;
    --font:"DM Sans", serif;
    --sm:20px;
    --med:40px;
    --lrg:60px;
    --xlg:80px;
    --xxl:140px;
    --padding-sm: var(--sm) var(--med);
    --padding-lg: var(--med) var(--med);
    --page-pad:50px;
    --no-pad:0px;
    --no-margin:0px;
    --no-top-margin:0px;
    --lt-gry:#f5f5f5;
    --md-gry: #d9d9d9;
    --blue:rgb(0 169 230);
    --dk-blue:#0a6c8c;
}

html, body {
    padding: 0px;
    margin: 0px;
}

body {
    background-color:var(--lt-gry);
}

.no-pad {
    padding: var(--no-pad);
}

.no-margin {
    margin: var(--no-margin);
}

.no-btm-margin {
    margin-bottom: var(--no-margin);
}

.no-top-margin {
    margin-top: var(--no-top-margin);
}


.page-container {
    padding: var(--lrg) var(--page-pad);
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: var(--sm);
    max-width: 1140px;
    margin: 0 auto;
}

.boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--med);
}

.white-container {
    background-color: #FFF;
    border-radius: 20px;
    padding: var(--padding-sm);
    /* box-shadow: 4px 4px 20px 6px #00000010; */
    border: solid 1px #444;
    min-height: 450px;
    width: 540px;
    padding-bottom: var(--med);
    display: flex;
    flex-direction: column;
}

.column-16 {
    display: flex;
    flex-direction: column;
    gap:16px;
}

.gen-wrapper {
    border: solid 2px var(--md-gry);
    min-height: 220px;
    border-radius: 12px;
    padding: 40px 20px;
}

p {
    font-size: var(--body);
}

code {
    background-color: /* rgba(0 169 230 / .25) */ #90f4fc;
    border-radius: 3px;
    font-family: courier, monospace;
    padding: 0 6px;
  }

h1, h2, h3, p, ol, li, label, input, button, textarea, textarea::placeholder {
    font-family: var(--font);
}

h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1em;
}

li {
    margin-bottom: 16px;
    margin-left: -16px;
    padding-left: 12px;
}

li::marker {
    font-weight: 700;
}

.heading-wrapper {
    padding: 20px var(--page-pad) 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-content: center;
    margin-bottom: -20px;
}

span.note {
    margin-top:12px;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 600;
    opacity: 0.50;
}

.span#subject_output {
    display: block;
    white-space: pre-line !important;
}

.pre-gen, .hide-note, [hidden] {
    display: none !important;
}

input[type="text"], textarea {
    display: block;
    font-size: var(--sm-body);
    font-weight: 400;
    border: solid 0px #000;
    background-color: var(--lt-gry);
    padding: 12px 18px;
    margin: 12px 0px 24px 0px;
    border-radius: 10px;
}

textarea {
    display: block;
    font-size: var(--sm-body);
    font-weight: 400;
    border: solid 0px #000;
    background-color: var(--lt-gry);
    padding: 12px 18px;
    margin: 12px 0px 24px 0px;
    border-radius: 10px;
    resize: vertical;
}

textarea::placeholder {
    font-size: var(--sm-body);
    font-weight: 400;
}

input:focus-visible, input:focus, textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 2px 2px 12px 2px #00000020;
}    

input::placeholder, textarea::placeholder {
    opacity: 0.5;
}

textarea#away_subject {
    font-size:13pt;
    font-family:Arial;
    color:rgb(6,170,219);
    font-weight:700;
    vertical-align:baseline;
}

.form-item {
    display: flex;
    flex-direction: column;
}

.gen-btn {
    margin-top:12px;
    padding:12px 20px;
    min-width: 200px;
    font-size: var(--sm-body);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    font-weight: 500;
    border: none;
    background-color: var(--blue);
    color: #FFF;
    cursor: pointer;
    outline: none;
    border-radius: 28px;
    width: 100%;
    transition: all .15s ease-in;

}

.gen-btn:hover {
    transition-duration: .15s;
    background-color: var(--dk-blue);
    outline: none;
}

[copied="true"], [copied="true"]:hover  {
    background-color: rgb(58, 195, 58);
    box-shadow: 0px 4px 16px 0px rgba(49, 183, 49,.65);
    color: white;
    transition: all .1s ease-in;
}

.transition {
    transition: all .5s ease-in;
}

.options-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dropdown-container {
    width: 60%;
    position: relative;
    font-family: var(--font);
}

.dropdown-selected {
    display: flex;
    justify-content: space-between;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-caret {
    font-size: 12px;
    margin-left: 10px;
    color: #888;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #ddd;
}

.toggle-button, .dropdown-selected {
    border: solid 1px #444;
    border-radius: 99px;
    background-color: white;
    color: #444;
    padding: 8px 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
}

/* .toggle-button:hover, .toggle-button[active]:hover {
    border-color: var(--blue);
    background-color: white;
    transition: all 0.2s ease;
} */

.toggle-button[active], .toggle-button:hover {
    border-color: var(--blue);
    background-color: rgb(212 244 255);
    transition: all 0.2s ease;
}

.toggle-button[active]:hover {
    border-color: #222;
}


  /**
    Auto complete
  **/

  .autocomplete {
    position: relative;
  }

  .autocomplete-items, .dropdown-options {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    /* margin-top: -20px; */
    z-index: 99;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .autocomplete-items {
    margin-top: -20px;
  }

  .dropdown-options {
    margin-top: 4px;
  }

  .autocomplete-items div, .dropdown-option {
    font-family: var(--font);
    font-size: var(--sm-body);
    padding: 12px 18px;
    cursor: pointer;
    background-color: #fff; 
    border-bottom: 1px solid #d4d4d4;
  }

  .autocomplete-items div strong {
    text-decoration: underline;
  }

  .autocomplete-items div:last-child {
    border-bottom: none;
    border-radius: 0px 0px 8px 8px;
  }

  .autocomplete-items div:hover, .dropdown-option:hover {
    background-color: #e9e9e9; 
  }

  .autocomplete-active {
    background-color: #00a9e6 /*DodgerBlue*/ !important;
    color: #ffffff; 
  }


/** 
    Mobile Overrides 
**/

@media only screen and (max-width:660px) {
    :root {
        --sm:12px;
        --med:24px;
        --lrg:32px;
        --xlg:48px;
        --xxl:80px;
    }

    .page-container {
        max-width: 640px !important;
        margin: 0px;
    }   
    .white-container {
        width: inherit !important;
    }   

    input[type="text"] {
        width: inherit;
    }
  
    .dropdown-container {
        min-width: 220px;
    }

    .options-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: start;
    }
}

@media only screen and (max-width:1140px) {
    :root {
        --page-pad: 12px !important;
    }
    .page-container {
        padding: var(--sm);
        flex-direction: column;
        gap: 48px !important;
    }

    .inst-wrapper {
        max-width: 540px;
        padding: 0px;
    }

    h1 {
        font-size: 32px;
    }
}