* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(217, 54%, 11%);

}

.card {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 16rem;
    padding: 1.3rem;
    background-color: hsl(216, 50%, 16%);
    border-radius: 15px;
    box-shadow: 2px 2px 10px black;
}

img {

    /* height: 100%; */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}


h1 {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: hsl(0, 0%, 100%);
    font-size: 1.1rem;
    margin: 1rem 0;
}

p {

    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: hsl(215, 51%, 70%);
    font-size: 0.90rem;
}

.details {
    height: 4rem;
    display: flex;
    justify-content: space-between;

}

.price {
    display: flex;
    align-items: center;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.details img {
    height: 16px;
    width: auto;
    margin-right: 0.40rem;
}

#currency {
    color: hsl(178, 100%, 50%);
    font-weight: 400;
    font-size: 0.90rem;
}

#time_left {
    color: hsl(215, 51%, 70%);
    font-weight: 300;
    font-size: 0.90rem;
}

hr {
    border: none;
    height: 1.5px;
    background-color: hsl(215, 32%, 27%);
}

.profile_info {
    height: 4rem;
    display: flex;
    align-items: center;

}


.profile {

    display: flex;
    align-items: center;

}

.profile img {

    height: 25px;
    width: auto;
    border: 1px solid white;
    border-radius: 50%;
    margin-right: 0.90rem;
}

.profile p,
h3 {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h3 {
    color: hsl(0, 0%, 100%);
    font-size: 0.90rem;
    margin-left: 0.30rem;
}

@media(max-width:308px) {
    .profile p,h3{
        font-size: 0.70rem;
    }
}

h1:hover{
    color: hsl(178, 100%, 50%);
    cursor: pointer;
}
h3:hover{
    cursor: pointer;
    color: hsl(178, 100%, 50%);
}

#img {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

#card_img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

/* Overlay that appears on hover */
.icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: hsl(178, 100%, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#img:hover .icon-overlay { 
  opacity: 0.6;
}

.icon-overlay img {
  width: 45px;
  height: 45px;
  
}

