﻿
/* styles/_variables.scss */
:root {
  --document-surface-color: #fff;
  --line-color: #E1E1E1;
  --surface-color: #fff;
  --surface-color-2: #f0f2f5;
  --surface-color-3: #f0f2f5;
  --surface-color-4: #f0f2f5;
  --color: #000;
  --color-2: #000;
  --color-3: #000;
  --button-color: #E3E7EE;
  --accent-color: #ff5924;
  --alert-color: #ff002e;
  --dropshadow-color: #BABFC2;
  --highlight-color: #fff6aa;
  --gutter: 80px;
  --bar-height: 60px;
  --col-gap: 25px;
  --backdrop-color: rgb(0 0 0 / 80%);
  --inset-top: 0px;
  --inset-bottom: 0px;
  --native-nav-gradient-inset: 20px;
  --note-divider-color: #748297;
  --shortcut-button: #e3e7ee;
  --sunrise-gradient: linear-gradient(113deg, #F2E5D7 1.23%, #DDCAB5 98.53%), #DDCAB5;
  --button-bg-color: #fff;
  --button-gradient: linear-gradient(90deg, #ED9EC0 0%, #F5BB79 50%, #FF3B21 100%);
  --fallback-box-shadow: 0px 77px 31px rgb(64 70 79 / 2%), 0px 43px 32px rgb(64 70 79 / 7%), 0px 19px 19px rgb(64 70 79 / 8%), 0px 2px 7px rgb(64 70 79 / 10%);
  --transition-ease: cubic-bezier(0.25, 0.1, 0, 1);
  --card-color: #909CAE;
  --card-logo-color: #909CAE;
  --card-shadow-color: #D4DCE7;
  --scrollbar-width: 8px;
  --scrollbar-color: #D0D8E5;
  --scrollbar-handle-color: #ebeef3;
  --scrollbar-handle-hover-color: #ebeef3;
  --later-tag-background: #F0FFFE;
  --later-tag-color: #559490;
  --read-later-color: #2DA579;
  --read-later-background: rgba(53, 196, 144, 0.12);
  --watch-later-color: #FF2F54;
  --watch-later-background: rgba(255, 47, 84, 0.12);
  --listen-later-color: #2894D7;
  --listen-later-background: rgba(63, 159, 219, 0.12);
  --own-color: #2894D7;
  --own-background: rgba(63, 159, 219, 0.12);
  --todo-color: #FCA103;
  --ui-font-family: 'Nunito';
}
body.native.ios {
  --native-nav-gradient-inset: 30px;
  --notification-bottom-mobile: calc(65px + var(--native-nav-gradient-inset));
  padding-bottom: 65px;
}
body.ipad {
  --inset-top: 10px;
  --inset-bottom: 10px;
}
@property --radius {
  syntax: "<length>";
  initial-value: 0px;
  inherits: true;
}
@property --progress {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

/* styles/graph/_animations.scss */
@keyframes spin {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

/* styles/graph/_box.scss */
body.share-view {
  background-color: rgb(0 0 0 / 80%);
  .focus-mode__trigger, same-vibe-button {
    display: none;
  }
}
mymind-card-sidebar {
  display: flex;
  flex-flow: column;
  > header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
  }
  footer {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    > a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      height: 40px;
      border-radius: 20px;
      padding: 0 20px;
      border: 1px solid #748297;
      background-color: transparent;
      color: #748297;
      font: 600 14px / 1 Nunito;
      letter-spacing: 1.4px;
      -webkit-user-select: none;
      user-select: none;
    }
  }
  div.guts {
    display: flex;
    justify-content: center;
    flex-grow: 1;
  }
  .details {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    .details-content {
      width: 100%;
      padding: 60px 50px;
      box-sizing: border-box;
    }
    .tag {
      display: flex;
      gap: 6px;
      align-items: center;
      font-size: 13px;
      font-weight: 600;
      -webkit-user-select: none;
      user-select: none;
      width: max-content;
      margin: 0 auto;
      padding: 4px 12px;
      border-radius: 14px;
      background-color: #fff;
      color: #748297;
      &.tag--palette {
        width: 135px;
      }
    }
    .type-icon {
      aspect-ratio: var(--icon-aspect, 1 / 1);
      background-color: #748297;
      height: 16px;
      display: inline-block;
      mask: var(--icon-src) center / contain no-repeat;
    }
    .title {
      font: 45px / 1.125 'Louize';
      margin: 15px auto 5px;
      letter-spacing: -.01em;
      word-break: break-word;
      color: #000;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      width: 100%;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-clip-path: polygon(0 0, 0 102%, 100% 102%, 100% 0);
      clip-path: polygon(0 0, 0 102%, 100% 102%, 100% 0);
      &.smaller {
        font-size: 37px;
      }
    }
    .author {
      font-size: 17px;
      margin: 0 auto 25px;
      letter-spacing: -.02em;
    }
    .button {
      font: 15px 'Helvetica Neue', 'Arial';
      display: block;
      box-sizing: border-box;
      width: 207px;
      margin: 0 auto;
      padding: 12px 13px;
      transition: background-color 250ms ease;
      text-align: center;
      text-decoration: none;
      letter-spacing: 0.1em;
      color: #fff;
      border-radius: 25px;
      background-color: var(--accent-color);
      cursor: pointer;
      -webkit-user-select: none;
      user-select: none;
      &:hover {
        background-color: color-mix(in srgb, #ff5924, #fff 10%);
      }
      &.save {
        visibility: hidden;
        opacity: 0;
        translate: 0 25px;
        transition: translate 0.3s ease, opacity 0.3s ease;
        &.disabled {
          translate: none;
          visibility: visible;
          opacity: 1;
        }
      }
      &.saved {
        background: linear-gradient(90deg, #ED9EC0 0%, #F5BB79 51.04%, #FF3B21 100%);
        color: #fff;
        width: 255px;
        opacity: 0;
        translate: 0 0;
        visibility: hidden;
        padding: 14px 13px 12px 35px;
        &.visible {
          translate: 0 -40px;
        }
        .icon {
          mask: url('./../icons/check.svg') center / cover no-repeat;
          background-color: #fff;
          width: 23px;
          height: 17px;
          display: inline-block;
          position: absolute;
          top: -4px;
          left: 0;
          pointer-events: none;
          scale: 0.72;
          translate: 18px 18px;
        }
      }
      &.disabled {
        cursor: unset;
        background-color: #DDE4EE;
        color: #B9C4D4;
      }
      &.visible {
        transition: translate 0.5s ease, opacity 0.5s ease;
        visibility: visible;
        opacity: 1;
        translate: 0 0;
      }
    }
    .note {
      letter-spacing: -.02em;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
      .spinner {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border-radius: 50%;
        position: relative;
        margin-bottom: 10px;
        &:hover .tooltip {
          top: -92px;
          opacity: 1;
        }
        &::before,
&::after {
          content: '';
          position: absolute;
          left: 0;
          width: 20px;
          height: 20px;
          border-radius: 50%;
        }
        &::before {
          animation: 1s spin ease-out infinite;
          box-shadow: 0 2px 7px #ff5924;
        }
        &::after {
          animation: 1.25s spin ease-out infinite;
          box-shadow: 0 2px 7px #ff00a8;
        }
      }
      .tooltip {
        position: absolute;
        top: -100px;
        left: 50%;
        box-sizing: border-box;
        width: 220px;
        padding: 10px 13px;
        font-size: 14px;
        font-style: normal;
        line-height: 1.4;
        translate: -50% 0;
        text-align: left;
        letter-spacing: 0.005em;
        pointer-events: none;
        opacity: 0;
        color: #101010;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 11px 11px 22px rgb(0 0 0 / 10%);
        transition: top 0.3s ease, opacity 0.3s ease;
        &::after {
          content: '';
          position: absolute;
          bottom: -6px;
          left: calc(50% - 15px / 2);
          width: 15px;
          height: 15px;
          rotate: 45deg;
          border-radius: 7px;
          background: #fff;
        }
      }
      mymind-timer {
        display: inline-block;
        font-weight: 600;
        text-decoration: underline;
      }
    }
  }
}

/* styles/graph/capture.scss */
.capture {
  position: relative;
  display: flex;
  width: 800px;
  height: 450px;
  align-items: center;
  justify-content: center;
  .palette-colors {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    width: 100%;
    height: 100%;
  }
  &.private-note {
    width: 1012px;
    height: 506px;
    background-size: cover;
    background-image: url('../images/private-note-background.jpg');
    p {
      width: 750px;
      margin-top: 0.5em;
      font: 400 60px / 1 'Louize';
      text-align: center;
      color: #fff;
      letter-spacing: -0.055em;
      text-shadow: 4px 4px 22px #C47E79;
      a {
        color: #fff;
        text-decoration: none;
      }
    }
    blockquote {
      p {
        line-height: 1.325;
      }
    }
  }
  blockquote {
    font: 40px 'Louize';
    color: #000;
    display: flex;
    box-sizing: border-box;
    height: 488px;
    margin: 1em 0 0.5em;
    padding: 30px;
    text-align: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    p {
      font: 400 40px / 1.325 'Louize';
      letter-spacing: -.02em;
      margin: -10px auto 25px;
      padding: 0;
      color: #000;
      &::before,
&::after {
        display: block;
        margin-top: 0.6em;
        font-size: 2em;
        line-height: 0;
      }
      &::before {
        content: "“";
        padding-bottom: 10px;
      }
      &::after {
        content: "”";
        padding-top: 20px;
      }
    }
  }
}
.capture-logo {
  position: absolute;
  width: 65px;
  bottom: 40px;
  left: 50%;
  translate: -50% 0;
  filter: invert(1);
}