@font-face {
  font-family: 'AdorableDoll';
  src: url('fonts/AdorableDoll.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'RomanceA';
  src: url('fonts/RomanceA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #320b1e;
  background: #fafafa;
}
#rainCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(to bottom, #614655 0%, #766870 40%, #D9B3C2 85%, #E5CAD6 100%);
}

/* Tab Navigation */
.main-nav {
  background: rgba(48, 22, 35, 0.49);
  border-bottom: 1px solid #000000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2px;
}

.tab {
  font-family: 'AdorableDoll', sans-serif;
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #564550;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  background: #8d7d85;
}

.tab.active {
  background: #b07e96;
  color: #fce4ec;
}

/* Hero Section */
.hero {
  font-family: 'AdorableDoll', sans-serif;
  text-align: center;
  padding: 20px;
  margin: 20px;
  position: relative;
  left: 40%;
  width: 230px;
  clip-path: polygon(50% 15%, 65% 0%, 85% 0%, 100% 20%, 100% 45%, 50% 90%, 0% 45%, 0% 20%, 15% 0%, 35% 0%);
  background: linear-gradient(135deg, #b07e96 0%, #6e3c52 100%);
  color: #fce4ec;
  animation: breatheGlow 4s ease-in-out infinite;
}
@keyframes breatheGlow {
  0%, 100% {
    box-shadow: 0 0 20px 5px rgb(161, 113, 134);
    text-shadow: 0 0 20px 5px rgb(161, 113, 134);
    transform: scale(1);
  }
  50%{
    box-shadow: 0 0 20px 5px rgb(161, 113, 134);
    text-shadow: 0 0 20px 5px rgb(161, 113, 134);
    transform: scale(1.015);
  }
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* Badge Showcase */
.badge-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.badge-card {
  font-family: 'RomanceA', sans-serif;
  background: #fce4ec;
  padding: 2rem;
  border-radius: 8px;
  opacity: 70%;
  box-shadow: 0 2px 8px rgb(161, 113, 134);
  text-align: center;
      text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
}

.badge-card img {
  max-width: 200px;
  height: auto;
  margin: 1rem 0;

}

.code-toggle {
  margin-top: 1rem;
  border-top: 1px solid rgba(110, 60, 82, 0.2);
  padding-top: 1rem;
}

.toggle-header {
  cursor: pointer;
  color: #b07e96;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.toggle-header:hover {
  color: #6e3c52;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.toggle-header.active .toggle-icon {
  transform: rotate(180deg);
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.toggle-content.open {
  max-height: 500px;
}

.code-toggle pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.5rem;
}

/* Join Section */
.join-section {
  font-family: 'RomanceA', sans-serif;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  opacity: 70%;
  background: #fce4ec;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {

  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.submit-btn {
  font-family: 'AdorableDoll', sans-serif;
  width: 100%;
  padding: 1rem;
  background: #b07e96;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #b07e96;
}

/* Webring Page Specific */
.webring-header {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
      text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
}

.content-warning {
  margin-top: 1rem;
  padding: 1rem;
  background: #ffcdce;
  border-left: 4px solid #ff071f;
  display: inline-block;
}

/* Webring Navigation */
.webring-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #b07e96;
      text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
  color: white;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.15);
  color: #fce4ec;
  text-decoration: none;
  text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Current Member Display */
.current-member {
  font-family: 'AdorableDoll', sans-serif;
  text-align: center;
  padding: 3rem;
  background: rgba(110, 60, 82, 0.54);
  color:#fce4ec;
  text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 8px;
}

.current-member h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.current-member p {
  color: #b07e96;
  text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.current-member .visit-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #b07e96;
  color: white;
  text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-radius: 4px;
}

/* Member Directory */
.member-directory {
  font-family: 'RomanceA', sans-serif;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  text-shadow: 0 0 10px #6e3c52,
             0 0 20px rgba(255, 255, 255, 0.4);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.member-item {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 25px;
  box-shadow: 0 2px 4px rgb(161, 113, 134);
  text-align: center;
}

.member-item a {
  color: #b07e96;
  text-decoration: none;
  font-weight: 600;
}

.member-item a:hover {
  text-decoration: underline;
}
/* Checkbox grouping styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #b07e96; /* Purple checkbox fill */
}

.checkbox-item label {
  cursor: pointer;
  font-weight: normal;
  color: #333;
}

/* Fieldset styling */
fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  background: white;
  margin: 0;
}

legend {
  font-family: 'AdorableDoll', sans-serif;
  font-weight: 600;
  color: #b07e96;
  padding: 0 0.25rem;
  font-size: 0.95rem;
}
#pagedoll {
  position: fixed;
  right:10px;
  bottom:10px;
  z-index: 100;
}
footer {
  font-family: 'RomanceA';
}
