body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

header {
    height: fit-content;
}

main {
    flex-grow: 1;
    padding-bottom: 5rem;
}

footer {
    height: fit-content;
    padding: 2rem 0rem;
    background-color: #002564;
    color: white;
    font-size: 14px;
    font-weight: normal;
}

h1 {
    font-size: 1.75rem;
}

@media (min-width:768px) {
    h1 {
        font-size: 2.5rem;
    }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

*:focus {
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
.valueBtn {
    text-align: left;
    font-size: 2rem;
    border: 1px solid lightgrey;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    line-height: 1;
    padding-top: 0.5rem;
    min-width: 305px;
    flex-grow: 1;
}
table {
    width: 100%;
}
ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

#showFactores {
    display: flex;
    flex-direction: column;
    font-family: monospace;
    max-width: 100%;
}
#showDivisores {
    max-height: 200px;
    overflow-y: auto;
}
.factor-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2px 0;
    margin-bottom: 0.5rem;
}

.calculator {
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
}

@media (min-width:1200px) {
    .calculator {
        margin-top: 0;
        margin-bottom: 1rem;
        position: relative;
    }
}

.showInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    font-size: 14px;
}
#showExplanation p {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 2rem;
    background-color: rgba(0, 123, 255, 0.283);
    padding: 1rem;
}
@media (min-width:768px) {
    #showExplanation p {
        text-align: center;
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 2rem;
        background-color: rgba(0, 123, 255, 0.283);
        padding: 1rem 0;
    }
}
.showInfo .numberType {
    width: 100%;
}
.numberType .primo {
    display: none !important;
}
.numberType.active .primo.active {
    display: block !important;
}
.showInfo .numberType, .showInfo .subNumberType span {
    padding: 0.4rem 0.6rem;
    border: 1px solid lightgrey;
    transition: 0.4s;
}

.showInfo .numberType:not(:first-child) {
    margin-top: -1px;
}

.showInfo .numberType.active {
    background-color: #002564;
    border: 1px solid #002564;
    color:white;
}
.numberTypeAlign-1 {
    /* transform: translateX(-8px); */
}
.numberTypeAlign-2 {
    /* transform: translateX(8px); */
}
#showInfoGlosary .numberTypeAlign-1 {
    /* transform: translateX(-8px); */
}
#showInfoGlosary .numberTypeAlign-2 {
    /* transform: translateX(4px); */
}
#showInfoGlosary .numberType {
    padding: 0;
    border: none;
}
.numberType.active {
    animation: show 0.4s;
}
.numberType .primo {
    text-align: center;
}
.numberType.active .subNumberType.primo.active {
    
}
.numberTypeNpM {
    display: flex;
    flex-direction: column;

}
.pPos, .pPneg {
    display: flex;
    flex-direction: column;
}
@keyframes show {
    0% {transform: scale(1);}
    50% {transform: scale(1.1);}
    100% {transform: scale(1);}
}
.subNumberType {
    /* display: block; */
    display: none;
    width: 100%;
    text-align: left;
    margin-top: 0.2rem;
}
@media (min-width:576px) {
    .subNumberType {
        text-align: center;
    }
}
.subNumberType.active {
    display: block;
}
.subNumberType span {
    display: block;
    opacity: 0.4;
}
.numberType.active .subNumberType.active span {
    background-color: white;
    color: #002564;
    animation: show 0.4s;
    display: block;
    opacity: 1;
}
.indicators {
    position:relative;
    height: 80px;
    /* margin-bottom: 2rem; */
    display: flex;
    flex-wrap: wrap;
    transform: rotate(90deg);
    transform-origin: 0px 100%;
}
.indicators--glosario {
    height: 20px;
    margin-bottom: 0.5rem;
}
.indicatorAuxiliar {
    border-bottom: 1px solid lightgrey !important;
    width: 100%;
    left: 0px !important;
    bottom: 10px !important;
    position: absolute;
}
.indicators--glosario div{
    border-bottom: none;
}
.indicators > div {
    bottom: 0;
    top: 0;
    left: 20px;
}
.indicatorDiv1 {
    width:calc(100% / 6);
    border: 1px solid lightgrey;
    border-top: none;
    z-index: 3;
}
.indicatorDiv1:not(:first-child) {
    border-left: none;
}
.indicatorDiv2 {
    width:calc(100% / 3);
    border: 1px solid lightgrey;
    border-top: none;
    z-index: 3;
}
.indicatorDiv3 {
    width:calc(100% / 2);
    border: 1px solid lightgrey;
    border-top: none;
    z-index: 3;
}
.indicatorDiv6 {
    width:100%;
    border: 1px solid lightgrey;
    border-top: none;
}
.indicatorDiv2 + .indicatorDiv2 {
    border-left: none;
}
.indicatorDiv3 + .indicatorDiv3 {
    border-left: none;
}
.indicatorDiv6 + .indicatorDiv6 {
    border-left: none;
}

.menu-group {
    font-size: 14px;
}

.destacado {
    color: red;
}

.list {
    margin-top: 1rem !important;
}
.sublist {
    margin-top: 0.5rem !important;
}

.btn {
    background-color: #002564;
    color: white;
    transition: 0.3s;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width:1200px) {
    .btn {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.btn:hover {
    background-color: #007bff;
    color: white;
}

#btn, #btn6n {
    border-radius: 0;
    flex-grow: 1;
}

@media (min-width:992px) {
    #btn, #btn6n {
        max-width: 150px;
    }
}

.generateTableBtn {
    padding: 6px 8px;
}

#showTable {
    overflow-x: auto;
    width: 100%;
}


@media (max-width:992px) {
    .calculator-btn.btn {
        width: 49%;
        max-width: 50%;
    }
}

@media (min-width:768px) {
    .col-types-result {
        border-left: 1px solid lightgrey;
    }
}

.explanationDivs .showInfo .numberType.active {
    background-color: white;
    color: inherit;
    border: 1px solid lightgrey;
}

.tableExplanation {
    border: 1px solid lightgrey;
}

.tableExplanation tr td, .tableExplanation tr th {
    border: none;
    border-bottom: 1px solid lightgrey;
    width: 25%;
    min-width: 200px;
    font-size: 14px;
}

.tableExplanation tr th {
    background-color: rgba(0,0,0,0.8) !important;
    color: white;
}

.tableExplanation tr td:last-child,
.tableExplanation tr td:nth-child(3), 
.tableExplanation tr th:last-child,
.tableExplanation tr th:nth-child(3)
 {
    background-color: rgba(0,0,0,0.025);
}

.subtable {
    background-color: rgba(0,0,0,0.07);
}

.subtable td {
    border: none !important;
}

.subtable td:first-child {
    padding-left: 1.5rem;
}

/* POLAR SIGNS */
.polarCard {
    -webkit-box-shadow: 0px 0px 4px 0px rgba(66, 68, 90, 0.22);
    -moz-box-shadow: 0px 0px 4px 0px rgba(66, 68, 90, 0.22);
    box-shadow: 0px 0px 4px 0px rgba(66, 68, 90, 0.22);
    padding: 0.5rem 0.75rem;
    width: fit-content;
    border-radius: 4px;
    width: 100%;
    overflow-x: auto;
}
.polarCard+.polarCard {
    margin-top: 1rem;
}
.polarSign {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    width: 20px;
    height: 20px;
}

.polarSign.polarSignMinus {
    background-color: blue;
}

.polarSign.polarSignMinus .polarSignMinusText {
    color: white;
    font-weight: bold;
    display: block;
    padding: 0;
    line-height: 1;
    margin: 0;
}

.polarSign.polarSignPlus {
    background-color: red;
}

.polarSign.polarSignPlus .polarSignPlusText {
    color: white;
    font-weight: bold;
    display: block;
    padding: 0;
    line-height: 1;
    margin: 0;
}

.polarSign.polarSignNeutro {
    background-color: lightgrey;
}

.polarSign.polarSignNeutro .polarSignNeutroText {
    color: white;
    font-weight: bold;
    display: block;
    padding: 0;
    line-height: 1;
    margin: 0;
}

.polarTable td {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.polarTable td > * {
    margin-right: auto;
    margin-left: auto;
}

.current-multiple .polarSign {
    background-color: rgb(70, 254, 73);
}
.current-multiple.current-multiple2 .polarSign {
    background-color: rgb(248, 70, 254);
}
.current-multiple-txt {
    display: none;
}
.current-multiple p:not(.current-multiple-txt) {
    display: none;
}
.current-multiple2 p:not(.current-multiple-txt) {
    display: block;
}
.current-multiple .current-multiple-txt {
    display: block;
}

.rutaList {
    /* list-style-type: disc;
    padding-left: 1rem; */
}

.rutaList ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.25rem;
}

.factorizedTable {
    border: none;
    width: fit-content;
    max-width: 100%;
}

.factorizedTable tr {
    border: none;
}

.factorizedTable tr th {
    border: none;
    padding: 0;
}

.factorizedTable tr th:first-child {
    border-right: 1px solid lightgrey;
    text-align: right;
}

.factorizedTable tr td {
    border: none;
    padding: 0;
}

.factorizedTable tr td:nth-child(odd) {
    border-right: 1px solid lightgrey;
    text-align: right;
    padding-right: 0.5rem;
}

.factorizedTable tr td:nth-child(even) {
    padding-left: 0.5rem;
}

.reducedSize {
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.polarCard-animation {
    width: 85px;
}

.polarCard-animate1 {
    animation: polar1 9s infinite linear;
    position: absolute;
    left: 3.5rem;
}
.polarCard-animate2 {
    animation: polar2 9s infinite linear;
    position: absolute;
    left: 3.5rem;
}
.polarCard-animate3 {
    animation: polar3 9s infinite linear;
    position: absolute;
    left: 3.5rem;
}

@keyframes polar1 {
    0%, 33.33% { opacity: 1; }
    33.34%, 100% { opacity: 0; }
}
@keyframes polar2 {
    0%, 33.33% { opacity: 0; }
    33.34%, 66.66% { opacity: 1; }
    66.67%, 100% { opacity: 0; }
}
@keyframes polar3 {
    0%, 66.66% { opacity: 0; }
    66.67%, 100% { opacity: 1; }
}
.setsDiagram {
}
.setsDiagram > * {
    width: 50%;
}
.setsDiagram * {
    min-height: 50px;
}

.diagramPp {
    display: flex;
    border: 1px solid black;
    padding: 2rem 1rem;
    position: relative;
}

.diagramP {
    border: 1px solid black;
    padding: 2rem 1rem;
    margin-right: 0.5rem;
    position: relative;
}

.diagramNp {
    display: flex;
    padding: 2rem 1rem;
    border: 1px solid black;
    margin-left: 0.5rem;
    position: relative;
}

.diagramSubNp1 {
    border: 1px solid black;
    width: 50%;
    margin-right: 0.5rem;
    position: relative;

}

.diagramSubNp2 {
    border: 1px solid black;
    width: 50%;
    margin-left: 0.5rem;
    position: relative;
}

.diagramLegend {
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    min-height: fit-content;
    width: fit-content;
}

@media (min-width:1200px) {
    .setsDiagram {
    }
    .setsDiagram > * {
        width: 50%;
    }
    .setsDiagram * {
        min-height: 60px;
    }

    .diagramPp {
        display: flex;
        border: 1px solid black;
        padding: 2rem;
        position: relative;
    }

    .diagramP {
        border: 1px solid black;
        padding: 2rem;
        margin-right: 1rem;
        position: relative;
    }

    .diagramNp {
        display: flex;
        padding: 2rem;
        border: 1px solid black;
        margin-left: 1rem;
        position: relative;
    }

    .diagramSubNp1 {
        border: 1px solid black;
        width: 50%;
        margin-right: 1rem;
        position: relative;

    }

    .diagramSubNp2 {
        border: 1px solid black;
        width: 50%;
        margin-left: 1rem;
        position: relative;
    }

    .diagramLegend {
        position: absolute;
        left: 0.5rem;
        top: 0.25rem;
        min-height: fit-content;
        width: fit-content;
    }

}

#botonmenuConstructor {
    white-space: nowrap;
}

.fa-bars {
    cursor: pointer;
}

@media (max-width:575px) {
    #generateBtn {
        width: 100%;
    }
}

