/* Miligram overrides */
body {
    font-family: "Roboto", sans-serif;
    font-weight: normal;
    color: #222;
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #222;
}

a {
    color:#e26129;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

a:hover,
a:focus,
a:active  {
    color:#e26129;
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color:#2f85ae;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #fff;
}
.content {
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
}
.home .content {
    background: #e26129;
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto;
    text-align: center;
}
.top-nav-title {
    margin: auto;
}
.top-nav-title img {
    max-width: 300px;
}
.top-nav-title p {
    text-align: center;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

.main {
    border-top: 4px solid #e26129;
}
.home .main {
    background: #e26129;
    border-top: 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
form {
    margin: 1em 0;
}
.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    padding: 0 2em;
}

.publi-cuadrado div {
    display: table;
    margin: auto;
}

.publi-horizontal {
    display: table;
    margin: 1em auto 0;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}


/* Anagramador.com JJOC */

footer {
    border-top: 4px solid #e26129;
    margin: 1em 0;
    padding: 1em 0;
    text-align: center;
    color: #222;
    background: #fff;
    font-weight: bold;
}
.home footer {
    border-top: 0;
}
.home .eqhei {
    display: flex;
}
.home .eqhei .column {
    flex: 1;
}

.home .column {
    margin: 0 2em;
    padding: 1em 3em;
}
.home .column h4 {
    text-align: center;
    color: #222;
    font-weight: bold;
    text-transform: uppercase;
}
.home .column p {
	text-align: center;
    color: #222;
}

.titulo-home {
    background: #fff;
    padding: 0 2em;
    color: #e26129;
    border:2px solid #fff;
    border-radius: 10px;
    margin: 1.2em auto 0.65em;
    box-shadow:-5px 5px 5px 2px rgb(0 0 0 / 30%), 0 3px 6px 0 rgb(0 0 0 / 30%);
}

.mosaico {
    padding: 0;
    max-width: 80%;
    
}
.icono-mos {
    margin: auto;
    margin-bottom: 1.25em;
    width: fit-content;
    width: -moz-fit-content;
    display: block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgb(0 0 0 / 0%);
    position: relative;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.icono-mos img {
    height: 40px;
}

.icono-mos:before {
    position: absolute;
    z-index: -1;
    content: '';
    top: 82%;
    left: 10%;
    height: 10px;
    width: 90%;
    opacity: 0;
    background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform, opacity;
    transition-property: transform, opacity;
    pointer-events: none;
}

.mosaico:hover .icono-mos, .mosaico:focus .icono-mos, .mosaico:active .icono-mos {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

.mosaico:hover .icono-mos:before, .mosaico:focus .icono-mos:before, .mosaico:active .icono-mos:before {
    opacity: 1;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
}

.cont-mosaico {
    background: #fff;
    padding: 1.5em 2em;
    height: 100%;
    border-radius: 10px;
    box-shadow: -5px 5px 5px 2px rgb(0 0 0 / .3), 0 3px 6px 0 rgb(0 0 0 / 30%)
}
.cont-mosaico h3 {
    margin-bottom: 1em;
}

.instrucciones {
    color: #222;
    margin-bottom: 1rem;
}

ul.instrucciones {
    margin-left: 1em;
    list-style: disc;
}
.instrucciones li {
    margin-bottom: initial;
}

.aviso {
    margin-bottom: 1rem;
}

a.link-palabra {
    text-decoration: underline;
    font-weight: bold;
    color: #222;
    font-size: 110%;
}
.comodin {
    color: #e26129;
    font-weight: bold;
}
.aviso {
    font-weight: bold;
    font-size: 120%;
    color: #222;
}
.aviso2 {
    text-transform: uppercase;
}

button, input[type='button'], input[type='submit'] {
    background-color: #e26129;
    border: 0;
    font-size: 1.5rem;
}
button:hover, input[type='button']:hover, input[type='submit']:hover, button:focus {
    background-color: #e26129;
}

.miaddthis {
    margin: 1.5em 0;
}

.respuestas-mpalabra {
    margin: 10px 20px 0;
}

.respuestas-anagramador1 {
    margin: 5px 20px 10px;
}
.respuestas-anagramador2 {
    margin: 0 10px 5px 10px;
}

.mejoresPalabras {
    margin: 1em 0;
}
.mejoresPalabras .columna {
    float: left;
}
.mejoresPalabras .columna:nth-child(1) {
    width: 23.5%;
}
.mejoresPalabras .columna:nth-child(2) {
    width: 24%;
}
.mejoresPalabras .columna:nth-child(3) {
    width: 26%;
}
.mejoresPalabras .columna:nth-child(4) {
    width: 26.5%;
}
.mejoresPalabras p {
    font-size: 135%;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 1em;
}
.mejoresPalabras a {
    font-weight: normal;
}

.tablaDigrafos {
    width: 100%;
    border:0;
    border-collapse:collapse;
    margin:0 auto 10px auto;
}
.tablaDigrafos td {
    width:33.3%;
    text-align:center;
    font-weight:normal;
    border: 1px solid #232020;
    text-transform: uppercase;
    padding: 5px;
}
.tablaTrigrafos, .tablaTrigrafos2 {
    width: 100%;
    border:0;
    border-collapse:collapse;
    margin:0 auto 10px auto;
}
.tablaTrigrafos td, .tablaTrigrafos2 td  {
    width:9%;
    text-align:center;
    font-weight:normal;
    border: 1px solid #232020;
    text-transform: uppercase;
    vertical-align: top;
    padding: 1em 0;
}
.tablaTrigrafos2 {
    display: none;
}
.tabla-anagramas {
    border: 0;
}
.tabla-anagramas td {
    border-bottom: 0;
}
.tabla-anagramas input {
    font-size: 1.2em;
}
.tabla-anagramas tbody tr {
    border-right: 0;
}
.nuevoJuego{
    font-size:140%;
}
#respuestas{
    font-size:95%;
    margin: 1em 0 2em;
}
#respuestas a{
    margin: 0 0 10px 20px;
}
.letrasAnagramas {
    font-size: 20px;
    line-height: 46px;
    margin: 0 3px 5px 0;
    padding: 0px;
    border: 3px solid #e26129;
    text-transform: uppercase;
    width: 51px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    background-image: url(../img/foco.jpg);
    background-position: 32px 1px;
    background-repeat: no-repeat;
    background-size: 12px 17px;
}
.palabraArbol {
    min-height: 38px;
    margin: 20px 0 0;
    padding: 0 1em;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}
#leyendaArbol {
    margin: 0.25em 0 1.25em;
    min-height: 1em;
}
#letrasArbol {
    margin: 1em 0;
}
#letrasArbol span {
    cursor: pointer;
}

.palabra-cruzada {
    margin: 5px 0;
    padding: 3px 0px 0px 3px;
    border: 5px solid transparent;
    display: inline-block;
}

.miCaptcha {
    text-transform: uppercase;
}
.error-message {
    color: red;
    margin-bottom: 1rem;
}


@media (max-width: 1000px) {
    .home .column {
        margin: 0 1em;
        padding: 1em .75em;
    }

} 

@media (max-width: 640px) {
    .tablaTrigrafos {
        display: none;
    }
    .tablaDigrafos, .tablaTrigrafos2 {
        display: table;
        white-space: normal;
    }
    .tablaDigrafos td, .tablaTrigrafos2 td {
        display: table-cell;
    }
    .tablaDigrafos tbody, .tablaTrigrafos2 tbody {
        display: table-row-group;
        white-space: normal;
    }
}

@media (max-width: 639px) {
    .home .column {
        margin: 0;
        padding: 1em 0 0;
    }
    .top-nav-title img {
        max-width: 85%;
    }
    
    .container {
        padding: 1em 0 0;
    }
    
    .cont-mosaico {
        padding: 1em .5em;
    }
    .content {
        padding: 1rem 2rem 2rem;
    }
    button, input[type='button'], input[type='submit'] {
        background-color: #e26129;
        border: 0;
        font-size: 1.8rem;
    }
    input {
        font-size: 120%;
    }
    .instrucciones {
        font-size: 1.8rem;
    }
    
    .publi-cuadrado div {
        margin: 2em auto;
    }
    
    .titulo-home {
        margin-top: 0.9em;
    }
}