/*!
* DefconExpanded, Created by...
* KezzaMcFezza - Main Developer
* Nexustini - Server Managment
*
* Notable Mentions...
* Rad - For helping with python scripts.
* Bert_the_turtle - Doing everthing with c++
*
* Last Edited 07-03-2026
*/

.demo-card {
  position: relative;
  background: radial-gradient(1200px 600px at 10% -10%, rgb(64 0 255 / 0%), #0c0c0c 60%), radial-gradient(900px 500px at 120% 10%, rgb(0 213 255 / 5%), #ff000008 60%), linear-gradient(360deg, #00d0ff0f 0%, #06091300 100%);
  border-radius: 20px;
  padding: 1.5rem;
  text-shadow: 0px 0px 1.5px currentColor;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 370px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  overflow: visible;
}

.demo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/images/demobackground.png");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  border-radius: 20px;
  z-index: 0;
}

.demo-card>* {
  position: relative;
  z-index: 1;
}

.demo-card h3 {
  color: #4da6ff;
  font-size: 1.9rem;
  line-height: 1.3;
  letter-spacing: 1px;
  margin-top: 0;
  text-align: center;
  margin-bottom: 0.1rem;
}

.demo-card .time-info {
  color: #b8b8b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.demo-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  margin-bottom: 1rem;
}

.demo-card th {
  padding: 0.5rem 0.5rem 0.5rem 0.3rem;
  text-align: left;
  color: #4da6ff;
  background-color: rgba(77, 166, 255, 0) !important;
  font-size: 1.1rem;
}

.demo-card td {
  padding: 0.5rem;
  text-align: left;
  font-size: 0.93rem;
  background-color: rgb(255 255 255 / 0%) !important;
  color: #b8b8b8;
}

.fa-square-up-right {
  color: rgb(155, 155, 155);
  margin-right: 5px;
}

.demo-card .btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.territory-map-container {
  position: relative;
  width: 100%;
  height: auto;
}

.base-map {
  width: 100%;
  position: relative;
  z-index: 1;
  border-radius: 10px;
}

.territory-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.territory-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.7;
  z-index: 1;
}

.territory-overlay-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  opacity: 1;
  font-family: 'Kremlin', 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
  mix-blend-mode: normal;
  text-align: center;
  padding: 0 8px;
  box-sizing: border-box;
  white-space: nowrap;
  z-index: 2;
}

.territory-overlay.territory-northamerica .territory-overlay-label {
  transform: translate(-50%, -50%) translate(8%, -10%);
}

.territory-overlay.territory-southamerica .territory-overlay-label {
  transform: translate(-50%, -50%) translate(17%, -30%);
}

.territory-overlay.territory-europe .territory-overlay-label {
  transform: translate(-50%, -50%) translate(18%, 0%);
}

.territory-overlay.territory-africa .territory-overlay-label {
  transform: translate(-50%, -50%) translate(0%, -80%);
}

.territory-overlay.territory-asia .territory-overlay-label {
  transform: translate(-50%, -50%) translate(-20%, -70%);
}

.territory-overlay.territory-russia .territory-overlay-label {
  top: 19% !important;
  left: 76% !important;
  transform: translate(-50%, -50%);
}

.spectators-toggle {
  background-color: transparent;
  cursor: pointer;
  border: none;
  font-size: 0.93rem;
  text-shadow: 0px 0px 1.5px currentColor;
  color: #4da6ff;
}

.spectators-section {
  margin-bottom: 1.2rem;
}

.spectators-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.spectators-list.show {
  max-height: 500px;
  transition: max-height 1s ease;
}

.demo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: #888;
}

.btn-report {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.btn-report:hover {
  color: #f00;
}

.btn-banner {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.btn-banner:hover {
  color: rgb(0, 153, 255);
}

.report-dropdown {
  position: absolute;
  background-color: #1a1a1a;
  border-radius: 4px;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  right: 10px;
  margin-top: 5px;
}

.report-dropdown button {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.report-dropdown button:hover {
  background-color: #444;
}

.btn-download {
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 5px;
  display: inline-grid;
  text-decoration: none;
  border: 0;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
  font-weight: bold;
  flex: 1;
  background-color: #0067b8;
  color: #fff;
  margin-left: 0px;
}

.btn-download:hover {
  background-color: #3a8ad6;
  cursor: pointer;
}

.downloads-count {
  margin-left: auto;
}

.demo-stats {
  display: flex;
  gap: 15px;
  margin-left: auto;
  align-items: center;
}

.download-btn-demo {
  display: flex;
  padding: 4px 16px;
  background-color: #0067b8;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s;
  align-items: center;
  justify-content: flex-end;
  max-width: 80px;
  margin-right: 10px;
}

.download-btn-demo i {
  margin-right: 5px;
}

.download-btn-demo:hover {
  background-color: #3a8ad6;
  cursor: pointer;
}
