/*Fonts*/

@font-face{
    font-family: 'Magic School';
    src: url("../fonts/MagicSchoolOne.ttf");
}
@font-face{
    font-family: 'Dumbledore';
    src: url(../fonts/dumbledor.1.ttf);
}

/*Variables*/

:root{
    --path-cromo: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    --path-number: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    --gold: hsl(45, 70%, 40%);
    --lightgold: hsl(43, 74%, 49%);
    --bg-color: hsl(191, 76%, 18%);
    --bg-color-cromo: hsl(253, 24%, 38%);
}

/*Styles*/

*{
    margin: 0;
    padding: 0;
}

html, body {
    cursor: url("../img/varita_32.png") 4 24, auto; 
}

html {
    font-size: 62.5%;
}

body{
    width: 100%;
    background-color: var(--bg-color);
    background-image: url("../img/brick-wall-dark.png");
}

h1{
    margin: 0.2rem 0;
    text-align: center;
    font-family: 'Magic School', serif;
    font-size: 6rem;
    color: var(--gold);
    text-shadow: 5px 5px 10px #000;
}

/*Cromo styles*/

.cromos{
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-flow: row wrap;
    gap: 2rem;
    filter: drop-shadow(0 0 5px hsl(0, 0%, 0%));
}

.cromos__cromo{
    width: 250px;
    height: 250px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--gold);
    clip-path: var(--path-cromo);
    -webkit-clip-path: var(--path-cromo);
    -moz-clip-path: var(--path-cromo);
    transition: transform 0.3s ease-in-out;
}

.cromos__cromo:hover {
    -webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);

}

.cromos__cromo::before{
    width: 240px;
    height: 240px;
    content: '';
    position: absolute;
    background: no-repeat center/100% url("../img/estrellas_cromo.png");
    background-color: var(--bg-color-cromo);
    clip-path: inherit;
}

.cromo__numero{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 15px;
    right: 85px;
    background-color: var(--lightgold);
    clip-path: var(--path-number);
}

.cromo__numero::before{
    width: 35px;
    height: 35px;
    content: '';
    position: absolute;
    background-color: var(--gold);
    clip-path: inherit;
}

.numero__numero{
    position: absolute;
    font-family: 'Dumbledore', serif;
    color: hsl(0, 0%, 100%);
    text-shadow: 1px 1px 5px #000;
    font-weight: bold;
    font-size: 3rem;
}

.cromos__cromo img{
    width: 200px;
    height: auto;
    position: absolute;
    top: 15px;
    left: 10.5%;
    filter: drop-shadow(3px 0 var(--gold)) drop-shadow(0 3px var(--gold)) drop-shadow(-3px 0 var(--gold))  drop-shadow(0 -3px var(--gold));
}

.cromo__nombre{
    width: 130px;
    height: 30px;
    line-height: 30px;
    position: absolute;
    top: 80%;
    left: 22%;
    text-align: center;
    font-family: 'Dumbledore', serif;
    font-size: large;
    font-weight: bold;
    color: var(--bg-color);
    text-shadow: 0px 0px 2px #ffffff;
    background-color: var(--gold);
    border: 4px solid var(--lightgold);
}

.nombre_peque{
    font-size: 1.8rem;
}

.nombre_muy_peque{
    font-size: 1.7rem;
}

/*Footer*/

footer{
    margin: 1.5rem 0 0.5rem 0;
}

footer p{
    text-align: center;
    color: var(--lightgold);
    font-family: 'Dumbledore', serif;
    font-size: 2rem;
}

footer p a {
    cursor: url("../img/pluma_32.png") 4 24, pointer; 
    text-decoration: none;
    color: var(--lightgold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*Media Queries*/

@media (320px <= width <= 480px) {
    .cromos{
        width: 100%;
    }
}