body {
    width: 100%;
    margin: 0;
    font-size: 18px;
    background-color: hsl(217, 54%, 11%);
}

main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

* {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

h1,
p {
    margin: 0;
}

.container {
    max-width: 90%;
    padding: 25px;
    border-radius: 15px;
    box-sizing: border-box;
    background-color: hsl(216, 50%, 16%);
}

.container__background-image {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url("../images/image-equilibrium.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 7.5px;
}

.background-image__overlay {
    visibility: hidden;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-color: hsl(178, 100%, 50%);
}

img[alt="eye icon"] {
    visibility: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.container__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid hsl(215, 32%, 27%);
    margin-bottom: 20px;
}

.details__heading {
    color: hsl(0, 0%, 100%);
    font-weight: 400;
}

.details__text {
    color: hsl(215, 51%, 70%);
}

.details__group {
    display: flex;
    justify-content: space-between;
}

.details__group > p:first-child::before {
    content: url("../images/icon-ethereum.svg");
    margin-right: 7.5px;
}

.details__group > p:first-child {
    color: hsl(178, 100%, 50%);
    font-weight: 600;
}

.details__group > p:last-child::before {
    content: url("../images/icon-clock.svg");
    margin-right: 7.5px;
}

.details__group > p:last-child {
    color: hsl(215, 51%, 70%);
}

.container__author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author__image {
    width: 35px;
    border: 1px solid hsl(0, 0%, 100%);
    border-radius: 50%;
}

.author__text {
    color: hsl(215, 51%, 70%);
}
.author__name {
    color: hsl(0, 0%, 100%);
}

/* HOVER STATE */

.details__heading:hover,
.author__name:hover {
    cursor: pointer;
    color: hsl(178, 100%, 50%);
}

.container__background-image:hover > .background-image__overlay,
.container__background-image:hover > img[alt="eye icon"] {
    visibility: visible;
    cursor: pointer;
}

/* DESKTOP LAYOUT */

@media screen and (min-width: 750px) {
    .container {
        max-width: 375px;
    }
}
