/* core/static/core/css/style.css */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Times New Roman', Times, serif !important; 
    background-color: #f9f9f9;
}

header {
    background-image: url('/static/core/images/header_wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    padding: 3rem;
    text-align: center;
}

footer {
    background-color: #eee;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.obras-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.obra {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.obra:hover {
    transform: translateY(-5px);
}

.obras-container .obra p a,
.obras-container .obra p a:link,
.obras-container .obra p a:visited,
.obras-container .obra p a:active {
    color: #000 !important;
    text-decoration: none !important;
}

.obras-container .obra p a:hover {
    text-decoration: underline !important;
}

.postagens-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.postagem {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.postagem:hover {
    transform: translateY(-3px);
}

.postagem small {
    color: #888;
}

.postagem a {
    color: #000;         
    text-decoration: none; 
    font-weight: bold;     
}

.postagem a:hover {
    text-decoration: underline; 
}

.detalhe-postagem {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detalhe-postagem h2 {
    margin-top: 0;
}

.detalhe-postagem small {
    color: #888;
}

.detalhe-postagem a {
    display: inline-block;
    margin-top: 1.5rem;
    color: #000000 !important;
    text-decoration: none;
    font-weight: bold;
}

.detalhe-postagem a:hover {
    text-decoration: underline;
}

/* Container do carrossel centralizado */
#carouselHome {
    width: 800px;
    height: 500x;
    margin: 0 auto;
    position: relative;
}

/* Cada item do carrossel */
.carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagem do carrossel */
.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Legenda */
.carousel-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
    width: auto;
    margin: 0 auto;
}

/* Responsivo: telas menores que 600px */
@media (max-width: 600px) {
    #carouselHome {
        width: 100%;      /* ocupa 100% da tela */
        height: auto;     /* altura proporcional */
    }

    .carousel-item {
        height: auto;
    }

    .carousel-item img {
        width: 100%;      /* imagem se ajusta à tela */
        height: auto;
    }
}
