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

body {
  color: #555;
  font-family: Open Sans;
  font-size: 16px;
  position: relative;
  height: 100vh;
  font-weight: 400;
  /* background: linear-gradient(#334d50, #cbcaa5); */
  background-color: #2c3e50;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.right { 
  float: right; 
}

.red { 
  color: #FF5049 !important; 
}

.red-focus:focus { 
  border: 1px solid #FF5049 !important; 
}

.top {
  height: 40vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.income-title {
  color: #fff;
}

.expenses-title {
  color: #fff;
}

.expenses-list {
  color: white;
}

.budget {
  position: absolute;
  width: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.budget-title {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 300;
}

.budget-value {
  font-weight: 300;
  font-size: 46px;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.budget-income,
.budget-expenses {
    padding: 12px;
    text-transform: uppercase;
}

.budget-income {
    margin-bottom: 10px;
    background-color: #28B9B5;
}

.budget-expenses {
    background-color: #FF5049;
}

.budget-income-text,
.budget-expenses-text {
    float: left;
    font-size: 13px;
    color: #444;
    margin-top: 2px;
}

.budget-income-value,
.budget-expenses-value {
    letter-spacing: 1px;
    float: left;
}

.budget-income-percentage,
.budget-expenses-percentage {
    float: left;
    width: 34px;
    font-size: 11px;
    padding: 3px 0;
    margin-left: 10px;
}

.budget-expenses-percentage {
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    border-radius: 3px;
}


.add {
    padding: 14px;
    border-bottom: 1px solid #e7e7e7;
    background-color: #f7f7f7;
    background-color: #2c3e50;

}

.add-container {
    margin: 0 auto;
    text-align: center;
}

.add-type {
    width: 55px;
    border: 1px solid #e7e7e7;
    height: 44px;
    font-size: 18px;
    color: inherit;
    background-color: #fff;
    margin-right: 10px;
    font-weight: 300;
    transition: border 0.3s;
}

.add-description,
.add-value {
    border: 1px solid #e7e7e7;
    background-color: #fff;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 15px;
    margin-right: 10px;
    border-radius: 5px;
    transition: border 0.3s;
}

.add-description { width: 400px;}
.add-value { width: 100px;}

.add-btn {
    font-size: 35px;
    background: none;
    border: none;
    color: #28B9B5;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.1;
    margin-left: 10px;
}

.add-btn:active { transform: translateY(2px); }

.item-delete-btn:focus { outline: none; }
.item-delete-btn:active { transform: translateY(2px); }

.add-type:focus,
.add-description:focus,
.add-value:focus {
    outline: none;
    border: 1px solid #28B9B5;
}

.add-btn:focus { outline: none; }

.container {
    width: 1000px;
    margin: 60px auto;
}


.income {
    float: left;
    width: 475px;
    margin-right: 50px;
}

.expenses {
    float: left;
    width: 475px;
}

h2 {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
}

.item {
    padding: 13px;
    border-bottom: 1px solid #e7e7e7;
}

.item:first-child { border-top: 1px solid #e7e7e7; }
/* .item:nth-child(even) { background-color: #f7f7f7; } */

.item-description {
    float: left;
    color: #fff;
}

.item-value {
    float: left;
    transition: transform 0.3s;
}

.item-percentage {
    float: left;
    margin-left: 20px;
    transition: transform 0.3s;
    font-size: 11px;
    background-color: #FFDAD9;
    padding: 3px;
    border-radius: 3px;
    width: 32px;
    text-align: center;
}

.income .item-value,
.income .item-delete-btn {
    color: #28B9B5;
}

.expenses .item-value,
.expenses .item-percentage,
.expenses .item-delete-btn {
    color: #FF5049;
}


.item-delete {
    float: left;
}

.item-delete-btn {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    display: none;
}

.item:hover .item-delete-btn { display: block; }
.item:hover .item-value { transform: translateX(-20px); }
.item:hover .item-percentage { transform: translateX(-20px); }


.unpaid {
    background-color: #FFDAD9 !important;
    cursor: pointer;
    color: #FF5049;

}

.unpaid .item-percentage { box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1); }
.unpaid:hover .item-description { font-weight: 900; }

