@media (max-width: 700px) {
    .footer-mushroom {
        height: 70px !important;
        transform: scale(1) !important;
        margin-left: 8px;
    }
    .mario-block, .mario-mushroom {
        height: 48px !important;
    }
    .mario-header {
        flex-direction: column;
        gap: 8px;
    }
    .mario-header h1 {
        font-size: 1.2rem;
    }
    .mario-cloud {
        width: 40vw !important;
        min-width: 60px;
        max-width: 120px;
        top: 10px !important;
        left: 5vw !important;
        opacity: 0.5 !important;
    }
}
@media (max-width: 700px) {
    .footer-mushroom {
        height: 70px !important;
        transform: scale(1) !important;
        margin-left: 8px;
    }
    .mario-block, .mario-mushroom {
        height: 48px !important;
    }
    .mario-header {
        flex-direction: column;
        gap: 8px;
    }
    .mario-header h1 {
        font-size: 1.2rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #7ecbff 0%, #e3eaff 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}



header {
    position: relative;
    background: linear-gradient(90deg, #4a90e2 60%, #6dd5ed 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    border-bottom: 6px solid #f7d51d;
}
header .header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    opacity: 0.08;
    pointer-events: none;
}
.mario-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.mario-header h1 {
    font-family: 'Luckiest Guy', cursive, 'Segoe Script', sans-serif;
    font-size: 2.7rem;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 8px #1a1a1a, 0 0px 16px #f7d51d;
    color: #fff;
}
.mario-block {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 2px 8px #0002);
}
.mario-mushroom {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 2px 8px #0002);
    margin-left: 8px;
}
.mario-mushroom {
    margin-left: 8px;
}

.descricao {
    max-width: 800px;
    margin: 2rem auto 0.5rem auto;
    background: #fffbe7;
    border-radius: 16px;
    box-shadow: 0 2px 12px #f7d51d33;
    padding: 1.2rem 2rem;
    text-align: center;
    color: #b84a1b;
    font-size: 1.18rem;
    border: 3px solid #f7d51d;
    font-family: 'Luckiest Guy', cursive, 'Comic Sans MS', 'Comic Sans', sans-serif;
    letter-spacing: 1px;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    padding: 2.5rem 2rem 1rem 2rem;
    max-width: 1200px;
    margin: auto;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: 0 2px 24px #4a90e233;
    border: 4px solid #f7d51d;
}


.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 16px #f7d51d55, 0 2px 12px #0002;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #e3eaff;
    border: 4px solid #f7d51d;
    outline: 2px solid #b84a1b22;
}
.gallery img:hover {
    transform: scale(1.09) rotate(-2deg);
    box-shadow: 0 8px 32px #f7d51d99, 0 6px 24px #4a90e288;
    z-index: 2;
    border-color: #e74c3c;
    outline: 2px solid #b84a1b88;
}



.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background 0.3s;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.modal-content {
    margin: 0 auto;
    display: block;
    max-width: 96vw;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 8px 48px #f7d51d99, 0 8px 48px #4a90e244;
    background: #222;
    object-fit: contain;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 6px solid #f7d51d;
}


.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 44px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
    text-shadow: 0 2px 8px #000;
    transition: color 0.2s;
}
.close:hover {
    color: #4a90e2;
}


.prev, .next {
    position: absolute;
    top: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f7d51d 60%, #e74c3c 100%);
    border: 3px solid #b84a1b;
    font-size: 44px;
    padding: 10px 22px;
    cursor: pointer;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px #f7d51d55;
    opacity: 0.96;
}
.prev:hover, .next:hover {
    background: linear-gradient(135deg, #e74c3c 60%, #f7d51d 100%);
    box-shadow: 0 4px 24px #e74c3c55;
    opacity: 1;
}
.prev {
    left: 30px;
}
.next {
    right: 30px;
}


#caption {
    color: #fff;
    text-align: center;
    margin-top: 18px;
    font-size: 1.25rem;
    text-shadow: 0 2px 8px #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Paginação */

#pagination {
    margin: 20px 0 40px 0;
    text-align: center;
}
#pagination button {
    background: linear-gradient(135deg, #f7d51d 60%, #e74c3c 100%);
    color: #b84a1b;
    border: 2px solid #b84a1b;
    padding: 8px 22px;
    margin: 0 8px;
    border-radius: 8px;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #f7d51d55;
    font-weight: 600;
}
#pagination button:disabled {
    background: #f7f7f7;
    cursor: not-allowed;
    color: #b0c4de;
    border: 2px solid #b0c4de;
}
#pagination span {
    color: #b84a1b;
    font-size: 1.1rem;
    margin: 0 10px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
}


/* Remove duplicatas e deixa só a versão grande, centralizada e sobreposta */
.footer-mushroom {
    height: 200px;
    margin-left: 18px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px #0002);
    display: inline-block;
    pointer-events: none;
    transform: scale(3);
    transform-origin: left bottom;
}
footer {
    /* ...existing code... */
    overflow: visible;
}
footer {
    /* ...existing code... */
    overflow: visible;
}
footer {
    background: linear-gradient(90deg, #4a90e2 60%, #6dd5ed 100%);
    color: #fff;
    text-align: center;
    padding: 1.1rem 0 0.7rem 0;
    font-size: 1.18rem;
    margin-top: auto;
    letter-spacing: 2px;
    box-shadow: 0 -2px 12px #4a90e233;
    border-top: 6px solid #f7d51d;
    position: relative;
    font-family: 'Luckiest Guy', cursive, 'Comic Sans MS', 'Comic Sans', sans-serif;
    overflow: visible;
}
footer {
    background: linear-gradient(90deg, #4a90e2 60%, #6dd5ed 100%);
    color: #fff;
    text-align: center;
    padding: 1.1rem 0 0.7rem 0;
    font-size: 1.18rem;
    margin-top: auto;
    letter-spacing: 2px;
    box-shadow: 0 -2px 12px #4a90e233;
    border-top: 6px solid #f7d51d;
    position: relative;
    font-family: 'Luckiest Guy', cursive, 'Comic Sans MS', 'Comic Sans', sans-serif;
}
.footer-mushroom {
    height: 38px;
    margin-left: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px #0002);
}

/* Elementos de fundo Mario */
.mario-bg {
    position: absolute;
    width: 100vw;
    height: 0;
    min-height: 0;
    z-index: 0;
    pointer-events: none;
}
.mario-cloud {
    position: absolute;
    width: 120px;
    opacity: 0.7;
    top: 40px;
    left: 10vw;
    z-index: 0;
}
.cloud2 {
    top: 90px;
    left: 70vw;
    width: 90px;
    opacity: 0.5;
}
.mario-block-bg {
    position: absolute;
    width: 54px;
    top: 180px;
    left: 30vw;
    z-index: 0;
}
.block2 {
    top: 220px;
    left: 80vw;
    width: 54px;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        padding: 1rem;
    }
    .gallery img {
        height: 100px;
    }
    .close, .prev, .next {
        font-size: 28px;
        top: 15px;
        right: 15px;
        left: 15px;
    }
    .modal-content {
        max-width: 98vw;
        max-height: 60vh;
    }
    .descricao {
        padding: 0.7rem 0.5rem;
        font-size: 1rem;
    }
    .mario-header h1 {
        font-size: 1.3rem;
    }
    .mario-block, .mario-mushroom {
        height: 32px;
    }
    .footer-mushroom {
        height: 24px;
    }
    .mario-cloud {
        width: 60px;
    }
    .cloud2 {
        width: 40px;
    }
    .mario-block-bg, .block2 {
        width: 32px;
    }
}
