body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: url("/static/images/background.jpg")
    no-repeat center center fixed;
  background-size: cover;
  font-size: 1rem;
}

.container {
  max-width: 1000px;
  margin: 5vh auto;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(128, 128, 128, 0.6);
}

.text-label {
  font-weight: bold;
  font-size: 1em;
  user-select: none;
  color: black;
}

.text-field {
  font-size: 1em;
  padding: 0.4em;
  background-color: #f0f0f0;
  color: #333;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 0.4em;
}

.description-text {
  font-size: 1.2em;
  margin-bottom: 2.0em;
}

.description-text span {
  display: block;
  margin-bottom: 0.3em; /* optional spacing */
}

h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

p {
  margin: 0.5em 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Aligns items to the bottom */
  margin-top: 1.5em;
}

.footer-button {
  font-size: 1em;
  display: inline-block;
  margin-top: 1em;
  padding: 0.8em 1.5em;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 0.5em;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  margin-right: 0.8em;
  cursor: pointer;
  user-select: none;
}

#download-button {
  background-color: #4caf50;
  color: white;
}

#download-button:hover {
  background-color: #45a049;
}

#uploaded-at {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 0 auto;
}

#upload-button {
  background-color: #888888;
  color: white;
}

#upload-button:hover {
  background-color: #666666;
}

.details-grid {
  display: flex;
  gap: 2em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  flex: 1 1;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.version-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  max-width: 100%;
}

.version-selector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}

#mc-version-range option {
  color: black;
  font-weight: normal;
}

.version-warning {
  color: red;
  font-weight: bold;
}

.deprecated-version-color {
  color: red !important;
}

#version-settings-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#version-settings-button:hover .gear-icon {
  background-color: rgba(0, 0, 0, 0.1);
}

.gear-icon {
  font-size: 1.3em;
  display: inline-block;
  padding: 0.3em 0.3em;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.left-column label {
  display: block;
  margin-top: 0.5em;
  font-weight: bold;
}

.left-column input {
  width: 100%;
  margin-top: 0.2em;
  font-family: monospace;
}

.code-block {
  width: 100%;
  resize: vertical;
  resize: none;
  white-space: pre-wrap;
  font-family: monospace;
}

.authenticated-related-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  padding: 8px 12px;
  color: white;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  opacity: 0.3;
  user-select: none;
}

#manage-button {
  background-color: #444;
  border: none;
  cursor: pointer;
}

#authenticated-indicator {
  background-color: #4CAF50;
}

#authenticated-indicator:hover {
  opacity: 1;
}

#manage-button:hover {
  opacity: 1;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  border-radius: 8px;
}

.popup-hidden {
  display: none;
}

#admin-popup {
  min-width: 300px;
}

#version-settings-popup {
  min-width: 400px;
}

.version-input {
  margin-bottom: 2em;
  font-size: 1em;
}

#admin-popup label {
  display: block;
  margin-bottom: 8px;
}

#admin-popup input {
  width: 100%;
  margin-bottom: 12px;
}

#admin-popup .button-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

#admin-popup button {
  padding: 6px 10px;
  background-color: #888;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

