body, html {
    background-color: #ffebcd; /* Fundo infantil e claro */
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Cabeçalho com título e explicação */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3586ff;
    width: 100%;
    height: 120px;
    margin-bottom: 0px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%; /* Garante que ocupe a largura do header */
    padding: 10px 20px; /* Adiciona algum espaço interno */
    background-color: #3586ff;
}

#logo-unipac {
    width: 100px;
    height: auto;
    max-height: 108px; /* Limita a altura máxima */
    max-width: 150px;
    margin-left: 100px;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .header {
        height: auto; /* Ajusta a altura automaticamente */
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    #logo-brinquedoteca {
        width: 80%; /* Ajusta proporcionalmente */
        height: auto;
        max-width: 400px; /* Define um tamanho máximo para não exagerar */
    }

    #logo-unipac {
        width: 80px; /* Reduz a logo em telas menores */
        height: auto;
        margin-left: 0; /* Remove espaçamento lateral */
    }

    /* Botão de voltar */
    .button {
        margin-top: 10px;
        margin-right: 0;
        padding: 0.8rem 1rem;
        font-size: medium;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

#logo-brinquedoteca {
    width: 650px;
    height: 100px;
}

/* começo botão*/
.button {
    display: inline-block;
    padding: 1.0rem 1.25rem;
    border-radius: 10rem;
    text-transform: uppercase;
    color: #242424;
    font-size: large;
    letter-spacing: .20rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #4bd49b;
        border-radius: 10rem;
        z-index: -2;
    }
    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #20a16c;
        transition: all 0.5s;
        border-radius: 10rem;
        z-index: -1;
    }
    &:hover {
        color: #fff;
        transition: all 0.5s;
        &:before {
            width: 100%;
        }
    }
}

.intro-text {
    text-align: center;
    margin: 30px auto;
    /* background-color: #fff; */

}

.intro-text h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #ff6347;
    /* background-color: #ffe4b5; /* Cor infantil para o fundo do texto */
    padding: 70px;
    border-radius: 8px;
}

.intro-paragraph {
    font-size: 1.5rem; /* Aumenta o tamanho do texto dos parágrafos */
    text-align: center; /* Centraliza o texto dos parágrafos */
    margin-top: 5px; /* Reduz o espaçamento acima dos parágrafos */
    margin-bottom: 15px; /* Espaçamento abaixo, se necessário */
    line-height: 1.6; /* Define o espaçamento entre as linhas para melhor legibilidade */
}

.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.card {
    width: 250px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 50px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s; /* Suaviza as animações */
}

.card:hover {
    transform: scale(1.05); /* Ampliação suave */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Realça o sombreamento */
    background-color: #fff; /* Fundo dourado para chamar atenção */
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.card button {
    padding: 10px 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; /* Suaviza os efeitos */
}

.card button:hover {
    transform: scale(1.1); /* Ampliação do botão */
    background-color: #45a049; /* Altera a cor ao passar o mouse */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombreamento adicional */
}

/* Rodapé fixo */
footer {
    position: relative;
    width: 100%;
    background: #3586ff;
    padding: 100px 50px 20px 50px;  /* Espaço extra para as ondas no topo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 200px;
}

footer .container1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;  /* Quebra para não sair da área em telas menores */
    width: 100%;
}

footer .social_icon, 
footer .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;  /* Quebra as logos e links em linhas no mobile */
}

footer .social_icon li, 
footer .menu li {
    list-style: none;
    margin: 0 15px;
}

footer .social_icon li a {
    font-size: 2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

footer .social_icon li a:hover {
    transform: translateY(-10px);
}

footer .menu li a {
    font-size: 1.2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
}

footer .menu li a:hover {
    opacity: 1;
}

footer .wave {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    background: url(imagens/wave.png);
    background-size: 1000px 70px;
}

footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animateWave_02 3s linear infinite;
}

footer .wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    bottom: 15px;
    animation: animateWave 3s linear infinite;
}

footer .wave#wave4 {
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animateWave_02 4s linear infinite;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    footer {
        padding: 20px;
        text-align: center;
    }

    footer .container1 {
        flex-direction: column; /* Empilha os elementos no mobile */
    }

    /* Ajuste dos ícones sociais */
    footer .social_icon li {
        margin: 5px;
    }

    footer .social_icon li a {
        font-size: 1.5em; /* Reduz o tamanho no mobile */
    }

    /* Ajuste do menu */
    footer .menu li {
        margin: 5px;
    }

    footer .menu li a {
        font-size: 1em; /* Ajusta o tamanho no mobile */
    }

    /* Ajuste das ondas no mobile */
    footer .wave {
        height: 50px;
        background-size: 600px 50px; /* Reduzi para melhor ajuste */
    }

    footer .wave#wave1, 
    footer .wave#wave2, 
    footer .wave#wave3, 
    footer .wave#wave4 {
        bottom: auto;
        top: -50px;
    }
}

@keyframes animateWave {
    0%{
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes animateWave_02 {
    0%{
        background-position-x: 0px;
    }
    100% {
        background-position-x: 1000px;
    }
}

/* Responsividade para telas menores - Página Crie Você Mesmo */
@media (max-width: 768px) {

    /* Cabeçalho */
    .header {
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    #logo-brinquedoteca {
        width: 80%;
        height: auto;
        max-width: 400px;
    }

    #logo-unipac {
        width: 80px;
        height: auto;
        margin-left: 0;
    }

    /* Botão de voltar */
    .button {
        margin-top: 10px;
        margin-right: 0;
        padding: 0.8rem 1rem;
        font-size: medium;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Texto de introdução */
    .intro-text h2 {
        font-size: 1.8rem;
        padding: 20px;
    }

    .intro-paragraph {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Container dos cards */
    .container {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    .card {
        width: 90%;
        height: auto;
        padding: 20px;
        margin: 15px 0;
    }

    .card h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .card button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Rodapé */
    footer {
        padding: 20px;
        text-align: center;
    }

    footer .container1 {
        flex-direction: column;
    }

    footer .social_icon li {
        margin: 5px;
    }

    footer .social_icon li a {
        font-size: 1.5em;
    }

    footer .menu li {
        margin: 5px;
    }

    footer .menu li a {
        font-size: 1em;
    }

    footer .wave {
        height: 50px;
        background-size: 600px 50px;
    }

    footer .wave#wave1,
    footer .wave#wave2,
    footer .wave#wave3,
    footer .wave#wave4 {
        bottom: auto;
        top: -50px;
    }
}

