@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');

:root {
    --Blue-500: hsl(215, 51%, 70%);
    --Cyan-400: hsl(178, 100%, 50%);
    --Cyan-view: hsla(178, 100%, 50%, 60%);


    --Blue-main-bg: hsl(217, 54%, 11%);
    --Blue-card-BG: hsl(216, 50%, 16%);
    --Blue-line: hsl(215, 32%, 27%);
    --White: hsl(0, 0%, 100%);
    --p-size: 1.125rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    display: grid;
    place-content: center;
    min-height: 100vh;
    background-color: var(--Blue-main-bg);
}

.container {
    max-width: 22rem;
    background-color: var(--Blue-card-BG);
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 1rem;
}

.product img {
    width: 100%;
    border-radius: .5rem;
    cursor: pointer;
}

.name {
    color: var(--White);
    margin: 1.25rem 0;
    font-size: 1.4rem;
}

.descript {
    font-size: var(--p-size);
}

.info p {
    color: var(--Blue-500);
}

.price, .gem, .time {
    display: flex;
    justify-content: space-between;
    margin: .75rem 0;
}

.gem, .time {
    gap: .5rem;
}

.gem p {
    color: var(--Cyan-400);
}

hr {
    border: 0;
    height: .1rem;
    border-top: .1rem solid var(--Blue-line);
    margin-bottom: 1rem;
}

.authur {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.authur img {
    width: 2rem;
    border: .05rem solid var(--White);
    border-radius: 50%;
}

.authur p {
    color: var(--White);
}

.authur span {
    color: var(--Blue-500);
}

.info h1:hover, .authur p:hover {
    cursor: pointer;
    color: var(--Cyan-400);
}

.product {
    position: relative;
    max-height: 19rem;
}

.product::after {
    content: url(./images/icon-view.svg);
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: .5rem;
    color: var(--White);
    background-color: var(--Cyan-view);
    opacity: 0;
    cursor: pointer;
    transition: .5s;
}

.product:hover::after {
    opacity: 1;
}