/* ================================================== GLOBAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    color: #333;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

button {
    cursor: pointer;
    padding: 10px 20px;
}

button.unable {
    opacity: .5;
    pointer-events: none;
}

/* ================================================== DIVINE DIALOGUE */

#divine-dialogue {
    width: 100%;
    height: 100vh;
    padding: 10vh;

    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, .8);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0; left: 0;

    transition: 1s;
}

#divine-dialogue:not(.shown) {
    opacity: 0;
    pointer-events: none;
}

#divine-dialogue-text {
    margin-bottom: 5vh;
    font-size: 48px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ================================================== TOOLTIPS */

.tooltip {
    min-width: 20vw;
    max-width: 40vw;
    padding: 20px;

    color: #333;
    background-color: #fff;

    position: absolute;
    top: 0; left: calc(100% + 10px);
    z-index: 100;

    opacity: 0;
    pointer-events: none;
    transition: .4s;
}

:has(> .tooltip) {position: relative}
:has(> .tooltip):hover > .tooltip {opacity: 1}