body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 640px;
  margin: 8px;
}

div.menu {
  position: fixed;
  width: 640px;
}

div.under_menu {
  clear: both;
  padding: 5px;
  font-size: 0.8rem;
  color: gray;
}

div.under_menu > a {
  margin-left: 10px;
}

.content {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
}

.top {
  top: 0;
  left: 0;
}

.bottom {
  bottom: 20px;
  left: 0;
}

div.bar_wrapper {
  width: calc(100% - 40px);
  height: 40px;
  float: left;
  box-sizing: border-box;
  padding: 6px;
}

div.bar_border {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid #b3b3b3;
  border-radius: 20px / 10px;
  overflow: hidden;
}

div.bar {
  height: 100%;
  background-color: #a6120d;
}

div.add_icon {
  width: 40px;
  height: 40px;
  float: left;
  /* "add.svg" recep kütük © 2015 http://recepkutuk.com/bitsies/ */
  background-image: url("../images/add.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80% auto;
}

.items {
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}
.items > div {
  width: calc(100% - 48px);
  border-bottom: 1px solid silver;
}

.items > div > div:nth-child(1) {
  height: 32px;
  line-height: 32px;
}

.items > div > div:nth-child(1) > div:nth-child(1) {
  float: left;
}

.items > div > div:nth-child(1) > div:nth-child(2) {
  float: right;
  margin-right: 4px;
  width: 32px;
  height: 100%;
  /* "remove.svg" ©2014 finest.graphics http://finest.graphics/ */
  background-image: url("../images/remove.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}
.items > div > div:nth-child(1)::after, .dialog_head::after {
  content: "";
  display: block;
  clear: both;
}

.items > div > div:nth-child(2) {
  width: 50%;
  line-height: 48px;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 640px;
  height: 100vh;
  z-index: 1024;
  background-color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.dialog {
  margin-top: 15vh;
  display: inline-block;
  background-color: #fffaf0;
  border-radius: 5px;
}
.dialog_head {
  height: 24px;
  line-height: 24px;
  font-size: 1rem;
  border-bottom: 2px solid #a6120d;
}

.dialog_title {
  float: left;
  padding: 2px 8px;
  border-radius: 5px 0px 0px 0px / 5px 0px 0px 0px;
}

.dialog_close {
  float: right;
  background-color: #fffaf0;
  border-radius: 0px 5px 0px 0px / 0px 5px 0px 0px;
  width: 24px;
  height: 100%;
  background-image: url("../images/remove.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90% auto;
}

.add_dialog > div {
  padding: 8px;
  text-align: right;
}

.add_dialog input {
  width: 160px;
}

label {
  white-space: nowrap;
}

.remove_dialog {
  padding: 8px;
}
button {
  margin: 10px 10px 5px;
}

@media (max-width: 640px) {
  body, div.menu, .overlay,   .items > div > div:nth-child(2) {
    width: 100%;
  }
}
