/* table of contents
  1. global styles
  2. layout
      2.1 main and background
      2.2 card component layout
*/

/* =============
   global styles
   ============= */

html {
  box-sizing: border-box;
}

*, ::after, ::before {
  box-sizing: inherit;
}

body {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:hsl(185, 75%, 39%);
  font-family: "Kumbh Sans", sans-serif;
  color: hsl(227, 10%, 46%);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  position: relative;
}

.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important; 
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;            
}

h2 {
  color: hsl(229, 23%, 23%);
  font-size: 1.5rem;
}

p {
  margin: 0;
}

/* =============
   layout
   ============= */

/* main and background layout */
.bubbleWrap {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
}

.backgroundBubbleOne {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-100%, -100%);
}

.backgroundBubbleTwo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(100%, 100%);
}

.isResponsive {
  display: flex;
  flex-shrink: 1;
  margin: 0;
  padding: 0;
}

.card {
  position: relative;
  margin: 1.5rem;
  max-width: 360px;
  width:100%;
}

.cardContent {
  width:100%;
  align-items: center;
  flex-direction: column;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 5px 5px 25px hsl(185, 76%, 33%), -5px -5px 25px hsl(185, 76%, 28%);
}

/* card component layout */

.name {
  color:hsl(229, 23%, 23%);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}

.age {
  color:hsl(0, 0%, 59%);
  font-weight: 400;
  padding-left: 0.3rem;
}

.topOfCard {
  background-image: url("./images/bg-pattern-card.svg");
  border-radius: 1rem 1rem 0 0;
  width: 100%;
  height: 150px;
}

.profile {
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  margin-top: -40px;
}

.profileImg {
  border-radius: 50%;
  border-left: 4px hsl(0, 0%, 100%) solid;
  border-top: 4px hsl(0, 0%, 100%) solid;
  border-right: 4px hsl(0, 0%, 100%) solid;
  display: block;
}

.profileText {
  text-align: center;
  padding-bottom: 2rem;
} 

ul.data {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  border-top: 1px lightgray solid;
  padding: 1.5rem;
  text-align: center;
  list-style: none;
  font-size: 0.7rem;
}

.data li {
  margin: 0;
  padding: 0;
}

.data li .counter {
  font-weight: bold;
  color: hsl(229, 23%, 23%);
  font-size: 1rem;
  display: block;
}