/* Google Fonts: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
  --soft-blue: hsl(215, 51%, 70%);
  --cyan: hsl(178, 100%, 50%);
  --very-dark-blue-main: hsl(217, 54%, 11%);
  --very-dark-blue-card: hsl(216, 50%, 16%);
  --very-dark-blue-line: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--very-dark-blue-main);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background-color: var(--very-dark-blue-card);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  color: var(--white);
  width: 90%;
  max-width: 350px;
  margin: 20px;
}

.card-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 255, 247, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s ease;
}
.overlay>img {
  height: fit-content;
  width: fit-content;
}

.card-image:active .overlay {
  opacity: 1;
}

h1 {
  font-size: 18px;
  margin: 20px 0 10px;
}
p {
  color: var(--soft-blue);
  font-size: 14px;
  line-height: 1.5;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--very-dark-blue-line);
  padding: 15px 0;
  font-size: 14px;
}

.price {
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.time {
  color: var(--soft-blue);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.card-footer img {
  width: 30px;
  border: 1px solid white;
  border-radius: 50%;
}

.card-footer p {
  font-size: 14px;
}

.card-footer span {
  color: var(--white);
}
.change {
  cursor: pointer;
}
.change:active {
  color: hsl(178, 100%, 50%);
}
@media (max-width: 375px) {
  h1 {
    font-size: 16px;
  }

  .card-info {
    font-size: 13px;
  }

  .card-footer p {
    font-size: 13px;
  }
}
