body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

nav {
  background: rgba(0,0,0,0.6); /* semi-transparent so image shows */
  backdrop-filter: blur(4px);   /* optional: nice blur effect */
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

nav h1.logo {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 24px;
  cursor: pointer;
}

nav .links {
  position: absolute;
  left: 20px;
}

nav .basket {
  position: absolute;
  right: 20px;
  cursor: pointer;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

nav a:hover {
  color: red;
}

.container {
  max-width: 900px;
    text-align: center;
  margin: auto;
  padding: 2rem;
  background: rgba(0,0,0,0.6);
  border-radius: 15px;
  margin-top: 2rem;
}

section {
  display: none;
  animation: fade 0.5s;
}

section.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notification {
  position: fixed;
  top: 60px; /* appear near top */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  display: none; /* hidden by default */
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

/* Servers */
#servers {
  padding: 3rem 1rem;
  text-align: center;
}

.server-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.server-card {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
  color: #fff;
}

.server-card h3 {
  margin-top: 0;
}

.server-ip {
  color: #ffd700;
  font-weight: bold;
  margin: 0.2rem 0 0.75rem 0; /* top 0.2rem, bottom 0.5rem */
  cursor: pointer;
}

.server-ip:hover {
  text-decoration: underline;
}

.status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.status.online {
  background-color: #28a745; /* green */
}

.status.maintenance {
  background-color: #dc3545; /* red */
}

/* Store */
#store {
  padding: 3rem 1rem;
  text-align: center;
}

/* Store navigation buttons */
.store-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-nav button {
  background-color: red;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.store-nav button:hover {
  background-color: darkred;
}

.store-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid #ffd700;
  padding: 1rem;
  border-radius: 8px;
  width: 200px;
  text-align: center;
}

.store-card img {
  width: 100%;
  border-radius: 5px;
}

.store-card h4 {
  margin: 0.5rem 0 0.2rem 0;
}

.store-card p {
  font-size: 0.9rem;
  margin: 0.2rem 0 0.5rem 0;
}

.store-card button.add-to-cart {
  background-color: red;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.store-card button.add-to-cart:hover {
  background-color: darkred;
}

button {
  background: red;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: darkred;
}

img.banner {
  width: 100%;
  border-radius: 15px;
}

/* Basket panel */
#basketPanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px; /* narrower panel */
  height: 90%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: -4px 0 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
  transform: translateX(100%);
}

/* Basket panel open */
#basketPanel.open {
  transform: translateX(0);
}

/* Basket toggle button */
#basketToggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #ffd700;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

#basketHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

#basketItems {
  flex: 1;
  margin-top: 10px;
  overflow-y: auto;
}

/* Basket item */
#basketItems p {
  margin: 8px 0;
  padding: 8px;
  background: #222;
  border-radius: 5px;
  display: flex;
  justify-content: space-between; /* puts remove button to the right */
  align-items: center;
}

#basketItems button {
  background: #ff4d4d;
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
}

#basketActions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

#basketActions button {
  padding: 8px 12px;
  background: #ffd700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #222;
  color: #fff;
  font-size: 16px;
  resize: vertical; /* allow vertical resize only */
}

.contact-form textarea {
  min-height: 150px; /* bigger message box */
}

.contact-form button {
  width: fit-content;
  padding: 10px 20px;
  background-color: #15ff00;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 14px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Copyright bottom-left */
footer .copyright {
  align-self: flex-start;
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

/* Add padding at bottom so content is not hidden behind footer */
.container {
  padding-bottom: 100px; /* adjust if footer is taller */
}