/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */


body {
  background-color: #2a252d;
  color: #f0eef5;
  font-family: Verdana;
  padding: 0px;
  margin: 0px;
}

#year-metrics-header {
  font-size: 2.5em;
  animation: moveLeft 1.5s ease-in;
    
}

@keyframes moveLeft {
  0%{
    opacity: 0;
    transform: translatex(-100px);
  }
  80%{
    transform: translatex(10px);
  }
  100%{
    opacity:1;
    transform: translatex(0);
  }
}

#year-bullets {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  margin: 0 4rem;
  grid-template-columns: repeat(4, 1fr);
}

#year-metrics-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.bullet-content {
  width: 100%;
  z-index: 100;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  
  align-items: center;
  text-align: center;
  
  transform: translateY(calc(100% - 10.5em));
  transition: transform calc(700ms) cubic-bezier(0.19, 1, 0.22, 1);
  
  
}

.year-bullet:hover .bullet-content{
  transform: translateY(0);
}

.year-bullet:hover .bullet-extra-info{
  
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(700ms / 8);
}




.bullet-extra-info {
  /* non-title elements of bullet-content */
  /* more specifically, a p element that follows another p element */
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(1rem);
  transition:  opacity calc(700ms) cubic-bezier(0.19, 1, 0.22, 1);
  
}


.bullet-number-card {
  /*first element of bullect-content, title */
  
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
}


.year-bullet {
  display: flex;
  position: relative;
  color: whitesmoke;
  height: 350px;
  align-items: flex-end;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1), 
    0 2px 2px rgba(0,0,0,0.1), 
    0 4px 4px rgba(0,0,0,0.1), 
    0 8px 8px rgba(0,0,0,0.1),
    0 16px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;

  /*padding: 1rem;*/

  
}

.learn-more-button-container {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: black;
  border: none;
  
  transition: color calc(700ms * 2) cubic-bezier(0.19, 1, 0.22, 1);
  transition: background-color calc(700ms * 2) cubic-bezier(0.19, 1, 0.22, 1);
  
}

.learn-more-button-container:hover {
  outline: 1px dashed yellow;
  outline-offset: 3px;
  
}

.learn-more-button-container:focus {
  
  outline: 1px dashed yellow;
  outline-offset: -3px;
}

.year-bullet:hover::after {
  transform: translateY(-50%);  
}

.year-bullet:hover::before {
  transform: translateY(4%);  
}

.year-bullet::after {
  display: block;
  height: 200%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  background-image: linear-gradient(
      to bottom,
      hsla(0, 0%, 0%, 0) 0%,
      hsla(0, 0%, 0%, 0.009) 11.7%,
      hsla(0, 0%, 0%, 0.034) 22.1%,
      hsla(0, 0%, 0%, 0.072) 31.2%,
      hsla(0, 0%, 0%, 0.123) 39.4%,
      hsla(0, 0%, 0%, 0.182) 46.6%,
      hsla(0, 0%, 0%, 0.249) 53.1%,
      hsla(0, 0%, 0%, 0.320) 58.9%,
      hsla(0, 0%, 0%, 0.394) 64.3%,
      hsla(0, 0%, 0%, 0.468) 69.3%,
      hsla(0, 0%, 0%, 0.540) 74.1%,
      hsla(0, 0%, 0%, 0.607) 78.8%,
      hsla(0, 0%, 0%, 0.668) 83.6%,
      hsla(0, 0%, 0%, 0.721) 88.7%,
      hsla(0, 0%, 0%, 0.762) 94.1%,
      hsla(0, 0%, 0%, 0.790) 100%
    );
    
  transform: translateY(0%);
  transition: transform calc(700ms * 2) cubic-bezier(0.19, 1, 0.22, 1);
  
}

.year-bullet::before {
  position: absolute;
  height: 110%;
  width: 100%;
  content: "";
  background-size: cover;
  background-image: url("./background-images/4.jpg");
  background-position: 0 0;  
  transition: transform calc(700ms * 1.5) cubic-bezier(0.19, 1, 0.22, 1);
}

.learn-more-button {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}



.carousel-image {
  height: 200px;
}

#chai-metrics {
  
  text-transform: uppercase;  
}


#carousel-content > img {
  display: none;  
  object-fit: cover;
  width: 600px; 
  height: 500px;
}

#chai-carousel {
  display: flex;
  flex-direction: row;
}

