                                /* Import fonts Manrope from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
:root {
    --color-white:#FFFFFF;
    --color-gray900:#48556A;
    --color-gray500:#6E8098;
    --color-gray400:#9DAEC2;
    --color-gray200:#ECF2F8;
    --font-family: 'Manrope' , sans-serif;
}
                                 /* Reset basic style for all elements */
* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}
html {
    height:100%;
}
body {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--color-gray200);
}
main {
    display:flex;
    flex-direction: row;
    height: fit-content;
    max-width:clamp(180px, 100vw, 730px);
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 40px 40px -10px rgba(201, 213, 225, 0.5034);
}
.decorate-image-section {
    height:100%;
    width: 40%;
    border-radius: 10px 0 0 10px;
}
.article-preview-section {
    display:flex;
    flex-direction: column;
    width: 60%; 
    height:fit-content;
    text-wrap:  wrap;
}
.article-preview-header {
    margin: 30px 40px 0 40px;
}
.autor-main-container {
    height:fit-content;
    border-radius: 0 0 10px 10px;
    anchor-name: --mobile-tooltip;
}
.decorate-img {
    width: 100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius: 10px 0 0 10px;
}
.title {
    font-size: 1.25rem;
    color:var(--color-gray900);
    font-weight: 900;
    line-height: 130%;
    letter-spacing: 0.25px;
}
.description {
    font-size: 0.813rem;
    color: var(--color-gray500);
    font-weight: 500;
    line-height:140%;
    letter-spacing: 0.25px;
    margin:25px 0;
}
.author-info-container {
    display:flex;
    flex-direction: row;
    margin:0 40px 30px 40px;
}   
.author-img {
    width:40px;
    height:40px;
    border-radius: 50%;
    margin-right: 16px;
}
.author-name {
    font-size:0.813rem;
    color:var(--color-gray900);
    line-height: 140%;
    font-weight: 700;
}
.date {
    font-size: 0.813rem;
    color: var(--color-gray400);
    line-height: 140%;
    font-weight: 500;
}
                                       /* Set styles for desktop modal messages */

.tooltip-container.desktop {   /*Main container for desktop version */
    width:250px;
    height:87px;
    position:absolute;
    overflow-x: hidden;
    position-anchor: --desktop-tooltip;
    position-area: top center;
    background-image: url("images/desktop-tooltip-bg.png");
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
    filter: opacity(0.8);
    transition: filter 0.4s ease-in-out;
}
                                  /*Hover appearance animation  */
.tooltip-container.desktop:hover {
    filter: opacity(1);
}
.open-tooltip-btn {
    border:none;
    width:32px;
    height:33px;
    border-radius: 0%;
    margin:4px 0 4px auto;
    anchor-name: --desktop-tooltip;
}
.close-tooltip-btn {
    border: none;
    width: 33px;
    height: 33px;
    background-color: transparent;
}
.tooltip-info {
    display:flex;
    column-gap: 20px;
    margin: 17px 39px 0 39px;
}
.tooltip-text {
    text-transform: uppercase;
    font-family: var(--font-family);
    font-weight: 500;
    color:var(--color-gray400);
    font-size: 14px;
    letter-spacing: 25%;
    line-height: 140%;
}
.tooltip-links-container {
    display:flex;
    column-gap: 16px;
}
.tooltip-img {
    transition: transform 0.3s ease-in-out;
}
.tooltip-img:hover {
    transform: scale(0.9);
}
                               /* Set styles for desktop modal messages */

.tooltip-container.mobile {  /*Main container for mobile version */
    width: 100%;
    height: 67px;
    position: absolute;
    position-anchor: --mobile-tooltip;
    position-area: center center;
    background-color:var(--color-gray900);
    border-radius: 0 0 10px 10px;
}
.tooltip-links-container.mobile {
    justify-content: space-between;
}
.tooltip-info.mobile {
    display:flex;
    justify-content:space-between;
    align-items: center;
    margin-bottom: 17px;
    row-gap: 10px;
}
.visible {
    display: block !important;
}
.hidden {
    display: none !important;
}
                            /*Media queries for display on screen width from 768px*/
@media (max-width: 768px) {
     main {
        margin:clamp(25px, 7vw, 80px);
        height:fit-content;
        flex-wrap: wrap;
     }
     .author-info-container {
        justify-content: center;
     }
}
                           /*Media queries for display on screen width from 375px*/
@media (max-width:375px) {
    body {
        flex-direction: row;
    }
    main {
        flex-direction: column;
        margin:75px 24px;  
    }
    .article-preview-section {
        width:100%;
        height:fit-content;
    }
    .description {
        margin:24px 0 30px 0;
    }
    .decorate-img {
        border-radius:10px 10px 0 0;
    }
    .decorate-image-section {
        width:100%;
        height:40%;
    }
    .open-tooltip-btn {
        border: none;
        width: 32px;
        height: 33px;
        margin: 4px 0 4px auto;
        border-radius: 50%;
    }
    .article-preview-header {
       margin:32px 30px 0 30px;
    }
    .author-info-container {
       margin:0 30px 18px 30px;
    }
    .tooltip-container.mobile {
        height: fit-content;
    }
    .tooltip-info.mobile {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tooltip-links-container.mobile {
       justify-content: space-between;   
    }
}
                                        /*Styles for footer section */
.attribution { 
    font-size: 11px; 
    text-align: center; 
    position: fixed;
    bottom:0;
    width:100%;
    background-color: var(--color-gray200);
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}