/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* 컨테이너 */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* 헤더 */
.header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}

.nav a:hover {
  background: #555;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

input[type="text"] {
  margin-top: 10px;
  padding: 8px;
  width: 90%;
  max-width: 500px;
  font-size: 16px;
  
  border-radius: 5px;
}

input, select { padding: 8px; width: 300px; margin-bottom: 10px; }

.plant-card {
        display: flex;
        gap: 10px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 15px;
        background: #f9f9f9;
}
.plant-card img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
}
.plant-info h2 { margin: 0 0 5px; }
.plant-info p { margin: 3px 0; }

.transparent-button {
    all: unset;
    -webkit-appearance: none;
    appearance: none;
    color: black;
    background-color: white;
    padding: 4px 10px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.transparent-button:hover {
  background: #333;
  color: rgb(255, 255, 255);
}


a {
  color: inherit;           /* 기본 텍스트 색상으로 */
  text-decoration: none;    /* 밑줄 제거 */
}

a:hover {
  color: rgb(166, 166, 167);
}



.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.list li a {
  color: #333;
  text-decoration: none;
  display: block;
}

.list li a:hover {
  background: #cfcaca;
}

.viewer {
  width: 100%;
  height: 80vh;
  background: black;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 메인 콘텐츠 */
main h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 푸터 */
.footer {
  text-align: center;
  background: #222;
  color: #aaa;
  padding: 1rem;
  margin-top: 2rem;
}

p {
      line-height: 1.6;
      margin-bottom: 1em;
}


/* 반응형 */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #444;
    position: absolute;
    right: 1rem;
    top: 60px;
    width: 150px;
    padding: 1rem;
    border-radius: 5px;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

}

@media (prefers-color-scheme: dark) {
    .transparent-button {
      color: black;
      background-color: white;
    }
}