body {
  font-family: Tahoma, sans-serif;
  background-color: #000; 
  margin: 0;
  padding: 0;
  color: white; 
  cursor: auto;
}

@font-face {
    font-family: 'RobloxFont';
    src: url('RobloxFontRegular-X30AZ.ttf') format('truetype');
}

@font-face {
    font-family: 'Tahoma';
    src: url('windows-xp-tahoma.ttf') format('truetype');
}

body, input, select, button {
    font-family: 'Tahoma', sans-serif;
}

header {
  background-color: #111; 
  color: white;
  padding: 20px;
  text-align: center;
}

.logo {
  max-width: 300px;
  height: auto;
}

main {
  padding: 20px;
}

#input-section,
#output-section {
  background-color: #1a1a1a; 
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

#input-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff; 
}

#input-section input[type="text"],
#input-section input[type="number"],
#input-section select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #555; 
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #333; 
  color: #fff; 
}

#input-section button,
#output-section button {
  background-color: #666;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
}

body a, 
body button, 
body input[type="button"], 
body input[type="submit"], 
body select {
  cursor: pointer;
}

#input-section button:hover,
#output-section button:hover {
  background-color: #888;
}

#output-section {
  display: none; 
}

#anomaly-details {
  margin-top: 20px;
}

#anomaly-details p {
  margin-bottom: 8px;
}

#anomaly-number {
    font-family: monospace;
    -webkit-text-security: none;
    text-security: none;
}

#anomaly-number::before {
    content: "#";
    color: white;
    margin-right: 2px;
}

input[type="number"],
input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px; 
}

footer {
  background-color: #111; 
  color: white;
  text-align: center;
  padding: 10px;
}

#music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

#music-controls button {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
}

#music-controls button:hover {
  background-color: #777;
}

#community-section {
    display: none;
    background-color: #1a1a1a;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.community-anomaly-card {
    background-color: #333;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #555;
}

#community-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#view-community-btn {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
}

#view-community-btn:hover {
    background-color: #888;
}

#saved-anomalies-button {
  background-color: #666;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin: 10px;
}

#download-anomalies-button {
  background-color: #666;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin: 10px;
}

#saved-anomalies-button:hover,
#download-anomalies-button:hover {
  background-color: #888;
}

.saved-anomaly-card {
  background-color: #333;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #555;
}

.saved-anomaly-card h3 {
  margin-top: 0;
  color: #fff;
}

.delete-anomaly {
  background-color: #ff4444;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

.delete-anomaly:hover {
  background-color: #ff6666;
}

.saved-anomaly-card img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #555; 
    display: block; 
}

.announcement {
    background-color: yellow;
    color: black;
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    font-family: 'RobloxFont', sans-serif;
    position: relative;
}

.device-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px; 
    transition: all 0.3s ease;
    z-index: 1001; 
    display: block; 
}

.device-switcher:hover {
    background-color: #555;
    transform: scale(1.05);
}

#cursor-switch,
#language-selector {
    display: none;
}

#device-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.device-button {
    background-color: #333;
    color: white;
    padding: 20px 40px;
    margin: 10px;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
}

.device-button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.device-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

#main-content {
    display: none;
}

.device-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'RobloxFont', sans-serif;
    text-align: center;
}

.swal2-html-container .delete-anomaly {
    background-color: #dc3545; 
    color: white;
    border: none;
    padding: 5px 8px; 
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em; 
    float: right;
    margin-left: 10px;
    line-height: 1; 
}

.swal2-html-container .delete-anomaly:hover {
    background-color: #c82333; 
}

.swal2-html-container {
     max-height: 70vh;
     overflow-y: auto;
     text-align: left; 
}

/* Media query for mobile devices */
@media only screen and (max-width: 600px) {
  header {
    padding: 10px;
  }

  .logo {
    max-width: 200px;
  }

  main {
    padding: 10px;
  }

  #input-section,
  #output-section {
    padding: 10px;
    margin-bottom: 10px;
  }

  #input-section input[type="text"],
  #input-section input[type="number"],
  #input-section select {
    padding: 6px;
    margin-bottom: 10px;
  }

  #input-section button,
  #output-section button {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 5px;
  }

  #anomaly-details p {
    margin-bottom: 6px;
  }

  #music-controls button {
    padding: 6px 10px;
    margin: 0 3px;
  }

  .subtype-input-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .subtype-input-group input[type="checkbox"] {
    margin-right: 0;
    margin-bottom: 5px;
  }
}