/* =========================
   Base / Theme
   ========================= */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
}




/* =========================
   Content
   ========================= */

h1, h2, h3 {
    color: var(--text-color);
    line-height: 1.3;
}
h2 {
	font-weight: bold;
	font-size: 110%;
}

h3 {
	font-weight: bold;
}

p {
    margin-bottom: 1rem;
}

main.content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main.content h2 {
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--nav-divider);
    padding-bottom: 0.25rem;
}

main.content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

main.content li {
    margin-bottom: 0.4rem;
}

blockquote {
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    max-width: 700px;
    border-left: 4px solid var(--accent-color);
    background: var(--sub-bg-color);
    font-style: italic;
    color: var(--text-color);
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
}

.intro h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted-text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.center {text-align: center}


/* =========================
   Footer
   ========================= */

.site-footer {
    border-top: 1px solid var(--nav-divider);
    margin-top: 3rem;
    padding: 1.5rem 1rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
}


/* ---------------------------------------------------------------------------------
                Bubbles
------------------------------------------------------------------------------------ */

/* All Screens including Phone */

div.bubble {
border:2px solid var(--accent-color);
padding:10px 40px;
background:var(--sub-bg-color);
width:100%;
border-radius:25px;
-moz-border-radius:25px; /* Firefox 3.6 and earlier */
}

/* Tablet Screen */
@media only screen and (min-width: 768px) {
    div.bubble {
        width:90%; margin-left:5%; margin-right:5%;
    }
    
}

/* Desktop Screen */
@media only screen and (min-width: 1170px) {
    div.bubble {
        width:70%; margin-left:15%; margin-right:15%;
    }
}



/* ---------------------------------------------------------------------------------
                YouTube/Google Calendar iframes
------------------------------------------------------------------------------------ */

/* All Screens including Phone */

iframe {
    height:280px;
    width:373px;
}


/* Tablet Screen */
@media only screen and (min-width: 768px) {
    iframe {
    height:400px;
    width:532px;
}
    
}

/* Desktop Screen */
@media only screen and (min-width: 1170px) {
    iframe {
    height:700px;
    width:931px;
}
}

.youtube-wrapper h3 {
    text-align: center;
	margin-top: 2.5rem;
    padding-bottom: 0.25rem;
}

.youtube-wrapper p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}



/* =============================================================================
   Picture Left / Text Right Module (GRID – STABLE)
   ============================================================================= */

/* -------------------------------
   Mobile First (Stacked Layout)
   ------------------------------- */

.dual-pane-container {
    display: grid;
    grid-template-areas:
        "title"
        "image"
		"text";
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

/* Image */
.image-container {
    grid-area: image;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text block */
.content-container {
    display: contents; /* lets title/text control layout */
}

.content-container h3 {
    grid-area: title;
    color: #A3A3A3;
    font-family: audiowide-regular-webfont;
    font-size: 150%;
    text-transform: uppercase;
    margin: 0;
}

.content-container p {
    grid-area: text;
    color: var(--text-color);
    font-family: Arial, sans-serif;
    /*font-size: 14px;
    line-height: 24px;*/
}

.content-container a {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: underline;
}
/* -------------------------------
   Tablet & Desktop
   ------------------------------- */

@media only screen and (min-width: 768px) {

}

/* -------------------------------
   Large Desktop
   ------------------------------- */

@media only screen and (min-width: 1170px) {

    .dual-pane-container.img-left {
		grid-template-areas:
            "image title"
            "image text";
        grid-template-columns: 300px 1fr;
		grid-template-rows: 30px auto; /* Two explicit rows */
		row-gap: 0;
		align-items: start;
    }
	
	.dual-pane-container.img-right {
		grid-template-areas:
            "title image"
            "text image";
        grid-template-columns: 1fr 300px;
		grid-template-rows: 30px auto; /* Two explicit rows */
		row-gap: 0;
		align-items: start;
    }
	
	.content-container {
		display: contents; /* lets title/text control layout */
		border: 3px solid red; /* Width, style, color */
		
	}
	
}




/* ---------------------------------------------------------------------------------
                Simple line
------------------------------------------------------------------------------------ */

hr {
    width:70%; margin-left:15%; margin-right:15%;
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--hr-line-color);
    padding: 0;
}


/* ---------------------------------------------------------------------------------
                Images
------------------------------------------------------------------------------------ */


/* All Screens including Phone */

img.full {
    max-width: 100%; 
    border-radius: 25px;
}

/* Tablet Screen */
@media only screen and (min-width: 768px) {
    img.full {
        max-width: 90%; 
    }
}

/* Desktop Screen */
@media only screen and (min-width: 1170px) {
    img.full {
        max-width: 70%; 
    }
}

/* ---------------------------------------------------------------------------------
                Forms
------------------------------------------------------------------------------------ */



/* Create a form layout with CSS */
.form {width: 100%; height: 100%;margin: 0;}
.formrow {width: 100%; min-height: 1px; height: auto; margin: 0 auto;}
.inputleft {padding: .25em; width: 40%;}
.inputright {padding: .25em; width: 40%;}
.textarea {width: 150px;}

@media only screen and (min-width: 768px) {
    .inputleft {margin: 0 auto;}
    .inputright {margin: 0 auto;}
    .textarea {width: 200px;}
}
@media only screen and (min-width: 1170px) {
    .inputleft {float: left; width: 40%;}
    .inputright {float: left; width: 40%;}
    .textarea {width: 200px;}
}    




/* ---------------------------------------------------------------------------------
                Break
------------------------------------------------------------------------------------ */

.break {clear: both; width:100%; margin-bottom: 2.5em;}
@media only screen and (min-width: 768px) {
    .break {width:100%; margin-bottom: 2.5em;}
}
@media only screen and (min-width: 1170px) {
    .break {width:100%; margin-bottom: 2.5em;}
}


/* ---------------------------------------------------------------------------------
                Photo Galary
------------------------------------------------------------------------------------ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}    

/* ---------------------------------------------------------------------------------
                Card
------------------------------------------------------------------------------------ */

.card-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--sub-bg-color);
    border: 1px solid #1a1f35;
    padding: 1.5rem;
    border-radius: 6px;
}

.card h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.card p {
    color: var(--muted-text);
}

.card a {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}



/* ---------------------------------------------------------------------------------
                Modular Forms
------------------------------------------------------------------------------------ */
	.form-group {
		    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* default: single column */
	}

  form {

  }

  /* =========================
     Form Block
  ========================= */
  .form-block {
    background-color: var(--sub-bg-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
	margin-bottom: 1rem;
  }

  .form-block label {
    font-weight: bold;
    margin-bottom: 0rem;
  }

  .form-block input,
  .form-block select,
  .form-block textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    font-size: 1rem;
  }

  .form-block textarea {
    resize: vertical;
  }

  /* =========================
     Responsive Grid
  ========================= */
  @media(min-width: 768px) {
    form {

    }
	.form-group {
				grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
	
	.form-block.two-column {
		grid-column: span 2;
	}

	.form-block.three-column {
		grid-column: span 3;
	}

	.form-block.four-column {
		grid-column: span 4;
	}

	.form-block.five-column {
		grid-column: span 5;
	}
	
	.form-block.six-column {
		grid-column: span 6;
	}

	.form-block.seven-column {
		grid-column: span 6;
	}
	
	.form-block.eight-column {
		grid-column: span 6;
	}
  }

  /* =========================
     Submit Button
  ========================= */
  button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    grid-column: 1 / -1; /* span full width */
  }

  button:hover {
    background-color: #0056b3;
  }



/* ---------------------------------------------------------------------------------
                Tables
------------------------------------------------------------------------------------ */

/* =========================
   Table Container
   ========================= */
.table-container {
    overflow-x: auto; /* horizontal scroll on small screens */
    margin-bottom: 2rem;
}

/* =========================
   Base Table Styles
   ========================= */
table.modular-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    color: var(--text-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 1px var(--nav-divider);
    border-radius: 6px;
    overflow: hidden;
}

/* Header + cells */
table.modular-table th,
table.modular-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--nav-divider);
}

/* =========================
   Table Header
   ========================= */
table.modular-table th {
    background: var(--nav-header-bg);
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* =========================
   Alternating Row Colors
   ========================= */
table.modular-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

table.modular-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================
   Hover Effect
   ========================= */
table.modular-table tbody tr:hover td {
    background: rgba(122, 162, 255, 0.15);
}

/* =========================
   Links inside tables
   ========================= */
table.modular-table a {
    color: var(--accent-color);
    text-decoration: none;
}

table.modular-table a:hover {
    text-decoration: underline;
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 768px) {
    table.modular-table th,
    table.modular-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}


/* =========================================================
   Moon Calendar
============================================================ */
.moon-phase-calendar {
    max-width: 1000px;
    margin: 2rem auto;
    text-align: center;
}

.phase-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.phase img {
    width: 100%;
    max-width: 150px;
}

.phase-label {
    font-weight: bold;
    margin-top: 0.5rem;
}

.phase-date {
    margin-top: 0.25rem;
    color: var(--muted-text);
}

/* Mobile */
@media (max-width: 800px) {

	
	.phase img {
    max-width: 75px;
	}
}



/* =====================================================
					Calendar
======================================================== */

/* =========================
   FullCalendar Dark Theme
   ========================= */

/* Container background */
#calendar {
	max-width: 1000px; /* desktop width */
	margin: 0 auto;    /* centers horizontally */
    background-color: #111; /* match site background */
    color: #eee;
    border: 1px solid #222;
    border-radius: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header row: day names (Sun, Mon, etc.) */
#calendar .fc-col-header,
#calendar .fc-col-header-cell {
    background-color: #1a1a1a; /* dark header background */
    color: #eee;               /* light text */
    border-bottom: 1px solid #222; /* subtle divider */
    font-weight: 600;
    text-transform: uppercase;
}

/* Individual header cell padding */
#calendar .fc-col-header-cell-cushion {
    padding: 0.5rem 0.25rem;
}

/* Day cells */
#calendar .fc-daygrid-day {
    background-color: #111;  /* match site background */
    border: 1px solid #222;  /* subtle grid lines */
}

/* Today highlight */
#calendar .fc-daygrid-day.fc-day-today {
    background-color: #222; /* slightly lighter for today */
}

/* Events */
#calendar .fc-event {
    background-color: #7aa2ff; /* your accent color */
    color: #111;               /* dark text for contrast */
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Event hover effect */
#calendar .fc-event:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Event tooltip */
.fc-event-tooltip {
    background-color: #222;
    color: #eee;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #444;
    max-width: 250px;
}

/* Optional: scroll bar for long month view */
#calendar .fc-scrollgrid {
    scrollbar-width: thin;
    scrollbar-color: #555 #111;
}

#calendar .fc-scrollgrid::-webkit-scrollbar {
    width: 8px;
}

#calendar .fc-scrollgrid::-webkit-scrollbar-track {
    background: #111;
}

#calendar .fc-scrollgrid::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

/* Make all links/events accessible and visible */
#calendar a.fc-event {
    text-decoration: none;
    color: inherit;
}

/* Responsive for tablets */
@media (max-width: 1024px) {
    #calendar {
        max-width: 700px;
    }
}

/* Responsive for phones */
@media (max-width: 600px) {
    #calendar {
        max-width: 100%;
        font-size: 0.85rem; /* text shrink */
    }
	
	.fc .fc-toolbar-title {
        font-size: 1.05rem; /* Toolbar test shrink */
    }
}









/* =======================================================================
						Login
	======================================================================== /*
	
/* =========================
   Login Page Layout
========================= */

.login-container {
    min-height: calc(100vh - 225px); /* account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
}

/* =========================
   Login Card
========================= */

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--sub-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.login-title {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-family: audiowide-regular-webfont;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* =========================
   Inputs
========================= */

.login-card label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.login-card input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: #0e1428;
    color: var(--text-color);
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(122,162,255,0.5);
}

/* =========================
   Button
========================= */

.login-button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-button:hover {
    background: #9bb5ff;
}

/* =========================
   Links
========================= */

.login-links {
    margin-top: 1rem;
    text-align: center;
}

.login-links a {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* =========================
   small helper style
========================= */

.login-help {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    text-align: center;
}

/* =========================
   Login Error Message
========================= */
.login-error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-left: 4px solid #d9534f; /* subtle red accent */
    background: rgba(217, 83, 79, 0.15);
    color: #ff0000;
    font-size: 0.9rem;
    border-radius: 4px;
}