@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

:root {
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  background: #F7F7F7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.container{
  margin: 30px auto;
  width: 350px;
}

h1 {
  letter-spacing: 1px;
  margin: 0;
  color: #2E75CC;
}

h3 {
  border-bottom: 1px solid #BBB;
  padding-bottom: 10px;
  margin: 40px 0 10px;
}

h4 {
  margin: 0;
  text-transform: uppercase;
}

.inc-exp-container {
  background: #FFF;
  box-shadow: var(--box-shadow);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.inc-exp-container > div {
  flex: 1;
  text-align: center;
}

.inc-exp-container > div:first-child {
  border-right: 1px solid #dedede;
}

.money {
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin: 5px 0;
}

.money.plus {
  color: #2ECC71;
}

.money.minus {
  color: #C0392B;
}

label {
  display: inline-block;
  margin: 10px 0;
}

input[type='text'],
input[type='number'] {
  border: 1px solid #DEDEDE;
  border-radius: 2px;
  display: block;
  font-size: 1rem;
  padding: 10px;
  width: 100%;
}

.btn {
  cursor: pointer;
  background: #9C88FF;
  box-shadow: var(--box-shadow);
  color: #FFF;
  border: 0;
  display: block;
  font-size: 1rem;
  margin: 10px 0 30px;
  padding: 10px;
  width: 100%;
}

.btn:focus,
.delete-btn:focus {
  outline: 0;
}

.transactions {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.transactions li {
  background: #FFF;
  box-shadow: var(--box-shadow);
  color: #333;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 10px;
  margin: 10px 0;
}

.transactions li.plus {
  border-right: 5px solid #2ECC71;
}

.transactions li.minus {
  border-right: 5px solid #C0392B;
}

.delete-btn {
  cursor: pointer;
  background: #E74C3C;
  border: 0;
  color: #FFF;
  font-size: 1.25rem;
  line-height: 20px;
  padding: 2px 5px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transactions li:hover .delete-btn {
  opacity: 1;
}