:root {
    --border-radius-screen: 35px;
    --border-radius-site: 20px;
}

@keyframes slide-from-right {
    0% {
        transform: translateX(50%);
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slide-to-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-300%);
    }
}

html {
    border-radius: 5px;
}

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-optical-sizing: auto;
    color: #333333;
    background: #D60846;
}

p {text-align:center;}

header {
    width: 100%;
    position: relative;
    overflow: visible;
}

h1 {
    margin: 0 auto;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 2em;
    letter-spacing: .07em;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0 3px 6px rgba(0,0,0,.25);
}

@media screen and (min-width: 960px) and (max-height: 540px) {
    header {
        height: auto;
    }

    h1 {
        font-size: 72px;
        height: 100px;
    }
}

h2,
h2 + p {
    text-align: center;
    color: #FFFFFF;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;
    padding: 5% 2%;
    overflow: visible;

    aspect-ratio: 9/11;
}

@media screen and (min-width: 960px) and (max-height: 540px) {
    main {
        padding: 22% 2% 10% 2%;
        aspect-ratio: unset;
    }
}

#list {
    margin: 0 auto;
    padding: 0;

    display: block;
    flex: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.item {
    border-radius: var(--border-radius-site);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    background-color: #FFFFFF;
    color: #333333;
    max-width: 100%;
    font-size: 22px;
    line-height: 1.6;
}

.item span {
    display: block;
    font-size: 16px;

    @media screen and (min-width: 960px) and (max-height: 540px) {
        font-size: 20px;
    }
}

.item span.prefix {
    border-radius: var(--border-radius-site) var(--border-radius-site) 0 0;
    background-color: #333333;
    padding: .55em 1em;
    outline: 2px solid #333333;
    outline-offset: -1px;

    line-height: normal;
    color: #FFFFFF;
    text-align: center;
}

.item span.content {
    padding: 1em 1.5em;
    min-height: 4.75em;
}

.item-screen {
    border-radius: var(--border-radius-screen);
    box-shadow: 0 0.25vw 0.5vw rgba(0,0,0,.25);

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: fit-content;
    height: fit-content;
    margin: auto;
    opacity: 0;
}

.item-screen.show {
    opacity: 1;
    animation: slide-from-right .5s ease-in-out;
}

.item-screen.out {
    animation: slide-to-left .5s ease-in-out;
}

.item-screen span.prefix {
    border-radius: var(--border-radius-screen) var(--border-radius-screen) 0 0;
}