@import url("fonts.css");

html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body {
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    font-weight: 400;

    color: #212529;
    text-align: left;
    display: grid;
    height: 100svh;
    background-image: url('/assets/un-segundo/images/bg-wood.jpg');
    background-image: url('/assets/un-segundo/images/bg-wood.jpg'), 
                      linear-gradient(45deg, #5d4431 0%, #7e6046 35%, #9e856b 100%);
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

.container {
    width: 92vw;
    height: 65.55vw;
    max-width: 125.375vh;
    max-height: 92vh;
    margin: auto;
    position: relative;
    background-image: url('/assets/un-segundo/images/paper.png');
    background-image: url('/assets/un-segundo/images/paper.png'),#fff;
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(-6px 4px 8px rgb(0, 0, 0, .25));
}

.slide {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: none;
    animation-name: fade;
    animation-duration: 1.5s;
    user-select: none;
    mix-blend-mode: multiply;
}

.slide.active {
    display: block;
}

.title h1 {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    font-size: 3.5vmin;
    text-transform: uppercase;
}

.tale {
    font-size: 14px;
    font-weight: 500;
}

.tale p {
    margin-top: .75rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.tale p:first-child {
    margin-top: 0;
}

.tale p span[data-order] {
    opacity: 0;
    transition: opacity .5s ease-out;
}

.tale p span.active {
    opacity: 1;
}

.authors .content {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    font-size: 3vmin;
}

.authors .content h5,
.authors .content p {
    margin: 0;
}

.btn-home {
    position: fixed;
    top: 1rem;
    left: 2rem;
    padding: .25rem .5rem;
    display: flex;
    gap: .5rem;
    align-items: center;

    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    color: #fff;
    background-color: rgb(0, 0, 0, 0.25);
}

.btn-home svg {
    margin-top: 1px;
}

/* Utilities */

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}


/* Animations */
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}