/* Include Cuter Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat:wght@400;600&display=swap');
:root {
    --primary-color: #790e2d; /* Deep Crimson/Maroon, often associated with Sacred Heart */
    --secondary-color: #f7e6e9; /* Light Pink/Creamy background */
    --accent-color: #e8a87c; /* Warm Orange/Tan for highlights */
    --text-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    /* This ensures the body takes up the full viewport */
    height: 100vh; 
    overflow-x: hidden;
}

/* p5.js Canvas Style */
#p5-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts the canvas behind all content */
}

/* Main Content Styling */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative; /* Stays on top of the canvas */
}

header h1 {
    margin: 0;
    font-size: 3em;
    letter-spacing: 3px;
    /* Fun script font for the title */
    font-family: 'Pacifico', cursive; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.content-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white box for readability */
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-color);
    min-height: 60vh;
    box-sizing: border-box;
}

/* Typography */
h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Navigation/Button Styles */
.school-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.nav-button, .contributor-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-button:hover {
    background-color: #a02047; /* Lighter maroon on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.contributor-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 15px;
    margin: 5px 0;
    text-transform: none;
}

.contributor-button:hover {
    background-color: #f0c3a2; /* Lighter accent on hover */
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* School/Art Pages */
.school-page ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.school-page li {
    display: inline-block;
}

#art-page button {
    background-color: #ccc;
    color: var(--text-color);
    padding: 5px 10px;
    margin-bottom: 20px;
    display: inline-block;
    cursor: pointer;
}

#art-page button:hover {
    background-color: #bbb;
}

/* Utility Class */
.hidden {
    display: none !important;
}

#home-button {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    font-size: 1.1em;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

#home-button:hover {
    background-color: #f0c3a2;
    transform: translateY(-50%) scale(1.05);
}

/* --- ART PAGE TYPOGRAPHY STYLES (UPDATED FOR DARK RED) --- */

/* New Dark Red Accent Color Variable */
:root {
    /* Define the new dark red accent color */
    --art-accent-color: #C62828; 
    /* Define a slightly lighter shade for sub-titles */
    --art-secondary-color: #D32F2F; 
}


/* Artist's Name Title */
#art-page #art-title {
    color: var(--art-accent-color); 
    /* NEW SIZE: Reduced from 3.5em to a more balanced 2.5em */
    font-family: 'Montserrat', sans-serif; 
    font-size: 2.5em; 
    font-weight: 700; 
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* Using the new accent color for the border */
    border-bottom: 3px solid var(--art-accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Description of Work Label (the <strong> tag) */
#art-page #art-content .content-label {
    /* COLOR: Dark Red */
    color: var(--art-accent-color); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; 
    margin-top: 30px;
    margin-bottom: 10px;
    /* BORDER: Dark Red */
    border-left: 5px solid var(--art-accent-color); 
    padding-left: 10px;
    font-size: 1.2em;
}

/* Title of Work (like 'Day in Your Shoes') */
#art-page #art-content h3 {
    /* COLOR: Dark Red */
    color: var(--art-accent-color); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 2em; 
    text-align: center;
}
.amazon-link-box {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--fuchsia); /* A contrasting pink */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.amazon-button {
    display: inline-block;
    background-color: var(--gold); /* Gold button */
    color: var(--sparkly-black); /* Dark text on gold */
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--gold); /* Gold border */
}

.amazon-button:hover {
    background-color: var(--hot-pink); /* Hot pink on hover */
    color: var(--white); /* White text on hover */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--white); /* White border on hover */
}

/* Sub-titles within the work (like 'Melissa' and 'Joseph') */
#art-page #art-content h4 {
    /* COLOR: Secondary Red (slightly lighter for hierarchy) */
    color: var(--art-secondary-color); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
    text-transform: capitalize; 
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.4em;
    border-bottom: 2px dashed var(--art-secondary-color);
    display: inline-block;
    padding-bottom: 2px;
}