body {
    margin: 0;
    overflow: hidden;
    font-family: Baskerville, serif;
    background-color: #4e3421;
}

/* ============================
   1. ECRÃ INICIAL (ESTANTE)
============================ */

#intro-screen {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 10; /* fica por cima da madeira */
    opacity: 1;
    transition: opacity 2.5s ease;  /* crossfade suave */
}

#intro-screen.fade-out {
    animation: fadeOut 1.5s ease forwards;
    z-index: 0;
    pointer-events: none; /* MUITO IMPORTANTE */
}


#intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.5s ease-in-out;
}

#start-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 30px;
    font-size: 20px;
    color: #4e3421;
    background: rgba(186,166,142,0.9);
    border: 2px solid #4e3421;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 20px;
}

#start-btn:hover {
    background: #4e3421;
    color: rgba(186,166,142);
    border-color:rgba(186,166,142) ;
}

/* ============================
   2. TELA DE MADEIRA (novo)
============================ */

#fade-overlay {
    position: fixed;
    inset: 0;
    background-image: url("imagens/madeira.png");
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

#next-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0; /* começa invisível */
    pointer-events: none; /* evita clicar antes do fade */
    transition: opacity 1.5s ease;
    z-index: 5;
}


@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}


