@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #193B53;
    text-decoration: none;
}

    a:hover {
        color: #1C5074;
        text-decoration: none;
    }


.btn-primary {
    color: #BEB07B;
    background-color: #193B53 ;
    border-color: #193B53;
}

    .btn-primary:hover,
    .btn-primary:focus {
        color: #BEB07B !important;
        background-color: #1C5074 !important;
        border-color: #1C5074 !important;
    }

.btn-secondary {
    color: #BEB07B;
    background-color: white;
    border-color: #BEB07B;
    width: 100%;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        color: #BEB07B !important;
        background-color: #193B53 !important;
        border-color: #193B53 !important;
    }

.btn-circle {
    border-radius: 50%;
    width: 15px;
    height: 15px;
    padding: 0;
    font-size: 8px;
    text-align: center;
    margin-left: 5px;
    background-color: white;
    border: 1px solid #BEB07B;
    color: #BEB07B;
    align-items: center;
    justify-content: center;
    display: flex;
    line-height: 20px;
    margin-left: 10px;
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 15px;
}

.label-container {
    display: flex;
    align-items: center;
}

.label {
    display: inline-block;
    margin-bottom: 10px;
}


.form-control:focus {
    border-color: #ccc;
    box-shadow: 0 0 0 0.1rem #BEB07B, 0 0 0 0.25rem white;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #BEB07B;
}


h1:focus {
    outline: none;
}

/*a, .btn-link {
    color: #0071c1;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

.content {    
    padding-bottom: 2rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }



/* INICIO IMPLEMENTAÇÃO    */
/* Estilos para o campo de pesquisa */
.search-container {
    margin-top: 60px;
    display: flex;
    align-items: center;
    background-color: white;
}

.custom-search-input {
    flex-grow: 1;
    margin-right: 5px;
    border: none;
    background-color: #F0F0F0;
    padding: 10px;
}

    .custom-search-input:focus {
        outline: none;
    }

/* Botões de limpar e de pesquisa */
.custom-clear-button, .custom-search-button {
    background-color: white;
    border: none;
    color: #193B53;
    padding: 10px 15px;
}

    .custom-clear-button:focus, .custom-search-button:focus {
        outline: none;
        border-bottom: 2px solid #BEB07B;
    }

/* Estilos para a linha de filtros */
.filter-container {
    margin-top: 30px;
    display: flex;
    justify-content: space-between; /* Espaçamento igual entre os controles */
    align-items: center;
    background-color: transparent;
    color: #303030;
    overflow-x: auto; /* Adiciona barra de rolagem horizontal se necessário */
}

/* Estilos para os selects */
.custom-select {
    flex: 1; /* Cada select ocupa uma parte igual da linha */
    margin-right: 10px;
    border: none;
    background-color: transparent;
    padding: 10px 15px;
}

    .custom-select:focus {
        outline: none;
        border-bottom: 2px solid #BEB07B;
    }

/* Botões na linha de filtros */
.filter-btn {
    flex: 1; /* Cada botão ocupa uma parte igual da linha */
    background-color: transparent;
    color: #303030;
    border: none;
    margin-right: 10px;
    padding: 10px 15px;
}

    .filter-btn:focus {
        outline: none;
        border-bottom: 2px solid #BEB07B;
    }

/* Estiliza a scrollbar no Chrome, Edge, e Safari */
.filter-container::-webkit-scrollbar {
    height: 0px; /* Altura da scrollbar */
    background-color: transparent; /* Fundo transparente */
}

.filter-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Cor da scrollbar (semi-transparente) */
    border-radius: 10px;
}

    .filter-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.4); /* Cor da scrollbar ao passar o mouse */
    }

/* Estilos para a lista de vídeos e áudios */
.midia-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.midia-card {
    width: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    border: none;
}

.midia-cover {
    flex: 2;
    position: relative;
    background-color: #fff; 
}

    .midia-cover img {
        width: 100%;
        height: 220px !important;
        object-fit: cover;
        border-radius: 5px;
    }

.midia-duration {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: rgba(141, 25, 25, 0.8);
    color: #BEB07B;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.midia-info p {
    margin-top: 0; /* Remove o espaço acima do parágrafo */
    margin-bottom: 0; /* Remove o espaço abaixo do parágrafo */
}

.midia-info {
    flex: 1; /* 1/3 do espaço para as informações da mídia*/
    background-color: #fff;
    padding-top: 10px;
    padding-left: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: #303030;
}

.midia-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.video-author, .video-producer {
    margin-bottom: 0px;
}

/* Estilos gerais da galeria */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12 colunas */
    gap: 0px; /* Espaço entre as fotos */
}

    .photo-gallery .photo {
        border: 5px solid #fff; /* Bordas brancas */
        position: relative;
        overflow: hidden;
    }

    .photo-gallery .vertical {
        grid-column: span 3; /* 3 colunas para cada vertical */
        grid-row: span 2; /* Altura dupla para cobrir as horizontais empilhadas */
        height: 500px; /* Altura fixa para as fotos verticais */
    }

    .photo-gallery .horizontal {
        grid-column: span 3; /* 3 colunas para cada horizontal */
        grid-row: span 1; /* Uma linha de altura */
        height: 250px; /* Metade da altura das verticais */
    }

    .photo-gallery .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ajusta a foto para cobrir todo o espaço */
        border-radius: 5px;
    }

.photo-info p {
    margin-top: 0; /* Remove o espaço acima do parágrafo */
    margin-bottom: 0; /* Remove o espaço abaixo do parágrafo */
}

.photo-gallery .photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(141, 25, 25, 0.8);
    color: #BEB07B;
    padding: 5px;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Ajustes para dispositivos menores */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr; /* Uma coluna para telas menores */
    }

        .photo-gallery .vertical, .photo-gallery .horizontal {
            grid-column: span 1; /* Uma coluna para todas as fotos */
            height: auto; /* Altura automática para manter a proporção */
        }
}

/*Estilos para Publicações*/
.publication-list {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Alterado de 'center' para 'stretch' */
    width: 100%; /* Subtrai o padding dos dois lados */
    box-sizing: border-box; /* Inclui o padding na largura total */
}

.publication-card {
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 100%; /* Garante que o card ocupe toda a largura do contêiner */
    padding: 15px;
    box-sizing: border-box;
}

.publication-title {
    color: #303030;
    font-weight: bold;
    margin-bottom: 10px;
}

.publication-author, .publication-date {
    color: #303030;
}

.publication-link {
    text-decoration: none; /* Remove o sublinhado do link */
    color: inherit; /* Herda a cor do texto do conteúdo do link */
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .publication-list {
        padding: 10px;
        width: calc(100% - 20px); /* Ajuste para o novo padding */
    }

    .publication-card {
        padding: 10px;
    }

    .publication-title, .publication-author, .publication-date {

    }
}





/* Estilos para a página de pesquisa avançada */
.search-results-summary {
    color: #303030;
    font-weight: bold
}

.results-count {
    font-weight: bold;
}

.search-term {
    font-style: italic;
}

.results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    overflow: hidden;
    flex: 1;
    min-width: 350px; /* Mínimo da largura do card para evitar que fique muito estreito */
    max-width: 410px; /* Máximo da largura do card para evitar que fique muito largo */
    height: 120px; /* Altura fixa para todos os cards */
    border-radius: 5px;
}

.result-image {
    flex-shrink: 0;
    width: 120px; /* Largura fixa para a imagem */
    height: 120px; /* Altura fixa para a imagem */
    object-fit: cover;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.result-details {
    flex-grow: 1;
}

.category {
    color: #959595;
    margin-bottom: 5px;
}

.title {
    color: #303030;
    margin-bottom: 0;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .result-card {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        height: auto;
    }

    .result-image {
        width: 40%;
        height: auto;
        object-fit: cover;
    }

    .result-details {
        flex-grow: 1;
        padding: 10px;
    }

    .category, .title {
        margin-bottom: 5px;
    }
}

/* Estilos para a lista de objetos */
.object-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.object-card {
    height: 100%; 
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 5px;
    overflow: hidden; 
}

.object-cover {
    position: relative;
    flex-grow: 1; 
    background-color: #fff; 
}

    .object-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

.object-info {
    background-color: #fff;
    padding: 10px 2px;
    color: #303030;
}

.object-title {
    font-weight: bold;
    margin-bottom: 8px;
}




/* Estilos para a lista de projetos */
.project-list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    flex: 1;
    min-width: calc(50% - 10px); /* Metade da largura menos o gap */
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.project-cover img {
    width: 100%;
    min-height: 250px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.project-title {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(141, 25, 25, 0.8);
    color: #BEB07B;
    width: 50%;
    padding: 10px 10px;
    text-align: left;
    border-top-right-radius: 5px;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .project-card {
        min-width: 100%; 
    }
}

/*Estilos da pagina de detalhes do projeto*/

.project-detail-header {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-detail-title {
    font-weight: bold;
    color: #303030;
}

.project-detail-content {
    display: flex;
    gap: 20px;
}

.project-image img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: 5px;
}

.project-info {
    flex-grow: 1;
}

.project-date,
.project-status {
    color: #959595;
    margin-bottom: 10px;
}

.project-summary {
    margin-bottom: 20px;
    text-align: justify;
}

.project-full-description {
    margin-top: 25px;
    color: #303030;
    text-align: justify;
}


.carousel-container {
    position: relative;
    width: 100%;
    margin: auto;
}

.carousel-item-container {
    display: flex;
    justify-content: start; /* Alinha os itens à esquerda */
    flex-wrap: nowrap; 
    overflow: hidden; 
}

.carousel-item img {
    width: 160px; /* Largura da imagem */
    height: 120px; /* Altura da imagem */
    object-fit: cover; 
    border-radius: 5px;
    margin-right: 10px;
}

.carousel-controls {
    position: absolute;
    top: -0px;
    right: 60px; 
    display: flex;
    align-items: center;
}


.carousel-control-prev, .carousel-control-next {
    width: 15px; /* Tamanho do ícone */
    height: 15px; /* Tamanho do ícone */
    cursor: pointer;
}

.carousel-control-next {
    left: 40px;
}

@media (max-width: 768px) {
    .carousel-item img {
        max-width: 120px; 
    }

    .carousel-item-container {
        width: 100%; 
        flex-wrap: wrap;
    }

    .carousel-controls {
        top: auto;
        top: -0px;
        right: 65px; 
    }

    .carousel-control-prev, .carousel-control-next {
        width: 15px;
        height: 15px;
    }
}

@media screen and (min-width: 1366px) {
    .project-image img {
        width: 100%;
        height: 345px;
        object-fit: cover;
        border-radius: 5px;
    }
}

@media only screen and (min-device-width: 834px) and (max-device-width: 1194px) and (-webkit-min-device-pixel-ratio: 2) {

    .project-image img {
        width: 100%;
        height: 440px;
        object-fit: cover;
        border-radius: 5px;
    }
}

.project-sponsors {
    margin-top: 30px;
}

.sponsors-grid-level {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px; /* Espaço entre linhas de níveis diferentes */
}


.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sponsor-card {
    position: relative;
    overflow: hidden;
}

    .sponsor-card img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.sponsor-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    text-align: center;
    background-color: #D9D9D9;
    font-size: 0.8rem;
}

.logo-master {
    width: 120px; 
    height: 120px; 
}

.logo-diamond {
    width: 108px;
    height: 108px;
}

.logo-platinum {
    width: 96px;
    height: 96px;
}

.logo-gold {
    width: 84px;
    height: 84px;
}

.card-title {
    color: #959595;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .project-detail-content,
    .project-image {
        flex-direction: column;
    }

        .project-image img {
            width: 100%;
            height: auto;
        }

    .project-detail-header {
        margin-top: 4rem;
    }
}


/*Estilos da paginação*/

.custom-pagination .page-link {
    margin-top: 30px;
    border: none;
    background-color: transparent;
    color: #193B53;
    font-weight: bold;
    cursor: pointer;
}

.custom-pagination .page-item.active .page-link {
    background-color: transparent;
    color: #BEB07B;
    cursor: pointer; 

}

.custom-pagination .page-item.disabled .page-link {
    cursor: not-allowed; 
    color: rgba(25, 59, 83, 0.5);
}

.icon-pagination {
    height: 1em;
    cursor: pointer; 
}

/* Ajustes no contêiner e imagem do carrossel */
.item-detail-content {
    position: relative;  
}

.img-details {
    width: 100%;
}

.frame-details {
    width: 100%;
    min-height: 600px;
}

.custom-carousel-container {
    position: relative;
    width: 100%;
}

.custom-carousel-item img {
    border-radius: 5px;
    width: 100%;
    object-fit: cover;
}

.custom-carousel-container iframe {
    width: 100%;
    
}


/* Ajustes nas setas para sobreposição transparente e centralização */
.custom-carousel-prev,
.custom-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(141, 25, 25, 0.5);
    cursor: pointer;
    padding: 20px;
    border-radius: 5px;
}

/* Alinhamento das setas na imagem */
.custom-carousel-prev {
    left: 10px;
}

.custom-carousel-next {
    right: 10px;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .custom-carousel-item img {
        max-height: 300px;
    }

    .custom-carousel-prev,
    .custom-carousel-next {
        width: 25px;
        height: 25px;
        font-size: 12px;
        padding: 5px;
    }
}
