:root {
  --font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;

  --decorator-border: 8px;
  --white: #fff;
  --mid-gray: #383838;
  --color-1: #0086FF;
  --color-2: #80C2FF;
  --font-color: #212529;
  --bg-color: #303030;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

html, body, main {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

#root {
  min-height: 300px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--font-color);
  background-color: var(--bg-color);
  background-image: url(../images/texture.png);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: auto;
}

small, .small {
  font-size: 0.875em;
}

a {
  font-weight: 400 !important;
  cursor: pointer;
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  vertical-align: middle;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

.d-flex {
  display: flex !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.align-items-center {
  align-items: center !important;
}

.align-content-between {
  align-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.bg-white {
  background-color: #fff !important;
}

.bg-transparent {
  background-color: transparent;
}

.text-muted {
  color: #6c757d !important;
}

.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.w-100 {
  width: 100% !important;
}

.mw-100 {
  max-width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.mh-100 {
  max-height: 100% !important;
}

.lh-1 {
  line-height: 1 !important;
}

.lh-base {
  line-height: 1.5 !important;
}

.mx-3 {
  margin-right: 1rem !important;
  margin-left: 1rem !important;
}

.mx-5 {
  margin-right: 3rem !important;
  margin-left: 3rem !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.mt-0 {
  margin-top: 0rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-auto {
  margin-top: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.py-0 {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.pt-0 {
  padding-top: 0rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pe-2 {
  padding-right: 0.5rem !important;
}

.pe-5 {
  padding-right: 3rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@-webkit-keyframes spinner-border {
  to {
    transform: rotate(360deg) /* rtl:ignore */;
  }
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg) /* rtl:ignore */;
  }
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: 0.75s linear infinite spinner-border;
  animation: 0.75s linear infinite spinner-border;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Custom */
button:focus,
a:focus,
input:not([type='color']):not(.withShadow):focus,
select:focus {
  outline: none !important;
  box-shadow: 0 0 0 0 transparent !important;
}

.wrapper {
  max-width: 400px;
  width: calc(100% - 40px);
  height: 640px;
  max-height: calc(100% - 40px);
}

.content {
  z-index: 1;
  max-height: 100%;
}

.decorator {
  top: calc(var(--decorator-border) * -1);
  left: calc(var(--decorator-border) * -1);
  height: calc(100% + 2 * var(--decorator-border));
  width: calc(100% + 2 * var(--decorator-border));
  background-color: var(--color-1);
}

.decorator::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: var(--color-2);
  width: 218px;
  left: calc(50% - 109px);
}

.decorator::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background-color: var(--color-2);
  height: calc(100% - 2 * 211px);
  top: 211px;
}

.header-logo {
  height: 32px;
  margin: 0.6rem 0;
}

.mainTitle {
  color: var(--mid-gray);
  letter-spacing: 5px;
  font-size: 1.2rem;
}

.header {
  padding: 0.75rem;
  box-shadow: 0 .35rem .5rem rgba(0,0,0,.15);
}

.avatar {
  height: 54px;
  width: 54px;
  margin: -2px;
  padding: 2px;
  font-size: 1.75rem;
  line-height: 45px;
  text-align: center;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.6));
}

.mask {
  -webkit-mask: url("../images/mask.png");
  mask: url("../images/mask.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  background-color: white;
}

.footer-image {
  width: 80%;
  margin: 0 10%;
}

.powered-text {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #ced4da;
  font-size: 0.7rem;
}

.link {
  color: #fff;
  font-weight: 600 !important;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

@media screen and (min-height: 870px) and (min-width: 620px) {
  :root {
    --decorator-border: 15px;
  }

  .my-md-3 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .mx-md-5 {
    margin-right: 2rem !important;
    margin-left: 2rem !important;
  }

  .mt-md-4 {
    margin-top: 1.25rem !important;
  }

  .mt-md-5 {
    margin-top: 2rem !important;
  }

  .mb-md-4 {
    margin-bottom: 1.25rem !important;
  }

  .mb-md-5 {
    margin-bottom: 2rem !important;
  }

  .pt-md-3 {
    padding-top: 0.75rem !important;
  }

  .pt-md-5 {
    padding-top: 2rem !important;
  }

  .p-md-3 {
    padding: 0.75rem !important;
  }

  .py-md-2 {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .wrapper {
    width: 500px;
    max-width: 90%;
    height: 785px;
    max-height: 90%;
  }

  .header {
    padding: 1rem;
  }

  .header-logo {
    height: 40px;
    margin: 0.8rem 0;
  }

  .avatar {
    height: 74px;
    width: 74px;
    font-size: 2rem;
    line-height: 65px;
    text-align: center;
}

  .mainTitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
  }

  .footer-image {
    width: 80%;
    margin: 0 10%;
  }

  .powered-text {
    bottom: -3rem;
  }
}

@media screen and (min-height: 1058px) and (min-width: 700px) {
  :root {
    --decorator-border: 20px;
  }

  .my-md-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .mx-md-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
  }

  .mt-md-2 {
    margin-top: 0.5rem !important;
  }

  .mt-md-4 {
    margin-top: 1.5rem !important;
  }

  .mt-md-5 {
    margin-top: 3rem !important;
  }

  .mb-md-4 {
    margin-bottom: 1.5rem !important;
  }

  .mb-md-5 {
    margin-bottom: 3rem !important;
  }

  .pt-md-3 {
    padding-top: 1rem !important;
  }

  .pt-md-5 {
    padding-top: 3rem !important;
  }

  .p-md-3 {
    padding: 1rem !important;
  }

  .py-md-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .wrapper {
    width: 600px;
    max-width: 90%;
    height: 960px;
    max-height: 90%;
  }

  .header {
    padding: 1rem;
  }

  .header-logo {
    height: 49px;
    margin: 1rem 0;
  }

  .avatar {
    height: 86px;
    width: 86px;
    margin: -3px;
    padding: 3px;
    font-size: 2.5rem;
    line-height: 75px;
    text-align: center;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.6));
  }

  .mainTitle {
    font-size: 1.75rem;
    letter-spacing: 7px;
  }

  .footer-image {
    width: 100%;
    margin: 0;
  }

  .powered-text {
    bottom: -4rem;
  }
}

@media screen and (max-height: 740px) {
  .powered-text {
    display: none;
  }
}

/* Only mobile */
@media (pointer: none), (pointer: coarse) {
  .powered-text {
    display: none;
  }
}
