@import url('https://fonts.googleapis.com/css2?family=Redressed');

:root{
    --Light_Cyan:hsl(192, 15%, 99%);
    --Neon_Red:hsl(343,100%,39%);


    --Grayish_Black:hsl(217,19%,38%);
    --Dark_Grayish_Black:hsl(0,0%,20%);
    --Dark_Grayish_Black2:hsl(240,4%,16%);
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Redressed', sans-serif;
}

main{
    display: flex;
    min-height: 100vh;
    background-color: var(--Dark_Grayish_Black2);
    justify-content: center;
    align-items: center;
}

.card{
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--Dark_Grayish_Black);
    width: 32rem;
    min-width: 25;
    max-width: 45;
    min-height: 8rem;
    max-height: auto;
    border-radius: .5rem;
    align-items: center;
    transition: height 0.2s ease-in-out;
}

.divider{
    width:80%;
    padding-bottom: 2.5rem;
}

.quote-id{
    color: var(--Neon_Red);
    font-size: 1.0rem;
    font-weight: 600;
    margin-top: 2rem;
    letter-spacing: 0.2rem;
}

.quote-id span{
    font-size: 1.2rem;
}

.quote{
    color: var(--Light_Cyan);
    text-align: center;
    font-size: 2.5rem;
    font-weight: bolder;
    line-height: 2.75rem;
    padding: 1rem 2rem 1.5rem;
}

.dice{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--Neon_Red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.dice img{
    width:15px;
    transition: transform 0.3s ease;
}

.dice:hover{
    cursor: pointer;
    box-shadow: 1px 1px 20px 2px var(--Neon_Red);
}

.fade-in{
    animation: fade-in 0.2s forwards;
}

.fade-out{
    animation: fade-out 0.2s forwards;
}

@keyframes fade-in{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes fade-out{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@media only screen and (max-width: 495px){
    *{
        font-size: 40px;
    }
    .card{
        margin: 0 1.5rem;
    }
}