@import url("animations.css");
@import url("../themes/app/main.css");

:root {
  --scroll-bar-width: none;
  --scrollbar-color: #5a5a5a54 transparent;
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
  --tw-inset-ring-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
  }
  --tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
  }
  --tw-ring-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
  }
}

html,
body {
  min-height: 100%;
  display: flex;
  width: 100%;
  position: relative;
}

* {
  scrollbar-width: var(--scroll-bar-width);
  scrollbar-color: var(--scrollbar-color);
}

.app.body {
  min-height: var(--screen-height, 100dvh);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

[class^="circle-"] {
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  min-height: var(--size);
  line-height: var(--size);
}

.primary-circle,
.secondary-circle,
.third-button-circle,
go-view-header-right [role="close"] go-icon {
  transition: all 0.25s ease;
}

.primary-circle:active,
.secondary-circle:active,
.third-button-circle:active,
go-view-header-right [role="close"]:active go-icon {
  transform: scale(1.3);
}

.circle-16 {
  --size: 16px;
}

.circle-24 {
  --size: 24px;
}

.circle-32 {
  --size: 32px;
}

.circle-48 {
  --size: 48px;
}

.circle-64 {
  --size: 64px;
}

.circle-128 {
  --size: 128px;
}

.circle-256 {
  --size: 256px;
}

.circle-512 {
  --size: 512px;
}

.title1,
[title1] {
  font-size: clamp(28px, 8vmin, 56px);
  font-family: var(--strong-font);
}

.title2,
[title2] {
  font-size: clamp(28px, 8vmin, 36px);
  font-family: var(--strong-font);
}

.title3,
[title3] {
  font-size: clamp(24px, 8vmin, 32px);
  font-family: var(--strong-font);
}

.title4 {
  font-weight: bold;
  font-size: clamp(20px, 8vmin, 30px);
  font-family: var(--strong-font);
}

.margin-0,
[margin-0],
.nomargin,
[nomargin] {
  margin: 0;
}

.centered,
[centered] {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.press,
[press] {
  cursor: pointer;
}

.press:active,
[press]:active,
.onpress:active,
[onpress]:active,
.onactive:active,
[onactive]:active {
  opacity: 0.4;
}

.View.toast .toastContent,
.View:not(.loader):not(.toast):not(.noshadow) > .ViewContent {
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.View.language {
  padding: calc(var(--gap) * 1.5);
}

.toastMessage {
  line-height: 1.2;
}

.margin-auto {
  margin: auto;
}

.margin-left-auto {
  margin-left: auto;
}

.margin-right-auto {
  margin-right: auto;
}

.margin-top-auto {
  margin-top: auto;
}

.margin-bottom-auto {
  margin-bottom: auto;
}

.langButton {
  padding: 0;
  font-size: 150%;
  overflow: hidden;
}

.langButton,
.langButton img {
  border-radius: 50%;
}

.footer .nav {
  align-items: center;
}

go-view-header-right .tag {
  align-self: center;
}

.View.confirm go-confirm {
  width: 100%;
}

.sticky {
  position: sticky;
}

.top {
  top: 0;
}

.bottom {
  bottom: 0;
}

.gap-b {
  padding-bottom: var(--gap);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border {
  border: 1px solid var(--border-color);
}

.border-right {
  border-right: 1px solid var(--border-color);
}

.border-left {
  border-left: 1px solid var(--border-color);
}

.w100 {
  width: 100%;
}

.h100 {
  height: 100%;
}

.hover-whitebg:hover {
  background-color: var(--white, #fff);
}

.ttop {
  vertical-align: text-top;
}

.tmiddle {
  vertical-align: middle;
}

.tbottom {
  vertical-align: bottom;
}

[color="light"] {
  color: var(--light);
}

[bg="light"] {
  background-color: var(--light);
}

[color="dark"] {
  color: var(--dark);
}

[bg="dark"] {
  background-color: var(--dark);
}

[border-hover]:hover,
.border-hover:hover {
  border-color: var(--primary-color);
}

[item-active]:active,
.item-active:active {
  opacity: 0.5;
}

.item-user:hover {
  background-color: var(--option-hover-background);
}

.item-user .left {
  flex: 1;
}

.item-user .info {
  padding: calc(var(--gap) * 0.5) 0;
  border-bottom: solid 1px var(--border-color);
  flex: 1;
}

.item-user .icon,
.item-user .avatar {
  color: var(--primary-color);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--border-color);
  width: calc(var(--gap) * 2.5);
  height: calc(var(--gap) * 2.5);
  margin: var(--gap) 0 var(--gap) var(--gap);
}

.item-user .icon img,
.item-user .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.item-user .name {
  font-weight: bold;
}

.menu.language {
  z-index: 9999;
}

select.select {
  padding: calc(var(--gap) * 0.75);
  width: 100%;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: solid 1px rgba(0, 0, 0, 0.1);
  background-color: rgba(232, 240, 254, 0.3);
}

.table-item {
  position: relative;
}

form.default,
go-items.default,
go-items.default-gap {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.body > feed,
.body > .feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  flex: auto;
  background-color: var(--feed-background-color);
  max-width: 100vw;
  min-height: 100dvh;
}

.body > feed > nav,
.body > .feed > nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px var(--border-color);
  align-items: stretch;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background-color: rgba(255, 255, 255, 0.72);
  z-index: 2;
}

.body > feed > nav :is(.left, .center, .right),
.body > .feed > nav :is(.left, .center, .right) {
  width: 33.33%;
  align-items: stretch;
}

.body > feed > nav :is(.left),
.body > .feed > nav :is(.left) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.body > feed > nav :is(.center),
.body > .feed > nav :is(.center) {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.body > feed > nav :is(.right),
.body > .feed > nav :is(.right) {
  display: flex;
  justify-content: flex-end;
}

.body > feed > nav .left .icon,
.body > .feed > nav .left .icon {
  margin: calc(var(--gap) * 1);
  aspect-ratio: 1 / 1;
  font-size: 150%;
  border-radius: 25%;
  overflow: hidden;
}

.body > feed > nav :is(.options),
.body > .feed > nav :is(.options) {
  align-items: stretch;
  display: flex;
  align-items: center;
}

.body > feed .feed-item .picture,
.body > .feed .feed-item .picture {
  --picture-size: 128px;
  aspect-ratio: 1 / 1;
  width: var(--picture-size);
  height: var(--picture-size);
  min-width: var(--picture-size);
  min-height: var(--picture-size);
  overflow: hidden;
  background-color: var(--app-item-background, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border-radius: 25%;
}

.body > feed .feed-item .picture img,
.body > .feed .feed-item .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.body > feed .feed-item .item-head,
.body > .feed .feed-item .item-head {
  display: flex;
  gap: calc(var(--gap) * 1);
  margin: 0 0 calc(var(--gap) * 1) 0;
}

.body > feed .feed-item,
.body > .feed .feed-item {
  padding: calc(var(--gap) * 1);
}

.body > feed .feed-item:not(:last-child),
.body > .feed .feed-item:not(:last-child) {
  border-bottom: solid 1px var(--border-color);
}

.body > feed .feed-item .info,
.feed .feed-item .info {
  display: flex;
  flex-direction: column;
}

.body > feed .feed-item .options,
.body > .feed .feed-item .options {
  margin: 0 0 0 auto;
}

.app-feed-item .item-head .name {
  font-size: 120%;
  line-height: 1.1;
}

.app-feed-item .item-head .version .value {
  opacity: 0.7;
}

.app-feed-item .screenshots {
  margin: var(--gap) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1);
}

.app-feed-item .screenshots .gallery {
  display: flex;
  max-width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  gap: calc(var(--gap) * 1);
}

.app-feed-item .screenshots .gallery img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.View.alert .alertCloseButton > div {
  background-color: var(--alert-button-background, var(--body-background, #e5e5e5));
  color: var(--alert-button-color, var(--primary-color));
  border: solid 1px var(--border-color);
  border-radius: 2pc;
  padding: calc(var(--gap) * 0.75);
}

img-o {
  background-color: var(--border-color);
}

.color-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--gap) * 1);
}

.color-input label,
.color-input .contain {
  flex: auto;
  width: auto;
  margin: 0 !important;
}

go-input.color-input input,
.go-input.color-input input {
  padding: 0 !important;
  height: calc(var(--gap) * 3);
  min-height: calc(var(--gap) * 3);
  width: calc(var(--gap) * 3);
  max-width: calc(var(--gap) * 3);
  border-radius: 50% !important;
}

.table-default,
.table-default table {
  border-collapse: collapse;
}

.table-default tr th,
.table-default table tr th {
  background-color: var(--table-header-background, var(--border-color));
  padding: var(--gap) calc(var(--gap) * 0.5);
}

.table-default tr th,
.table-default tr td,
.table-default table tr th,
.table-default table tr td {
  text-align: left;
  border: none;
}

.table-default tr th:last-child,
.table-default tr td:last-child,
.table-default table tr th:last-child,
.table-default table tr td:last-child {
  text-align: right;
}

.table-default tr th:first-child,
.table-default tr td:first-child {
  padding-left: var(--gap);
}

.table-default tr th:last-child,
.table-default tr td:last-child {
  padding-right: var(--gap);
}

.table-default .go-list-message {
  margin: calc(var(--gap) * 1) 0 0 0;
}

.table-default .itemSkeleton td {
  background-color: var(--skeleton-background, #f2f2f2);
  animation: skeleton-loading 1s linear infinite;
  color: rgba(0, 0, 0, 0);
}

.table-default .itemSkeleton td * {
  opacity: 0;
}

.table-default.loading,
.table-default.loading table {
  border-collapse: separate;
}

@media (min-width: 768px) {
  go-items[length="1"]:not(.free),
  go-items[length="2"]:not(.free),
  go-items[length="3"]:not(.free),
  go-items[length="4"]:not(.free) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  :root {
    --scroll-bar-width: thin;
  }

  .body > feed .feed-item .picture,
  .body > .feed .feed-item .picture {
    --picture-size: 156px;
  }

  go-items[length="1"]:not(.free),
  go-items[length="2"]:not(.free),
  go-items[length="3"]:not(.free),
  go-items[length="4"]:not(.free) {
    grid-template-columns: repeat(4, 1fr);
  }

  .body > feed,
  .body > .feed {
    border-left: solid 1px var(--feed-border-color, var(--border-color));
    border-right: solid 1px var(--feed-border-color, var(--border-color));
    max-width: var(--feed-max-width, 744px);
  }

  .app-feed-item .item-head .name {
    font-size: 130%;
  }
}
