/* .nanum-gothic-regular {
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.nanum-gothic-bold {
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.nanum-gothic-extrabold {
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 800;
  font-style: normal;
} */
body {
  line-height: 1.5;
}
/* header.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* line-height: 1.5; */
}
a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}
li {
  list-style: none;
}
.container {
  width: 1140px;
  margin: 0 auto;
}
header {
  position: fixed;
  color: white;
  top: 0;
  z-index: 1;
  width: 100%;
  padding: 1rem;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
header nav ul {
  display: flex;
}
header nav ul li {
  padding: 10px;
}
header button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: white;
}
header h1 button {
  font-size: 2rem;
  font-weight: bold;
}
header nav ul li button {
  font-size: 1.2rem;
}
header.active {
  background-color: rgba(0, 0, 0, 0.5);

  animation: fadeIn 0.7s ease-in-out;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* End header.css */

/* main.css */
main {
  width: 100%;
  height: 100vh;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/me1.jpg") center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* 반갑습니다 */
main h4 {
  font-size: 3rem;
}
/* 타이핑 글자 */
main h2 {
  font-size: 1.5rem;
  margin: 1.75rem 0;
  letter-spacing: 2px;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
  /* font-family:'Varela Round', sans-serif; 웹 폰트 추가 */
}
main h3 {
  color: rgb(252, 252, 200);
}
main p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: rgb(252, 252, 200);
}
main p.house {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: upDown 1s ease-in-out infinite;
  /* cursor: pointer; */
}
@keyframes upDown {
  0% {
    bottom: 1rem;
  }
  50% {
    bottom: 1.5rem;
  }
  100% {
    bottom: 1rem;
  }
}

/* 커서만들기 */
main h2 span::after {
  content: "";
  height: 18px;
  width: 2px;
  background-color: #fff;
  display: inline-block;
  animation: blink 0.7s ease-in-out infinite;
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* about_me.css */
section {
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
  padding: 5rem 0;
}
section:nth-child(2n) {
  background-color: #f8f8f8;
}
section .title {
  margin-bottom: 3rem;
}
section .title h4 {
  font-size: 1.35rem;
  color: #ed4848;
  position: relative;
}
section .title h2 {
  font-size: 3.5rem;
}
section .title p {
  font-size: 1.15rem;
}
/* float 속성 해제 */
section .about-self::after {
  content: "";
  clear: both;
  display: block;
}
/* 본문 너비 절반 지정 & 왼쪽 배치 */
section .about-self .left {
  width: 50%;
  float: left;
}
/* 이미지 크기가 부모 영역을 넘지 않도록 부모 영역의 최대 크기로 지정 */
section .about-self .left img {
  max-width: 100%;
}
/* 본문 너비 절반 지정 & 오른쪽 배치 */
section .about-self .right {
  width: 50%;
  float: left;
  padding: 0 2rem;
}
/* 본문 오른쪽 h3 태그의 글자 크기와 여백 지정 */
section .about-self .right h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
/* 본문 오른쪽 h3 태그의 strong 태그 색상 강조 */
section .about-self .right h3 strong {
  color: #ed4848;
}
/* 본문 오른쪽 p 태그의 크기와 여백 지정 */
section .about-self .right p {
  font-size: 1.15rem;
  margin: 1rem 0;
}
/* 본문 오른쪽의 아이콘 폰트 크기와 여백 지정 */
/* section .about-self .right .social a {
  font-size: 2.5rem;
  margin-right: 0.2rem;
} */
/* End about_me.css */

/* feature.css */
/* float 속성 해제*/
section .do-me::after {
  content: "";
  display: block;
  clear: both;
}
/* 사각형 크기와 간격, 내부 여백 설정 */
section .do-me .do-inner {
  background-color: #fff;
  width: 30%;
  padding: 2rem;
  float: left;
  margin-right: 5%;
  /* cursor: pointer; */
}
/* 마지막 사각형의 외부 여백 설정 */
section .do-me .do-inner:last-child {
  margin-right: 0;
}
/* 아이콘 폰트 크기와 색상 */
section .do-me .do-inner .icon i {
  font-size: 2rem;
  color: #ff6a6a;
}
/* 사각형의 텍스트 크기와 간격 */
section .do-me .do-inner .content h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}
/* 사각형 텍스트 크기 */
section .do-me .do-inner .content p {
  font-size: 1.25rem;
  /* line-height: 1.5; */
}
section .do-me .do-inner .content p strong {
  font-size: 1.25rem;
  color: rgb(100, 0, 255);
}
/* do-inner 클래스에 마우스를 올리면 배경색과 텍스트 색상 변경 */
/* section .do-me .do-inner:hover {
  background-color: lightcoral;
  color: white;
} */
/* do-inner 클래스에 마우스를 올리면 아이콘 폰트 색상 변경 */
/* section .do-me .do-inner:hover i {
  color: white;
} */
/* End feature.css */

/* background.css */
.bg {
  background: url("./images/background1.jpg") center center;
  background-size: cover;
  background-attachment: fixed;
  height: 600px;
}
/* End background.css */

/* photoAlbum.css */
/* clear 속성으로 float 속성값 해제*/
section.photoAlbum::after {
  content: "";
  display: block;
  clear: both;
}
/* photoAlbum-inner 사각형 꾸미기 */
section.photoAlbum .photoAlbum-inner {
  width: 30%;
  padding: 1rem 1rem 1.5rem 1rem;
  float: left;
  margin-right: 5%;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  margin-bottom: 3rem;
}

/* 3번째마다 margin-right 0 적용 */
section.photoAlbum .photoAlbum-inner:nth-child(3n) {
  margin-right: 0;
}
/* 이미지의 크기가 부모 요소를 넘지 않도록 100%로 지정 */
section.photoAlbum .photoAlbum-inner img {
  width: 100%;
  display: block;
}
/* strong 태그 색상과 간격 */
section.photoAlbum .photoAlbum-inner strong {
  color: #0fb400;
  margin: 0.5rem 0.5rem;
  display: block;
}
/* h3 태그 색상과 간격 */
section.photoAlbum .photoAlbum-inner h3 {
  color: rgb(50, 0, 140);
  font-size: 1rem;
  margin: 0.5rem 0.5rem;
}
/* End photoAlbum.css */

/* contact_with_me.css */

section.contact .contact-me::after {
  content: "";
  display: block;
  clear: both;
}
section.contact .contact-me .left {
  width: 100%;
  float: left;
  margin-bottom: 3rem;
}
/* section.contact .contact-me .right {
  float: left;
  width: 65%;
  margin-left: 5%;
} */
section.contact .contact-me .left .card {
  border: 1px solid #ccc;
  padding: 1rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}
section.contact .contact-me .left .card .icon i {
  font-size: 2rem;
  margin-right: 15px;
}
/* section.contact .contact-me .right {
  float: left;
  width: 65%;
  margin-left: 5%;
  margin-bottom: 2rem;
  border: 1px solid #ccc;
  padding: 1rem;
} */
/* form-group 사이 간격 지정 */
/* section.contact .contact-me .right .form-group {
  margin-bottom: 1.25rem;
} */
/* label 태그가 인라인 성격이어서 외부 여백을 적용하기 위해 block으로 변경 */
/* section.contact .contact-me .right .form-group label {
  display: block;
  margin-bottom: 0.85rem;
} */
/* input 요소 꾸미기 */
/* section.contact .contact-me .right .form-group input {
  padding: 0.625rem;
  width: 100%;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 10px;
} */
/* :focus 가상 클래스 선택자로 입력 요소에 커서가 활성화되면 파란색 테두리와 그림자 효과 추가 */
/* section.contact .contact-me .right .form-group input:focus {
  border: 1px solid #719ece;
  box-shadow: 0 0 10px #719ece;
} */
/* textarea 요소 꾸미기 */
/* section.contact .contact-me .right .form-group textarea {
  height: 300px;
  width: 100%;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 10px;
} */
/* textarea 요소에 커서 활성화가 되면 파란색 테두리와 그림자 효과 추가 */
/* section.contact .contact-me .right .form-group textarea:focus {
  outline: none;
  border: 1px solid #719ece;
  box-shadow: 0 0 10px #719ece;
} */
/* 버튼 요소 꾸미기 */
/* section.contact .contact-me .right button {
  width: 100%;
  padding: 1rem;
  background-color: #f78b00;
  border: none;
  color: white;
} */

/* End contact_with_me.css */

/* media.css */
@media screen and (max-width: 1140px) {
  /* 메인 container 기준 1140 -> 992px */
  main .container {
    width: 992px;
  }

  /* 섹션 container 기준 1140 -> 600px */
  section .container {
    width: 600px;
  }

  /* About me 영역 왼쪽을 너비를 50% -> 100% 변경 */
  section .about-self .left {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  /* About me 영역 오른쪽 너비를 50% -> 100% 변경 */
  section .about-self .right {
    width: 100%;
    padding: 0;
  }

  /* What I Do 영역의 콘텐츠 박스의 너비를 30% -> 48% 변경 */
  section .do-me .do-inner {
    width: 48%;
    margin-bottom: 1.5rem;
    margin-right: 0;
  }

  section .do-me .do-inner:nth-child(2n + 1) {
    margin-right: 4%; /* 1, 3, 5...번째 본문 사각형에 margin-right 4% 적용 */
  }

  /* PhothAlbum 영역의 콘텐츠 박스 너비를 30% ->  48% 변경 */
  section .photoAlbum-me .photoAlbum-inner {
    width: 48%;
    margin-right: 0;
  }

  section .photoAlbum-me .photoAlbum-inner:nth-child(2n + 1) {
    margin-right: 4%;
  }

  /* Contact With Me 영역 */
  section.contact .contact-me .left {
    width: 100%; /* 너비 변경 30% -> 100% */
  }

  /* section.contact .contact-me .right {
    width: 100%; /* 너비 변경 65% -> 100% */
  /* margin-left: 0; /* margin 초기화 */
  /*} */
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  /* 메인 영역 container 기준 너비 변경 */
  main .container {
    width: 768px; /* 992px -> 768px */
  }

  /* PortFolio 영역 */
  section .portfolio-me .portfolio-inner {
    width: 100%; /* 48% -> 100% 변경 */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  /* 메인 영역 container 기준 너비 변경 */
  main .container {
    width: 576px; /* 768px -> 576px */
  }

  section .container {
    width: 400px; /* 600px -> 400px */
  }

  section .do-me .do-inner {
    width: 100%; /* 48% -> 100% */
    margin-right: 0; /* margin 초기화 */
  }
}

@media (max-width: 576px) {
  html {
    font-size: 12px;
  }

  main .container {
    width: 400px; /* 576px -> 400px */
  }

  section .container {
    width: 360px; /* 400px -> 360px */
  }
}

@media (max-width: 400px) {
  html {
    font-size: 11px;
  }
  main .container {
    width: 320px; /* 400px -> 320px */
  }

  main h4 {
    font-size: 1.5rem;
  }
  section .container {
    width: 320px; /* 360px -> 320px */
  }
  section .title h2 {
    font-size: 3rem; /* 3.5rem -> 3rem */
  }
}
/* End media.css */
