/* TEMPLATE GLOBAL */
@import url("./../modules/fonts.css");
@import url("./../modules/vars.css");


body {
    margin: 40px 60px;
    padding: 0;
    background-color: black;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: calc(60vw - 60px) calc(30vw - 60px);
    column-gap: 150px;
    color: var(--text-color);
    font-family: var(--font-text);
    font-size: var(--text-size);
}

::-webkit-scrollbar {
    width: 1vw;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(244, 240, 247);
}

@keyframes rotate {
    0% {
        font-variation-settings: "rttx" 0;
        animation-timing-function: cubic-bezier(0.5, 0.0, 1, 0.5);
    }

    25% {
        font-variation-settings: "rttx" 90;
        animation-timing-function: cubic-bezier(0.0, 0.5, 0.5, 1);
    }

    50% {
        font-variation-settings: "rttx" 180;
        animation-timing-function: cubic-bezier(0.5, 0.0, 1, 0.5);
    }

    75% {
        font-variation-settings: "rttx" 270;
        animation-timing-function: cubic-bezier(0.0, 0.5, 0.5, 1);
    }

    100% {
        font-variation-settings: "rttx" 360;
    }
}

h2 {
    font-family: var(--font-titles);
    font-size: var(--titles-size);
    animation: rotate 2s infinite;
    letter-spacing: -0.1em;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

div {
    line-height: 1.6;
    text-wrap: pretty;
}

a {
    text-decoration: none;
    width: max-content;
    height: max-content;
    box-shadow: none;
    border: none;
    text-align: center;
    line-height: 1.6;
    font-size: .85em;
    font-style: italic;
    color: rgb(244, 240, 247);
    cursor: cell;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: .8px;
}

.left-column {
    grid-column: 1/2;
    width: calc(45vw - 60px);
    padding: 0;
}

p.author {
    font-size: .85em;
    font-family: var(--font-mono);
    text-decoration: none;
    text-align: left;
    width: 450px;
}

i {
    font-style: italic;
}

.right-column {
    grid-column: 2/3;
    width: calc(45vw - 60px);
    padding: 0;
    margin-bottom: 80px;
}

span {
    display: inline;
    width: max-content;
    color: rgb(244, 240, 247);
}

footer {
    position: fixed;
    z-index: 999;
    bottom: 0px;
    padding-bottom: 30px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: black;
}

#HOME,
#NEXT {
    border: solid 1px rgba(244, 240, 247);
    padding: 1px 8px;
}

#NEXT {
    margin-right: 120px;
}


/* SPECIFIC FEATURES */
/* Refresh Button */
#refresh {
    font-family: var(--font-mono);
    font-size: .85em;
    animation: blink 2s linear infinite;
    cursor: pointer;
    position: fixed;
    top: 315px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Poem */
.strophe {
    margin-bottom: 40px;
}

.vers {
    display: block;
}

.random-place {
    position: absolute;
    z-index: 998;
    font-size: 15px;
    letter-spacing: .3em;
}

@media screen and (min-width: 1251px) and (max-width: 1400px) {

    /* MAIN TITLE */
    h2 {
        font-size: 4.5em;
        margin-top: 0px;
    }
}