@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;700&family=Manrope:wght@200..800&family=Montserrat:wght@100..900&family=Poppins:wght@300;600&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --bg-color-body: #ECF2F8;
    --bg-color-main: #FFFFFF;
    --grey-900: #48556A;
    --grey-500: #6E8098;
    --grey-400: #9DAEC2;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
button {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
}

body {
    background-color: var(--bg-color-body);
    color: var(--grey-500);
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 0.8rem;
}

.container {        
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100vw; 
    height: 100vh; 
    padding: 1.5rem;    
}
.contntent {
    max-width: 38rem;
    height: auto;
    background-color: var(--bg-color-main);
    border-radius: 0.75rem;
    box-shadow: 0px 40px 40px -10px rgba(201, 213, 225, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    overflow: hidden;
}
.article__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.article__content {
     padding: 0 2rem;
}
.article__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-900);
    font-size: 1.25rem;
    padding: 1rem 0;
}
.wrapper {
    position: relative;
    padding: 1rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.author__image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}
.author__name {
    font-weight: 700;
    color: var(--grey-900);
}

.author__share {
    margin-left: auto;
    margin-right: 1.5rem;
}
.overlay-block {
  width: 100%;
  height: 100%;
  padding: 2rem;
  background: var(--grey-900);
  z-index: 100; 
  display: flex;
  top: 0;
  left: 0;
  align-items: center;
  position: absolute;
}

.share {
    color: var(--grey-400);
    text-transform: uppercase;
    padding: 0 0.5rem;
}
.social-icon {
    display: flex;
}
.social-icon img {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--grey-500);
    margin: 0 0.5rem 0 1.5rem;
}
.hide-el {
    display: none;
}

@media screen and (min-width: 48rem) {
    .container {
        padding: 2rem;
    }
    .contntent {
        display: flex;
        justify-content: center;
        align-items: center; 
        flex-direction: row;
        overflow: visible;
    }
    .contntent__image {
        width: 120%;
        height: 100%;
        overflow: hidden;
        text-align: center;
    }
    .contntent__image img {
        height: 100%;
        width: auto;
        object-fit: cover;
        object-position: center;
    }
    .wrapper {
        position: relative;
        padding: 1rem;
        overflow: visible;       
    }
    .overlay-block {
        position: absolute;
        padding: 0.8rem 1rem;
        border-radius: 0.8rem;
        height: auto;
        width: auto;
        z-index: 1;
        left: 51%;
        top: -70%
    }

    .overlay-block::after {
        content: "";
        position: absolute;
        bottom: -0.9rem; 
        left: 50%;
        margin-left: -1rem;
        width: 2rem;
        height: 1rem;
        background-color: var(--grey-900);
        clip-path: polygon(0 0, 50% 100%, 100% 0);
    }
}
@media screen and (min-width: 64rem) {
    .contntent {
        max-width: 46.625rem;
        
    }
    .article {
        padding: 2.5rem;
    }
    .overlay-block {
        left: 54%;
    }
}
@media (max-width: 23rem) {
  .share {
    padding: 0;
  }
  .social-icon img {
    margin: 0 0.5rem;
   }
}
