/*                                                           Main Page Styles */

:root {
    --back-light: #fff;
    --back-dark: #000A0F;
    --accent: #004063;
    --txt-dark: #000;
    --txt-light: #f1f1f1;
    --txt-light-focus: #aaa;
    --lightgray: #bbb;
    --scrim: rgba(255, 255, 255, 0.55);
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none;
}
* svg {
    stroke-width: 7;
}
.icon-cm-web {
    stroke-width: 5;
}

input {
  border-radius: 0;
}

input[type="search"] {
  -webkit-appearance: none;
}

html, body {
    height: 100%;
    width: 100%;
    min-width: 300px;
    font-family: Helvetica;
    font-size: 16px;
    z-index: 0;
    background-image: none;
    background-image: linear-gradient(55deg, transparent 57%, rgb(100,181,255,.5) 57%), linear-gradient(-49deg, rgba(187,222,251,1) 38%, rgba(227,242,253,1) 38%);
    background: conic-gradient(from 31deg at 80% 65%, #64b5f6 131deg, #bbdefb 0% 56%, #e3f2fd 0% calc(180deg + 115deg), #90caf9 0%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/*                                                                       Body */

.flex_parent {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
}

.flex_parent > 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);
}

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

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

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

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

.wrapper {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    min-width: 290px;
    overflow: auto;
}

.body {
    height: 100%;
    position: relative;
    overflow: auto;
    display: flex;
    flex-direction: column;
    width: 100%;

}

.scrollable {
    min-height: calc(100% - 40px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: margin .3s;
}

.scrollable.lightback {
    background: var(--back-light);
}

.scrollable p {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricecards {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: 5px;
    background-color: var(--back-light);
    padding: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.6);
    margin: 7px;
    width: 270px;
    text-align: center;
}

.pricecards ul {
    background-color: unset;
    margin: .6em 0;
}

.pricecards i {
    font-size: 2.5em;
    color: var(--accent);
}

.pricecards svg {
    height: 2.5em;
    width: 2.5em;
    stroke: var(--accent);
}

.pricecards div:nth-child(2) {
    flex: 1;
}

.fillpage {
    flex: 1;
}

.infobox {
    max-width: 850px;
}

.infobox p {
    text-align: left;
    margin: .5em 0;
}

.infobox ul {
    background-color: transparent;
}
/*                                                                     Header */

header {
    flex: 0 0 50px;
    width: 100%;
    z-index: 90;
    display: flex;
    background: var(--accent);
}

header .openbt {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 0 0 160px;
    font-size: 1.875rem;
    cursor: pointer;
    padding-left: 20px;
    border-style: solid;
    border-width: 0 1px 0 0;
    border-color: var(--lightgray);
    background: var(--accent);
    color: var(--txt-light);
}

.openbt svg {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    stroke: var(--txt-light);
}

/*                                                                       Menu */

nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 100%;
    width: 340px;
    height: 100%;
    background-color: var(--back-dark);
    z-index: 100;
    transition: transform .5s;
    -webkit-transition: transform .5s;
    min-width: 300px;
    will-change: transform;
    overflow: auto;
}

nav.open-nav {
  transform: translateX(100%);
}

nav header {
  height: 50px;
  width: 100%;
  background-color: var(--accent);
  display: flex;
  font-size: 1.3rem;
  flex-direction: row;
}

nav header *:hover, nav header *:active, nav header *:focus {
  color: var(--txt-light-focus);
}

nav header a {
  padding: 0 0 0 8px;
  align-self: center;
  text-decoration: none;
  color: var(--txt-light);
  flex: 1;
  transition: 0.2s;
}

nav header div {
  position: relative;
  flex: 0 0 60px;
  justify-content: center;
  font-size: 2rem;
  padding: 8px 0 6px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

nav header div span {
    position: absolute;
    top: 50%;
    width: .7em;
    height: 3px;
    margin-top: -1.5px;
    background-color: var(--txt-light);
    transform: rotate(45deg);
    transition: .2s;
}

nav header div span:after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--txt-light);
    content: '';
    transform: rotate(-90deg);
    transition: .2s;
}

nav header div:hover span,
nav header div:active span,
nav header div:focus span,
nav header div:hover span:after,
nav header div:active span:after,
nav header div:focus span:after {
background-color: var(--txt-light-focus);
}

nav ul {
  padding: 0;
  background-color: var(--back-dark);
}

nav ul li {
    min-height: 5px;
    font-size: 1.25rem;
    color: var(--txt-light);
    list-style: none;
    cursor: pointer;
    border-bottom: solid 1px var(--accent);
}

nav ul li a {
    padding: 10px 15px;
    display: block;
    color: inherit;
    text-decoration: none;
}

nav ul li i {
    padding-right: 15px;
}

nav ul li svg {
    margin-right: 15px;
    vertical-align: text-top;
    width: 22px;
    height: 22px;
    stroke: var(--txt-light);
}

nav ul li:not(.noclick):hover,
nav ul li:not(.noclick):active,
nav ul li:not(.noclick):focus,
nav ul li a:not(.noclick):hover,
nav ul li a:not(.noclick):active,
nav ul li a:not(.noclick):focus{
    color: var(--txt-light-focus);
}

.noclick div a:hover,
.noclick div a:active,
.noclick div a:focus {
    color: var(--txt-light-focus);
}

.noclick div a:hover > svg,
.noclick div a:active > svg,
.noclick div a:focus > svg {
    stroke: var(--txt-light-focus);
}

nav ul li:hover > a svg,
nav ul li:active > a svg,
nav ul li:focus > a svg{
    stroke: var(--txt-light-focus);
}

nav ul li:hover > div > svg,
nav ul li:active > div > svg,
nav ul li:focus > div > svg{
    stroke: var(--txt-light-focus);
}

.navbottom {
    margin-top: auto;
}

.navbottom li:nth-of-type(2) {
    border-top: solid 1px var(--accent);
}

.navbottom li:last-child {
    text-align: center;
    border: none;
}

.navbottom li:empty {
    border: none;
}

/*                                                                     Inputs */

.roundinput {
    min-width: 220px;
    width: 75%;
    max-width: 320px;
    background-color: var(--back-light);
    font-size: 1rem;
    border-radius: 18px;
    border: 1px solid #004063;
    padding: 6px;
    display: flex;
    height: 36px;
}

.roundinput input {
    flex: 1;
    border: none;
    min-width: 0;
    margin: 0 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1em;
}


.roundinput input:focus + svg, .roundinput input:active + svg {
    stroke: #004063;
}

.roundinput svg {
    stroke: var(--lightgray);
    height: 1.5em;
    width: 1.5em;
    transition: stroke .3s;
    margin: -1px 6px 0 0;
}

.roundinput:focus {
    border-width: 2px;
    padding: 5px;
}

.shortinput {
    min-width: 180px;
}

form .roundinput, form textarea {
    margin: 10px 0;
}

textarea {
    width: 80%;
    max-width: 500px;
    padding: 9px;
    border-radius: 18px;
    overflow: auto;
    resize: none;
    font-family: Helvetica;
}

textarea:focus, textarea:active {
    padding: 8px 9px 8px 8px;
    outline: none;
    border: 2px solid red;
}

select {
    padding: 2px;
    border: 1px solid #004063;
    width: 220px;
    font-size: 1em;
}

/*                                                                    buttons */

.btn_sml {
    background-color: var(--back-light);
    color: black;
    width: 90px;
    border: 1px solid var(--accent);
    display: inline-block;
    font-size: .85rem;
    padding: 2px 2px;
    margin: 2px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .3s, box-shadow .1s;
}

.userbutton {
    width: 220px;
    border: 1px solid var(--accent);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    color: var(--txt-dark);
    font-size: 22px;
    padding: 3px;
    border-radius: 18px;
    background: var(--back-light);
    transition: background-color .3s, box-shadow .1s;
}

.btn_round {
    background-color: var(--back-light);
    width: 29px;
    height: 29px;
    border: .5px solid var(--accent);
    display: inline-block;
    font-size: 1rem;
    padding: 6px 4px 2px;
    margin: 2px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .3s, box-shadow .1s;
}

.btn_sml:hover, .btn_sml:focus, .userbutton:hover, .userbutton:focus,  button:hover {
    outline: none;
    background-color: var(--lightgray);
}

.btn_sml:active, .userbutton:active, button:active {
    box-shadow: 0 3px 3px #888;
}

/*                                                                   checkbox */

input[type='checkbox'].check-custom {
    position: absolute;
    left: -10000px;
}

input[type='checkbox'].check-custom~.check-toggle {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: top;
    border: 1px solid #bbb;
    border-radius: 2px;
    cursor: pointer;
    background: white;
}

input[type='checkbox'].check-custom:hover~.check-toggle {
    border: 1px solid #004063;
}

input[type='checkbox'].check-custom:focus~.check-toggle {
    border-color: #004063;
    box-shadow: 0 0 0 2px rgba(23, 133, 255, 0.25);
}

input[type='checkbox'].check-custom:checked~.check-toggle {
    border-color: #004063;
    background: #0078a8 url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='14' width='16' height='16' viewBox='0 0 100 100'><path d='M90 10q-42 30 -55 80l-28 -30'/></svg>") center no-repeat;
    background-size: 95%;
}

/*                                                              Slider Switch */

.switch {
    position: relative;
    display: inline-block;
    width: 2.2em;
    height: 1.1em;
    vertical-align: middle;
    margin-right: .4em;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
  background-color: var(--lightgray);
}

.slider:before {
  position: absolute;
  content: "";
  height: .9em;
  width: .9em;
  left: 0.1em;
  top: 0.1em;
  background-color: var(--back-light);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent);
}

input:checked+.slider:before {
  transform: translateX(1.1em);
}

.slider.round {
  border-radius: 1.1em;
}

.slider.round:before {
  border-radius: 50%;
}

.switch input:disabled + .slider {
    background-color: var(--lightgray);
}

.switch input:disabled + .slider:before {
    background-color: var(--txt-light-focus);
    transform: translateX(.55em);
}

/*                                                                    overlay */

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background-color: var(--scrim);
  pointer-events: none;
  z-index: 50;
  transition: .5s;
}

.imglarge {
  height: 40px;
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/*                                                                   Snackbar */

.snackbar {
    position: fixed;
    width: 310px;
    background: var(--back-light);
    text-align: center;
    z-index: 110;
    top: 50%;
    transform: translate(-50%,-50%);
    left: -165px;
    font-size: 1.1rem;
    border-radius: 4px;
    border: 1px #004063 solid;
    padding: 2px 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,.6);
    transition: .5s;
    max-height: 400px;
    overflow: auto;
}

#snackbar > div {
    margin-top: 8px;
}

/*                                                                      Alert */

.alert {
    z-index: 200;
    display: none;
    position: fixed;
    max-width: 350px;
    text-align: center;
    right: 20px;
    bottom: 20px;
    padding: 6px 10px;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 3px 4px #888;
}

/*                                                                       Tabs */

.tabpage {
    position: absolute;
    min-height: 100%;
    border-radius: 5px 5px 0 0;
    padding: 0;
    transition: .3s;
    background: var(--back-light);
}

.tabheader {
    position: relative;
    display: block;
    min-width: 320px;
    height: 40px;
    border-radius: 5px 5px 0 0;
    padding: 10px 2px 0;
}

.tabs {
    float: left;
    min-width: 80px;
    height: 30px;
    border-radius: 10px 10px 0 0;
    background: #ddd;
    font-size: 13px;
    cursor: pointer;
    padding: 7px;
    border-style: solid;
    border-width: .5px .5px 0;
    border-color: #999;
    text-align: center;
    transition: background .3s;
}

.tabs:first-child {
    background: var(--back-light);
}

.tabbody {
    padding: 10px 30px;
}

.tabbody section ol, .tabbody section ul {
    margin-bottom: 1em;
}

/*                                                                     Tables */

table {
    width: 100%;
    border-collapse: collapse;
}

tr:nth-child(odd) {
    background-color: #fff;
}

tr:nth-child(even) {
    background-color: #ddd;
}

th {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    border-bottom: 1px solid #000;
    background-color: #ddd;
    height: 30px;
    color: #000;
    cursor: pointer;
}

th.nosort {
    cursor: default;
}

td {
    border-bottom: 1px solid #bbb;
    text-align: center;
    min-width: 50px;
    height: 30px;
    padding: 1px 3px;
    font-size: .875em;
}

/*                                                                     Styles */

.center {
    text-align: center;
}

input, button, select {
    font-family: inherit;
}

input:focus {
  outline: none;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 50px white inset !important;
  box-shadow: 0 0 0px 50px white inset !important;
}

button {
    user-select: none;
}

.hide {
    display: none;
}

select:focus {
    outline: none;
}

td:focus {
    outline: none;
}

hr {
    width: 240px;
    border: none;
    border-top: .5px solid var(--accent);
    margin: 8px 25px;
}

hr.hidden {
    visibility: hidden;
}

p {
    margin: 0 0 1em 0;
}

.scrollable h1, .scrollable h2, .tabbody section h1, .tabbody section h2 {
    padding: 20px 0;
}

.scrollable h3, .scrollable h4, .tabbody section h3, .tabbody section h4 {
    padding: 10px 0;
}

.link {
    margin: 5px 0;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.note {
    color: #000;
    font-size: .9rem;
    text-align: center;
}

form i, form span {
    text-align: center;
}

ul, ol {
    width: 100%;
    padding-inline-start: 40px;
    text-align: left;
    background-color: #eee;
}

.scrollable img {
    margin: 10px 0;
    box-shadow: 0 3px 6px rgba(0,0,0,.6);
    max-width: 100%;
}

.scrollable button img {
    margin: 0;
    box-shadow: none;
}

.tabbody img {
    margin: 10px 0;
    box-shadow: 0 3px 6px rgba(0,0,0,.6);
    max-width: 100%;
}

.smalllink {
    font-size: .8rem
}

.img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    box-shadow: none;
}

.error {
    color: red;
    font-size: .9rem;
}

.error svg {
    stroke: red
}

.red {
    border-color: red;
}

.red_txt {
    color: red;
}

.orange_txt {
    color: #ff8c00;
}


/*                                                                    noscipt */

.noscript {
    position: fixed;
    width: 100%;
    min-height: 100px;
    top: 50%;
    transform: translate(0,-50%);
    background-color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,.6);
    text-align: center;
    padding: 20px;
    z-index: 100;
}

.noscript span {
    color: gray;
    font-size: 50px;
}

.noscript p {
    font-size: 20px;
    color: gray;
}


/*                                                                     @media */

@media only screen and (min-width: 600px) {
    .scrollable, .tabpage {
        margin: 20px 5%;
    }

}

@media screen and (max-width: 400px) {
    nav {
        width: 100vw;
    }
}