/* Estilos Globais */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    /* Removido overflow: hidden para permitir rolagem se necessário em mobile */
    /* overflow: hidden; */
    box-sizing: border-box;
}

/* --- Estilos para a Página Inicial (index.html) --- */
.initial-screen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Usar 100dvh para altura responsiva em mobile */
    height: 100dvh;
    min-height: 100dvh;
    background-image: url('../images/main-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    overflow: visible; /* Garante que nada seja cortado */
}

.main-content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.main-frame-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
    border-radius: 40px;
    animation: ascend 0.8s ease-out forwards;
}

.action-button {
    padding: 12px 25px;
    font-size: 1.5em;
    color: #1a303d;
    background-color: #bebebe;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: popup 0.8s ease-out forwards;
    width: 100%;
    max-width: 300px;
}

.action-button:hover {
    background-color: #6b6b6b;
    color: #dddddd;
    transform: scale(1.05);
}

.credits-icon-link {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    display: block;
}

.credits-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.credits-image:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Ajustes para mobile */
@media (max-width: 600px) {
    .initial-screen-container {
        padding: 10px;
        height: 100dvh;
        min-height: 100dvh;
    }
    .main-content-area {
        max-width: 100vw;
    }
    .main-frame-image {
        max-width: 100vw;
        margin-bottom: 25px;
    }
    .action-button {
        max-width: 100vw;
        font-size: 1em;
        padding: 10px 0;
    }
    .credits-icon-link {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* --- Estilos para a Página de Notas (notes.html) --- */
/* (Mantém os estilos anteriores para notes.html) */
.app-header {
    background-color: #fff;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #262626;
}

.feed-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 10px;
}

.post {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    margin-bottom: 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #efefef;
}

.author-name {
    font-weight: bold;
    color: #262626;
}

.post-date {
    font-size: 0.8em;
    color: #8e8e8e;
}

.post-content {
    padding: 15px;
    font-size: 1em;
    line-height: 1.5;
    color: #262626;
}

.post-content p {
    margin: 0;
}

.fade-in {
    animation: fadeInDark 0.25s ease-in-out forwards;
    background-color: #2c2c2c; /* Fundo escuro suave */
}

@keyframes fadeInDark {
    from {
        opacity: 0;
        background-color: #1a1a1a; /* Um tom mais escuro no início */
    }
    to {
        opacity: 1;
        background-color: #2c2c2c; /* Fundo final */
    }
}

.fade-out {
    animation: fadeOutDark 0.25s ease-in-out forwards;
    background-color: #2c2c2c; /* Fundo escuro suave */
}

@keyframes fadeOutDark {
    from {
        opacity: 1;
        background-color: #2c2c2c; /* Fundo inicial */
    }
    to {
        opacity: 0;
        background-color: #1a1a1a; /* Um tom mais escuro no final */
    }
}

/* Animações */
@keyframes ascend {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.return-button {
    position: absolute;
    top: 10px; /* Alinhado ao canto superior esquerdo */
    left: 10px;
    width: 35px; /* Mesmo tamanho do botão de créditos */
    height: 35px;
    z-index: 1000; /* Garante que o botão fique acima de outros elementos */
    background-image: url('../images/return-icon.png');
    background-size: cover; /* Garante que a imagem preencha o botão */
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, opacity 0.3s ease;
}

.return-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}