* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::-webkit-scrollbar {
  display: none;
}

html,
body {
  font-family: 'Helvetica Neue', sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(to left, #B24592, #F15F79);
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.title {
  display: flex;
  position: fixed;
  padding: 10px;
  left: env(titlebar-area-x, 0);
  top: env(titlebar-area-y, 0);
  width: env(titlebar-area-width, 100%);
  height: env(titlebar-area-height, 40px);
  -webkit-app-region: drag;
  app-region: drag;
  filter: invert(1);
  user-select: none;
  z-index: 2;
}

.title img {
  width: 20px;
  height: 20px;
}

.title span {
  padding-left: 10px;
  font-weight: bold;
}

.wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 400px;
  height: 620px;
  background-color: #fff;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  animation: fadein 1s;
}

.wrapper__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.notepad__heading {
  width: 100%;
  padding: 60px 40px 15px;
  border-bottom: 1px solid #f5f4f4;
  color: #5f5f5f;
  font-weight: 400;
}

.notepad__form-label {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.notepad__form-input {
  border: 0;
  width: 100%;
  line-height: 1.3;
  margin: 0;
  font-size: 19px;
  color: #5f5f5f;
  padding: 30px 40px;
  background-color: transparent;
  transition: background-color 300ms ease;
}

.notepad__form-input:focus {
  outline: 0;
  background-color: #f5f5f5;
}

.notepad__list {
  height: 365px;
  overflow: scroll;
}

.notepad__list-item {
  width: 100%;
  padding: 30px 40px;
  border: 0;
  border-bottom: 1px solid #f5f4f4;
  line-height: 1.3;
  font-size: 19px;
  list-style-type: none;
  color: #5f5f5f;
  background-color: transparent;
}

.notepad__list-item:first-of-type {
  border-top: 1px solid #f5f4f4;
}

.notepad__clear {
  position: absolute;
  bottom: 0;
  display: none;
  width: 100%;
  padding: 20px;
  border: 0;
  font-size: 12px;
  text-transform: uppercase;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-family: Helvetica Neue, sans-serif;
  letter-spacing: 2px;
  transition:
    color 300ms ease,
    background-color 300ms ease;
}

.notepad__clear:focus {
  outline: 0;
}

.notepad__clear:hover {
  color: #fff;
  background-color: #ea3860;
}

.notepad__clear--display {
  display: block;
}

.info {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 15px 15px 12px 15px;
  transition: background-color 300ms ease;
}

.info span {
  display: none;
}

.info svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: fill 300ms ease;
}

.info:hover svg {
  fill: #333;
}

@media screen and (max-width: 500px) {
  body {
    height: auto;
    min-height: 100vh;
    background: none;
  }

  .wrapper {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: scroll;
    box-shadow: none;
    animation: none;
    border-radius: 0;
  }

  .notepad {
    padding: 15px;
  }

  .notepad__form-input {
    height: auto;
  }

  .notepad__list {
    height: auto;
  }

  .notepad__clear {
    position: static;
  }

  .info {
    display: none;
  }
}

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

  .wrapper__inner,
  .notepad__heading,
  form,
  .notepad__list,
  .notepad__clear {
    background-color: #222;
    color: #f5f5f5;
  }

  .notepad__heading {
    border-bottom: 1px solid #484848;
  }

  .notepad__form-input {
    color: #f5f5f5;
  }

  .notepad__form-input:focus {
    background-color: #444;
  }

  .notepad__list-item {
    border-bottom: 1px solid #484848;
    color: #f5f5f5;
  }

  .notepad__list-item:first-of-type {
    border-top: 1px solid #484848;
  }
}

@media screen and (prefers-color-scheme: dark) and (max-width: 500px) {
  .info svg {
    fill: #f5f5f5;
  }
}