/* ============================
   1. EXISTING TAGS (in order)
   ============================ */

body {
  margin: auto;
  font-family: Arial, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  max-width: 1000px;
  background-image: url(images/backgroundfloral.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  color: #FF00FF;
  font-family: "Lucida Handwriting", cursive;
  font-size: 30px;
  text-align: center;
 margin-top: 10px;      /* add this line */
  margin-bottom: 10px;   /* optional for balance */
}

p {
  font-size: 14px;
  font-family: Arial;
  color: black;
  width: 90%;
}

header {
  width: 100%;
  /* remove the background image & fixed height */
  /* background-image: url('images/background.jpg'); */
  background: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
   padding: 2px 0 4px 0;       /* gentle breathing room */
}


nav {
  text-align: center;
  background-color: #FFF8DC;
  color: #FF00FF;
  font-family: "Lucida Handwriting", cursive;
}

nav li {
  display: inline;
  padding: 0px 14px;
  list-style: none;
}

nav a {
  color: #FF00FF;
  background-color: #FFF8DC;
  text-decoration: none;
}

nav a:hover {
  color: black;
  background-color: #FFF8DC;
}

nav ul li.selected a {
  color: white;
  background-color: #FFF8DC;
}

main {
  background-color: #FFF8DC;
  padding: 10px;
}

address {
  text-align: center;
}

div {
  width: 100%;
  margin: auto;
}

hr {
  width: 60%;
  height: 5px;
  background-color: #FF00FF;
}

h2 {
  color: purple;
  font-weight: bold;
  text-align: center;
}

h3 {
  color: purple;
  font-weight: bold;
  text-align: center;
}

h4 {
  color: purple;
  font-weight: bold;
  text-align: center;
}


aside {
  width: 25%;
  float: left;
  text-align: right;
  padding: 14px;
  box-sizing: border-box;
}

section {
  width: 75%;
  padding: 14px;
  box-sizing: border-box;
  text-align: center;
}

footer {
  font-size: 20px;
  height: 50px;
  text-align: center;
  background-color: #FFF8DC;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

figure {
  display: inline-block;
  width: 360px;
  text-align: center;
  margin: 5px;
}

figcaption {
  text-align: center;
  background-color: #FFF8DC;
  color: #FF00FF;
  font-family: "Lucida Handwriting", cursive;
}

blockquote {
  text-align: justify;
}

blockquote:first-letter {
  font-size: 1.8em;
  font-weight: bold;
}

table {
  text-align: center;
  background-color: #FFF8DC;
  color: black;
  border: 4px solid #FF00FF;
  padding: 14px;
  border-collapse: collapse;
}

/* ============================
   2. IDS (in order)
   ============================ */

#wrapper {
  background-color: #FFF8DC;
  border: 8px #003 solid;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

#social {
  color: #008000;
}

/* ============================
   3. CLASSES (in order)
   ============================ */

.important {
  color: #DC143C;
}

.emoji {
  font-size: 1.4em;
  vertical-align: middle;
} 

.highlight {
  background-color: #FF69B4;
}

.selected {
  background-color: #FFFF00;
}

.center-line {
  text-align: center;
}

.center-line img {
  display: inline;
  vertical-align: middle;
  margin-left: 5px;
}

.center-line p {
  text-align: center;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.box {
  border: 4px pink solid;
}

.required {
  color: red;
  font-weight: bold;
}

/* Portfolio Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}

.gallery figure {
  width: 300px;
  text-align: center;
  padding: 0;
  margin: 0 10px 20px;
  background: none;
  border: none;
}

.gallery h2 {
  text-align: center;
}

.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gallery figcaption {
  margin-top: 8px;
  font-family: "Lucida Handwriting", cursive;
  color: #FF00FF;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

/* Info Bar */
.info-bar {
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: "Lucida Handwriting", cursive;
  font-size: 24px;
  text-align: center;
  padding: 15px 0;
  margin: 10px 0; 
  border-top: 4px solid #ff69b4;
  border-bottom: 4px solid #ff69b4;
  letter-spacing: 1px;
  animation: fadeIn 1.5s ease-out forwards;
  position: relative;
  z-index: 3; 
}

/* Image List */
.image-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.image-list li {
  padding: 0;
  margin: 0;
}

.image-list figure {
  padding: 0;
  margin: 0;
  width: 300px;
  text-align: center;
  border-radius: 0;
  background: none;
}

.image-list img {
  width: 100%;
  border: 4px solid #ff69b4;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-list img:hover {
  transform: scale(1.05);
}

.image-list figcaption {
  margin-top: 10px;
  color: #ff69b4;
  font-family: "Lucida Handwriting", cursive;
  font-size: 14px;
}

.contact-table {
  margin: 30px auto;                /* centers the table */
  border-collapse: collapse;        /* merges borders */
  background-color: #FFF8DC;        /* match your site */
  border: 4px solid #FF00FF;        /* magenta border */
  width: 80%;                       /* adjust width */
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.contact-table th {
  background-color: #FF69B4;        /* hot pink header */
  color: white;
  font-family: "Lucida Handwriting", cursive;
  font-size: 22px;
  padding: 12px;
  border: 2px solid #FF00FF;
}

.contact-table td {
  border: 2px solid #FF00FF;
  padding: 10px;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #FFF;
}

.contact-table label {
  font-weight: bold;
}

.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table input[type="tel"],
.contact-table input[type="date"] {
  width: 95%;
  padding: 6px;
  border: 2px solid #FF69B4;
  border-radius: 6px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-table input:focus {
  border-color: #FF00FF;
  box-shadow: 0 0 6px #FF69B4;
  outline: none;
}

.btn {
  background-color: #FF69B4;
  color: white;
  border: 2px solid #FF00FF;
  border-radius: 10px;
  font-family: "Lucida Handwriting", cursive;
  font-size: 16px;
  padding: 8px 20px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background-color: #FF00FF;
  transform: scale(1.05);
}

/* ============================
   4. MEDIA QUERIES
   ============================ */

@media only screen and (max-width: 639px) {
  body {
    padding: 10px;
  }

  main, header, footer {
    padding: 10px;
  }

  p, h1, h2 {
    font-size: 16px;
    width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  figure {
    width: 100%;
  }

  .gallery {
    padding: 10px;
    gap: 10px;
  }

  .gallery figure {
    width: 100%;
  }
}

/* ============================
   5. KEYFRAMES
   ============================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


#banner {
  width: 100%;
  max-width: 480px;       /* uniform width */
  height: 180px;          /* set a consistent height */
  object-fit: cover;      /* crops edges, keeps center visible */
  border-radius: 10px;
  transition: opacity 1s ease-in-out;
  margin: 0 auto;
  display: block;
  box-shadow: 0 0 10px pink;
}

/* Slideshow container — keeps it narrow (already present) */
.slideshow {
  width: 360px;
  margin: 12px auto;
  border: 4px solid #FF69B4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Ensure each slide is uniform size */
.mySlides {
  width: 100%;
  height: 220px;     /* ← pick a height you like (200–260 works well) */
  object-fit: cover; /* crop edges, keep center */
  display: none;     /* JS turns one to block */
}

/* Caption under the slideshow */
.caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: .5rem 0 1rem;
  font-weight: 600;
}
.caption img {
  width: 28px;
  height: auto;
  display: inline-block;
}

.inline-arrow {
  display: inline;
  width: 28px;
  height: auto;
  margin: 0 6px;
  vertical-align: middle;
}

/* Center all buttons on the page */
.button-group {
  text-align: center;
  margin: 12px 0;
}

.btn {
  background-color: #FF69B4;
  color: white;
  border: 2px solid #FF00FF;
  border-radius: 10px;
  font-family: "Lucida Handwriting", cursive;
  font-size: 16px;
  padding: 8px 20px;
  margin: 6px;              /* even space between multiple buttons */
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: inline-block;    /* keeps buttons inline and centered */
}

html {
  scroll-behavior: smooth;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip-text {
  visibility: hidden;
  width: 240px;
  background-color: #ff69b4;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 8px 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* position above the image */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out, visibility 0.4s;
  font-family: "Lucida Handwriting", cursive;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Tooltip arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* below the tooltip box */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ff69b4 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

p.center-line {
  width: 100%;
  margin: 20px auto 0;
  text-align: center;
}

#lastUpdated {
  font-size: 0.8em;
  color: gray;
  width: 100%;
  margin: 10px auto 0;
  text-align: center;
}
