/* --- Styles for the homepage --- */

:root {
    --fantasy-font: 'Cinzel', serif;
}

body {
    margin: 0;
    font-family: sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden;
}

/* This pseudo-element creates the translucent overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0; /* Sits just above the body's base color */
    background-color: var(--bg-color);
    opacity: 0.85;
    transition: background-color 0.3s ease;
}

/* The body::after pseudo-element for the border has been REMOVED */

/* The background is now fixed and sized properly */
.portal-background {
    position: fixed;
    top: -5%; /* Start slightly off-screen */
    left: -5%;
    width: 110%; /* Slightly larger than viewport to allow for movement */
    height: 110%;
    z-index: -1; /* Placed behind everything */
    background-image:
        radial-gradient(circle at 60% 40%, rgba(120, 0, 255, 0.3), transparent 40%),
        radial-gradient(circle at 45% 55%, rgba(0, 255, 221, 0.3), transparent 40%),
        url('../images/flowers-background.gif');
    background-blend-mode: screen;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-out;
}

main {
    padding: 0;
    transition: margin-left 0.3s ease;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    position: relative;
    z-index: 2; /* Main content is above the overlay */
}

main.shifted {
    margin-left: 250px;
}

.portal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* --- Floating Content --- */
.welcome-content {
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 1px 5px var(--bg-color);
    transform: translateZ(50px);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateZ(50px) translateY(0);
    }
    50% {
        transform: translateZ(50px) translateY(-20px);
    }
}

.welcome-content h1 {
    font-family: var(--fantasy-font);
    font-size: 4em;
    margin: 0;
    letter-spacing: 5px;
}

.welcome-content p {
    font-size: 1.3em;
    margin: 15px 0 30px;
    opacity: 0.9;
}

/* --- Stylized "Enter" Button --- */
.enter-button {
    display: inline-block; /* ADDED: Ensures proper box model for centering */
    font-family: var(--fantasy-font);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    padding: 12px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.enter-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--text-color);
    transform: scale(1.05);
}
