
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

body {
  /*background: #111;*/
  background-image: url(IMG/PRUEBA.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  font-family: 'roboto', sans-serif;
  padding: 30px;
  text-align: center;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*background-color: #212425;´*/
  padding: 10px 20px;
  position: sticky;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

.logo:hover{
  color: #ff0000;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.navbar a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ff0000;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

h1 {
  margin-bottom: 40px;
  margin-top: 30px;
}
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.card {
  position: relative; /* importante para tooltip */
  /*background: #1c1c1c;*/
  background-color: rgba(31, 30, 30, 0.3);
  border-radius: 10px;
  width: 250px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  text-align: left;
}
.card strong {
  font-weight: bold;
}
.status {
  font-weight: bold;
  margin-left: 8px;
}
.online {
  color: #00cc00;
}
.offline {
  color: #ff4444;
}
.card p {
  margin: 6px 0;
}
button {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
}
.info-btn {
  background: #444;
  color: white;
  margin-right: 10px;
}

.info-btn {
  cursor: not-allowed;
}

.join-btn {
  background: #12406f;
  margin-top: 10px;
  color: white;
}

.join-btn:hover {
background: #1f558a;
}

.copy-btn {
  background: #ff0000;
  color: white;
  margin-left: 0px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.copy-btn:hover{
  background: #ea0b0b;
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.9;
  z-index: 10;
}

.footer {
  text-align: center;
  color: rgb(121, 121, 121);
  font-size: 0.8em;
  padding: 20px;
}

.footer .row {
  margin: 10px 0;
}

.footer .row a {
  text-decoration: none;
  color: rgb(161, 161, 161);
  transition: 0.5s;
}

.footer .row a:hover {
  color: white;
  font-weight: bold;
}

.footer .row ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .row ul li {
  display: inline-block;
  margin: 0 15px;
}

.footer .row a i {
  font-size: 1.5em;
  margin: 0 10px;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    background-color: rgba(12, 12, 12, 0.4);
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
  }

  .navbar.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .main-container {
    flex-direction: column;
  }
  
  .tab-buttons {
    flex-direction: column;
  }

  .tab-buttons button {
    width: 100%;
  }

  .card, .tabs {
    margin: 10px;
  }

  .footer .row ul li {
    display: block;
    margin: 10px 0;
  }
}