Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CardPages/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 37: Line 37:
   flex-direction: column;
   flex-direction: column;
   align-items: center;
   align-items: center;
   gap: 4px;
   gap: 0;
   text-align: center;
   text-align: center;
}
}

Revision as of 23:02, 20 January 2026

.event-banner {
  position: relative;
  width: 100%;
  margin: 20px 0;
  border-radius: 20px;
  min-height: 1080px;
  overflow: hidden; /* ensures table/banners aren't cut off */
}

.banner-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: 1;
  /* optional: background-color or image */
}

.banner-overlay {
  position: relative; /* keeps overlay content in flow */
  z-index: 2;
  padding: 10px 20px;
}

.element-container {
  display: flex;
  flex-wrap: nowrap;               /* force 1 row for desktop */
  justify-content: space-between;  /* evenly distribute 7 boxes */
  width: 100%;
}

.element-item {
  flex: 1 1 0;                     /* auto scale: equal width */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.element-item .image {
  display: block;
  margin: 0 auto;
}

.element-item .image img {
  display: block;
  margin: 0;
  max-width: 80%;                  /* scales images down on small screens */
  height: auto;
}

.element-item span {
  display: block;
  font-weight: bold;
  text-align: center;
}

/* Optional: per-element text colors */
.fire-text { color: #e25822; }
.water-text { color: #3b82f6; }
.earth-text { color: #65a30d; }
.air-text { color: #94a3b8; }
.voidal-text { color: #6b21a8; }
.aetheric-text { color: #facc15; }
.neutral-text { color: #64748b; }

/* Responsive: wrap boxes on narrow screens */
@media screen and (max-width: 800px) {
  .element-container {
    flex-wrap: wrap;
  }
  .element-item {
    flex: 0 0 calc(50% - 8px); /* 2 per row on mobile */
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 500px) {
  .element-item {
    flex: 0 0 100%; /* 1 per row on very small screens */
  }
}