/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

/* --- ESTILOS GERAIS E PARA TV (HORIZONTAL - PADRÃO) --- */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.fullscreen-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.text-pane {
    position: fixed;
    top: 0;
    left: 0;
    margin: 10px;
    width: calc(27.5% - 20px);
    height: calc(100% - 20px);
    background-color: rgba(204, 0, 0, 0.85);
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 25px;
    transition: all 0.5s ease; /* Adiciona uma transição suave entre os layouts */
}

.text-content-wrapper {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.clock {
    font-size: 1.9em;
    font-weight: bold;
    text-align: left;
    margin-bottom: 30px;
}

.news-title {
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 25px;
}

.source-text {
    font-size: 1.4em;
}


/* --- ESTILOS PARA CELULAR (VERTICAL) --- */

/* Esta regra será aplicada em telas onde a altura é maior ou igual à largura (modo retrato) */
@media (orientation: portrait) {

    .text-pane {
        /* Transforma a caixa lateral em um rodapé */
        top: auto; /* Remove o posicionamento do topo */
        bottom: 0; /* Gruda na base da tela */
        left: 0;
        margin: 0; /* Remove as margens */
        
        width: 100%; /* Ocupa toda a largura */
        height: auto; /* Altura se ajusta ao conteúdo */
        max-height: 45%; /* Garante que o rodapé não ocupe mais que 45% da tela */
        
        border-radius: 20px 20px 0 0; /* Arredonda apenas os cantos superiores */
        padding: 20px;
    }

    /* Ajusta o tamanho das fontes para telas menores */
    .clock {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .news-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .source-text {
        font-size: 1.1em;
    }
}