* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: rgb(187, 184, 184);
  color: black;
  font-size: 18px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  line-height: 2;
  margin: 40px 40px;
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar #logo {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: x-large;
}

.navbar ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
}

.navbar ul li {
  margin-left: 30px;
  font-size: large;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.navbar a {
  display: flex;
}

.navbar a:hover {
  border-bottom: 2px #fff solid;
  color: #ba1c1c;
}

a:link,
a:visited {
  color: black;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 50px 40px;
}

main {
  margin: 50px 50px;
}
h2 {
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.title {
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: xx-large;
}

footer {
  margin: 80px 30px;
  text-align: center;
}

.note {
  display: block;
  padding: 20px 50px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS";
  text-align: center;
  border: 2px solid white;
  margin: 50px 250px;
  /* box-shadow: 5px 5px 20px 4px rgba(255, 255, 255, 0.774); */
}

#bigtitle {
  display: block;
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: xx-large;
}

.me {
  display: block;
  margin-left: 75%;
}

.navbar2 {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  height: 100%;
  list-style-type: none;
  margin-left: 30px;
}
.navbar2 a:hover {
  border-bottom: 2px #fff solid;
  color: #ba1c1c;
}

section {
  padding: 0 55px;
  padding-bottom: 30px;
}

.image_c {
  display: block;
  margin: 0 auto;
}

.mem {
  text-align: center;
  display: inline-block;
  padding: 10px 15px;
  margin: 20px 12px;
  border: 2px solid rgb(255, 255, 255);
  /* box-shadow: 5px 5px 20px 4px rgba(255, 255, 255, 0.774); */
  background-color: rgba(255, 255, 255, 0.214);
}

.name {
  text-align: center;
  font-size: xx-large;
}

.box {
  text-align: center;
  display: inline-block;
  border: 2px solid white;
  margin: 10px 70px;
  padding: 10px 20px;
  /* box-shadow: 5px 5px 20px 4px rgba(255, 255, 255, 0.774); */
  background-color: rgba(255, 255, 255, 0.374);
}

.box2 {
  text-align: center;
  display: inline-block;
  border: 2px solid white;
  margin: 10px 70px;
  /* box-shadow: 5px 5px 20px 4px rgba(255, 255, 255, 0.774); */
  background-color: rgba(255, 255, 255, 0.374);
}

.box p {
  text-align: left;
}

.link {
  text-shadow: 0 0 5px #fff, 0 0 10px #f61414;
}

.button {
  display: inline-block;
  padding: 0px 3px;
  border: 2px solid white;
  border-radius: 5px;
}

/* 여기부터 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* 애니메이션 적용 */
.box,
.box2,
.mem {
  animation: bounceIn 1.5s ease-out forwards;
}

.note {
  animation: fadeIn 2s ease-in-out;
}

.image_c {
  animation: fadeInUp 1s ease-out;
}

.container,
main,
footer,
h2,
.title,
#bigtitle {
  animation: fadeIn 1s ease-in-out;
}

/* 여기까지 애니메이션 */

@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar ul {
    flex-direction: column;
    margin-top: 10px;
  }

  .navbar ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .container,
  main {
    margin: 20px;
  }

  .note {
    margin: 30px 15px;
  }

  .image_c {
    max-width: 90%;
  }

  .box,
  .box2 {
    margin: 10px 20px;
  }
}

@media (max-width: 750px) {
  body {
    font-size: 16px;
  }

  .navbar ul li {
    font-size: medium;
  }

  .title,
  #bigtitle {
    font-size: large;
  }

  .container {
    padding: 0 15px;
  }

  .navbar2 {
    flex-direction: column;
    margin-left: 0;
  }

  .note {
    margin: 20px 0;
  }

  .box,
  .box2 {
    margin: 10px 15px;
    padding: 10px;
  }

  .mem {
    margin: 15px 5px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .navbar ul li {
    font-size: small;
  }

  .navbar {
    flex-direction: column;
  }

  .note {
    margin: 15px 0;
    padding: 15px;
  }

  .title {
    font-size: medium;
  }

  .box,
  .box2 {
    margin: 10px 5px;
    padding: 10px;
  }

  .mem {
    padding: 8px 12px;
  }
}
