#body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0;
    justify-content: space-around;
}

.scrollable {
    width: 100%;
    flex-grow: 1;
    flex-basis: 0;
    overflow: auto;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
}

.header h3 {
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 20px 10px;
    padding: 10px;
    width: calc(50% - 20px);
    max-width: 500px;
    border: var(--border-gray);
    border-radius: 5px;
}

form.shortcuts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
}

form.wide {
    width: calc(100% - 40px);
    max-width: unset;
}

form span {
    font-size: .8rem;
}

/*                                                                Fancy Input */
.fancyinput {
    padding: 4px;
    margin: 5px;
    width: calc(100% - 10px);
    max-width: 300px;
    position: relative;
}

.fancyinput input {
    border: none;
    border-bottom: var(--border-accent);
    width: 100%;
    padding: 5px 0 5px 10px;
    font-size: .9em;
}

.fancyinput input:disabled {
    border-bottom: var(--border-gray);
    background: var(--back-light);
    color: var(--txt-gray);
}

.fancyinput span {
    position: absolute;
    font-size: .9rem;
    color: var(--txt-gray);
    background: none;
    pointer-events: none;
    left: 14px;
    top: 8.5px;
    transition: all .5s cubic-bezier(0, 0.75, 0.4, 1);
}

.fancyinput input:not(:placeholder-shown)+span {
    left: 5px;
    top: -4px;
    font-size: .7rem;
    background-color: var(--back-light);
    opacity: 1;
}

label {
    margin: 5px;
}

#forgotPassLink {
    margin-top: 10px;
    text-decoration: underline;
    cursor: pointer;
}

/*                                                              Verify Dialog  */
#verifydialog {
    position: absolute;
    display: none;
    top: 50%;
    transform: translateY(-50%);
    align-self: center;
    z-index: 200;
    border: var(--border-accent);
    border-radius: 10px;
    max-width: 300px;
    min-width: 254px;
    pointer-events: auto;
    max-height: 100%;
    padding: 10px;
    padding-top: 27px;
    font-size: 14px;
    box-shadow: var(--big-shadow);
    background-color: var(--back-light);
}

#verifydialog h3 {
    text-align: center;
    color: var(--red);
}

.dialogsection {
    position: relative;
    border: solid .5px var(--gray);
    border-radius: 10px;
    min-width: 110px;
    padding: 6px;
    margin: 10px 2px;
    margin-top: 10px;
    min-height: 34px;
}

#verifynote {
    text-align: center;
    color: var(--red);
    padding: 15px 0;
}

.buttonbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn_sq {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: inherit;
    margin: 3px 5px;
    width: 36px;
    height: 36px;
    color: var(--txt-dark);
    border-radius: 5px;
    border: var(--border-gray);
}

.btn_sq svg {
    height: 21px;
    width: 21px;
    margin-bottom: 1px;
    stroke-width: 4.5px;
    stroke: var(--txt-dark);
}

.btn_sq span {
    font-size: .54rem;
}

.btn_sq:disabled,
.btn_sq:disabled svg,
.btn_sq:disabled span {
    border-color: var(--lightgray);
    color: var(--lightgray);
    stroke: var(--lightgray);
    cursor: default;
}

.btn_sq:hover:disabled,
.btn_sq:focus-visible:disabled,
.btn_sq:hover:disabled {
    box-shadow: none;
    outline: none;
    background-color: var(--back-light);
}

#navscrim.verifying {
    background-color: var(--scrim);
    pointer-events: all;
    z-index: 199;
}
/*                                                                Short Cuts */
.shortcuts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
}

.shortcuts>a {
    background: var(--back-light);
    position: relative;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    color: #777;
    width: 140px;
    height: 140px;
    transition: .3s;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}

.shortcuts>a svg {
    position: absolute;
    stroke: #777;
    height: 50px;
    width: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s;
}

.shortcuts>a span {
    left: 0;
    width: 100%;
    position: absolute;
    bottom: 5px;
}

.shortcuts>a:hover {
    color: var(--accent);
}

.shortcuts>a:hover>svg {
    stroke: var(--accent);
}

/*                                                                       tabs */

.tabBox {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 56px;
    padding: 10px;
    max-width: 500px;
    justify-content: space-between;
}

.tab {
    font-size: 1.1em;
    color: var(--txt-gray);
    padding: 6px 10px;
    width: 33%;
    text-align: center;
    cursor: pointer;
    transition: color .5s, border-color .5s;
}

.centerTab {
    border-right: solid 2px var(--lightgray);
    border-left: solid 2px var(--lightgray);
}

.tabactive {
    color: var(--accent);
    border-color: var(--accent);
    font-size: 1.25em;
}

.tabwrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 10px 40px 40px;
    max-width: 1000px;
}

.tabBody {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
    transition: transform .5s;
}

.tabBody.inactive {
    display: none;
}

.hide {
    display: none;
}
/*                                                               Terms Styles */

.tabwrapper h1, .tabwrapper h2, .tabwrapper p {
    margin: 10px 0;
}

.tabwrapper ol, .tabwrapper ul {
    padding-inline-start: 40px;
    background-color: #eee;
}

/*                                                                  Help page */
.submenu {
    font-size: .85rem;
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.submenu ul,
.submenu li {
    list-style: none;
    padding: 2px 0;
}

.submenu ul {
    width: 160px;
    margin: 2px 8px;
}

.submenu .ul2 {
    padding: 2px 0 2px 15px;
}

.submenu li a,
.helpsection p > span,
.helpsection li > span {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

p {
    text-indent: 15px;
}

img {
    margin: 10px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .6);
    height: 445px;
    background: var(--back-light-focus);
}

.helpsection img {
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #eeeeee 10%, #dddddd 18%, #eeeeee 33%);
    background-size: 239px 445px;
    position: relative;
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -239px 0
    }

    100% {
        background-position: 239px 0
    }
}

.legend {
    width: fit-content;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding-inline-start: 35px;
    max-height: 100px;
    align-content: flex-start;
}

ol.legend li {
    list-style-type: decimal;
    width: 200px;
    margin: 2px 0;
    font-size: .85rem;
}

ul.legend li {
    width: 200px;
    margin: 2px 0;
    font-size: .85rem;
}

h3 {
    margin: 5px 0 5px -5px;
}

.helpsection {
    position: relative;
    border: solid .5px var(--gray);
    border-radius: 10px;
    min-width: 110px;
    padding: 5px 10px;
    margin: 10px -17px;
}

.helpslider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.helpslider .buttonbox {
    max-width: 250px;
    width: 100%;
}

.sliderimgbox {
    display: flex;
    position: relative;
    height: 470px;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.helpslider img {
    opacity: 1;
    position: absolute;
    transition: opacity .5s, transform .5s;
}

.helpslider .slideright {
    
    opacity: 0;
    transform: translateX(100%) scale(.5);
}

.helpslider .slideleft {
    opacity: 0;
    transform: translateX(-100%) scale(.5);
}

.posbar {
    display: flex;
}

.posbar span {
    display: block;
    margin: 2px;
    width: 15px;
    height: 10px;
    border: var(--border-lightgray);
    border-radius: 5px;
    transition: border-color .5s;
}

.posbar span.selectedpos {
    border: var(--border-accent);
}

.scrolltotop {
    position: fixed;
    right: 0;
    z-index: 90;
    top: 50%;
    transform: translateY(-50%);
    background: var(--back-light);
    border-color: var(--accent);
}

/*                                                                Misc Styles */

.note {
    margin: 5px;
}

.contactinfo{
    text-align: center;
}

.contactinfo span{
    display: block;
    margin: 10px;
}

textarea {
    margin: 5px;
    min-height: 80px;
    max-height: 400px;
    max-width: 100%;
    padding: 9px;
    border: var(--border-accent);
    border-radius: 18px;
    overflow: auto;
    resize: vertical;
    font-family: Helvetica;
}

@media only screen and (max-width: 900px) {
    
    #body {
        margin-bottom: auto;
    }
    
    form {
        width: 100%;
    }

    .tabwrapper {
        margin: 10px 40px 40px;
    }
}

@media only screen and (max-width: 550px)  {
    
    .shortcuts>a {
        width: 100px;
        height: 100px;
    }

    .shortcuts>a svg {
        height: 35px;
        width: 35px;
    }

    .tabwrapper {
        margin: 10px 10px 40px;
    }

    .tabwrapper ol {
        padding-inline-start: 24px;
    }

    .legend {
        max-height: none;
    }

    .legend li {
        margin: 1px 0;
    }
}