/* BattleScroll/portal-style.css */

:root {
    --main-red: #8c1818;
    --font-title: 'IM Fell English SC', serif;
    --font-header: 'Marcellus SC', serif;
    --font-body: 'Libre Baskerville', serif;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
}

.portal-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('assets/tab-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.portal-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.portal-header, .portal-choices {
    position: relative;
    z-index: 2;
}

.portal-header h1 {
    font-family: var(--font-title);
    font-size: 6rem;
    margin: 0;
    font-weight: normal;
}

.portal-header p {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    letter-spacing: 1px;
}

.portal-choices {
    display: flex;
    gap: 2rem;
}

.choice-card {
    background-color: rgba(26, 26, 26, 0.7);
    border: 2px solid #4a4a4a;
    border-radius: 5px;
    padding: 2rem 3rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 300px;
}

.choice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--main-red);
}

.choice-card h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    color: #f0f0f0;
    margin: 0 0 0.5rem 0;
}

.choice-card p {
    margin: 0;
    color: #a1a1a1;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
}

.modal-content {
    background-color: #fdfbf5; /* Parchment Color */
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    width: 90%;
    max-width: 450px;
    text-shadow: none;
    color: #3d3d3d;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.hidden {
    display: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}
.close-button:hover {
    color: #3d3d3d;
}

/* Re-using styles from auth-style.css inside the modal */
.modal-content h1 {
    font-family: var(--font-header);
    color: var(--main-red);
    border-bottom: 1px solid #c8c0b2;
    padding-bottom: 1rem;
    margin: 0 0 1rem 0;
    font-size: 2rem;
    text-shadow: none;
}
.portal-choices {
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .portal-header h1 {
        font-size: 4rem;
    }

    .portal-choices {
        flex-direction: column;
        align-items: center;
    }

    .choice-card {
        width: 80%;
        max-width: 300px;
        padding: 1.5rem 2rem;
    }
}

.modal-content .form-group label { color: #5c3c20; }
.modal-content .form-group input { background-color: rgba(0,0,0,0.05); border-color: #c8c0b2; color: #3d3d3d; }
.modal-content .auth-btn { background-color: var(--main-red); border: none; color: #fff; }
.modal-content .auth-btn:hover { background-color: #a12b2b; }
.modal-content .toggle-text { color: #555; }
.modal-content .toggle-text a { color: var(--main-red); }