html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    background-image: url('https://i.imgur.com/8iDmecr.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

#border {
    position: absolute;
    z-index: 99;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeBorder 3s ease 1.5s 1 normal forwards;
}

@keyframes fadeBorder {
    from {
        opacity: 0;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


#playby {
    order: 2;
    max-height: 100vh;
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    animation: playbyFade 3s ease 0s 1 normal forwards;
}

@keyframes playbyFade {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateX(10%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


#content {
    flex: 1;
    order: 1;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

#name {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    opacity: 0;
    animation: fadeInName 3s ease 1s 1 normal forwards;
}

@keyframes fadeInName {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#title {
    display: block;
    max-width: 100%;
    margin-top: auto;
    margin-right: 0;
    margin-left: auto;
    margin-bottom: 50px;
    animation: fadeInTitle 2s ease 2s 1 normal forwards;
    opacity: 0;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateX(55px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#poem1,
#poem2,
#poem3,
#poem4 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    max-width: 85%;
    opacity: 0;
}

#poem1 {
    animation: fadeInFromLeft 2s ease 4.0s 1 normal forwards;
}
#poem2 {
    animation: fadeInFromRight 2s ease 5.0s 1 normal forwards;
}
#poem3 {
    animation: fadeInFromLeft 2s ease 6.0s 1 normal forwards;
}
#poem4 {
    animation: fadeInFromRight 2s ease 7.0s 1 normal forwards;
    margin-bottom: 0;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}