* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: rgb(231, 231, 231);
  color: #333;
  font-size: 17px;
  line-height: 1.5;
  padding: 60px;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.main {
  color: rgb(0, 0, 0);
  line-height: 2;
}

.navbar {
  background-color: rgb(30, 0, 107);
  color: white;
  height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
}

.navbar .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 30px;
}

.navbar ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar .logo {
  font-size: x-large;
  font-weight: bold;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.navbar a:hover {
  border-bottom: 2px #fff solid;
  color: #ddd;
}

button {
  padding: 5px 10px;
  margin: 5px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
}

button:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

img {
  vertical-align: bottom;
  /*   vertical-align: top; */
}

/* Media Quaries  */
@media (max-width: 900px) {
  header #branding,
  header nav,
  header nav li,
  #newsletter h1,
  #newsletter form,
  #boxes .box,
  article#main-col,
  aside#sidebar {
    float: none;
    text-align: center;
    width: 100%;
  }
}

.img-fluid {
  width: 100%;
  max-height: 400px; /* 또는 원하는 높이 설정 */
  object-fit: cover; /* 비율 유지 + 넘치는 부분 자름 */
  display: block;
  margin: 0 auto;
}

.header {
  position: relative;
  width: 100%;
  height: 400px; /* 배경 이미지 높이 지정 */
  overflow: hidden;
}

.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.animated-home {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* 가운데 정렬 */
  display: flex;
  gap: 10px;
  font-size: 60px;
  font-weight: bold;
  z-index: 2;
}

.letter {
  opacity: 0;
  color: white;
  display: inline-block;
  animation: fadeIn 1s ease forwards;
  animation-delay: calc(var(--i) * 0.5s);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: 'Helvetica', sans-serif;
}

.grid-container1,
.grid-container2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out forwards;
  animation: fadeIn 1s ease forwards;
  animation-delay: calc(var(--i) * 0.6s);
}

.flex-container {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out forwards;
  animation: fadeIn 1s ease forwards;
  animation-delay: calc(var(--i) * 0.6s);
}

@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-outline-dark {
  --bs-btn-color: black;
  --bs-btn-border-color: black;
  --bs-btn-hover-bg: black;
  --bs-btn-hover-color: white;
  --bs-btn-active-bg: black;
  --bs-btn-active-color: white;
}

/* 링크 색상 강제 설정 */
.btn-outline-dark a {
  color: inherit;
  text-decoration: none;
}

.flex-container {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: riseUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.5s);
}

.photo1,
.photo2,
.photo3,
.photo4 {
  width: 250px;
  height: 250px;
  background-image: url('secon1.png');
  background-size: cover; /* 컨테이너를 꽉 채우며 비율 유지[6][8] */
}

@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  #main-content {
    flex-direction: column; /* 세로로 쌓이게 */
    align-items: center;
  }

  #sidebar {
    width: 100%;
    margin-bottom: 20px; /* 사이드바가 아래로 내려가도록 */
  }

  #main-col {
    width: 100%;
  }
}

nav ul li {
  margin: 5px 0;
}

#boxes {
  grid-template-columns: 1fr; /* 하나의 열로 설정 */
}

@media (max-width: 480px) {
  header {
    padding: 20px;
    text-align: center;
  }

  #main-content {
    flex-direction: column; /* 세로로 쌓이게 */
    align-items: center;
    padding: 10px;
  }

  #sidebar,
  #main-col {
    width: 100%; /* 화면 너비에 맞게 100% 차지 */
    text-align: center;
  }

  #sidebar {
    margin-bottom: 20px; /* 사이드바와 본문 사이에 간격을 줍니다 */
  }
}

@media (max-width: 700px) {
  #tooltip {
    max-width: 90vw;
    font-size: 14px;
    padding: 10px 15px;
    word-wrap: break-word;
  }
}

/* 단일 후기 박스 스타일 */
.review-box {
  margin: 10px auto 0;
  max-width: 900px;
  padding: 25px 10px;
  background-color: #eef1ff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #333;
  box-shadow: 1px 1px 6px 3px #140287;
}

.review-text {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}
