/* Using Outfit font from google */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Outfit:wght@300;400;600&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* List colors being used in this project */
:root{
    /* Primary colors */
    --Softblue: hsl(215, 51%, 70%);
    --Cyan: hsl(178, 100%, 50%);

    /* Neutral */
    
    --MainVerydarkblue: hsl(217, 54%, 11%); /* mainBG */
    --CardVerydarkblue: hsl(216, 50%, 16%); /*cardBG*/
    --LineVerydarkblue: hsl(215, 32%, 27%); /* line*/
    --White: hsl(0, 0%, 100%);
}

/* Make items align in column and give font size & type */
body{
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    background-color: var(--MainVerydarkblue);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    margin: auto;    
}

/* Make card component center on the page and make shadows */
main{
    max-width: 320px;
    width: 100%;
    

    display: flex;
    flex-direction: column;

    margin: 4rem;
    padding: 1rem;
    border-radius: 1rem;
    background-color: var(--CardVerydarkblue);

    box-shadow: 5px 5px 15px 5px rgb(0 0 0 / 3%);
}

/* Handle how Equilibrium image looks */
.image{
    position: relative;
    margin-bottom: 1rem;
    border-radius: 1rem;
}
.equilibrium-image{
    width: 100%;
    display: block;
    border-radius: 1rem;
}
.eye-overlay{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgb(0%, 100%, 97%, 0.3);
    border-radius: 1rem;
    opacity: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* make eye and color appear when cursor is on image*/
.eye-overlay:hover{
    opacity: 1;
    transition: all ease-in 0.5s;
}

/* Make header bold and color white */
h1{
    margin-bottom: 1rem;
    font-size: 20px;
}

/* make header a link*/
h1 a{
    color: var(--White);
    text-decoration: none;  
}

/* handle properties of the description */
p{
    color: var(--Softblue);

    margin-bottom: 1.2rem;
}

/* set font property of ETH amount and days left */
.list{
    margin-bottom: 1.2rem;
    font-size: 17px;
}

/* make the sizes of ETH amount image and days image fit well */
img{
    margin-right: 5px;
    object-fit: scale-down;
}

/* make ETH move to left change the color */
.eth{
    float: left;
    color: var(--Cyan);

    display: flex;
    flex-direction: row;
}

/* make Days left move to right change the color */
.days{
    color: var(--Softblue);
    float: right;

    display: flex;
    flex-direction: row;
}


/* make line */
hr{
    border: 0;
    height: 2px;
    background: var(--LineVerydarkblue);
    margin-bottom: 1rem;
}

/* make the items in author align horizontally */
.author{
    color: var(--Softblue);
    display: flex;
    font-size: 15px;

    align-items: center;
    justify-content: left;
    flex-direction: row;
}

/* make Jules Wyvern color white and a link*/
.author-link{
    color: var(--White);
    margin-left: 5px;
    text-decoration: none;
}



/* create border for image and make it fit in the card */
.author-img{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 3px solid hsla(0, 0%, 90%, 0.5);
    margin-right: 1rem;
}

/* Handle footer properties */
.attribution { 
    font-size: 10px; 
    text-align: center; 
    color: var(--Softblue);
    margin: 2rem;
}

/* Make text with link color white in footer */
.attribution a { 
    color: var(--White);
    text-decoration: none;
}

/* Change link color when mouse hover on author name, header, and footer with link */
.author-link:hover, .attribution h1, a:hover{
    color: var(--Cyan);
    transition: all ease-in 0.2s;
}
