@font-face {
    font-family: "Cardo";
    src: url("/util/font/Cardo-Regular.ttf") format("truetype");
    font-style: normal;
}
@font-face {
    font-family: "Roboto";
    src: url("/util/font/Roboto-Regular.ttf") format("truetype");
    font-style: normal;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f2efe9;
    --text: #766f65;
    --highlight: #4d463d;
    --highlightb: #d0cbc1;
    --border-dark: #c5bfae;
}

::selection {
    background: var(--highlight);
    color: var(--bg);
}

.tooltip {
    display: inline;
    position: relative;
}

#s-m-t-tooltip {
    max-width: 300px;
    border-radius: 0;
    margin: 20px 7px -2px 20px;
    background-color: var(--bg);
    color: var(--highlight);
    z-index: 999999;
    filter: sepia(0.3) brightness(0.95);
    border: 4px solid transparent;
    border-image: url("https://satanas-in-solitudine.neocities.org/src/border2.png") 20;
    padding: 0 5px;
}

.page-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/src/turner_angel.jpg");
    background-position: center -600px;
    background-repeat: repeat;
    background-size: cover;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    filter: sepia(1) brightness(1.2);
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    font-family: "Cardo", "Times New Roman", serif;
    animation: fadein 2s forwards;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

h1 {
    font-size: 2rem;
    font-weight: normal;
    color: var(--highlight);
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--highlight);
}

h3 {
    font-size: 1.2rem;
    font-weight: normal;
}

p {
    padding: 6px 0;
}

a {
    color: var(--highlight);
    transition:
        color 0.2s ease,
        filter 0.2s ease,
        text-decoration-color 0.2s ease;
    text-decoration: underline 1px dotted var(--highlight);
}

a:hover {
    filter: brightness(0.7);
    text-decoration-style: solid;
}

a:visited {
    filter: saturate(0.5);
}

.container {
    width: 100%;
    max-width: 750px;
    background: rgba(247, 245, 240, 0.75);
    z-index: 100;
    position: relative;
    border: 10px solid transparent;
    padding: 20px;
    border-image: url("https://satanas-in-solitudine.neocities.org/src/border.png") 8;
    border-radius: 15px;
    box-shadow: 0 0 80px 60px var(--bg);
}

#title {
    font-size: 18px;
    display: block;
    color: var(--highlight);
    margin-bottom: 10px;
}

footer {
    padding-top: 20px;
    font-style: normal;
    font-size: 0.9em;
}

button,
.button {
    display: inline-block;
    background: var(--bg);
    color: var(--highlight);
    border-radius: 5px;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
    border: 5px solid transparent;
    border-image: url("https://satanas-in-solitudine.neocities.org/src/border2.png") 9;
    padding: 3px 8px;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    filter: brightness(0.85);
}

hr {
    border: none;
    border-bottom: 1px dotted var(--highlightb);
    margin: 15px 0;
}

.row {
    display: flex;
    gap: 15px;
}

.aNav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: max-content;
}

.aNav a {
    background: var(--bg);
    display: block;
    border: 1px solid var(--border-dark);
    border-right: none;
    border-bottom: none;
    transition:
        transform 0.25s ease,
        padding 0.25s ease,
        filter 0.25s ease;
    padding: 4px 8px;
    text-decoration: none;
}

.aNav a:hover {
    transform: translateX(-10px);
    padding-right: 18px;
    filter: brightness(0.85);
}

@media (max-width: 700px) {
    body {
        align-items: flex-start;
        padding: 20px 10px;
    }
    .row {
        flex-direction: column;
    }
    .aNav {
        min-width: 100%;
    }
    .aNav a:hover {
        transform: translateX(0);
        padding-right: 8px;
    }
}
