/* =========================
   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;
}

a {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



/* =========================
   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/PDF 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;
}
}

.iframe-wrapper h3 {
    text-align: center;
	margin-top: 2.5rem;
    padding-bottom: 0.25rem;
}

.iframe-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;
}

.image-container a {
    display: block;
    width: 100%;
}

.image-container a img {
    display: block;
    width: 100%;
    height: auto;
}

/* Optional: subtle hover cue */
.image-container a:hover img {
    opacity: 0.95;
}

/* 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;*/
}

/* -------------------------------
   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%; 
    }
}



/* ---------------------------------------------------------------------------------
                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);
}    

.gallery-caption {
    display: flex;
    align-items: center;     /* vertical */
    justify-content: center; /* horizontal */
    height: 40px;            /* example */
    font-size: 0.8rem;
    color: var(--muted-text);
    text-align: center;
}

/* Gallery item wrapper */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* EDIT ICON – top-left */
.gallery-edit {
    position: absolute;
    top: 10px;
    left: 6px;
    z-index: 10;
    opacity: 0.8;
}

.gallery-edit:hover {
    opacity: 1;
}

/* DELETE ICON – top-right */
.gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    opacity: 0.8;
}

.gallery-delete:hover {
    opacity: 1;
}




/* ---------------------------------------------------------------------------------
                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;
}




/* ---------------------------------------------------------------------------------
                Tables
------------------------------------------------------------------------------------ */

/* =========================
   Table Container
   ========================= */
.table-container {
    overflow-x: auto; /* horizontal scroll on small screens */
    margin-bottom: 2rem;
}

caption {
  caption-side: top;
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}


/* =========================
   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;
    }
}



/* =======================================================================
						Form/Login
	======================================================================== /*
	
/* =========================
   Form/Login Page Layout
========================= */

.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
}

.form-container.login {
   min-height: calc(100vh - 225px); /* account for fixed header */
}

/* =========================
   Form Card
========================= */

.form-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);
}

.form-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
========================= */

.form-card label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.form-card input, textarea, select{
    width: 100%;
    padding: 0.6rem 0.7rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: #0e1428;
    color: var(--text-color);
}

.form-card input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(122,162,255,0.5);
}





/* =========================
   Button
========================= */

.form-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;
}

.form-button:hover {
    background: #9bb5ff;
}


/* =========================
   Browse Button
========================= */


input[type="file"]::file-selector-button {
    background: var(--accent-color);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}



/* =========================
   Links
========================= */

.form-links {
    margin-top: 1rem;
    text-align: center;
}

.form-links a {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* =========================
   small helper style
========================= */

.form-help {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    text-align: center;
}

/* =========================
   Form Error Message
========================= */
.form-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;
}

/* =========================
   Form Message
========================= */
.form-message {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(79, 83, 217, 0.15);
    color: var(--muted-text);
    font-size: 0.9rem;
    border-radius: 4px;
}

/* =========================
   Wider Form card for forms
========================= */

.form-card-wide {
  max-width: 740px;
}

/* =========================
   Multi-column row
========================= */

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* =========================
   Divider
========================= */

.form-divider {
  margin: 1.5rem 0;
  border-top: 1px solid #333;
}

/* =========================
   Checkbox
========================= */

.form-card input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.form-checkbox input {
  transform: scale(1.1);
}

/* Read-only fields */
.form-card input[readonly] {
  background: #1a1f2e;
  color: #aaa;
  cursor: not-allowed;
}








/* ===========================================================
				Icons
============================================================== */

/* Common base for all icons */
.icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 0.5rem;
    cursor: pointer;
}

/* ==============================
   ADD ICON (green plus)
================================= */
.icon.add::before,
.icon.add::after {
    content: '';
    position: absolute;
    background-color: #28a745; /* green */
    border-radius: 2px;
}

.icon.add::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
}

.icon.add::after {
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
}

/* ==============================
   DELETE ICON (red X)
================================= */
.icon.delete::before,
.icon.delete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #dc3545; /* red */
    border-radius: 2px;
}

.icon.delete::before {
    transform: translateX(-50%) rotate(45deg);
}

.icon.delete::after {
    transform: translateX(-50%) rotate(-45deg);
}

/* ==============================
   EDIT ICON (pencil)
   Simple pencil shape
================================= */
.icon.edit {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Body */
.icon.edit::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 4px;
    background: #ffc107;
    top: 10%;
    left: 2px;
    transform: translateY(-50%) rotate(135deg);
    border-radius: 2px;
}

/* Tip */
.icon.edit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%) rotate(135deg);
    width: 0;
    height: 0;
    border-left: 4px solid #5c4033;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

/* Eraser using box-shadow trick */
.icon.edit::before {
    box-shadow: -4px 0 0 #ff8fa3;
}







/* ===================================================================
					Social links
=======================================================================*/

.social-link {
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #ddd; 
}

.social-link.facebook {
    color: #1877f2; /* Facebook blue */
}

.social-link.facebook:hover {
    color: #ddd;
}

/* Instagram gradient vibe */
.social-link.instagram {
    color: #e1306c;
}

.social-link.instagram:hover {
    color: #ddd;
}





/* ========================================================================
   Photo Box (Amazon-style)
=========================================================================== */

.mini-gallery {
    max-width: 420px;
}

.mini-gallery-main {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #0e1428;
}

.mini-gallery-main img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

/* Thumbnails */
.mini-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
	justify-content: center; /* centers thumbnails horizontally */
}

.mini-gallery-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #0e1428;
}

.mini-gallery-thumbs img:hover {
    border-color: var(--accent-color);
}

.mini-gallery-thumbs img.active {
    border-color: var(--accent-color);
}


/* ===========================================================================
				Upload
============================================================================== */


/* Preview grid */
.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.upload-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}



/* =========================
   Photo Editor Layout
========================= */



/* =========================
   Preview Container
========================= */

.editor-preview {
    position: relative;      /* anchor toolbar */
    width: 100%;
    max-height: 70vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image */
.editor-preview img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
}


/* =========================
   Bottom Toolbar
========================= */

/* Remove absolute positioning */
.editor-toolbar {
    position: static;         /* now in normal flow */
    margin-top: 0rem;       /* space from image */
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;          /* wrap if small screen */
    gap: 0.5rem;

    padding: 0.75rem;
    background: rgba(0,0,0,0.65); /* glass effect */
    backdrop-filter: blur(6px);
    border-radius: 6px;       /* optional rounded panel */
    border: 1px solid rgba(255,255,255,0.1);
}


/* =========================
   Bottom Toolbar Buttons
========================= */
.editor-toolbar button,
.editor-toolbar .toolbar-form button,
.editor-toolbar .toolbar-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	background: var(--accent-color);
    color: #000;
    height: 32px;              /* unify height */
    padding: 0 0.8rem;         /* horizontal padding only */
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;    /* include padding in height */
}

/* Accent buttons hover */
.editor-toolbar button:hover,
.editor-toolbar .toolbar-form button:hover,
.editor-toolbar .toolbar-exit:hover {
    background: #9bb5ff;
    color: #000;
}

/* Danger button */
.editor-toolbar .danger-button {
    background: #ff0000;
    color: #fff;
}

/* Danger hover */
.editor-toolbar .danger-button:hover {
    background: #ff4d5e;
    color: #fff;
}


.toolbar-exit:hover {
    text-decoration: none; /* Remove the underline when the user hovers */
}


/* Ensure the select box matches height */
#aspectSelect {
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
	width: 10%;
    font-size: 0.85rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    cursor: pointer;
}

#aspectSelect:hover {
    background: #9bb5ff;
}



/* Aspect Ratio Lock button */
#toggleRatio {
    background: #6c757d; /* gray */
    color: #fff;
}

#toggleRatio.locked {
    background: #28a745; /* green when locked */
}

#toggleRatio.unlocked {
    background: #dc3545; /* red when unlocked */
}

#toggleRatio:hover {
    filter: brightness(1.2);
}


/* =========================
   Larger Crop Handles
========================= */
.cropper-point {
    width: 14px;
    height: 14px;
    position: relative;
}

/* Invisible grab padding */
.cropper-point::after {
    content: '';
    position: absolute;
    inset: -8px;   /* expands hit area */
}

.cropper-view-box {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
