/* default styling */
* {
  box-sizing: border-box;
  margin: 0;
}
/* styles for the body element */
body {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsl(27, 66%, 92%);
}
.main-body {
  width: 40%;
}
/* header styles */
.header {
  background-color: hsl(10, 79%, 65%);
  color: white !important;
  padding: 3% 5%;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.left-header {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  h1 {
    color: white;
  }
}
img {
  width: 50px;
}
/* styles for the content */
.content {
  background-color: hsl(33, 100%, 98%);
  margin-top: 20px;
  padding: 40px;
  border-radius: 10px;
}
h1, h3 {
  color: hsl(25, 47%, 15%);
}
.chart {
  width: 100%;
  height: 250px;
  margin-bottom: 50px;
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  
}
/* footer styles */
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  align-items: center;
}
h4 {
  color: hsl(28, 10%, 53%);
}

.chart-item {
  position: relative;
  flex: 1;
  background-color: hsl(10, 79%, 65%);
  margin: 0 5px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  transition: height 0.5s ease; /* Smooth height transition */
}
.chart-item:nth-child(3) {
  background-color: hsl(186, 34%, 60%);
}
.chart-item:nth-child(3):hover {
  background-color: hsl(186, 46%, 78%);
}

.chart-item:hover {
  background-color: hsl(10, 60%, 71%);
}

.chart-item::after {
  content: attr(title); /* Show tooltip with day and amount */
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-item:hover::after {
  opacity: 1;
}
.days {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: hsl(28, 10%, 53%);
}
@media screen and (max-width: 500px) {
  .main-body {
    width: 90%;
  }
}
@media screen and (max-width: 800px) and (min-width: 501px) {
  .main-body {
    width: 80%;
  }
}
@media screen and (max-width: 1000px) and (min-width: 801px) {
  .main-body {
    width: 70%;
  }
}
@media screen and (max-width: 1200px) and (min-width: 1001px) {
  .main-body {
    width: 60%;
  }
}
