body {
  margin: 0;
  background: #111318;
  color: #fff;
  font-family: Monospace;
  font-size: 13px;
  line-height: 24px;
  overscroll-behavior: none;
  overflow: hidden;
}

a {
  color: #ff0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  text-transform: uppercase;
}

#info {
  position: absolute;
  top: 0px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 1; /* TODO Solve this in HTML */
}

a,
button,
input,
select {
  pointer-events: auto;
}

.dg.ac {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 2 !important; /* TODO Solve this in HTML */
}

#overlay {
  position: absolute;
  font-size: 16px;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}

#overlay button {
  background: transparent;
  border: 0;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  color: #ffffff;
  padding: 12px 18px;
  text-transform: uppercase;
  cursor: pointer;
}

#notSupported {
  width: 50%;
  margin: auto;
  background-color: #f00;
  margin-top: 20px;
  padding: 10px;
}

a {
  color: #8ff;
}

#menu {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.element {
  width: 120px;
  height: 160px;
  box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.5);
  border: 1px solid rgba(127, 255, 255, 0.25);
  font-family: Helvetica, sans-serif;
  text-align: center;
  line-height: normal;
  cursor: default;
}

.element:hover {
  box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.75);
  border: 1px solid rgba(127, 255, 255, 0.75);
}

.element .number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: rgba(127, 255, 255, 0.75);
}

.element .symbol {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  overflow: hidden;
  font-size: 60px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.95);
}

.element .symbol {
  text-align: center;
}

.element .symbol img {
  position: relative;
  transform: scale(0);
  opacity: 0;
  transition-duration: 0.25s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.element .details {
  transition-duration: 0.25s;
  opacity: 0;
  position: absolute;
  bottom: 15px;
  left: 0px;
  right: 0px;
  font-size: 12px;
  color: rgba(127, 255, 255, 0.75);
}

button {
  color: rgba(127, 255, 255, 0.75);
  background: transparent;
  outline: 1px solid rgba(127, 255, 255, 0.75);
  border: 0px;
  padding: 5px 10px;
  cursor: pointer;
}

button:hover {
  background-color: rgba(0, 255, 255, 0.5);
}

button:active {
  color: #000000;
  background-color: rgba(0, 255, 255, 0.75);
}

/* 照片管理模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1d2a 0%, #2a2f3f 100%);
  margin: 2% auto;
  padding: 0;
  border: 1px solid rgba(127, 255, 255, 0.3);
  border-radius: 8px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(127, 255, 255, 0.2);
}

.modal-header h2 {
  margin: 0;
  color: rgba(127, 255, 255, 0.9);
  font-size: 24px;
}

.close {
  color: rgba(127, 255, 255, 0.7);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: rgba(127, 255, 255, 1);
}

.modal-body {
  padding: 20px;
}

.upload-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(127, 255, 255, 0.2);
}

.upload-section h3 {
  margin: 0 0 15px 0;
  color: rgba(127, 255, 255, 0.8);
  font-size: 18px;
}

.batch-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(127, 255, 255, 0.2);
}

.batch-section h3 {
  margin: 0 0 15px 0;
  color: rgba(127, 255, 255, 0.8);
  font-size: 18px;
}

#photoUpload {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(127, 255, 255, 0.3);
  border-radius: 4px;
  color: rgba(127, 255, 255, 0.8);
  cursor: pointer;
}

#uploadBtn {
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.5);
  color: rgba(127, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#uploadBtn:hover {
  background: rgba(0, 255, 255, 0.3);
  border-color: rgba(0, 255, 255, 0.7);
}

#selectAllBtn {
  background: rgba(100, 255, 100, 0.2);
  border: 1px solid rgba(100, 255, 100, 0.5);
  color: rgba(150, 255, 150, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#selectAllBtn:hover {
  background: rgba(100, 255, 100, 0.3);
  border-color: rgba(100, 255, 100, 0.7);
}

#batchDeleteBtn {
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: rgba(255, 150, 150, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#batchDeleteBtn:hover {
  background: rgba(255, 100, 100, 0.3);
  border-color: rgba(255, 100, 100, 0.7);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.photo-item {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(127, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px;
  transition: all 0.3s;
}

.photo-item:hover {
  border-color: rgba(127, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.photo-item.selected {
  border-color: rgba(100, 255, 100, 0.7);
  box-shadow: 0 0 15px rgba(100, 255, 100, 0.3);
}

.photo-item .photo-checkbox {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 10;
}

.photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.photo-item .photo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.photo-item button {
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(127, 255, 255, 0.3);
  color: rgba(127, 255, 255, 0.8);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.photo-item button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(127, 255, 255, 0.5);
}

.photo-item .delete-btn {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.5);
  color: rgba(255, 150, 150, 0.9);
}

.photo-item .delete-btn:hover {
  background: rgba(255, 100, 100, 0.3);
  border-color: rgba(255, 100, 100, 0.7);
}

.photo-item .replace-btn {
  background: rgba(100, 255, 100, 0.2);
  border-color: rgba(100, 255, 100, 0.5);
  color: rgba(150, 255, 150, 0.9);
}

.photo-item .replace-btn:hover {
  background: rgba(100, 255, 100, 0.3);
  border-color: rgba(100, 255, 100, 0.7);
}
