

/* === CONTAINERS === */
.container {
  text-align: center;
  padding: 20px;
  margin: 20px;
  border: 2px solid #f00;
  border-radius: 10px;
  background-color: rgba(255, 0, 0, 0.05);
  box-shadow: 0 0 20px #f00;
  max-width: 1200px;
}

/* === TITLES === */
h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #f00;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.logo img {
  max-width: 200px;
  margin-bottom: 20px;
}

/* === BUTTONS === */
.button {
  display: inline-block;
  padding: 12px 24px;
  color: #000;
  background-color: #f00;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.button:hover {
  background-color: #fff;
  color: #f00;
  box-shadow: 0 0 10px #f00;
}

.back-link a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
}

.back-link a:hover {
  color: #f00;
  text-decoration: underline;
}

/* === LOGIN BOX === */
.login-box {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  border: 2px solid #f00;
  background-color: rgba(255, 0, 0, 0.05);
  box-shadow: 0 0 20px #f00;
  border-radius: 8px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #f00;
}

.login-box label {
  display: block;
  margin: 10px 0 5px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #f00;
  border: 1px solid #f00;
  border-radius: 4px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background-color: #f00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-box button:hover {
  background-color: #fff;
  color: #f00;
  box-shadow: 0 0 10px #f00;
}

/* === TILE GRID === */
#userlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  gap: 1rem;
}

.tile {
  background-color: #1e1e1e;
  border: 2px solid #333;
  border-radius: 10px;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  cursor: pointer;
}

.tile:hover {
  background-color: #272727;
  transform: scale(1.05);
}

.tile img {
  background-color: white;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.tile-label {
  font-size: 1rem;
  text-align: center;
  color: yellow;
}

/* === MOBILE LAYOUT === */
@media screen and (max-width: 600px) {
  .tile {
    width: 100%;
    max-width: 300px;
  }

  body {
    padding-top: 80px; /* Slightly more space on mobile */
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 1rem 1rem;
  z-index: 9999;
}

.modal {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 0 10px #000;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin-top: 0;
  color: yellow;
}

.modal input[type="text"],
.modal input[type="url"],
.modal input[type="file"] {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 5px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.ok-btn {
  background: green;
  color: white;
}

.cancel-btn {
  background: red;
  color: white;
}
