/* Modify the background color */
/*logo color: a346ff*/
.navbar-brand > img {
  max-width: 80px;
}
/* not working */

:root {
  --main-logo: #a346ff;
  --complementary: #a2ff46;
}

* {
  margin: 0;
  padding: 0;
}

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

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/*62.5% = 10px*, default document size=16px , */

/* 1200px/16px =75 */
@media (max-width: 75em) {
  html {
    font-size: 60%;
  }
}
/* 
980/16 */
@media (max-width: 61.25em) {
  html {
    font-size: 58%;
  }
}

/* 460/16 */
@media (max-width: 28.75em) {
  html {
    font-size: 55%;
  }
}

.body {
  font-family: "Open Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
}

h1,
h2 {
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.2rem;
}

a {
  text-decoration: none;
  color: black;
  font-size: 2rem;
}

img {
  display: block;
  width: 100%;
}
ul {
  list-style: none;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

#navbar {
  --navbar-height: 64px;
  position: fixed;
  height: var(--navbar-height);
  left: 0;
  right: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 55px 3px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-item {
  margin: 0.4em;
  width: 100%;
}

.home-link,
.navbar-link {
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  font-weight: 400;
  align-items: center;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.navbar-link {
  justify-content: center;
  width: 100%;
  padding: 0.4em 0.8em;
  border-radius: 5px;
}

.navbar-link:focus,
.navbar-link:hover {
  color: var(--main-logo);
}

.navbar-logo {
  border-radius: 50;
  width: 60px;
  height: 60px;
  margin-right: 0.5em;
}

.navbar-toggle {
  cursor: pointer;
  border: none;
  background-color: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.icon-bar {
  display: block;
  width: 25px;
  height: 4px;
  margin: 2px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  background-color: black;
}

.navbar-toggle:focus .icon-bar,
.navbar-toggle:hover .icon-bar {
  background-color: var(--main-logo);
}

#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
  position: absolute;
  margin: 0;
  width: 30px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
  transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
  opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
  transform: rotate(-45deg);
}

.navbar-menu {
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
  left: 0;
  right: 0;
}

#navbar.opened .navbar-menu {
  background-color: white;
  opacity: 1;
  visibility: visible;
}
.navbar-links {
  list-style-type: none;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  left: 0;
  right: 0;
  margin: 1.4rem;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#navbar.opened .navbar-links {
  padding: 1em;
  max-height: none;
}

@media screen and (min-width: 700px) {
  .navbar-toggle {
    display: none;
  }
  #navbar .navbar-menu,
  #navbar.opened .navbar-menu {
    visibility: visible;
    opacity: 1;
    position: static;
    display: block;
    height: 100%;
  }

  #navbar .navbar-links,
  #navbar.opened .navbar-links {
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: static;
    flex-direction: row;
    list-style-type: none;
    max-height: max-content;
    width: 100%;
    height: 100%;
    font-weight: 700;
  }
}

.welcome-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  color: var(--main-logo);
  margin-top: 5rem;
}

/*여기서 헤이트는 내가 보이는 부분에서 전체를 차지 하도록 100vh*/

.welcome-section p {
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: black;
  margin: 5rem;
}

.welcome-section img {
  border-radius: 50%;
  height: 200px;
  width: auto;
  margin-top: 3.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (max-width: 450px) {
  .welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/*about section*/

.about-section {
  width: 100%;
  height: 100%;
  background-color: #e2ffc6;
}

.about-section h2 {
  color: black;
  max-width: 640px;
  margin: 5rem auto 5rem auto;
  padding-top: 5rem;
}

.about-section h3 {
  text-align: center;
}
.about-section p {
  padding: 2rem;
  margin: 0 10vh;
}
.about-section div {
  padding-bottom: 5rem;
}
@media screen and (max-width: 500px) {
  .about-section p {
    margin: 0 2rem;
  }
}
.about-section div {
  margin: 1rem;
}

.about-section p {
  font-size: 1.8rem;
}
.projects-section {
  padding: 0 2rem;
}
.projects-section-header {
  max-width: 640px;
  margin: 5rem auto 5rem auto;
}

.projects-section ul {
  margin: 2rem;
  padding: 2rem;
}
.projects-section li {
  margin-top: 1rem;
  font-size: 1.8rem;
}
.projects-section li {
  border: 1px solid var(--main-logo);
  border-radius: 5px;
  padding: 2rem;
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: #bea3f6;
}

.contact-section h3 {
  font-size: 4rem;
  margin: 5rem auto 5rem auto;
  color: black;
}
.contact-section .btn {
  margin-bottom: 3rem;
}

.contact-section input {
  margin: 2rem;
  padding: 1rem;
  border: var(--main-logo);
  border-radius: 5px;
  width: 30rem;
}

.contact-section label {
  visibility: hidden;
}
.contact-section textarea {
  margin: 2rem;
  padding: 1rem;
  border: var(--main-logo);
  border-radius: 5px;
  height: 10rem;
  width: 30rem;
  font: "Open Sans";
}

.contact-section button {
  background-color: #a2ff46;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  float: right;
}

.contact-section button:hover {
  opacity: 0.9;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: lightgray;
}

footer p {
  margin: 2rem;
}

.fa {
  font-size: 2rem;
  width: 30px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.fa:hover {
  color: var(--complementary);
}
/* add email func */
.alert {
  width: 90%;
  max-width: 500px;
  text-align: center;
  padding: 5px;
  margin: 0 auto;
  border-radius: 8px;
  display: none;
  background-color: greenyellow;
}
