

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #eeeeea;
}

.wrapper {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  width: 100%;
}

.container {
  display: flex;
  flex-wrap: nowrap;
  height: 400px;
  justify-content: start;
}

.card {
  align-items: flex-end;
  background-size: cover;
  border-radius: .75rem;
  border-radius: 2rem;
  box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.8);
  cursor: pointer;
  display: flex;
  margin: 0 10px;
  overflow: hidden;
  transition: .6s cubic-bezier(.28,-0.03,0,.99);
  width: 80px;
}

.card > .row {
  color: white;
  display: flex;
  flex-wrap: nowrap;
}

.card > .row > .icon {
  align-items: center;
  background: #223;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  margin: 15px;
  width: 50px;
}

.card > .row > .description {
  display: flex;
  flex-direction: column;
  height: 80px;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  transform: translateY(30px);
  transition: all .3s ease;
  transition-delay: .3s;
  width: 520px;
}

.description p {
  color: #b0b0ba;
  padding-top: 5px;
}

.description h4 {
  text-transform: uppercase;
}

input {
  display: none;
}

input:checked + label {
  width: 600px;
}

input:checked + label .description {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card[for="c1"] {
  background-image: url('https://hips.hearstapps.com/hmg-prod/images/first-day-of-winter-solstice-2021-1638278570.jpg?crop=0.8337777777777778xw:1xh;center,top&resize=1200:*');
}

.card[for="c2"] {
  background-image: url('https://www.shutterstock.com/image-vector/ai-ascendancy-futuristic-society-ruled-600nw-2318593461.jpg');
}

.card[for="c3"] {
  background-image: url('https://lh4.googleusercontent.com/proxy/sd_pGyBygxLO-oTtYNauti1PiZUhqwlWo8HTDWY5pbZvmZcA6OU_E3SAN0L0xMDI8U2D8RMMLuvNkrWbXdgKhN9A9ll4S9vhfQ0-c6ns6jJ2w2g4-3WMYJZcDYld6ul73yS338J9TA');
}

.card[for="c4"] {
  background-image: url('https://d3vjn2zm46gms2.cloudfront.net/blogs/2017/08/18152952/editB0016586.jpg');
}

/* Add this at the end of your style.css file */

/* Responsive styles for smaller screens */
/* Add this to your style.css file */

/* Ensure the wrapper and container fit within the screen only for smaller screens */
@media (max-width: 600px) {
  .wrapper {
    overflow: hidden;
    width: 100%;
  }

  .container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 auto;
    width: 80%; /* Adjust width to fit within the screen */
    margin: 0 10px;
    scroll-snap-align: center;
    box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.5);
  }
}
