#imageDialog, #simpleDialog {
  background: #e9e9e2;
  padding: 1rem 2rem 1rem 2rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem; 
  max-width: 65vw;
  max-height: 90vh;
  box-shadow: 1rem 1rem 3rem #333;
}

#imageDialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

#simpleDialog div {
  display: block;
  padding: 1rem;
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

#imageDialog button {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border-radius: 0.5rem;
  width: 4rem;
  height: 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

#simpleDialog button {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border-radius: 0.5rem;
  width: 4rem;
  height: 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

#imageDialog button:hover {
  background: rgba(0, 0, 0, 0.6);
}

#simpleDialog button:hover {
  background: rgba(0, 0, 0, 0.6);
}

#imageDialog::backdrop {
  background: rgba(0, 0, 0, 0.01);
}

#simpleDialog::backdrop {
  background: rgba(0, 0, 0, 0.01);
}

/* comment form */

#commentDialog {
  background: #e9e9e2;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  box-shadow: 1rem 1rem 3rem #333;
  width: 65vw;
  min-width: 525px;
  max-width: 800px;
}

#commentDialog::backdrop {
  background: rgba(0, 0, 0, 0.01);
}

.comment-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.xout {
  background-color: white;
  color: #777;
  border: none;
  border-radius: 0.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

#commentDialog form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#commentDialog label {
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
}

input[type="text"] {
}

#commentDialog input[type="text"],
#commentDialog input[type="email"],
#commentDialog textarea {
  width: 50%;
  padding: 0.5rem;
  border: 2px solid transparent; 
  /*border: 1px solid #ccc; */
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

#commentDialog textarea {
  resize: vertical;
  width: 100%;
  height: 6rem;
  min-height: 5rem;
}

#commentDialog input[type="text"]:focus,
#commentDialog input[type="email"]:focus,
#commentDialog textarea:focus {
  border-color: #888;
  outline: none; 
}

#commentDialog button[type="submit"] {
  background-color: #888;
  color: white;
  border: none;
  padding: 0.5rem 2rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
}

#commentDialog button[type="submit"]:hover {
  background-color: #777;
}

#commentDialog .comment-type-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

#commentDialog .comment-type-options label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 0;
}

#commentDialog .comment-type-options input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 3px;
  margin-right: 0.5rem;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

#commentDialog .comment-type-options input[type="radio"]:checked {
  background-color: #888;
  border-color: #333;
}

#commentDialog .comment-type-options input[type="radio"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#commentDialog .dice-bot-test {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
}

#commentDialog .dice-images {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

#commentDialog .dice-images img {
  width: 54px;
  height: 54px;
  display: block;
}

#commentDialog .dice-text {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #333;
}

#commentDialog #diceTotal {
  width: 50px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

