body {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #f7f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
overscroll-behavior: none;}
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.2rem 0;
    backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
    width: 99vw;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
input[type=""], input[type="number"], select {
    padding: 0.1rem;
    font-size:1.18rem;
    background-color: #121212;
    color: #E8B901;
    cursor: pointer;
    border: 1px solid #8B1616;
    box-shadow:0 2px 18px #8b1616;
    margin-bottom:0.7rem;
    width: -100%;
}
a.github {
    position: fixed;
    width: 40px;
    height: 40px;
    right: 0;
    top: 0;
    margin: 2rem;
}
.github img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    opacity: .15;
}
a.github:hover img {
    opacity: 1;
}
.navbar a {
    color: #121212;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.navbar a:hover {
    background: rgba(18, 18, 18, 1);
    color: #fff;
    box-shadow: 0 2px 12px #8B1616;
}
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto 1.5rem;
    padding: 1.5rem;
    background: rgba(139, 22, 22, 1);
    border-radius: 20px;
    box-shadow: 0 4px 32px #0004;
}
.left {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.skin-render {
    width: 180px;
    height: 250px;
    background: rgba(80, 120, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 2px 12px #5078ff33;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}
.skin-render img {
    width: 160px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0006;
    background: #181a20;
}
.right {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.user-info {
    background: rgba(60, 70, 120, 0.17);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px #0003;
}
.user-info h2 {
    margin: 0 0 0.7rem 0;
    color: #7ca7ff;
    font-size: 1.5rem;
}
.name-history {
    background: rgba(30, 34, 54, 0.7);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}
.history-item {
    padding: 0.5rem 1rem;
    margin: 0.3rem 0;
    background: rgba(50, 55, 80, 0.4);
    border-radius: 8px;
}
.boxes {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.box {
    flex: 1 1 200px;
    background: rgba(60, 70, 120, 0.22);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 12px #5078ff22;
}
.box h3 {
    margin-top: 0;
    color: #7ca7ff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .boxes {
        flex-direction: column;
        gap: 1rem;
    }
    .left, .right {
        align-items: stretch;
    }
}
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(12px);
    border-radius: 20px 20px 0 0;
    margin: 2rem auto 0 auto;
    width: 80vw;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    color: #8b1616;
    font-size: 1.1rem;
    font-weight: 500;
}
.footer a {
    color: #e8b901;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer img {
    transition: filter 0.2s;
}
.footer a:hover img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(120%) contrast(100%);
}

.content-wrapper {
    flex: 1 0 auto; /* take up all available space */
}

footer.footer {
    flex-shrink: 0; /* don’t shrink */
    margin-top: auto; /* push footer to bottom */
}
.menu, .form-container {
    margin-bottom: 2rem;
}
.ad-space a img {
    transition: box-shadow 0.25s, transform 0.2s, filter 0.2s;
}

.ad-space a:hover img,
.ad-space a:focus img {
    box-shadow: 0 8px 32px #5078ff55, 0 2px 12px #0004;
    filter: brightness(1.07) saturate(1.1);
    transform: scale(1.04);
    z-index: 2;
}
/* Remove a aparência padrão da checkbox - VERSÃO MAIOR */
#elytra_checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Tamanho da caixa aumentado para 22px */
  width: 22px;
  height: 22px;
  
  /* Borda da caixa (desmarcada) aumentada para 3px */
  border: 3px shadow red; 
  border-radius: 5px;
  border: 1px solid #8B1616 !important;
  background-color: transparent;
  cursor: pointer;
  
  vertical-align: middle;
  position: relative;
  top: -2px;
}
/* O "VISTO" VERDE (✔) - VERSÃO CORRIGIDA */
#elytra_checkbox:checked::after {
  content: '';
  display: block;
  position: absolute;

  /* ROTAÇÃO CORRIGIDA para formar o "V" */
  transform: rotate(32deg);

  /* TAMANHO CORRIGIDO para caber na caixa */
  width: 12px;
  height: 26px;

  /* POSIÇÃO CORRIGIDA para centralizar */
  left: 13px;
  top: 3px;

  /* Cor e espessura do "visto" */
  border: solid #000;
  border-width: 0 4px 4px 0;
}
/* --- MOBILE FRIENDLY PATCH --- */

@media (max-width: 1400px) {
    .navbar, .footer {
        width: 98vw;
        border-radius: 0 0 14px 14px;
        padding: 0.7rem 0.2rem;
        gap: 0.5rem;
        font-size: 1rem;
        flex-wrap: wrap;
    }
    .navbar a, .navbar b a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        margin: 0.1em 0.2em;
        width: auto;
        min-width: 44px;
        min-height: 44px;
        box-sizing: border-box;
    }
    .footer {
        border-radius: 14px 14px 0 0;
        font-size: 1rem;
        gap: 0.5rem;
        padding: 0.7rem 0.2rem;
    }
    .container {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0.8rem 0.4rem;
        max-width: 99vw;
        border-radius: 14px;
        margin: 1rem auto 1rem;
    }
    .left, .right {
        align-items: stretch;
        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 1rem;
    }
    .skin-render {
        width: 100%;
        min-width: 0;
        height: auto;
        max-width: 220px;
        margin: 0 auto 1rem;
        padding: 0.5rem 0;
    }
    .skin-render img {
        width: 100%;
        max-width: 160px;
        height: auto;
        margin: 0 auto;
    }
    .user-info {
        padding: 1rem 0.7rem;
        margin-bottom: 1rem;
    }
    .boxes {
        flex-direction: column;
        gap: 0.7rem;
    }
    .box {
        padding: 0.8rem 0.7rem;
        font-size: 1rem;
    }
    .name-history {
        padding: 0.7rem 0.5rem;
    }
    .history-item {
        padding: 0.4rem 0.7rem;
        font-size: 0.97rem;
    }
    .ad-space {
        margin: 0.5rem 0;
    }
    .content { max-width: 100vw; padding: 0; }
}

/* Make sure images and buttons are responsive */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}
button, input, select, textarea {
    font-size: 1.1rem;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

/* Make sure grid layouts collapse nicely */
@media (max-width: 600px) {
    .skin-grid, .cape-grid {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
        gap: 0.4rem;
    }
    .profile-card, .selector-block, .skin-thumb, .cape-thumb {
        padding: 0.7em 0.5em;
        font-size: 0.98rem;
    }
}

/* Prevent horizontal scroll on body */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* padrão: sem scroll */
}

body.allow-scroll {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

body.allow-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

