:root {
    --bg-main-color: #f8f8f180;
    --bg-accent-color: #2d2d2d;
    --accent-color: #107676;
    --accent-color-hover: #A887C1;
    --text-accent-color: #0a3831;
    --text-edit-bg-color: #f5f5f5;
    --border-color: #3f3f3f;
    --shadow-color: #202020;
    --document-bg-color: #68686850;
    --component-bg-gradient: radial-gradient(circle, #ffe498 0%, #a0fef5e6 100%);
    --smokywhite: #107676;
    --black: #000000;
    --translucent-black: #00000099;
  }
  
  li {
    list-style: none;
    padding-left: 0;
  }
  
  p {
    color: var(--smokywhite);
  }
  
  label {
    color: var(--text-accent-color);
  }
  
  dialog {
    border: 0;
  }
  
  * {
    outline: 0;
    box-sizing: border-box;
    font-family: 'HBIOS-SYS';
  }

  button {
    background: transparent;
    border: 0;
    outline: 0;
  }

  input,
  textarea {
    background-color: var(--text-edit-bg-color);
    color: var(--smokywhite);
    font-size: 1em;
  }
  
  body {
    background: url('../assets/background.png') center/cover no-repeat;
    font-family: Roboto, Oxygen, sans-serif;
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    font-size: 1.25rem;
    margin: 0;
  }
  
  .app {
    width: 100%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .banner {
    background: var(--bg-main-color);
    border-bottom: 1px solid var(--bg-accent-color);
    text-align: center;
  }
  
  .banner__title {
    margin: 20px;
    color: var(--accent-color);
  }
  
  .control-panel {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .create-button,
  .dialog__submit {
    margin: 0.1em 0.2em;
    text-align: center;
    user-select: none;
    padding: 1em 3em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 10px;
  }
  
  .create-button:hover,
  .dialog__submit:hover {
    background-color: var(--accent-color-hover);
  }

  .document {
    height: 100%;
    overflow-y: auto;
    background-color: var(--document-bg-color);
    /* Firefox */
    scrollbar-width: 6px;
    scrollbar-color: var(--bg-accent-color);
    scrollbar-face-color: var(--accent-color);
  }
  
  .document::-webkit-scrollbar {
    /* Safari and Chrome */
    background-color: var(--bg-accent-color);
    width: 6px;
  }
  
  .document::-webkit-scrollbar-thumb {
    /* Safari and Chrome */
    background-color: var(--accent-color);
  }
  
  .footer {
    background: var(--bg-main-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
  }
  /* @font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  } */

  @font-face {
    font-family: 'HBIOS-SYS';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2207-01@1.0/HBIOS-SYS.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* --Dialog-- */
.dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  background-color: var(--document-bg-color);
}

.dialog__container {
  display: flex;
  flex-direction: column;
  padding: 0.4em;
  width: 32em;
  background: var(--bg-accent-color);
  background: var(--component-bg-gradient);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 2px 2px 20px var(--shadow-color);
}

.form__container {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.close {
  align-self: flex-end;
  padding: 0.2rem;
  color: var(--accent-color);
  font-size: 28px;
  font-weight: bold;
  margin: 3px;
  transition: color 250ms ease;
}

.close:hover,
.close:focus {
  transform: scale(1.5);
  color: var(--shadow-color);
  text-decoration: none;
  cursor: pointer;
}

.dialog__submit {
  align-self: flex-end;
  padding: 0.5em 1.5em;
}

/* -- PAGE ITEM -- */
.page-item {
  margin: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  box-shadow: 2px 2px 6px var(--shadow-color);
  background: var(--component-bg-gradient);
}

.page-item__controls {
  padding-right: 0.5em;
}

.page-item__title {
  color: var(--text-accent-color);
}

.page-item__body {
  width: 100%;
}

/* -- Image & Video -- */
.video,
.image {
  display: flex;
  width: 100%;
  height: 250px;
}

.video__player,
.image__holder {
  flex: 60% 1 1;
}

.video__title,
.image__title {
  flex: 40% 1 1;
  margin-left: 0.5em;
}

.video__iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.image__thumbnail {
  width: 100%;
  height: 100%;
}

.video__iframe, 
.image__thumbnail {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* -- Note -- */
.note {
  padding: 0.5em;
}
/* -- TODO -- */
.todo {
  padding: 0.5em;
}

.todo__list,
.todo-label {
  padding: 1em;
  color: var(--smokywhite);
}

/*  ---- Drag and Drop ---- */

.mute-children * {
  /* best way는 아니지만 제일 간단한 방법*/
  pointer-events: none;
}

.lifted {
  animation: drag_start 250ms;
  opacity: 0.2;
}

@keyframes drag_start {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.drop-area {
  border: 4px solid var(--accent-color-hover);
}