/* Reset e preparação */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f8ff;
}

/* Conteúdo principal ocupa todo o espaço restante */
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: auto;
    margin-bottom: 0px;
}

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

#logo-brinquedoteca {
    max-width: 650px;
    height: auto;
    margin-left: 20px;
}

#logo-unipac {
    width: 100px;
    height: 108px;
    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;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    #logo-brinquedoteca {
        max-width: 90%; /* Ajusta proporcionalmente */
        height: auto;
        
    }

    #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;
    }
}

/* 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%;
        }
    }
}


/* Estilo geral do main */
main {
    background-color: #f0f8ff; /* Azul claro, agradável para crianças */
    padding: 20px;
    padding-bottom: 200px; /* mexi aqui em */
    font-family: 'Comic Sans MS', cursive, sans-serif; /* Fonte divertida e informal */
    margin-top: 50px;
}

/* Estilo para as seções */
.musica-secao {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.musica-secao h2 {
    font-size: 1.8em;
    color: #ff69b4; /* Rosa vibrante para atrair crianças */
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px #ffa07a; /* Efeito de sombra leve */
}

.musica-secao p {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.video-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    gap: 50px;
    padding: 10px;
}

.video-container iframe {
    flex: 0 0 auto;
}

.video-container::-webkit-scrollbar {
    height: 8px; /* Define a altura da barra de rolagem horizontal */
}

.video-container::-webkit-scrollbar-thumb {
    background-color: #3586ff; /* Cor da barra */
    border-radius: 10px; /* Bordas arredondadas */
}

.video-container::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Cor do fundo da barra */
}

iframe {
    border: 5px solid #ffdab9; /* Borda divertida */
    border-radius: 10px;
    transition: transform 0.3s;
}

iframe:hover {
    transform: scale(1.05); /* Efeito de zoom ao passar o mouse */
}

/* Estilo para cada seção com temas únicos */
.cantinho-musicas {
    background: linear-gradient(135deg, #ffb6c1, #87cefa); /* Gradiente colorido */
}

.coletaneas-cirandas {
    background: linear-gradient(135deg, #98fb98, #add8e6); /* Gradiente calmante */
}

.classicos-disney {
    background: linear-gradient(135deg, #ffa07a, #20b2aa); /* Gradiente mágico */
}

/* 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: 100px;
}

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;
    }
}



/* Ajustes para telas menores - Página de Músicas */
@media (max-width: 768px) {

    /* Header adaptável */
    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

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

    #logo-brinquedoteca {
        width: 90%;
        height: auto;
        max-width: 300px;
        margin: 10px 0;
    }

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

    /* Seções de músicas adaptáveis */
    .musica-secao {
        padding: 15px;
        margin: 20px 10px;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .musica-secao h2 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .musica-secao p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* Container de vídeos ajustável */
    .video-container {
        gap: 20px;
        padding: 10px;
        width: 100%;
        overflow-x: scroll;
        justify-content: flex-start;
    }

    .video-container iframe {
        width: 320px;   /* Ajuste de largura para celular */
        height: 180px;
        flex: 0 0 auto;
    }

    /* Footer ajustável */
    footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 10px;
    }

    footer .container1 {
        flex-direction: column;
        align-items: center;
    }

    footer .social_icon li,
    footer .menu li {
        margin: 8px;
    }

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

.video-container iframe {
    transition: transform 0.5s ease, width 0.5s ease;
}

.video-container iframe:hover {
    transform: scale(1.05);
}

.musica-secao {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.musica-secao:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}