:root {
  --text-color: #555;
  --main-bg: white;
  --footer-bg: #FAFAFA;
  --primary-bg:blue;
  --button-bg: #555555;
}

@media (prefers-color-scheme: dark) {
  :root {
  }
}

html, body {
  height: 100%;
  font-family: sans-serif;
  margin: 0;
  -ms-user-select: none;
      user-select: none;
  -webkit-user-select: none;
}

button {
  font-size: 13.3333px;
}

.ty-welcome {
  height: 100%;
  color: #555;
  color: var(--text-color);
}

.welcome-page {
  display: flex;
  --webkit-flex-direction: column;
  flex-direction: column;
  background: white;
  background: var(--main-bg);
  height: 100%;
}

.page-main {
  flex: 1 1;
  display: flex;
  flex-direction: row;
  padding-top: 16px;
}

.right {
  flex: 1 1;
  padding-top: 16px;
  padding-right: 24px;
  overflow-x: hidden;
}

.right-blocker {
  background: white;
  background: var(--main-bg);
  position: fixed;
  top:0;
  right: 0;
  width: 12px;
  bottom:78px;
}

.left {
  -webkit-app-region: drag;
}

body {
  -webkit-app-region: drag;
  box-sizing: border-box;
}

.os-windows {
  border: 1px solid rgb(116 116 116 / 48%);
}

button, input, label, a, .dy-content:not(#after-purchase)  {
  -webkit-app-region: no-drag;
}

h1 {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  display: flex;
  align-items: center;

  color: #444444;
}

p {
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.logo {
  width: 70px;
  display: block;
  position: relative;
  top: 16px;
  left:0;
  margin: 8px 24px;
  transition: top ease 0.3s , left ease 0.3s;
}

.page-footer {
  height: 78px;
  background: #FAFAFA;
  background: var(--footer-bg);
  display: flex;
  justify-content: space-between;
}

.footer-left {
  min-width: 20px;
  align-self: center;
  padding-left: 32px;
}

.footer-right {
  align-self: center;
  padding-right: 32px;
}

.default-btn {
  min-width: 106px;
  height: 32px;

  background: #555555;
  border-radius: 4px;
  outline: none;

  color:white;
  border: none;
  padding: 0 16px;
}

.default-btn:hover {
  background: #000;
  color: #fff;
}

.cancel-btn {
  background: #9e9e9e54;
  color: #555;
}

.page-content {
  display: flex;
  transition: transform 150ms ease-out;
}

.feature1 #purchase {
  display: none;
}

.page-content::-webkit-scrollbar {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: auto auto;/*repeat(2, minmax(0, 1fr));*/
  grid-gap: 12px;
  grid-template-rows: 90px 90px;
  margin-top: 18px;
}

.dy-content {
  scroll-snap-align: start;
  flex-shrink: 0;
  margin-right: 10px;
  width: calc(100vw - 140px);
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
}

.guide-item {
  padding: 12px;
  margin: 8px 0;
  background: #f7f7f7;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.guide-item:hover {
  background: #EEE;
}

.guide-item h4 {
  margin-bottom: 0;
  font-weight: normal;
}

.guide-item-link {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0.2;
}

.guide-item:hover .guide-item-link {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0.6;
}

.feature-item {
  background: beige;
  border-radius: 4px;
  padding: 12px;
  min-width: 260px;
}

.feature-item:nth-child(2) {
  background: #f3e0ee;
}

.feature-item:nth-child(3) {
  background: #e2ffc0;
}

.feature-item:nth-child(4) {
  background: #c8e5fb;
}

.grid-right .feature-item:nth-child(1) {
  background: #f3f3f3;
}

.grid-right .feature-item:nth-child(2) {
  background: #d2f5f9;
}

.grid-right .feature-item:nth-child(3) {
  background: #fbe6e4;
}

.grid-right .feature-item:nth-child(4) {
  background: #fcffd9;
}

p.desc{
  margin: 0;
  white-space: break-spaces;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.feature-item {
  display: flex;
  margin-right: 10px;
}

.feature-item-icon {
  margin-right: 12px;
  margin-left: 2px;
  margin-top: 0px;
}

.feature-item-icon svg{
  width: 24px;
  height: 24px;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
}

.feature-item h4 {
  margin-top: 0.2em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 240px;
  word-break: break-all;
  word-wrap: break-word;
}

.input-group,
.checkbox-group {
  font-size: 13.33px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.input-group label {
  display: block;
  width: 120px;
  color: black;
  text-transform: uppercase;
}

.input-group input {
  flex: 1 1;
  display: block;
  margin: 0 12px;
  line-height: 28px;
  border: #cacaca 1px solid;
  border-radius: 4px;
  box-shadow: none;
  outline: none;
  padding-left:8px;
  font-size: inherit;
}

.input-group input::-webkit-input-placeholder {
  color: #cacaca;
}

.input-group input:-ms-input-placeholder {
  color: #cacaca;
}

.input-group input::-ms-input-placeholder {
  color: #cacaca;
}

.input-group input::placeholder {
  color: #cacaca;
}

.checkbox-group-wrapper {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f7f7f7;
  padding: 0 8px;
  margin: 8px 12px 0 0;
}

.checkbox-group:first-child {
  border-bottom: 1px solid #eee;
}

.checkbox-group {
  margin: 0;
  line-height: 2;
  padding: 6px 0;
}

.checkbox-group input {
  margin-right: 2ch;
}

.primary-btn {
  background: #5B58AD;
}

.secondary-btn {
  background: #555555;
  color: #F8FAFB;
  margin-left: 32px;
}

.default-btn:disabled,
.default-btn:disabled:hover {
  background: #9e9e9e54;
  color: #555;
  opacity: 0.5;
  cursor: not-allowed;
} 

.l-msg-row {
  font-size: 13px;
  min-height: 16px;
}

.l-help {
  float: right;
  margin-right: 12px;
}

.l-error-msg {
  color: #e91e63;
}

.has-error input {
  border-color: #e91e63;
}

.checkbox-group.has-error {
  color: #e91e63;
}

.after-purchase .logo {
  width: 128px; 
  top: 78px;
  left: 292px;
}

#after-purchase {
  width: 100vw;
  margin-top: 120px;
  text-align:center;
}

.after-purchase .left{
  width: 0;
}

.after-purchase .page-footer {
  display: none;
}

.after-purchase .desc {
  -webkit-animation: fadeIn ease 0.5s;
  animation: fadeIn ease 0.5s;
}

h2 {
  display: block;
  font-size: 1.5em;
  -webkit-margin-before: 0.83em;
          margin-block-start: 0.83em;
  -webkit-margin-after: 0.83em;
          margin-block-end: 0.83em;
  -webkit-margin-start: 0px;
          margin-inline-start: 0px;
  -webkit-margin-end: 0px;
          margin-inline-end: 0px;
  font-weight: normal;
  color: black;
}

@keyframes fadeIn {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:0.6;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:0.6;}
}

#end-welcome {
  margin-top: 60px;
  display: none;
}

.after-purchase #end-welcome {
  display:inline-block;
}

.purchase button:focus {
  outline: 5px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: dark) {

  :root {
    --text-color: #fff;
    --main-bg: #535353;
  }

  .page-main, body {
    background: #535353;
    color: #fff;
  }

  .page-footer, .guide-item  {
    background: #3c3c3c;
    color: #ddd;
  }

  .guide-item:hover {
    background: #000;
  }

  h1, h2, .input-group label, .text-btn:hover {
    color: #fff;
  }

  .feature-item{
    color: #535353;
  }

  .text-btn:hover  {
    font-weight: bold;
  }

  .guide-item-link {
    opacity: 0.6;
    fill: #fff;
  }

  .text-btn {
    color: #eee;
  }

  .input-group input, .checkbox-group-wrapper {
    background: #3c3c3c;
    color: #fff;
  }

  .checkbox-group,
  .checkbox-group-wrapper {
    border-color:#888 !important;
  }

  .cancel-btn, .secondary-btn, 
  .default-btn:disabled, .default-btn:disabled:hover {
   color: #fff;
  }

  .input-group input:focus-visible,
  .input-group input:focus {
      outline: none;
      border: solid 1px #9fa8da;
  }

  a, .l-help {  
    color: #eeb9f7;
  }

  .dangerous-btn {
    background: #d40a4f;
  }

  .l-error-msg, .checkbox-group.has-error {
    color: #f59088;
  }
  
  .has-error input {
    border: #f59088 1px solid;
  }
}

