
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&display=swap');



html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

:root{
  --space-m: clamp(1.2rem, 1.2223rem + 0.1261vw, 1.875rem);
  --space-sm: clamp(1rem, 1.1123rem + 0.1221vw, 1.275rem);
  --space-location: 1em 0 1.6em;
  --space-btn: .64em 0;
  --space-btn-inside: .83rem;
  --Green: hsl(75, 94%, 57%);
  --White: white;
  --border-radius-btn:5px;
}

body::before {
    content: "";
    width: 100%;
    height: 100%;
    background: #141414;
    position:fixed;
    top: 0;
    left: 0;  
    z-index:-1;
  }

body{
  font-family: "Inter", sans-serif;
  /* I still do not see the different using max-width and overflow */
  max-width: 100vw;
  overflow-x: hidden;
}
/* parent */
.flex-container{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: var(--space-m);
  min-height: 100vh;
}

@media screen and (min-width:768px) {
  .flex-container{
  margin: 0 auto;
  }

}
/* children */
.flex-layout{
  background-color: #1F1F1F;
  padding: var(--space-m);
  justify-content: center;
  display: flex;
  max-width: 500px;
  flex-direction:column;
}
.flex-layout img, .flex-layout h2, .flex-layout p{
  align-self: center;
} 
.flex-layout img{
  /* responsive images */
  max-inline-size: 100%;
  height: auto;
  border-radius: 50%;
  width: 25%;
  align-self: center;
}

.flex-layout h2{
  /* not using font size */
  color: var(--White);
  padding-top: 1em;
}


.btn{
  display: inline-block;
  padding: .53em;
  width: 90%;
  background-color: #333333;
  margin: var(--space-btn);
  padding: var(--space-btn-inside);
  color: var(--White);
  border-radius: var(--border-radius-btn);
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  text-align: center;
  align-self: center;
}
/* interactivity button using css */
.btn:hover{
  background-color: var(--Green);
  transform: scale(1.05);
  color: black;
}

/* 2 tag p using fontsize 16(min)-24px(max) */
.flex-layout p:first-of-type{
  color: var(--Green);
  font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
  padding: var(--space-location);
}
.flex-layout p:nth-of-type(2){
  font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
  padding-bottom: 1em;
  color: var(--White);
}

@media screen and (max-width:381px) {
  /* font size 12-16px maybe  */
  .flex-layout p:first-of-type, .flex-layout p:nth-of-type(2){
    font-size: clamp(0.75rem, 0.432rem + 1.59vw, 1.625rem);
  }
  
}