@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300&family=Poppins&family=Varela+Round&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
  margin-right: 1rem;
}

.container {
  width: 1140px;
  margin: 0 auto;
}

.header {
  position: fixed;
  color: white;
  top: 0;
  z-index: 1;
  width: 100%;
  padding: 1rem;
}

.header button {
  color: white;
}

header {
  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: black;
}

header h1 button {
  font-size: 2rem;
  font-weight: bold;
}

header h3 button {
  font-size: 2rem;
  font-weight: bold;
}

main {
  width: 100%;
  height: 100vh;
  color: white;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

main h4 {
  font-size: 2rem;
}

main h2 {
  font-size: 3.5rem;
  margin: 2rem 0;
  letter-spacing: 3px;
  letter-spacing: 3px;
  font-family: "Varela Round", sans-serif;
}

main p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 0.8;
}

main button.download {
  background-color: transparent;
  border: 3px solid white;
  border-radius: 20px;
  padding: 1rem 2rem;
  margin-top: 3rem;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

main h2 span::after {
  content: "";
  height: 40px;
  width: 3px;
  background-color: #fff;
  display: inline-block;
  animation: blink 0.7s ease-in-out infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.mentor h1 {
  text-align: center;
  font-size: 2rem;
}

.board_button {
  margin-right: 10%;
  float: right;
}

/* 옆에 메뉴창 */
.menu {
  padding-left: 20px;
  list-style-type: none;
  text-decoration: none;
  margin: 0;
  padding-top: 100px;
  width: 15%;
  background-color: lightgray;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.menu li {
  margin-top: 30px;
}

.menu li a {
  display: block;
  padding: 8px 16px;
  /* top과 bottom이 8px, left와 right가 16px */
  text-decoration: none;
  text-align: center;
  font-size: 30px;
  color: black;
}

.menu li a:hover {
  background-color: gray;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
section.contact .right {
  width: 65%;
  margin: 5 auto;
}
section.contact .right {
  float: left;
  width: 65%;
  margin-left: 5%;
  margin-bottom: 2rem;
  border: 1px solid #ccc;
  padding: 1rem;
}

section.contact .right .form-group {
  margin-bottom: 1.25rem;
}
section.contact .right .form-group label {
  display: block;
  margin-bottom: 0.85rem;
}
section.contact .right .form-group input {
  padding: 0.625rem;
  width: 100%;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 10px;
}
section.contact .right .form-group input:focus {
  border: 1px solid #719ece;
  box-shadow: 0 0 10px #719ece;
}
section.contact .right .form-group textarea {
  height: 300px;
  width: 100%;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 10px;
}
section.contact .right .form-group textarea:focus {
  outline: none;
  border: 1px solid #719ece;
  box-shadow: 0 0 10px #719ece;
}
section.contact .right button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), center center;
  border: none;
  color: white;
  cursor:pointer;
}

section .do-me::after {
  content: "";
  display: block;
  clear: both;
}

section .do-me .do-inner {
  background-color: #fff;
  width: 30%;
  padding: 2rem;
  float: left;
  margin-top: 5%;
  margin-right: 5%;
  cursor: pointer;
}

/* 마지막 사각형의 외부 여백 설정 */
section .do-me .do-inner:last-child {
  margin-right: 0;
}

section .do-me .do-inner .icon i {
  font-size: 2.5rem;
  color: #ff6a6a;
}

section .do-me .do-inner .content h3 {
  font-size: 2rem;
  margin: 1rem 0;
}

section .do-me .do-inner .content p {
  font-size: 1.15rem;
}

@media screen and (max-width: 1140px) {
  main .container {
    width: 992px;
  }

  section .container {
    width: 600px;
  }

  section .about-self .left {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  section .about-self .right {
    width: 100%;
    padding: 0;
  }

  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%;
  }

  section .portfolio-me .portfolio-inner {
    width: 48%;
    margin-right: 0;
  }

  section .portfolio-me .portfolio-inner:nth-child(2n + 1) {
    margin-right: 4%;
  }

  section.contact .contact-me .left {
    width: 100%;
  }

  section.contact .contact-me .right {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 992px) {
  html {
    font-size: 14px;
  }

  main .container {
    width: 768px;
  }

  section .portfolio-me .portfolio-inner {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 13px;
  }

  main .container {
    width: 576px;
  }

  section .container {
    width: 400px;
  }

  section .do-me .do-inner {
    width: 100%;
    margin-right: 0;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 12px;
  }

  main .container {
    width: 400px;
  }

  section .container {
    width: 369px;
  }
}

@media screen and (max-width: 400px) {
  html {
    font-size: 11px;
  }

  main .container {
    width: 320px;
  }

  section .container {
    width: 320px;
  }

  main h4 {
    font-size: 1.5rem;
  }

  section .title h2 {
    font-size: 3rem;
  }
}

#message-list {
  display: flex;
  flex-wrap: wrap;
  margin-left:50px;
  width: 1000px;
  display: flex;
  align-items: center;
}

.message-item {
  width: calc(33.33% - 20px);
  margin: 10px;
  border: 1px solid #ccc;
  padding: 10px;
}
