/* IMPORT FONTS: MedievalSharp for headers, Lato for readable text */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=MedievalSharp&display=swap');

:root {
    --wood-dark: #3E2723;
    --text-main: #2b1b17;
    --gold: #FFD700;
    --parchment: #F4E4BC;
}

body,
html {
    margin: 0;
    padding: 0;
    /* Removed overflow: hidden to allow scrolling if content is added later */
}

/* Base container for the whole home page */
.home-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-color: #2b1b17;
    /* Dark and consistent with modals */
    background-image: url('/UI/Home_Background.gif');
    background-size: cover;
    background-position: center;
}

/* Distinct Top Navbar */
.home-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--wood-dark);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.animated-title {
    font-family: 'MedievalSharp', cursive;
    margin: 0;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(90deg, var(--gold) 0%, #fff 50%, var(--gold) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite, float 4s ease-in-out infinite;
    cursor: default;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}



.nav-btn {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 10px 25px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    /* Optional slight rounding for a cleaner look */
}

.nav-btn:hover {
    background-color: var(--gold);
    color: var(--wood-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    /* Subtle gold glow */
}

/* Home Content Area (Below Navbar) */
.home-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-title {
    color: var(--gold);
    text-align: center;
    font-family: 'MedievalSharp', cursive;
    font-size: 4rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-panel {
    background-color: #2b1b17;
    /* Very dark brown */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://www.transparenttextures.com/patterns/dark-leather.png');
    border: 4px solid var(--gold);
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    color: var(--parchment);
    animation: slideIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Shared Styles */
.form-title {
    font-family: 'MedievalSharp', cursive;
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--parchment);
}

.form-input {
    width: 100%;
    padding: 12px;
    background-color: rgba(244, 228, 188, 0.1);
    border: 1px solid var(--gold);
    color: white;
    border-radius: 4px;
    outline: none;
}

.form-input:focus {
    background-color: rgba(244, 228, 188, 0.2);
    box-shadow: 0 0 5px var(--gold);
}

.btn-submit {
    width: 100%;
    background-color: var(--gold);
    color: var(--wood-dark);
    border: none;
    padding: 15px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #e6c200;
}

.btn-submit:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.text-btn:hover {
    color: white;
}

.validation-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
}