*, *::before, *::after {
  box-sizing: border-box;
}

body {
	padding: 0px;
	margin: 0px;
	font-family: "Raleway", sans-serif;
  font-style: normal;
}

#newsbar {
	background-color: #FFE5D9;
	padding: 10px;
	text-align: center;
}

#titlebar {
	background-color: #67d4bc;
	padding: 0px;
	padding-bottom: 10px;
	border-bottom: 1px solid grey;
	color: #555555;

}

	#logo{}

	img.logo {
		display: block;
		margin-left: auto;
		margin-right: auto;
		padding: 10px;
		height: 200px;
	}
	
	.address {
		margin-top:10px;
		text-align: center;
	}	

#navbar {
	display: block;
	text-align: center;
	color: #555555;
	padding: 10px;
	margin-top: 10px;
	margin-left: auto;
	margin-right: auto;
	border-top: 1px solid;
	border-bottom: 1px solid;
}

	#navbar a {
		text-decoration: none;
		color: #555555;
	}

	#navbar .button {
		padding: 10px;
		text-transform: uppercase;
	}

/* Thank you page */
.thanks {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100vh;              /* NOT min-height */
  padding: 40px;
  background: white;
  border-top: 1px solid grey;

  box-sizing: border-box;     /* critical */
  overflow: hidden;           /* safety net */
}

.thanks img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* Big slider on index page */

.bigpic {
	display: block;
	border-top: 1px solid grey;
	margin-top: 10px;
	margin-left: auto;
	margin-right: auto;
}

	.bigpic img {
		object-fit: cover;
		width: 100%;
	}

#about {
	background-color: white;
	display: block;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}

	.biopic {}
	
	.biopic img {}
	
	.writeup {}

/* Contact Info and Hours Page */
#contact-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

#titlebar h1 {
    text-align: center;
    color: #555555;
    font-size: 2.5rem;
}

.contact-info, .business-hours, .map {
    background-color: #f9f9f9; /* Subtle background for each section */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.contact-info h2, .business-hours h2 {
    font-size: 1.75rem;
    color: #5b3c88; /* Accent color */
    margin-bottom: 20px;
    border-bottom: 2px solid #5b3c88;
    padding-bottom: 5px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
    color: #555;
}

.info-item a {
    color: #67d4bc; /* Accent color for links */
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.business-hours p {
    font-size: 1.1rem;
    color: #555;
}

.map iframe {
    border: 0;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #contact-page {
        padding: 15px;
    }

    #titlebar h1 {
        font-size: 2rem;
    }

    .contact-info, .business-hours, .map {
        padding: 15px;
    }

    .info-item p {
        font-size: 1rem;
    }

    .business-hours p {
        font-size: 1rem;
    }
}


/* FOOTER */

#footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #b996cd;
    color: #555555;
    padding: 30px 20px; /* Increased top and bottom padding for more space */
    text-align: center;
}

#blurb {
    flex: 1 1 35%;
    padding-right: 30px;
    text-align: left;
    margin-left: 5%;
}

#blurb p {
    margin-top: 10px;
    line-height: 1.5;
}

#nav {
    flex: 1 1 20%;
    padding-right: 30px;
    text-align: left;
    padding-bottom: 20px;
    margin-left: 0; /* remove this */
}

#footer a {
    text-decoration: none;
    color: #555555;
}

#footer .title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px; /* More space below the title */
}

#footer .button {
    display: block;
    margin: 10px 0; /* More space between each button */
}

.mailinglist {
    flex: 1 1 35%;
    padding-left: 30px;
    text-align: left;
    margin-bottom: 20px;
}

.mailinglist .title {
    margin-bottom: 10px;
}

.mailinglist input[type="email"] {
		display: none;
    padding: 10px;
    font-size: 1rem;
    width: 75%; /* Increased width to give it more space */
    margin-right: 10px;
    border: 1px solid #ccc; /* Light border for input */
    border-radius: 5px; /* Slightly rounded corners */
}

.mailinglist button {
		display: none;
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #555555;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Slightly rounded corners */
    margin-top: 10px; /* More space between input and button */
}

.mailinglist button:hover {
    background-color: #3c3c3c;
}

.foot {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 30px; /* Increased margin for more space above the bottom info */
}

.foot p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    #footer {
        flex-direction: column;
        align-items: center;
    }
    
    #nav, .mailinglist {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .mailinglist input[type="email"] {
        width: 80%;
    }
}


/* Workshop Calendar */
	
/* Main container */
#workshop-calendar {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Raleway', sans-serif;
  color: #333;
}

/* Calendar header */
#workshop-calendar h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #5b3c88; /* Accent color */
}

/* Month section */
.month {
  margin-bottom: 30px;
}

.month h3 {
  border-bottom: 2px solid #5b3c88;
  padding-bottom: 5px;
  color: #5b3c88;
  margin-bottom: 15px;
}

/* Individual workshop */
.workshop {
  display: flex;
  background: #fdf6f9;
  border: 1px solid #ddd;
  border-left: 5px solid #5b3c88;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.workshop:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Date section */
.date {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
  margin-right: 15px;
}

.date .day {
  font-weight: bold;
  font-size: 1em;
  color: #5b3c88;
}

.date .month-date {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.date .cost {
  font-size: 1.2em;
  font-weight: bold;
  color: #145947;
  font-style: italic;
  margin-top: 5px;
}

/* Workshop info */
.info .title {
  font-size: 1.1em;
  margin-bottom: 5px;
}

.info .time,
.info .location {
  font-size: 0.9em;
  color: #666;
}

.info .instructor {
  font-style: italic;
  color: #444;
  margin-top: 5px;
  font-size: 0.9em;
}

.info .description {
  margin-top: 5px;
  font-size: 0.9em;
  color: #555
}

.info .difficulty {
  font-weight: bold;
  color: #5b3c88;  /* Matches your accent color */
  margin-top: 5px;
  font-size: 0.9em;
}

/* Workshop signup button (calendar page) */

.info .signup-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;

  background-color: #5b3c88; /* accent purple */
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 5px;
}

.info .signup-link:hover {
  background-color: #4a2f72;
}

/* Workshop Page Layout */

#workshop-page {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  padding: 20px;

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
}

/* RIGHT: Signup */

/* Signup: fixed sidebar */
#workshop-signup {
  flex: 0 0 320px;
  max-width: 320px;

  background-color: #f9f9f9; /* same as contact cards */
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;

  box-sizing: border-box; /* critical */
  
  position: sticky;
  top: 20px;
}

#workshop-signup h2 {
  color: #5b3c88;
  border-bottom: 2px solid #5b3c88;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.signup-button {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #67d4bc;
  border: none;
  color: #555555;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-button:hover {
  background-color: #56bfa9;
}

.signup-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #555;
}

.signup-form input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Raleway", sans-serif;
}

.signup-form button {
  width: 100%;
  padding: 10px;
  background-color: #555555;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.signup-form button:hover {
  background-color: #3c3c3c;
}

/* LEFT: Details */
/* Details: flexible */
#workshop-details {
  flex: 1 1 auto;
  min-width: 0;
}

#workshop-details h1 {
  font-size: 2.2rem;
  color: #555555;
  margin-bottom: 10px;
}

#workshop-details img {
  max-width: 100%;
  height: auto;
  display: block;
}

.workshop-meta {
  background-color: #fdf6f9;
  border-left: 5px solid #5b3c88;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 5px;
}

#workshop-details section {
  margin-bottom: 30px;
}

#workshop-details h2 {
  font-size: 1.5rem;
  color: #5b3c88;
  border-bottom: 2px solid #5b3c88;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#workshop-details ul {
  padding-left: 20px;
}

#workshop-details li {
  margin-bottom: 8px;
}

/* MOBILE STACKING */
@media (max-width: 768px) {
  #workshop-page {
    flex-direction: column;
    overflow-x: hidden;
  }

  #workshop-signup {
    flex: none;
    max-width: none;
    width: 100%;
  }
  
  
  #workshop-signup,
  #workshop-details {
    max-width: 100%;
  }
}

/* Gallery Page */

#gallery-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Individual item */
.gallery-item {
  background: #fdf6f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;

  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Image */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* Caption */
.gallery-item .caption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

/* Gallery Modal */

#gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.8);

  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

#gallery-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 5px;
}

#modal-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

#gallery-modal .close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

