@font-face {
    font-family: 'Manrope';
    src: url('fonts/Manrope-ExtraBold.woff2') format('woff2'),
    url('fonts/Manrope-ExtraBold.woff') format('woff'),
    url('fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/**************css reset***************/
*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img, picture {
    width: 100%;
    display: block;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/**************css reset***************/


:root {
    --secondary-color-hsl:150, 100%, 66% ;
    --primary-color: hsl(193, 38%, 86%);
    --secondary-color: hsl(var(--secondary-color-hsl));
    --neutral-1: hsl(217, 19%, 38%);
    --neutral-2: hsl(217, 19%, 24%);
    --neutral-3: hsl(218, 23%, 16%);
    font-size: 62.5%;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    background-color: var(--neutral-3);
    line-height: 1.5;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 5rem;
    min-height: 100vh;

}

.advice {
    width: 90%;
    max-width: 40rem;
    background-color: var(--neutral-2);
    padding: 4rem 4rem 6rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.advice__title {
    color: var(--secondary-color);
    font-size: 1.6rem;
    letter-spacing: 0.4rem;
    transform: scaleY(0.95);
}

.advice__advice{
    font-family: Arial, sans-serif;
}

.advice__text{
    font-family: 'Manrope', sans-serif;
}

.advice_hashtag {
    margin-left: 1.6rem;
}

.advice__divider {
    margin: 0 auto;
}

.advice__photo {
    width: 2.4rem;
    height: 2.4rem;

}

.advice__photo--animating{
    transform-origin: center center;
    animation: rotate 1s infinite;
}

.advice__photo-container {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transition: box-shadow 0.3s;
}


@keyframes rotate {
    0%{
        transform: rotate(0turn);
    }
    100%{
        transform: rotate(1turn);
    }
}
@media only screen and (min-width: 37.5em) {
    body {
        font-size: 2.8rem;
    }

    .advice {
        width: 70%;
        max-width: 60rem;
        padding: 4rem 6rem 8rem;
    }

    .advice__divider {
        padding-top: 2rem;
        width: 80%;
    }
}

@media (hover: hover) and (pointer: fine){
    .advice__photo-container:hover{
        box-shadow: 0 0 40px hsla(var(--secondary-color-hsl), 0.6) ;
    }
}