* {
    padding: 0;
    margin: 0;
}

/* Fuentes */
@font-face {
    font-family: "CrimsonText";
    src: url("CrimsonText-Regular.ttf");
}
/* Fuentes */
@font-face {
    font-family: "HandWrite";
    src: url("HandWrite.ttf");
}

/* Estilo de la barra de scroll del navegador */
::-webkit-scrollbar {
    width: 12px; /* Ancho de la barra de desplazamiento */
}
::-webkit-scrollbar-track {
    background-color: #b0a080; /* Color del fondo de la barra de desplazamiento */
}
::-webkit-scrollbar-thumb {
    background-color: #756950; /* Color de la barra de desplazamiento */
    border-radius: 6px; /* Radio de borde de la barra de desplazamiento */
}

*::selection {
    background-color: #b0a080;
    text-shadow: 0px 0px 0px #00000000;
}

body {
    background-color: #dfceaf;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Contenedor del poema con efecto de hoja envejecida */
.hoja {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    background-color: #f0e4c4;
    width: 80%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    color: #4a3f35;
    font-size: 30px;
    line-height: 1;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2),
                inset 0px 0px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #d0bda7;
    overflow: hidden; /* Para ocultar el exceso de sombras */
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Bordes irregulares en el contenedor del poema */
.hoja::before,
.hoja::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent 70%);
    z-index: 1;
}

.hoja::before {
    top: -5px;
    left: -5px;
    border-radius: 10px;
}

.hoja::after {
    bottom: -5px;
    right: -5px;
    border-radius: 10px;
}

/* Manchas irregulares en el contenedor */
.hoja .mancha {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.1), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.1), transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(0, 0, 0, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg); /* Rotación leve para añadir variación */
}

.mancha1 { width: 90px; height: 60px; top: 10%; left: 20%; }
.mancha2 { width: 110px; height: 80px; bottom: 15%; right: 15%; }
.mancha3 { width: 70px; height: 50px; top: 50%; left: 60%; }

/* Efecto de quemadura en la esquina inferior derecha */
.hoja::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.6), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(25%, 25%);
}
p {
    font-family: HandWrite;
    z-index: 10;
}
h1 {
    font-family: HandWrite;
}
#copyLabel {
    font-family: none;
    color: #4a3f35;
    z-index: 10;
    cursor: help;
    font-size: 20px;
    opacity: 0.14 !important;
    text-decoration: none !important;
    /* text-align: justify; */
}

/* Cambiar fuente de SweetAlert2 */
.swal2-popup {
    font-family: 'Arial', sans-serif;
}
/* Redondear imágenes dentro de SweetAlert2 */
.swal2-image {
    border-radius: 15px; /* Ajusta el valor para cambiar el redondeado */
}

@media(max-width:400px) {
    .hoja {
        gap: 20px;
        background-color: #f0e4c4;
        width: 70%;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    #copyLabel {
        opacity: 0.05 !important;
    }
}