*{
  box-sizing: border-box;
}

body {
  margin: auto;
  background-color: #EEE;
  color: #333;
  text-align: center;
  overflow: auto;
}

header {
  display: flex;
  height: 50px;
  justify-content: space-between;
  align-items: center;
  background-color: #FFF;
}

#settings-toggle {
  position: relative;
  z-index: 20;
  width: 40px;
  height: 20px;
  margin: 0 10px 0 0;
}
#settings-toggle > div {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: 0.4s;
}
#settings-toggle > div:last-child {
  bottom: 0;
}
#settings-toggle > div.settings-selected:first-child {
  transform: translateY(9px) rotate(45deg);
}
#settings-toggle > div.settings-selected:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

#settings {
  position: fixed;
  bottom: 100vh;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background-color: #FFF;
  transition: 0.4s ease-out;
}
#settings.selected {
  bottom: 0;
}

h2 {
  font-size: 6vw;
}
span {
  font-size: 4vw;
}
[id^=error] {
  display: none;
  width: 80vw;
  margin: 3vw auto 0;
  padding: 0.5vw 0;
  border: 0.2vw solid #D7000F;
  border-radius: 1vw;
  background-color: #FFD6D9;
  color: #D7000F;
  font-size: 4vw;
  animation: zoom 0.4s ease-out forwards;
}

input[type="text"] {
  border: 0.2vw solid #AAA;
  border-radius: 1vw;
  background-color: #FFF;
  font-size: 6vw;
  outline: none;
  transition: 0.4s ease-out;
}
input[type="text"].input-error {
  border-color: #D7000F;
  background-color: #FFD6D9;
}
input[type="text"]:focus {
  transform: scale(1.05);
  border-color: #00AEE0;
  background-color: #FFF;
}
input[type="text"]:not(.input-error):not(:focus):hover {
  border-color: #333;
}

.dropdown {
  display: inline-block;
  position: relative;
}
.dropdown > div {
  display: none;
  position: absolute;
  top: 105%;
  right: -2.5%;
  z-index: 1;
  width: 105%;
  max-height: 40vw;
  overflow: scroll;
  border-radius: 1vw;
  background-color: #FFF;
  animation: zoom 0.4s ease-out forwards;
}
.dropdown > div > p {
  width: 90%;
  margin: 0 auto;
  padding-top: 1vw;
  padding-bottom: 1vw;
  font-size: 5vw;
}
.dropdown > div > p:hover {
  background-color: #EEE;
}
.dropdown > div > p:not(:last-child) {
  border-bottom: 0.2vw solid #AAA;
}

button {
  position: fixed;
  left: 10vw;
  bottom: 4vw;
  width: 80vw;
  padding: 1vw 0;
  border-radius: 1vw;
  border-width: 0;
  background-color: #39A869;
  color: #FFF;
  font-size: 6vw;
  transition: 0.4s ease-out;
}
button:active {
  transform: scale(1.05);
  background-color: #50C380;
}

#input-year {
  width: 30vw;
}
#input-month {
  width: 15vw;
}
#input-day {
  width: 15vw;
}
#input-money {
  width: 80vw;
}
#input-comment {
  width: 80vw;
}
#input-category {
  width: 80vw;
}
#input-name {
  width: 80vw;
}