/* From mop.md */

a img.tshirt {
  width: 150px;
  border: 2px grey solid;
  border-radius: 5px;
  margin: 7px 7px;
}
a img:hover {
  box-shadow: 0px 0px 35px #dddd33;
  background-color: #eeee88;
}
div.hidden {
  display: none;
  border: 2px solid #660000;
  border-radius: 8px;
  padding: 5px 5px;
  background-color: #e4fbf9;
  padding: 6px;
}

.chooser {
  text-align: center;
}
div.chooser {
  margin-top: -5px;
  margin-bottom: 5px;
}
.chooser ul {
  list-style: none;
  padding: 0 10px 0 10px;
  margin-bottom: 0px;
  border-radius: 4px;
}
.list-chooser ul {
  border: 2px dotted #0033dd;
}
.empty-chooser ul {
  border: 2px dotted #990099;
}
.empty-chooser a:link {
  color: #af2f2f;
}
.chooser ul > li {
  display: inline;
}
.chooser ul > li:not(:last-child)::after {
  content: " • ";
}

/* From photos.md */

@keyframes glow-yellow {
  from {
    box-shadow: 0px 0px 35px #bbbb33;
  }
  to {
    box-shadow: 0px 0px 45px #eeeecc;
  }
}

div.photo-gallery a > img {
  height: 96px;
  width: 96px;
  object-fit: cover;
  margin: 6px 6px 6px 6px;
  box-shadow: 0px 0px 15px #6666dd;
}
div.photo-gallery a:hover > img {
  animation-name: glow-yellow;
  animation-duration: 2s;
}

/* For OPAL answer checker */

#answerInput {
  padding: 4px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s;
  min-width: 20em;
  font-family: "JetBrains Mono", monospace;
}

#answerInput:focus {
  border-color: #4caf50;
}

#submitButton {
  padding: 4px 8px;
  font-size: 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#submitButton:hover:not(:disabled) {
  background-color: #45a049;
}

#submitButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.result {
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
}

.result.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.result.partial {
  background-color: #c4daed;
  color: #152457;
  border: 1px solid #93cbe6;
}

.result.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.result.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
