:root {
  --row-height: 24px;
  --safe-area-inset-top: 0px;
  --safe-area-inset-bottom: 0px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  user-select: none;
}

html {
  overscroll-behavior: none;
  height: -webkit-fill-available;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1;
  min-height: 100vh;
  font-size: 14px !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

body {
  background-color: #475d6b;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 150%;
  color: #384347;
  display: flex;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1;
  min-height: 100vh;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  appearance: none;
  min-width: 320px;
}

header,
footer {
  display: flex;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 100;
  justify-content: space-between;
  height: calc(var(--row-height) + var(--safe-area-inset-top));
  align-items: center;
  backdrop-filter: blur(10px) !important;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.122), rgba(0, 0, 0, 0.063)) !important;
  box-shadow: 0.2px 0px 1px rgba(0, 0, 0, 0.3), inset 0px 0px 1px hsla(0, 0%, 100%, 0.4);
  border-radius: 2px;
}

main {
  display: flex;
  flex: 1 1;
  position: relative;
  justify-content: center;
  align-items: flex-start;

  padding: 0 !important;
  width: 100vw;
  height: calc(100vh);
  top: 0;
  left: 0;
  z-index: -1;
  /* background: linear-gradient(135deg, #ffffff1f, #0000001f) !important; */
  background-color: #8494ad;
  background-image: url('./../img/magic_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: 50% 100% !important;
}

main img {
  width: 480px;
  height: 480px;
  max-width: calc(100vw - 40px);
  position: fixed;
  top: 45%;
  left: calc(50% + 6px);
  transform: translate(-50%, -50%);
  object-fit: contain;
}

footer {
  top: initial;
  bottom: 0;
  height: calc(var(--row-height) + var(--safe-area-inset-bottom));
}
