/* Copyright (c) 2022 Ivan Teplov */

* {
  margin: 0;
  padding: 0;
}

:root {
  --background: #fff;
  --foreground: #000;
  --divider: #dcdcdc;
  --overlay: #888;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --foreground: #fff;
    --divider: #333;
  }
}

html,
body {
  height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);

  overflow: hidden;
  line-height: 1.5;

  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 1rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: 0.0625rem solid var(--divider);

  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}

#sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

#sheet[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#sheet .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--overlay);
  opacity: 0.5;
}

#sheet .contents {
  border-radius: 1rem 1rem 0 0;

  background: var(--background);

  position: relative;
  overflow-y: hidden;

  --default-transitions: transform 0.5s, border-radius 0.5s;

  transition: var(--default-transitions);
  transform: translateY(0);

  max-height: 100vh;
  height: 30vh;

  max-width: 70rem;

  box-sizing: border-box;
  padding: 1rem;
  padding-top: 3rem;
}

#sheet .contents:not(.not-selectable) {
  transition: var(--default-transitions), height 0.5s;
}

#sheet .contents.fullscreen {
  border-radius: 0;
}

#sheet[aria-hidden="true"] .contents {
  transform: translateY(100%);
}

#sheet .draggable-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 3rem;
  margin: auto;
  padding: 1rem;
  cursor: grab;
}

#sheet .draggable-thumb {
  width: inherit;
  height: 0.25rem;
  background: var(--divider);
  border-radius: 0.125rem;
}

#sheet .close-sheet {
  position: absolute;
  right: 0;
  top: 0;
  border: none;
}

#sheet .body {
  height: 100%;
  overflow-y: auto;
  gap: 1rem;
}

/* Copyright (c) 2022 Ivan Teplov */
.row {
  display: flex;
  flex-direction: row;
}
.row.reversed-order {
  flex-direction: row-reverse;
}

.column {
  display: flex;
  flex-direction: column;
}
.column.reversed-order {
  flex-direction: column-reverse;
}

.row.items-start,
.column.items-start {
  align-items: flex-start;
}
.row.justify-start,
.column.justify-start {
  justify-content: flex-start;
}
.row.content-start,
.column.content-start {
  align-content: flex-start;
}
.row.items-center,
.column.items-center {
  align-items: center;
}
.row.justify-center,
.column.justify-center {
  justify-content: center;
}
.row.content-center,
.column.content-center {
  align-content: center;
}
.row.items-end,
.column.items-end {
  align-items: flex-end;
}
.row.justify-end,
.column.justify-end {
  justify-content: flex-end;
}
.row.content-end,
.column.content-end {
  align-content: flex-end;
}
.row.items-stretch,
.column.items-stretch {
  align-items: stretch;
}
.row.justify-stretch,
.column.justify-stretch {
  justify-content: stretch;
}
.row.content-stretch,
.column.content-stretch {
  align-content: stretch;
}
.row.items-baseline,
.column.items-baseline {
  align-items: baseline;
}
.row.justify-baseline,
.column.justify-baseline {
  justify-content: baseline;
}
.row.content-baseline,
.column.content-baseline {
  align-content: baseline;
}
.row .wrap,
.column .wrap {
  flex-wrap: wrap;
}
.row .reversed-wrap,
.column .reversed-wrap {
  flex-wrap: wrap-reverse;
}
.row .no-wrap,
.column .no-wrap {
  flex-wrap: nowrap;
}

.fill {
  flex-grow: 1;
  flex-shrink: 0;
}

.font-system {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.font-thin {
  font-weight: 100;
}

.font-extra-light {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extra-bold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.cursor-pointer {
  cursor: pointer;
}

.not-selectable {
  user-select: none;
}

.selectable {
  user-select: auto;
}

.back {vertical-align: middle;margin-top: -5px;position: absolute;left: 15px;top: 20px;z-index: 99;font-size: 22px;font-weight: 900;}
.frame2 {height: 40px;line-height: 40px;overflow: hidden;}
.frame2 ul{list-style: none;margin: 0;padding: 0;height: 100%;font-size: 16px;}
.frame2 ul li {float: left;height:40px;margin: 0 5px;padding: 2px 5px 15px;background: #fff;color: #222;text-align: center;cursor: pointer;font-size:15px;}
.frame2 ul li.on{border-bottom:3px solid var(--c1);}
.frame2 img{border-radius:5px;width:100%}
.frame2 a{display:inline-block}
.frm{padding:0px 0;background: #fff;border-bottom:1px solid #eee;margin-bottom:10px;max-width:600px;margin:auto}
.slidee{padding: 0 10px 0px 5px !important;}
.top_nav{max-width:600px;margin:auto;width:100%;height:60px}
.top_nav .sch_btn{color:var(--c1);top:15px;position:absolute;right:50px}
.top_nav .lst_btn{color:var(--c1);top:15px;position:absolute;right:20px}
.contents,main{max-width:600px !important;width:100%;}
.popLayer{display:none;position:absolute;;bottom:60px;background:#eee;height:120px;width:100%;z-index:99999}
.item{padding:5px;display:block;height:110px;font-size:12px}
.item a{border-radius:5px;border:1px solid #ddd;padding:5px 20px;display:inline-block;margin-top:10px;font-size:14px}
.item b{font-size:14px}
.items{width:100%;}
.data_img img{width:100px;border-radius:5px;margin-right:10px}
#open-sheet{position:fixed;bottom:80px;z-index:2;padding:5px 20px;font-size:14px;border-radius:5px;border:0;}
.nostore{padding:20px}
.infow{border-radius:5px;border:1px solid #ddd;padding:5px 20px;display:block;margin-top:10px;font-size:12px}
#map{width:100%;height:100%;max-width:600px;}
main{padding-bottom:100px}
