
/* --------------------------------------------------------------
   Root variables – colours, spacing and typography
   -------------------------------------------------------------- */
:root {
    /* Colours */
    --primary:      #333;
    --bg:           #0B3D2E;
    --secondary:    #fff;
    --accent:       #fff;
    --bg-dark:      #000;
    --text-light:   #f5f5f5;
    --text-dark:    #575757;
    --border:       #0B3D2E;
    --hover:        #0B3D2E;
    --spacing-sm:   0.5rem;
    --spacing-md:   1rem;
    --font-base:    14px;
}

/* --------------------------------------------------------------
   Global resets & box‑sizing
   -------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------
   Base page styling
   -------------------------------------------------------------- */
body {
    margin: 0;
    font-family: 'Alice', sans-serif;
    background: url(https://mystiquestar.com/images/bg.avif);
    font-size: var(--font-base);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
}

/* --------------------------------------------------------------
   Header
   -------------------------------------------------------------- */
header {
    text-align: center;
    background: var(--bg-dark);
    letter-spacing: 2px;
    font-family: serif;
    border-bottom: 1px solid var(--border);
    margin-top: -19px;
    color: var(--text-light);
}
header img {
    width: 155px;
    height: auto;
    margin-top: 2rem;
}

/* --------------------------------------------------------------
   Navigation
   -------------------------------------------------------------- */
nav {
    width: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-item {
    position: relative;
    margin: 0 1rem;
}
.nav-item > a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    padding: 0.75rem 1rem;
    display: inline-block;
    font-weight: 500;
    transition: color 1.3s ease;
    border-radius: 4px;
}
.nav-item > a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 1.3s ease;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}
.nav-item > a:hover::after,
.nav-item > a:focus::after {
    width: 80%;
}
.nav-item > a:hover,
.nav-item > a:focus {
    background: var(--hover);
    color: var(--text-light);
    outline: none;
}

/* --------------------------------------------------------------
   Dropdown menu
   -------------------------------------------------------------- */
.dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    min-width: 180px;
    z-index: 999;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease,
                visibility 1s ease,
                max-height 1s ease;
}
.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border-radius: 4px;
    margin: 0.25rem;
}
.dropdown a:hover,
.dropdown a:focus {
    background: #0B3D2E;
    outline: none;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
}

/* --------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------- */
.container {
    width: 95%;
    max-width: 1024px;
    margin: 1rem auto 1.5rem;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1rem;
    align-items: start;
}
.container2 {
    width: 98%;
    max-width: 1024px;
    margin: 0.5rem auto 0.5rem;
    display: grid;
    grid-template-columns: 1.3fr 4fr;
    gap: 1rem;
    align-items: start;
}

/* --------------------------------------------------------------
   Sidebar / main content cards
   -------------------------------------------------------------- */
.sidebar,
.center {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.sidebar h3 {
    margin-top: 0;
    color: var(--primary);
    font-family: "Alice", Georgia, serif;
	font-weight:100;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0;
}
#mooninfo { font-size: 12px; }
#moonphases { text-align: center; }

/* --------------------------------------------------------------
   Sections (animated appearance)
   -------------------------------------------------------------- */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease,
                transform 0.8s ease;
    margin: 1.5rem auto;
    width: 95%;
    max-width: 1024px;
    padding: 2.5rem;
    background: var(--secondary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
section h2 {
    font-family: "Alice", Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
	font-weight:100;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(209, 191, 163, 0.3);
    border-bottom: 1px solid #d1bfa34d;
    margin-top: 0;
}

/* --------------------------------------------------------------
   Form elements
   -------------------------------------------------------------- */
input,
textarea {
    outline: none;
    padding: 1rem;
    background: #fff;
    border: 1px solid #c9c9c9;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
    font-family: inherit;
    width: 100%;
}
input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(209, 191, 163, 0.3);
}

/* --------------------------------------------------------------
   Buttons
   -------------------------------------------------------------- */
button {
    color: var(--text-dark);
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent);
}
button:hover,
button:focus {
    background: var(--hover);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(209, 191, 163, 0.4);
    transform: translateY(-2px);
    outline: none;
    color: var(--text-light);
}

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */
footer {
    border-top: 1px solid #0a0a0a;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    width: 100%;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}
footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover,
footer a:focus {
    color: var(--accent);
    outline: none;
}

/* --------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------- */
h1,
h2 {
    font-family: "Alice", Georgia, serif;
    color: var(--primary);
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
	font-weight:100;
}
h1 { text-align: center; }


/* --------------------------------------------------------------
   Media Queries – Tablet & Mobile
   -------------------------------------------------------------- */
@media (max-width: 768px) {
    body { font-size: 16px; }

    header { font-size: 1.5rem; }

    nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        position: static;
        display: block;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease,
                    max-height 0.3s ease;
        transform: none;
        box-shadow: none;
        background: rgba(26, 26, 26, 0.95);
        margin-top: 0.5rem;
    }
    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
        opacity: 1;
        max-height: 300px;
    }

    .container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    section {
        padding: 1rem;
        margin: 1rem auto;
    }
    section h2 { font-size: 1.5rem; }

    footer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
	
	#hamburger {
		cursor: pointer;
		width: 50px;
		height: 50px;
		font-size: 2.3em;
		font-weight: 600;
		font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
		color: #000;
		display: block;
		z-index: 10001;
		position: absolute;
		right: 9px;
		top: 9px;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: geometricPrecision;
	}
	
	#hamburger-menu { display: none; }

}

@media (max-width: 480px) {
    header img { width: 100px; }

    .logo-fallback { font-size: 2rem; }

    section { padding: 1rem; }

    input,
    textarea,
    button { font-size: 16px; }

	#hamburger {
		cursor: pointer;
		width: 50px;
		height: 50px;
		font-size: 2.3em;
		font-weight: 600;
		font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
		color: #000;
		display: block;
		z-index: 10001;
		position: absolute;
		right: 9px;
		top: 9px;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: geometricPrecision;
	}
	
	#hamburger-menu { display: none; }
}

/* --------------------------------------------------------------
   Miscellaneous components
   -------------------------------------------------------------- */
p { margin-bottom: 1em; }

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}
th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
th { background-color: #e4d9f0; }
tr:nth-child(even) { background-color: #f2f2f2; }

/* Right‑hand ad panel (commented out – keep for future use) */
/*
#right {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 250px;
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
}
*/
#right h3 {
    text-align: center;
    font-family: "Alice", Georgia, serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
	font-weight:100;
}
#right img { max-width: 100%; border-radius: 12px; }

/* Spread / card layout */
#spread {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
    gap: 10px;
}
#spread > * {
    flex: 1 1 80px;
    min-width: 80px;
}
.card { width: 80px; }
.image-container { display: flex; justify-content: center; }
.p-center { text-align: center; font-size: 12px; }
.cardtext {}

/* Tarot specific sections */
#tarot { padding: 0.5rem; }
#card-of-the-day,
#weekly-spread {
    box-shadow: unset;
    padding: 0.1em;
}

/* Copyright */
#copyright { display: block; text-align: center; }


.hamburger-menu.active {
    display: block !important;
}

.hamburger.active::before {
    content: "✕";
	color: #fff;
	z-index:100000;
}