*{
  box-sizing:border-box;
}

body{
  margin:0;
  padding:16px;
  font-family:Arial, Helvetica, sans-serif;
  font-size:16px;
  line-height:1.45;
}

.creator_page{
  width:100%;
}

.creator_page h1{
  font-size:1.8rem;
  margin:0 0 16px 0;
}

.quiz_scroll{
  overflow-x:auto;
}

.creator_table{
  width:100%;
  min-width:calc(130px + (var(--category-count, 4) * 150px) + 96px);
  border-collapse:collapse;
  background:#0000aa;
}

.creator_table th,
.creator_table td{
  border:1px solid #000000;
  padding:8px;
  vertical-align:top;
}

.creator_table th{
  color:#ffffff;
  font-weight:bold;
}

.creator_table label,
.creator_table label span{
  display:block;
}

.creator_table textarea,
.creator_table input{
  width:100%;
}

.creator_table textarea{
  min-height:6rem;
  resize:vertical;
}

.final_jeopardy_editor{
  display:grid;
  grid-template-columns:minmax(180px, 1fr) minmax(260px, 2fr);
  gap:10px;
  margin-top:12px;
  padding:10px;
  background:#eeeeee;
}

.final_jeopardy_editor h2{
  grid-column:1 / -1;
  margin:0;
  font-size:1.1rem;
}

.final_jeopardy_editor label,
.final_jeopardy_editor span{
  display:block;
}

.final_jeopardy_editor textarea{
  width:100%;
  min-height:4rem;
  resize:vertical;
}

.point_column{
  width:120px;
  color:#ffffff;
  font-weight:bold;
}

.add_column_cell{
  width:96px;
  min-width:96px;
  background:#eeeeee;
  color:#111111;
  text-align:center;
}

.add_row,
.add_row_cell,
.add_row_point{
  background:#eeeeee;
  color:#111111;
}

.add_row_point{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.add_row_point label{
  font-weight:bold;
}

.row_tools{
  display:grid;
  grid-template-columns:repeat(3, 36px);
  gap:6px;
  justify-content:center;
}

.column_tools{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:8px;
}

.row_tools input{
  grid-column:1 / -1;
}

.row_tools button{
  min-height:36px;
}

.creator_toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px;
  background:#eeeeee;
}

input,
button,
textarea{
  max-width:100%;
  font:inherit;
}

button,
input[type="submit"]{
  min-height:44px;
  padding:6px 12px;
}

.tool_button{
  width:36px;
  min-width:36px;
  min-height:36px;
  padding:0;
  line-height:1;
  text-align:center;
}

.action_button{
  width:100%;
}

button:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.row_pending_delete,
.column_pending_delete{
  background:#ee5555;
}

@media (max-width: 640px){
  body{
    padding:8px;
  }

  .final_jeopardy_editor{
    grid-template-columns:1fr;
  }
}
