@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-color: hsl(27, 66%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  font-family: "DM Sans", sans-serif;
}
.card-top {
  width: 30em;
  height: 6.5em;
  background-color: hsl(10, 79%, 65%);
  border-radius: 15px;
  color: white;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-top p {
    font-size: 14px;
}
.card-top span {
  font-size: 25px;
  font-weight: bold;
}
.card-amount{
    height: inherit;
    display: flex;
    padding-block: 15px;
    flex-direction: column;
    justify-content: space-evenly;
}
.card-bottom {
  width: 30em;
  padding: 30px;
  margin-top: 20px;
  height: 25em;
  background-color: white;
  border-radius: 15px;
}
.CurrencyBar{
  width: 100%;
  height: 180px;
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}
.bar{ 
  width: 10%;
  background-color: hsl(10, 79%, 65%);
  border-radius: 5px;
  position: relative;
  animation: opening 1.5s 0.5s;
}
.mon{
   height:25%;
}

.tue{
  height: 50%;
}
.wed{
  height: 75%;
}
.thu{
  height: 45%;
}
.fri{
  height: 35%;
}
.sat{
  height: 60%;
}
.sun{
  height: 40%;
}
@keyframes opening {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.barBefore::before{
  content: "";
  box-sizing: border-box;
  width: 60px;
  height: 30px;
  position: absolute;
  background-color: hsl(25, 47%, 15%);
  color: white;
  border-radius: 5px;
  padding: 5px;
  top: -40%;
  left: -15%;
  transform: scaleY(0);
  transition: all .2s ease-in ;
  font-family: "DM Sans", sans-serif;
  text-align: center;
}
.mon::before{
  content: "$17.45";
  top: -80%;
}
.tue::before{
  content: "$34.91";
}
.wed::before{
  content: "$52.36";
  top: -30%;
}
.thu::before{
  content: "$31.07";
}
.fri::before{
  content:"$23.39";
  top: -60%;
}
.sat::before{
  content: "$43.28";
  top:-40%;
}
.sun::before{
  content: "$25.48";
  top: -55%;
}
.bar:hover{
  background-color: hsl(10, 79%, 70%) ;
  cursor: pointer;
}
.CurrencyBar > div:hover::before{ 
  transform: scaleY(1);
}
.CurrencyBar > div::after{
  color: hsl(28, 10%, 53%);
  top: 105%;
  position:absolute;
}
.CurrencyBar > div:nth-child(1)::after{
  content: "mon";
  left: 10%;
}
.CurrencyBar > div:nth-child(2)::after{
  content: "tue";
  left: 15%;
}
.CurrencyBar > div:nth-child(3)::after{
  content: "wed";
  left: 15%;
}
.CurrencyBar > div:nth-child(4)::after{
  content: "thu";
  left: 20%;
}
.CurrencyBar > div:nth-child(5)::after{
  content: "fri";
  left: 25%;
}
.CurrencyBar > div:nth-child(6)::after{
  content: "sat";
  left: 20%;
}
.CurrencyBar > div:nth-child(7)::after{
  content: "sun";
  left: 15%;
}
.barActive{
  background-color: hsl(186, 34%, 60%);
  width: 10%;
  border-radius: 5px;
  position: relative;
  animation: opening 1.5s 0.5s;
}
.barActive:hover{
  background-color: hsl(186, 34%, 70%);
  cursor: pointer;
}
.amountMonth{
  margin-top: 3em;
  border-top: 1.5px solid hsl(28, 10%, 90%);
  border-radius: 1.5px;
  padding-top: 2.5em;
  display: flex;
  justify-content:space-between;
  color: hsl(25, 47%, 15%);
  font-weight: bold;
}
#totalthismonth{
  font-size: 2.5em;
  color: hsl(25, 47%, 15%);
  position: relative;
}
#totalthismonth::before{
  content: "Total this month";
  position: absolute;
  color: hsl(28, 10%, 53%);
  font-size: 16px;
  font-weight: 100;
  top: -40%;
}
#fromlastmonth{
  font-size: 16px;
  padding-top: 5px;
  position: relative;
}
#fromlastmonth::after{
  content: "from last month";
  position: absolute;
  color: hsl(28, 10%, 53%);
  display: block;
  width: 150px;
  font-weight: 100;
  left: -150%;
  top: 50%;

}
@media screen and (max-width:487px){
  .card-top,.card-bottom{
    width: 22em;
  }
}
