@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
:root {
    /* Primary Colors */
    --blue-500: hsl(215, 51%, 70%);
    --cyan-400: hsl(178, 100%, 50%);

    /* Neutral Colors */
    --blue-950: hsl(217, 54%, 11%);
    --blue-900: hsl(216, 50%, 16%);
    --blue-800: hsl(215, 32%, 27%);
    --white: hsl(0, 0%, 100%);

    /* Typography */
    --font-family: 'Outfit', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 600;
    --font-size-base: 1.125rem;
    /* 18px */
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border radius */
    --radius: 1rem;

    /* Responsive card width */
    --card-width: clamp(20rem, 90vw, 24rem);
}

/* Global styles */
html {
    box-sizing: border-box;
    font-size: 100%;
    /* 16px base */
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    background: var(--blue-950);
    color: var(--blue-500);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card styles */
.container {
    background: var(--blue-900);
    border-radius: var(--radius);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    width: var(--card-width);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.container .header{
    position: relative;
}

.container .header .active-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cyan-400);
    opacity: .5;
    pointer-events: auto;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.container .header:hover .active-overlay{
    display: flex;
    cursor: pointer;
}

.container .header .active-overlay img{
    width: 2em;
    cursor: pointer;
}

.active-overlay.hide{
    display: none;
}

.container .header img{
    width: 100%;
}

.heading:hover{
    color: var(--cyan-400);
    cursor: pointer;
}

.content article{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

article p{
    margin: 0;
}

article p:first-child::before{
    content: url('images/icon-ethereum.svg');
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--spacing-xs);
}

article p:last-child::before{
    content: url('images/icon-clock.svg');
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--spacing-xs);
}

footer img{
    border: 1px solid var(--white);
    border-radius: 50%;
}

footer{
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

footer p{
    margin: 0;
}

footer p span:hover{
    cursor: pointer;
    color: var(--cyan-400);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    margin-top: 0;
}

/* Paragraphs */
p {
    color: var(--blue-500);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--blue-800);
    margin: var(--spacing-xs) 0;
    border: none;
}

/* Utility classes */
.text-cyan {
    color: var(--cyan-400);
}

.text-white {
    color: var(--white);
}

.bg-cyan {
    background: var(--cyan-400);
}

.rounded {
    border-radius: var(--radius);
}

/* Responsive typography */
@media (max-width: 600px) {
    :root {
        --font-size-base: clamp(1rem, 4vw, 1.125rem);
        --card-width: clamp(18rem, 95vw, 22rem);
    }
}