#new_select-ally, #how-do-register {
    width: 800px;
    max-width: 100% !important;
    padding: 22px;
}

#allys_options {
    display: grid;
    grid-column-gap: 20px;
    grid-row-gap: 32px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 160px);
}

#options {
    display: grid;
    grid-column-gap: 20px;
    grid-row-gap: 32px;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    padding: 0px 25px 25px 25px;
}
#allys_options .card{
    box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    -webkit-box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    -moz-box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    color: #bcbbbb;
    position: relative;
    padding: 1rem 0.5rem;
}
#options .card{
    box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    -webkit-box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    -moz-box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    color: #bcbbbb;
    position: relative;
    padding: 1rem 0.5rem;
}
#allys_options .card.selected:not(#JG)::before, #options .card.selected:not(#participe_)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../../images/allies/tarjeta-selected.svg');
    background-size: 120%;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-position: center;
}
#allys_options .card:not(#JG):hover, #options .card:not(#participe_JG):hover {
    transform: scale(0.99);
    cursor: pointer;
    color: gray;
    background: #B2E1F4;
}
#allys_options .card#JG:hover, #options .card#participe_JG:hover{
    transform: scale(0.99);
    cursor: pointer;
    background-image: url("../../images/allies/card1-hover.png");
}
#allys_options .card.selected#JG, #options .card.selected#participe_JG{
    background-image: url("../../images/allies/card1-selected.png");
}

#allys_options .card:hover .btn__basic {
    background-position: 0 center;
}

#JG {
    color: #FFFFFF !important;
    font-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 105% 107%;
    border-radius: 12px;
    box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    -webkit-box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    -moz-box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    transition: transform 0.3s, filter 0.3s;
    grid-area: 1 / 1 / 7 / 5;
    background-image: url("../../images/allies/card1-normal.png");
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

#participe_JG {
    color: #FFFFFF !important;
    font-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 105% 107%;
    border-radius: 12px;
    box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    -webkit-box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    -moz-box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.63);
    transition: transform 0.3s, filter 0.3s;
    grid-area: 1 / 1 / 7 / 5;
    background-image: url("../../images/allies/card1-normal.png");
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

#allys_options > * {
    grid-column: span 1; /* Cada hijo ocupa una columna */
    grid-row: span 1; /* Cada hijo ocupa una fila */
}

#options :nth-child(1) {
    grid-area: 1 / 1 / 7 / 7; 
}

#options :nth-child(2) {
    grid-area: 1 / 7 / 7 / 13; 
}

#options :nth-child(3) {
    grid-area: 7 / 7 / 13 / 13; 
}

.card.listAllies, .card.register{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card.listAllies .card-title, .card.register .card-title{
    display: flex;
    justify-content: flex-start;
    font-size: 17px;
}

.card.listAllies .card-title span, .card.register .card-title span{
    text-align: left;
    margin-left: 1rem;
    color: #004481;
}

.icon-how-to{
    width: 40px;
}
#JG .card-title {
    text-transform: uppercase;
}
.card-title {
    text-align: center;
}
.img-container{
    width: 100%;
}
.ally_img{
    width: 100%;
}
.regular_size{
    font-size: 12px;
}
.medium_size{
    font-size: 16px;
}
.cancel-option {
    font-size: 15px;
    font-weight: 100;
    display: flex;
    align-items: center;
}
.cancel-option:hover {
    cursor: pointer;
    text-decoration: underline;
}
/* #new_select-ally .title-ally {
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    padding-inline: 0;
    flex-wrap: wrap;
} */
#how-do-register .title-ally, #new_select-ally .title-ally {
    padding: 0px 15px 10px 15px !important;
    border-bottom: solid 3px rgba(0, 0, 0, 0.1);
}

.search-title {
    color: #004481;
    font-size: 17px;
}
.search-container {
    text-align: center;
    padding: 10px 10px;
}

.sub-header-allies .search-container {
    text-align: left;
    padding: 10px 0px;
}
#new_select-ally #ally_fancy, #how-to-register{
    height: 400px;
    overflow-y: scroll;
    display: block !important;
    padding: 2rem 0.5rem 2rem 0;
}
.cancel-option_row{
    transform: rotate(-90deg);
}

#submtbtn_container{
    display: none;
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #004481;
    padding-block: 1rem;
    border-radius: 8px 8px 0 0;
}
.modal[open] {
    z-index: 99999;
}
.sub-header-allies{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.cancel{
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* hay que agregar los nuevos elementos con su grid-area*/
@media(max-width:600px) {
    #new_select-ally .title-ally {
        justify-content: flex-end;
    }
    #allys_options {
        grid-column-gap: 8px;
        grid-row-gap: 12px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 160px);
    }
    #options {
        grid-column-gap: 4px;
        grid-row-gap: 8px;
        padding: 0px;
    }
    .search-container {
        padding: 0px;
    }
    .icon-how-to{
        width: 30px;
        height: 30px;
    }
    .sub-header-allies{
        display: flex;
        flex-direction: column;        
    }

    #allys_options .card.selected:not(#JG)::before, #options .card.selected:not(#participe_)::before {        
        background-size: 180%;
    }
    #JG{
        background-size: 170% 120%;
        grid-area: 1 / 1 / 7 / 7;
    }

    #participe_JG{
        background-size: 170% 120%;
        /* grid-area: 1 / 1 / 7 / 7; */
    }

    #allys_options > * {
        grid-column: span 1; /* Cada hijo ocupa una columna */
        grid-row: span 1; /* Cada hijo ocupa una fila */
    }

    #options :nth-child(1) {
        grid-area: 1 / 1 / 13 / 7; 
    }
    
    #options :nth-child(2) {
        grid-area: 1 / 7 / 5 / 13; 
    }
    
    #options :nth-child(3) {
        grid-area: 5 / 7 / 13 / 13; 
    }

}

