/* GENERAL */
* {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* TIPOGRAFÍA */

@font-face {
    font-family: "Supercell";
    src: url("../fonts/SVN-Supercell-Magic.otf");
}

h1 {
    font-family: 'Supercell';
    text-transform: uppercase;
    font-size: 40px;
}

h1 small {
    font-family: 'Supercell';
    text-transform: uppercase;
    font-size: 70%;
    display: block;
}

h2 {
    margin-bottom: 1em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

h3 {
    font-family: 'Supercell';
    text-transform: uppercase;
    background: -webkit-linear-gradient(#fefdfa, #f7e8ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px .1em 0px #a57d5f);
}

h5 {
    font-size: 1em;
    text-align: center;
}

p {
    font-size: 16px;
    margin-bottom: 1em;
    line-height: 1.5em;
    text-align: center;
}

.wood {
    background-image: url(../img/Table.png);
    font-family: 'Supercell';
    text-transform: uppercase;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 2.5em;
    filter: drop-shadow(.2em 1em 1em #090909);
}

/* LISTAS */

ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 15px;
    margin-top: 4em;
    gap: 1em;
}

li {
    padding: 3em 1.5em 1.5em 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(#232323, #090909);
    border: 10px ridge #edc362;
    position: relative;
    counter-increment: contador;
}

li::before {
    content: counter(contador);
    background-image: url(../img/escudo2.png);
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Supercell';
    font-size: 2em;
    padding-top: .3em;
    min-width: 125px;
    min-height: 125px;
    position: absolute;
    top: -75px;
}

/* HEADER */
header {
    background: url(../img/rombos.jpeg);
    background-position: bottom;
    color: whitesmoke;
    border-bottom: 12px ridge #edc362;
}

.logo {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.logo img {
    max-height: 90px;
}

/* BLOQUES */

section {
    color: whitesmoke;
    padding: 4em 15px;
}

.container {
    max-width: 1000px;
    margin: auto;
}

#puntuaciones {
    background: #146099;
    border-top: 12px ridge #edc362;
    border-bottom: 12px ridge #edc362;
}

.instrucciones {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.73)), url(../img/BG.jpg);
    background-size: cover;
    overflow: hidden;
}

.mejor > p {
    filter: drop-shadow(0px .1em 0px #146099);
}

.mejor > article {
    background-image: url(../img/trofeo.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: flex-start;
    min-height: 200px;
}

.mejor > article > h3 {
    padding-top: 135px;
}


.mejor {
    min-height: 200px;
    background-image: url(../img/cielo.jpg);
    background-attachment: fixed;
    background-size: cover;
    width: inherit;
    background-repeat: repeat-x;
}

.demon {
    width: 200px;
    height: 200px;
    background-image: url(../img/demon.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 230px;
    left: 200px;
    animation: float 3s infinite linear;
    animation-delay: -2s;
}

@media screen and (max-width: 900px) {
    .demon, .demon2 {
        display: none;
    }
}

.demon2 {
    width: 200px;
    height: 200px;
    background-image: url(../img/demon2.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 230px;
    right: 200px;
    animation: float 3s infinite linear;
}

@keyframes float {
    from {
        transform: rotate(0deg) translate3d(5px, 0, 0) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translate3d(5px, 0, 0) rotate(-360deg);
    }
}

/* TABLA */
table {
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: .5em;
}

th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) {
    text-align: right;
    padding-right: 1em;
}


tr:nth-child(2n) td {
    background-color: rgba(0, 0, 0, .5);
}

tr td:first-child {
    border-radius: 10px 0 0 10px;
}

tr td:last-child {
    border-radius: 0 10px 10px 0;
}


.rojo::before {
    content: "";
    background-image: url(../img/Down.svg);
    background-size: contain;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
    position: relative;
}

.verde::before {
    content: "";
    background-image: url(../img/Up.svg);
    background-size: contain;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
    position: relative;
}

/* FOOTER */

footer {
    background: #111;
    color: darkgrey;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1em;
}

footer p {
    font-size: .8em;
    padding: .5em;
    margin: 0;
}

footer a {
    color: grey;
    text-decoration: none;
}
