* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url(../img/svg/cursor.png), auto;

}

body {
  background-color: #d8c29d;
  font-family: "Single Day", cursive;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

a {
  text-decoration: none;
  color: black;
  font-family: "Irish Grover", cursive;
}

a:hover {
  color: white;
}

header {
  background-color: #a74f01;
  padding: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.4rem);
}

.navbar ul {
  list-style: none;
  text-align: right;
}

.navbar ul li {
  display: inline-block;
  margin: 0.5rem;
}

.banner img {
  width: 100%;
  opacity: 0.6;
  display: block;
}

.banner:hover img {
  opacity: 1;
}

/*the icon animation and strips*/
.strip {
  position: relative;
  text-align: center;
  background-color: #222222;
  color: #595d00;
  font-family: "Irish Grover", cursive;
  width: 100vw;
  padding: 0.5rem;
}

.strip p {
  position: relative;
  color: #595d00;
  font-size: clamp(1rem, 3vw, 1.4rem);
  z-index: 2;
}

.icon-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.strip-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 5vw, 60px);
  height: auto;
  animation: slide-across 10s linear infinite;
}

@keyframes slide-across {
  0% {
    left: -10%;
  }

  100% {
    left: 100%;
  }
}

.delay1 {
  animation-delay: 2s;
  left: -15%;
}
.delay2 {
  animation-delay: 4s;
  left: -30%;
}
.delay3 {
  animation-delay: 6s;
  left: -45%;
}
.delay4 {
  animation-delay: 8s;
  left: -60%;
}

/*textbox*/

.textbox {
  padding: 1rem;
  margin: 1rem;
  border: 2px solid #595d00;
  border-radius: 4px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

/*cafe img*/

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  justify-items: center;
  padding: 50px;
  gap: 40px;
}

/*media for cafe-cards*/

@media (min-width: 500px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    padding: 65px;
    gap: 60px;
  }
}

.cafe-card img {
  width: 100%;
  display: block;
}

.cafe-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 3px solid #595d00;
}

.cafe-card figcaption {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(167, 79, 1, 0.9);
  color: #222222;
  font-family: "irish grover", cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.8s ease;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
}

.cafe-card:hover figcaption {
  transform: translateY(0);
}

/*for centering*/
.caption-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.box-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
}

.box-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 3px solid #595d00;
}

.box-card figcaption {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(167, 79, 1, 0.9);
  color: #222222;
  font-family: "irish grover", cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  padding: 0.5rem;
  transform: scale(0);
  transition: transform 1s ease, opacity 0.5s ease;
  transform-origin: center;
  opacity: 0;
  display: block;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
  line-height: 1.4;
}

.box-card:hover figcaption {
  transform: scale(1);
  opacity: 1;
}

.icarus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}

.ibox {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 4px solid #595d00;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.ibox img figcaption {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

footer {
  background-color: #a74f01;
  text-align: center;
  padding: 1rem;
  font-family: "Single Day", cursive;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}
