:root {
  --bg: #121212;
  --text: #f0f0f0;
  --box: #1e1e1e;
  --icon-color: #ffda46;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

body.light {
  --bg: #fff8f0;
  --text: #222;
  --box: #dfdbdba4;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header,
section {
  background: var(--box);
  padding: 20px;
  border-radius: 15px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

header img {
  width: 120px;
  height: 120px;
  border-radius: 35%;
  margin-top: 15px;
  margin-bottom: 10px;
  object-fit: cover;
  object-position: top;
  transform: scale(1.2);
  cursor: pointer;
}

.name-highlight {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: underline;
}

.greeting {
  font-size: 1.4rem;
  margin: 20px 15px 0 0;
  font-weight: 500;
  text-align: center;
}

.emoji {
  display: inline-block;
  margin-right: 6px;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icons a {
  font-size: 28px;
  color: var(--text);
  transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #007bff;
}

.toggle-btn {
  align-self: flex-start;
  margin-bottom: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
  color: var(--icon-color);
}

.toggle-btn i {
  transition: transform 0.8s;
}

.toggle-btn:hover i {
  transform: rotate(360deg);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: white;
  margin-bottom: 10px;
  transition: background-color 0.3s, color 0.3s;
}

/* 버튼 */
button {
  background-color: #333;
  color: white;
  border: none;
  position: relative;
  top: -5px; /* 위로 10px 이동 */
  padding: 5px 11px;
  min-width: 70px;
  margin: 4px 2px;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

textarea#notepad {
  width: 100%;
  min-height: 200px;
  background: var(--box);
  color: var(--text);
  border: 1px solid #888;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

#note-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#note-title {
  flex-grow: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #aaa;
}

#note-body {
  width: 100%;
  min-height: 200px;
  background: var(--box);
  color: var(--text);
  border: 1px solid #888;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 20px;
}

#note-list li {
  cursor: pointer;
  padding: 5px;
  border-bottom: 1px solid #444;
}

#note-list li:hover {
  background: #333;
}

#note-list li {
  cursor: pointer;
  padding: 8px;
  border-bottom: 1px solid #444;
  position: relative;
}

#note-list li small {
  font-size: 0.75rem;
  color: #aaa;
}

#note-list .delete-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.85rem;
}
#note-list .delete-btn:hover {
  color: #ff3b3b;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
}

.close-modal-btn {
  position: absolute;
  top: 30px;
  right: 550px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}

.close-modal-btn {
    position: absolute;
    top: 30px;
    right: 550px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s;
  }
  .close-modal-btn:hover,
  .close-modal-btn:focus {
    color: #bbb;
  }
  .easter-toggle-btn {
    position: fixed;
    bottom: -820px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    opacity: 0.3;
    transition: opacity 0.3s;
  }
  .easter-toggle-btn:hover {
    opacity: 0.8;
  }
  .easter-egg-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--box);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow: hidden;
    opacity: 0;
    display: block;
    transition: opacity 0.5s;
  }
  .easter-egg-container.active {
    opacity: 1;
  }
  .easter-egg-container input,
  .easter-egg-container button {
    padding: 5px;
    border-radius: 5px;
    margin-right: 5px;
  }
  .easter-egg-container input {
    border: 1px solid #ccc;
  }
  .easter-egg-container button {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  .easter-egg-container p {
    margin-top: 10px;
    color: var(--text);
  }
  @media (max-width: 600px) {
    header,
    section {
      padding: 15px;
    }
    header img {
      width: 100px;
      height: 100px;
    }
    body {
      font-size: 16px;
    }
  }  