@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&family=Big+Shoulders+Display:wght@700&family=Karla:wght@400;700&family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@400;500;700&family=Lexend+Deca&family=Manrope:wght@500;700&family=Open+Sans&family=Poppins:wght@200;400;600&family=Raleway:wght@400;700&display=swap');
:root{
	--primary:hsl(217, 19%, 35%);
	--secondary:hsl(214, 17%, 51%);
	--tertiary:hsl(212, 23%, 69%);
	--white:hsl(0, 0%, 100%);
	--primary-accent:hsl(210, 46%, 95%);
	--soft-edge:8px;
	--rounded-edge:15px;
	--circle-border:50%;
	--fs-paragraph: 0.75rem;
	--fs-heading:0.95rem;
	--fs-small:0.755rem;
	--fw-normal: 500;
	--fw-bold: 700;
}

/*___________________________________________Reset_____________________________________________*/


/* Box sizing rules */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Make images easier to work with */

img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */

input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */

@media (prefers-reduced-motion: reduce) {
  

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Active Classes*/

.show-pop-up{
	display: block!important;
	animation: desktop-fade-in 600ms ease forwards;
}

/*Style start*/

body{
	font-family: 'Manrope', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-accent);
}

main{
	padding:1rem;
}

button{border: 0;}

.container{
	display: flex;
	flex-direction: column;
	max-width:27rem;
	background-color: var(--white);
	box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.329);
	border-radius: var(--rounded-edge);
	position: relative;
}

.dresser{
	border-top-right-radius: var(--rounded-edge);
	border-top-left-radius: var(--rounded-edge);
	clip-path: polygon(0 0%, 100% 0, 100% 83%, 0 83%);
	margin-bottom: -3rem;
}

.details{
	padding: 2rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap:1rem;
}

h1{
	font-size: var(--fs-heading);
	font-weight: var(--fw-bold);
	color: var(--primary);
}

.paragraph{
	font-size: var(--fs-paragraph);
	color: var(--secondary);
}

.avatar{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: -1rem;
}

.avatar-details{
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 1.15rem;
}

.avatar-details img{
	max-width: 2.25rem;
	border-radius: var(--circle-border);
}

.avatar-name h2{
	color: var(--primary);
	font-size: var(--fs-small);
	font-weight: var(--fw-bold);
}

.date{
	font-size: 0.85rem;
	color: var(--tertiary);
}

.share-btn{
	align-self: center;
	background-color: var(--primary-accent);
	padding: 0.75rem;
	border-radius: var(--circle-border);
	cursor: pointer;
}

.share-section{
	background-color: var(--primary);
	padding: 1rem 2rem;
	border-bottom-left-radius: var(--rounded-edge);
	border-bottom-right-radius: var(--rounded-edge);
	position: absolute;
	bottom: 0rem;
	width: 100%;
	display: none;
}

.share-container{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
}

.share-btn-alt{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--secondary);
	max-width: 2.5rem;
	max-height: 2.5rem;
	padding: 0.75rem;
	border-radius: var(--circle-border);
	cursor: pointer;
}

.share-text-and-icons{
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.share-text-and-icons p{
	text-transform: uppercase;
	color: var(--tertiary);
	font-size: var(--fs-small);
	letter-spacing: 8px;
}

.social-link{
	opacity: 0;
}

@media screen and (min-width:800px) {
	.container{
		flex-direction: row;
		max-width: 47rem;
		position: relative;
	}
	.image{
		overflow: hidden;
	}
	.dresser{
		max-width: 22rem;
		height: 100%;
		clip-path: none;
		border-top-left-radius: var(--rounded-edge);
		border-top-right-radius: 0;
		border-bottom-left-radius: var(--rounded-edge);
		clip-path: polygon(0 0, 80% 0, 80% 100%, 0% 100%);
		margin-right: -4.5rem;
	}
	h1{
		font-size: 1.15rem;
	}
	.details{
		max-width: 25rem;
	}
	.share-section{
		position: absolute;
		bottom: 5rem;
		right: -3.25rem;
		max-width: 15rem;
		border-radius: var(--rounded-edge);
		z-index: 999;
	}
	.share-btn-alt{
		display: none;
	}
	.share-text{
		position: relative;
	}
	.share-text::after{
		content: "";
		position: absolute;
		bottom: -2rem;
		right: -2.65rem;
		background-color: var(--primary);
		padding: 1rem;
		clip-path: polygon(0% 0%, 100% 0, 100% 42%, 50% 100%, 0 42%);
	}
}

@media screen and (max-width:330px) {
	.share-section{
		padding: 0.95rem 1rem;
	}
}

@keyframes desktop-fade-in {
	from{
		opacity: 0;
		transform: translateY(2rem);
	}
	to{
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sequetial-fade {
	from{
		opacity: 0;
	}
	to{
		opacity: 1;
	}
}