/* General  */
html, body {
  background: #181818;
  color: #ffffff;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

/* Text Stuff */
h1, h2, h3, h4, h5, h6 {
  font-family: "Tahoma", sans-serif;
  color: #e4dad1;
  margin: 0 0 5px 0;
}

h1 {
  font-size: 5rem;
  line-height: 4.7rem;
  letter-spacing: 0.15rem;
  font-weight: 500;
  text-shadow: 
    0 0 5px #00ff22,
    0 0 10px #00ff0d,
    0 0 30px #00ff15;
}

.subtitle {
  font-size: 1.25rem;
  color: #aaa;
  margin-top: 10px;
  text-shadow: 0 0 10px #00ff0d;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Titles stuff */
.section-title {
  display: inline-block;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #00ff62;
  font-size: 1.4rem;
  font-weight: bold;
}


/* Header */
header {
  background: linear-gradient(135deg, #111 0%, #1a2a1a 100%);
  box-shadow: 0 0 10px rgba(0, 255, 98, 0.2);
  padding: 12px;
  text-align: center;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 4px;
}

.tab-button {
  flex: 1;
  background: #2b2b2b;
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 6px 6px 6px 6px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  box-shadow: inset 0 0 0 transparent;
  margin-bottom: 12px;
}

.tab-button:hover {
  background-color: #006611;
  color: #00ff62;
  box-shadow: inset 0 -3px 0 #00ff62;
}

.tab-button.active {
  background-color: #38c03f;
}

/* Wipe Info */
.wipe-info-line {
  text-align: center;
  margin: 0 auto 12px auto;
  color: #ffffff;
  padding: 4px 0;
}

/* Grid Layouts */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.grid-item {
  text-align: center;
}

#targets-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  justify-items: center;
  margin: 16px 0;
  color: #ffffff;
  box-sizing: border-box;
  border: #00ff62cc 2px solid;
  border-radius: 6px;
}

#targets-grid .grid-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  #targets-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  #targets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  #targets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#targets-grid .grid-item button {
  background-color: transparent;
  border: 2px solid transparent;
  padding: 8px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  outline: none;
  color: #fff;
}

#targets-grid .grid-item button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px #00ff62cc;
  border-color: #00ff62cc;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 2;
}

/* Raid Section */
.current-raid-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

.current-raid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  width: fit-content;
  box-sizing: border-box;
}

.current-raid .material-image {
  position: relative;
  width: 64px;
  height: 64px;
  background-size: cover;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-color: #00ff62cc;
  padding: 4px;
}

.material-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px #00ff62cc;
  z-index: 2;
  border: 2px solid #00ff62cc;
  background-color: #0000001a;
  border-radius: 6px;
}

.current-raid .remove-material {
  position: absolute;
  top: 0;
  right: 0;
  background: #1818181c;
  color: #fff;
  border: none;
  cursor: pointer;
}

#clear-all-button {
  align-self: center;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 6px 12px;
  background-color: #e46969;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  height: auto;
  width: fit-content;
  flex-basis: 5%;
  order: 9999;
}

#clear-all-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px #00000015;
}

.structure-btn img {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
}

.structure-btn, .alt-btn {
  display: block;
  margin: 4px auto;
}

/*  Explosives & Materials Display */
.res-item, .mat-item {
  display: inline-block;
  text-align: center;
  margin: 4px;
}

.res-item img, .mat-item img {
  width: 56px;
  height: 56px;
}

@keyframes popScale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pop-effect {
  animation: popScale 0.3s ease-out;
}

#material-images {
  min-height: 64px; 
}

#no-materials-placeholder {
  font-style: italic;
  color: #aaa;
  font-size: 1.1rem;
  margin-top: 8px;
}


#only-sulfur-holder {
  margin-top: 10px;
  color: #ffffff;
}

/* Explosives Header */
.explosives-header-noflex {
  text-align: center;
  margin: 16px auto;
  white-space: nowrap;
}

.explosives-title {
  display: inline-block;
  margin: 0;
  padding: 0 8px 4px 0;
  border-bottom: 2px solid #00ff62;
  vertical-align: middle;
}

/* Copy Button */
#copy-explosives-button {
  padding: 6px 6px;
  background-color: #38c03fbd;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

#copy-explosives-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px #00ff6299;
}

.explosives-copy-button-wrapper {
  margin-top: 18px;
  margin-bottom: 2px;
}

.copy-popup {
  position: fixed;
  background: #38c03f;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  transform: translateY(2);
  transition: opacity 2s ease-out, transform 2s ease-out;
  z-index: 9999;
  font-size: 0.9rem;
}


/* Server result buttons styling */
.server-search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#server-search-input {
  padding: 10px;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 2px solid #2ecc71;
  border-radius: 5px;
  outline: none;
}

#server-search-input::placeholder {
  color: #777;
}

#search-server-button:hover {
  background-color: #27ae60;
  box-shadow: 0 0 10px #2ecc71;
  transform: scale(1.05);
}

#search-server-button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #2ecc71;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.server-button {
  background-color: #1f1f1f;
  color: #a5f2af;
  border: 2px solid #2ecc71;
  border-radius: 5px;
  padding: 10px 16px;
  margin: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.server-button:hover {
  background-color: #2ecc71;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px #2ecc71;
}


#search-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}

.server-details img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.server-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.server-details p {
  margin: 5px 0;
  font-size: 1em;
}

/* Commits Section */
#commits-list {
  margin: 1.5rem auto;
  padding: 0;
  list-style: none;
}

.commit-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid #333;
  max-width: 850px;
  margin: 0 auto;
  color: #fff;
}

.commit-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.commit-author-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commit-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.commit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.85rem;
}

.commit-author {
  font-weight: bold;
  color: #00ff62;
}

.commit-time {
  font-size: 0.75rem;
  color: #aaa;
}

.commit-path {
  font-family: monospace;
  font-size: 0.9rem;
  text-align: right;
}

.repo {
  color: #76ff03;
  font-weight: bold;
}

.branch {
  color: #ffc107;
}

.commit-id {
  color: #29b6f6;
  margin-left: 6px;
  text-decoration: none;
}

.commit-message {
  font-weight: 500;
  color: #e0e0e0;
  text-align: center;
  padding-left: 48px;
}


section#commits {
  padding: 2rem 1rem;
  background: #1a1a1a;
}

section#commits h2 {
  text-align: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid #424242;
  padding-bottom: 0.5rem;
}

.ring
{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:150px;
  height:150px;
  background:transparent;
  border:3px solid #3c3c3c;
  border-radius:50%;
  text-align:center;
  line-height:150px;
  font-family:sans-serif;
  font-size:20px;
  color:#44ff17;
  letter-spacing:4px;
  text-transform:uppercase;
  text-shadow:0 0 10px #44ff17;
  box-shadow:0 0 20px #44ff17;
}
.ring:before
{
  content:'';
  position:absolute;
  top:-3px;
  left:-3px;
  width:100%;
  height:100%;
  border:3px solid transparent;
  border-top:3px solid #44ff17;
  border-right:3px solid #44ff17;
  border-radius:50%;
  animation:animateC 2s linear infinite;
}
.ring span
{
  display:block;
  position:absolute;
  top:calc(50% - 2px);
  left:50%;
  width:50%;
  height:4px;
  background:transparent;
  transform-origin:left;
  animation:animate 2s linear infinite;
}
.ring span:before
{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#44ff17;
  top:-6px;
  right:-8px;
  box-shadow:0 0 20px #44ff17;
}
@keyframes animateC
{
  0%
  {
    transform:rotate(0deg);
  }
  100%
  {
    transform:rotate(360deg);
  }
}
@keyframes animate
{
  0%
  {
    transform:rotate(45deg);
  }
  100%
  {
    transform:rotate(405deg);
  }
}

#commits-loading {
  transition: opacity 0.5s ease;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #444;
}

.commit-item:last-child {
  border-bottom: none;
}

.commit-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1rem;
}

.commit-details {
  flex: 1;
  text-align: left;
}

.commit-screenshot {
  margin-top: 0.5rem;
}

.commit-screenshot img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}


/* secrets */
.bottom-secret,
.bottom-secret2 {
  background-color: transparent;
  background: none;
  position: fixed;
  bottom: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  font-family: monospace;
  z-index: 9999;
}

.bottom-secret {
  left: 8px;
}

.bottom-secret2 {
  right: 8px;
}
