.body-container {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.header-container {
    width: 100%;
    height: 50px;
    /* margin-bottom: 20px; */
    background-color: #e0e5f2;
    padding: 20px 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 6em;
}

.navigator-container{
    height: 2em;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 2em;
    padding-right: 2em;
    margin-bottom: 20px;
    background-image:  radial-gradient(#1C3587 0.5px, transparent 0.5px), radial-gradient(#1C3587 0.5px, #e0e5f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    background-color: #e0e5f2;
}

.pagNext{
    height: 20px;
    display: flex;
    align-items: center;
    border-style: groove;
    border-bottom: none;
    border-top: none;

}

.pagNext a{
    text-decoration: none;
    color: inherit;
    padding: 0 0.5em 0 0.5em;
}

.pagNext a:hover{
    /* filter: drop-shadow(1px 1px 1px #302c2c); */
    transform: scale(1.2);
    transition: scale 2s ease-in;
}

.log-container {
    max-width: 250px;
    width: 100%;
    height: 100%;
    background: url('/img/logo.png') no-repeat center;
    background-size: contain;
}

.log-pres{
    max-width: 350px;
    width: 100%;
    height: 100%;
    background: url('/img/logo_presidencia.png') no-repeat center;
    background-size: contain;
}

.log-cam{
    max-width: 350px;
    width: 100%;
    height: 100%;
    background: url('/img/logo_camara.png') no-repeat center;
    background-size: contain;
}

.log-sen{
    max-width: 350px;
    width: 100%;
    height: 100%;
    background: url('/img/logo_senado.png') no-repeat center;
    background-size: contain;
}

.shadow-ref{
    filter: drop-shadow(1px 1px 2px #3733338f);
}

.box-container {
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.avatar-box {
    width: max-content;
    height: 100%;
    background-color: #e0e5f2;
    opacity: 0.8;
    background-image:  radial-gradient(#1C3587 0.5px, transparent 0.5px), radial-gradient(#1C3587 0.5px, #e0e5f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    background-color: #e0e5f2;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
}

.avatar-box > * {
    width: 100%;
    max-width: 100vh;
    box-sizing: border-box;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 2em 5em;
    /* justify-content: space-between; */
}

.row-pres{
    grid-template-rows: repeat(1, 1fr);
}

.avatar-container {
    /* width: 120px; */
    height: max-content;
}

.avatar-container p {
    margin: 0;
    margin-bottom: 2px;
    padding: 0;
    font-size: 12px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    color: #333;
    cursor: default;
}

.avatar-container button {
    cursor: pointer;
}


.avatar-container button:hover img{
    animation: rumble 0.3s;
    transform: scale(1.3);
    transition: transform 0.2s;
}

.avatar-container button img{
    transform: scale(1);
    transition: transform 0.2s;
}

.avatar-container:hover img{
    animation: colorfulIn 1s;
    transform: scale(1.01);
    transition: transform 1s ease-in-out;
}

.avatar-container:hover img{
    filter: brightness(0.7);
    transition: filter 0.2s;
}

.graphicBox-Container {
    position: relative;
    max-width: 600px;
    height: 264px;
    margin: 20px auto;
}

.avatar-overlay {
    position: static;
    display: flex;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.avatar-overlay img {
    width: 100%;
    height: 50%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1C3587; /* opcional: marco para destacar */
    background: #fff;         /* asegura fondo si la img falla */
}

.hide{
    display: none !important;
}

.svg-Like {
    width: 20px;
    height: 20px;
}

.img01 {
    background-image: url('/img/01.jpg');
    background-size: cover;
    background-position: center;
}

.footer-container {
    width: 100%;
    height: 100%;
    margin-top: 20px;
    background-color: #e0e5f2;
    padding: 10px 0 20px 0;
    font-size: 12px;
    color: #333;
}

.socials{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.socials div:hover{
    filter: brightness(0.7);
    scale: 1.2;
    color: #626a84;
    transition: 0.5s ease;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 100%;
}

.profile-link:hover {
    color: #626a84;
    transition: 0.5s ease;
}

.instruc-section {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: justify;
    margin-bottom: 2em;
}

.instruc-container{
    max-width: 120vh;
    padding: 0 1em 0 1em;
}

.instruc-container div{
    max-width: 100vh;
    background-image: radial-gradient(#1C3587 0.5px, transparent 0.5px), radial-gradient(#1C3587 0.5px, #e0e5f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 0 1em 0 1em;
    margin-bottom: 1em;
}

.instruc-container p{
    font-family: 'Verdana', sans-serif;
}

.explica-section
{
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: justify;
    padding: 0 1em 0 1em;
}

.explica-container div{
    max-width: 500px;
    background-image: radial-gradient(#1C3587 0.5px, transparent 0.5px), radial-gradient(#1C3587 0.5px, #e0e5f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 0 1em 0 1em;
    margin-bottom: 1em;
}

.explica-container p{
    max-width: 600px;
    font-family: 'Verdana', sans-serif;
}

.total-votes-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.total-votes-container {
    width: max-content;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e5f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
}

.refresh-section{
    display: flex;
    justify-content: center;
}

.refresh-button{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #302c2c;
}

.refresh-button:hover{
    color: #615959;
    transform: scale(1.1);
}

.refresh-button img{
    width: 32px;
    height: 32px;
} 

.nota{
    font-size: 8px;
    font-style: italic;
    color: #555;
    margin: 0 1em 1em 1em;
    text-align: center;
}

.share-container {
  position: relative;
  display: inline-block;
  justify-content: center;
}

.share-box
{
    display: flex;
    justify-content: center;
}


.share-box img{
    width: 32px;
    height: 32px;
    scale: 1;
}

.share-box img:hover{
    transform: scale(1.2);
    filter: brightness(0.7);
    filter: drop-shadow(1px 1px 2px #302f2f);
    transition: transform 0.2s ease-in;
    cursor: pointer;
}

.shareimg{
    margin: 2em;
    
}

.popup{
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #212632ef;
    border-radius: 6px;
    padding: 10px;
    z-index: 100;
    width: max-content;
    height: max-content;
    display: flex;
    gap: 2em;
    }

.popup a {
  text-decoration: none;
}

.hidden-btn {
  display: none;
}

.contact-container{
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
}

.contact-container p{
    text-align: justify;
}

.contact-box{
    width: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: radial-gradient(#1C3587 0.5px, transparent 0.5px), radial-gradient(#1C3587 0.5px, #e0e5f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 0 1em 0 1em;
    margin: 1em 2em 0 2em;
}

.contact-imgContainer{
    display: flex;
    justify-content: center;
    padding-bottom: 1em;
}

.contact-img{
    width: 64px;
    height: 64px;
}

.contact-img:hover{
    filter: brightness(0.8) drop-shadow(1px 1px 1px #56545499);
    transform: scale(1.2);
}

/* efectos */
@keyframes rumble {
  0%   { transform: rotate(0deg) scale(1.0); }
  25%  { transform: rotate(15deg) scale(1.1); }
  50%  { transform: rotate(0deg) scale(1.25); }
  75%  { transform: rotate(-15deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1.3); }
}

@keyframes colorfulIn {
    0% { border-color:#FF9C00; }
    25% { border-color:#1C3587; }
    50% { border-color:#FF1A1F; }
    75% { border-color:#00A93F; }
    100% { border-color:#A52E94; }
}

/* Página Cámara de reperesentantes */

.camara-page{
    background-color: #ECF2E1;
}

.camara-pageDark{
    background-color: #c2df8d;
}

.cam-BGPS{
    background-image:  radial-gradient(#6a871c 0.5px, transparent 0.5px), radial-gradient(#6a871c 0.5px, #c2df8d 0.5px);
    border:1px solid #839c43;
}

.cam-BGPW{
    background-image:  radial-gradient(#6a871c 0.5px, transparent 0.5px), radial-gradient(#6a871c 0.5px, #c2df8d 0.5px);
}

.cam-BGPSDiv div{
    background-image:  radial-gradient(#6a871c 0.5px, transparent 0.5px), radial-gradient(#6a871c 0.5px, #c2df8d 0.5px);
    border:1px solid #839c43;
}

.overlay-cam img{
    border:2px solid #839c43;
}

.last-camara{
    grid-column: span 3;
    justify-self: center;
    max-width: 25vh;
}

/* Página Senado*/

.senado-page{
    background-color: #f2e1e1;
}

.senado-pageDark{
    background-color: #c97c8a;
}

.sen-BGPS{
    background-image:  radial-gradient(#b35c6a 0.8px, transparent 0.8px), radial-gradient(#b35c6a 0.8px, #c97c8a 0.8px);
    border:1px solid #b35c6a;
}

.sen-BGPW{
    background-image:  radial-gradient(#b35c6a 0.8px, transparent 0.8px), radial-gradient(#b35c6a 0.8px, #c97c8a 0.8px);
}

.sen-BGPSDiv div{
    background-image:  radial-gradient(#b35c6a 0.8px, transparent 0.8px), radial-gradient(#b35c6a 0.8px, #c97c8a 0.8px);
    border:1px solid #b35c6a;
}

.overlay-sen img{
    border:2px solid #b35c6a;
}

/* media query */

@media (min-width: 992px) and (max-width: 1199px) {

    .body-container {
        max-height: 80vh;
        min-width: 992px;
    }

    .header-container {
        height: 60px;
        padding: 10px 0 10px 0;
        display: flex;
        justify-content: center;
    }

    .log-container {
        width: 100%;
        height: 60px;
    }

    .question-container {
        min-width: 992px;
    }

    .footer{
        display: flex;
        align-content: end;        
    }
    .footer-container
    {
        height: 50%;
        min-width: 992px;
    }
    .footer-container > *{
        max-height: 40px;
    }

    .avatar-box {
        max-width: 80vw;
        gap: 15px;
    }

}

@media (min-width: 768px) and (max-width: 991px) {

    .body-container {
        max-height: 80vh;
        min-width: 768px;
        display: flex;
        justify-content: space-between;
        align-content: center;
        overflow-anchor: 2px;
    }

    .header-container {
        height: 50px;
        padding: 10px 0 10px 0;
        display: flex;
        justify-content: center;
        align-content: center;
    }

    .log-container {
        width: 100%;
        height: 50px;
    }

    .question-container {
        min-width: 768px;
    }

    .graphicBox-Container{
        width: 100vh;
        height: 670px;
    }

    .results-container {
        width: 100%;
    }

    .footer-container
    {
        height: 50%;
        min-width: 768px;
    }
    
    .footer-container > *{
        max-height: 30px;
    }

    .avatar-box {
        max-width: 100vh;
        gap: 10px;
    }
    /* .avatar-box > * {
        max-width: 80%;
    } */

}

@media (min-width: 576px) and (max-width: 767px) {

    .body-container {
        min-width: 576px;
    }

    .header-container {
        height: 80px;
        padding: 10px 0 10px 0;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .log-container {
        width: 100%;
        height: 80px;
    }

    .question-container {
        min-width: 576px;
    }

    .results-container {
        min-width: 576px;
        height: 100%;
        /* height: 350px; */
    }

    .graphicBox-Container {
        width: 500px;
        height: 600px;
    }

    .footer-container
    {
        height: 50%;
        min-width: 576px;
    }

    .footer-container > *{
        max-height: 30px;
    }

    .avatar-box {
        /* max-width: 90vw; */
        gap: 10px;
        margin: 0 1em 1em 1em;
    }
    /* .avatar-box > * {
        max-width: 85vw;
    } */

    .row
    {
        gap: 4em;
    }
    
    .instruc-container{
        margin-top: 1em;
        /* max-width: 100vh; */
    }

    .instruc-container div{
        max-width: 100vh;

    }

    .explica-section{
        margin-top: 1em;
    }

    .explica-container div{
        max-width: 300px;
    }

    .last-camara{
    max-width: 20vh;
}

}

@media (max-width: 575px){
    
    .body-container {
        max-height: 100vh;
        min-width: 320px;
        justify-content: space-between;
        overflow-anchor: 2px;
    }

    .header-container {
        height: 40px;
        padding: 10px 0 10px 0;
        margin: 0;
        display: flex;
        justify-content: center;
        gap: 1em;
    }

    .log-container {
        max-width: 115px;
        width: 100%;
        height: 40px;
    }

    .log-pres{
        max-width: 150px;
    }

    .log-cam{
        max-width: 150px;
    }

    .log-sen{
        max-width: 150px;
    }

    .graphicBox-Container {
        width: 330px;
        height: 500px;
    }

    .results-container {
        min-width: 320px;
    }

    .footer-container{
        height: 50%;
        min-width: 320px;
    }

    .box-container{
        margin-top: 15px;
    }

    .row {
        width: 300px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        grid-gap: 1em;
    }

    .last-avatar{
        grid-column: span 2;
        justify-self: center;
    }

    .avatar-container {
        width: 100px;
    }

    .instruc-container{
        margin-top: 1em;
    }

    .instruc-container div{
        max-width: 300px;

    }

    .explica-section{
        margin-top: 1em;
    }

    .explica-container div{
        max-width: 300px;
    }

}

@media (max-height: 450px){
    .row{
        grid-gap: 1em 3em;
    }
}
@media (max-height: 300px) {
    .row{
        grid-gap: 1em 2em;
    }
}