.pure-menu-horizontal {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#menu-left,
#menu-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media screen and (max-width: 35.5em) {
    .pure-menu-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
}

section {
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    margin: 0 auto 1em auto;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.nav-bar .pure-form {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.nav-bar #scanned-cards {
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-bar .nav-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    flex-shrink: 0;
}

@media screen and (max-width: 50em) {
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
    }
    .nav-bar .nav-right {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 35.5em) {
    .nav-bar .pure-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }
}

.icon {
    max-width: 2em;
}

.grid {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.grid-item {
    width: 25%;
    box-sizing: border-box;
}

@media screen and (max-width: 35.5em) {
    .grid-item {
        width: 50%;
    }
}

@media screen and (min-width: 35.5em) and (max-width: 50em) {
    .grid-item {
        width: 33.333%;
    }
}

@media screen and (min-width: 50em) and (max-width: 70em) {
    .grid-item {
        width: 25%;
    }
}


.grid-item img {
    height: auto;
    width: 100%;
}

.card-description {
    text-align: left;
}


.pure-g > div {
    box-sizing: border-box;
}
.l-box {
    padding: 1em;
}


#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#lightbox-caption {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 0.75em;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#lightbox-close {
    position: absolute;
    top: -30px;
    right: -10px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3em;
    cursor: pointer;
    user-select: none;
    padding: 0.5em 0.75em;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    opacity: 1;
}

#lightbox-prev {
    left: -80px;
}

#lightbox-next {
    right: -80px;
}

/*
 * -- BANNER --
 * The top banner with the headings. By using a combination
 * of `display: table;` and `display: table-cell;`, we can
 * vertically center the text.
 */

.banner {
  background: transparent
    url("https://cards.bimbiribase.xyz/static/bbattler.jpg")
    center center no-repeat;
  text-align: center;
  background-size: cover;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://cards.bimbiribase.xyz/static/bbattler.jpg', sizingMethod='scale');

  height: 200px;
  width: 100%;
  margin-bottom: 1em;
  display: table;
}

.banner-head {
  display: table-cell;
  vertical-align: middle;
  margin-bottom: 0;
  font-size: 2em;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 1px black;
}

footer {
    margin-top: 50px;
    background: #475F94;
    color: #fff;
    padding: 1em;
    text-align: center;
}
footer a {
    color: #fff;
    text-decoration: underline;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-nav {
    margin: 0.5em 0;
    display: flex;
    justify-content: center;
    gap: 1em;
}
.footer-disclaimer {
    font-size: 0.85em;
    opacity: 0.9;
}
