/* Page background + general font */
body{
  margin: 0;
  font-family: "Nunito", Tahoma, sans-serif;
  background: #67708f;
}

/* Outer frame */
body::before{
  content: "";
  position: fixed;
  inset: 14px;
  border: 6px solid rgb(255, 224, 102);
  pointer-events: none;
}

/* Title */
h1{
  margin: 18px 0 10px;
  text-align: center;
  font-weight: 800;
  color: rgb(255, 224, 102);
  letter-spacing: 0.5px;
}

/* Main layout */
.main-area{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 22px 0;
}

/* Left column */
.left-panel{
  width: min(640px, 70vw);
}

.chooser-container{
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Big textarea */
#itemList{
  width: 100%;
  min-height: 230px;
  resize: vertical;
  font-size: 18px;
  padding: 12px;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
}

#itemList:focus{
  border-color: rgba(0,0,0,0.35);
}

/* Result area */
#result{
  margin-top: 14px;
  min-height: 34px;
  font-size: 22px;
  font-weight: 800;
  color: #222;
}

/* Instruction text */
.description{
  margin: 14px 6px 0;
  font-weight: 800;
  color: #000;
}

/* The round Choose button */
#chooseBtn{
  width: 170px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 9999px !important;

  background: #000;
  border: 6px solid rgb(255, 224, 102);
  color: rgb(255, 224, 102);

  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
}

#chooseBtn:active{
  transform: scale(0.99);
}

/* Run Again link-style button */
#runAgain{
  display: none;
  margin-top: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  color: rgb(255, 224, 102);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

#runAgain:focus{
  outline: 2px solid rgba(255, 224, 102, 0.8);
  outline-offset: 3px;
}

/* Ad placeholder */
.ad-zone{
  margin: 28px auto 24px;
  width: min(820px, 90vw);
  height: 90px;
  border: 2px dashed rgba(0,0,0,0.35);
  border-radius: 10px;

  font-family: Tahoma, sans-serif;
  font-size: 1em;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0.4;
}
.purpose{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #000;
}
.legalLinks{
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.legalLinks a{
  color: #000;
  text-decoration: underline;
}
