body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Courier New", sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 6%;
  border-bottom: 2px solid #000;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.navbar a {
  text-decoration: none;
  font-size: 15px;
  font-family: "Cascadia Code", monospace;
  letter-spacing: 0.05em;
  color: #000;
  position: relative;
  transition: color 0.2s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #FF8F00;
  transition: width 0.2s ease;
}

.navbar a:hover { color: #FF8F00; }
.navbar a:hover::after { width: 100%; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.items {
  text-align: center;
}

.page-header {
  margin-bottom: 56px;
  border-bottom: 2px solid #000;
  padding-bottom: 32px;
}

.page-title {
  font-family: "Space Mono", monospace;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0 0 16px;
}

.page-title-color {
  color: #DF8200;
}

.requiredtext {
  font-family: "Cascadia Code", monospace;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #000;
  margin: 0;
  font-weight: 400;
}

.required-star {
  color: #DF8200;
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 3px;
  font-weight: 400;
  opacity: 0.9;
}

h1 {
  font-family: "Cascadia Code", monospace;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  margin: 40px 0 0;
}

h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  opacity: 0.6;
  margin: 4px 0 20px;
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cascadia Code", monospace;
  font-size: 13px;
  color: #DF8200;
  vertical-align: top;
  margin-left: 3px;
  cursor: default;
  font-weight: bold;
}

.infoicontext {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 12px;
  font-family: "Cascadia Code", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.info-icon:hover .infoicontext {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

#communityNameInput,
#communityLinkInput,
#otherText,
#newModuleText {
  width: 100%;
  max-width: 500px;
  padding: 14px 18px;
  font-size: 15px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  font-family: "Cascadia Code", monospace;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  margin: 12px auto 0;
  display: block;
  box-sizing: border-box;
  outline: none;
}

#communityNameInput:focus,
#communityLinkInput:focus,
#otherText:focus,
#newModuleText:focus {
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

#communityTypeInput {
  width: 100%;
  max-width: 500px;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  font-family: "Cascadia Code", monospace;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  margin: 12px auto 0;
  display: block;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF8F00' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  outline: none;
}

#communityTypeInput:focus {
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

#communityTypeInput option {
  font-family: "Cascadia Code", monospace;
  background-color: #ffffff;
  color: #000000;
}

#sizeContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px auto 0;
  max-width: 700px;
}

.size-btn {
  padding: 12px 22px;
  font-size: 14px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font-family: "Cascadia Code", monospace;
  letter-spacing: 0.05em;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.size-btn:hover {
  background-color: #FF8F00;
  box-shadow: 2px 2px 0 #000;
  transform: translate(1px, 1px);
}

.size-btn.selected {
  background-color: #FF8F00;
  color: #000000;
  box-shadow: 0 0 0 #000;
  transform: translate(3px, 3px);
}

#keywordsWrapper {
  width: 100%;
  max-width: 500px;
  margin: 12px auto 0;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  background-color: #ffffff;
  padding: 10px 12px 6px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

#keywordsWrapper:focus-within {
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

#keywordTags {
  display: contents;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #FF8F00;
  color: #000000;
  font-family: "Cascadia Code", monospace;
  font-size: 13px;
  border: 1.5px solid #000000;
}

.keyword-tag button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #000000;
  font-family: "Cascadia Code", monospace;
  transition: opacity 0.15s ease;
}

.keyword-tag button:hover {
  opacity: 0.5;
}

#keywordInput {
  flex: 1 1 120px;
  min-width: 120px;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 4px 4px;
  background: transparent;
  font-size: 14px;
  font-family: "Cascadia Code", monospace;
  display: inline-block;
  outline: none;
}

#modulesContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px auto 0;
  max-width: 700px;
}

.module-btn {
  padding: 12px 22px;
  font-size: 14px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font-family: "Cascadia Code", monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.module-btn:hover {
  background-color: #FF8F00;
  box-shadow: 2px 2px 0 #000;
  transform: translate(1px, 1px);
}

.module-btn.selected {
  background-color: #FF8F00;
  color: #000000;
  box-shadow: 0 0 0 #000;
  transform: translate(3px, 3px);
}

#addModuleBtn {
  padding: 12px 20px;
  font-size: 20px;
  font-weight: 700;
  background-color: #ffffff;
  color: #FF8F00;
  border: 2px dashed #FF8F00;
  cursor: pointer;
  font-family: "Cascadia Code", monospace;
  transition: background-color 0.15s ease, color 0.15s ease, border-style 0.15s ease, border-color 0.15s ease;
}

#addModuleBtn:hover {
  background-color: #FF8F00;
  color: #000000;
  border-style: solid;
  border-color: #000;
}

#newModuleContainer {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

#saveModule,
#saveCategory {
  display: inline-block;
  font-family: "Cascadia Code", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  background: #FF8F00;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

#saveModule:hover,
#saveCategory:hover {
  background: #DF8200;
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

#saveModule:active,
#saveCategory:active {
  box-shadow: 0 0 0 #000;
  transform: translate(4px, 4px);
}

#cancelModule {
  display: inline-block;
  font-family: "Cascadia Code", monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

#cancelModule:hover {
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

.btn {
  display: inline-block;
  margin: 48px auto 0;
  font-family: "Cascadia Code", monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 30px;
  background: #FF8F00;
  color: #000000;
  text-align: center;
  text-decoration: none;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
  background: #DF8200;
}

.btn:active {
  box-shadow: 0 0 0 #000;
  transform: translate(4px, 4px);
}

@media (max-width: 768px) {
  .navbar { padding: 18px 5%; }
  .navbar ul { gap: 20px; }
  main { padding: 40px 16px 60px; }

  #communityNameInput,
  #communityLinkInput,
  #communityTypeInput,
  #otherText,
  #newModuleText,
  #keywordsWrapper {
    max-width: 100%;
  }

  .btn { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .navbar ul { gap: 14px; }
  .navbar a { font-size: 13px; }
  .page-title { font-size: clamp(22px, 7vw, 36px); }
}