/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5vw;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/YellowBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

body.bg-visible::before {
    opacity: 1;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Tiempos Fine', serif;
    font-size: 4.2vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: center;
    width: 94%;
    transition: color 0.3s ease;
}

h1 a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

h1:hover {
    color: #ffffff;
}

sup {
    font-size: 0.4em;
    vertical-align: super;
    margin-left: 0.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 20px;
        height: auto;
        min-height: 100vh;
    }
}
