﻿/* --------------------------------------------------------
   Card wrapper: white background around both image + text
   -------------------------------------------------------- */
.card-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;               /* side-by-side layout */
  align-items: center;        
  max-width: 900px;            /* overall card width */
  margin: 40px auto;           /* center page + vertical gap */
  padding: 20px;               /* white “padding” behind both */
  box-sizing: border-box;
}

/* --------------------------------------------------------
   Image side: keeps image from stretching
   -------------------------------------------------------- */
.card-image {
  flex: 0 0 auto;
  margin-right: 30px;          /* gap between image & text */
  text-align: center;
}

.card-image img {
  display: block;
  width: 400px;                /* desktop image size */
  height: auto;
  border-radius: 4px;          /* optional rounding */
}

/* --------------------------------------------------------
   Text side: all writing lives here, inside the white box
   -------------------------------------------------------- */
.card-text {
  flex: 1 1 auto;
}

.card-text h2 {
  font-family: Arial, sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
  color: #338000;
}

.card-text p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* --------------------------------------------------------
   Divider + Event text
   -------------------------------------------------------- */
.divider {
  width: 100%;
  display: flex;
  justify-content: center;   /* centers the ruler image */
  margin: 10px 0;
}

.divider img {
  display: block;
}

/* Force event text to center */
#event {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center !important;   /* override any left-align */
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #338000;
}
#community_day {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center !important;   /* override any left-align */
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #0055cc;
}
#season {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center !important;   /* override any left-align */
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #33AACC;
}
#raid {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center !important;   /* override any left-align */
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #FF0000;
}


/* --------------------------------------------------------
   Legacy auto-styles (kept for compatibility)
   -------------------------------------------------------- */
.auto-style37 { text-align: center; color: #338000; }
.auto-style38 { font-size: 23px; }
.auto-style39 { width: 256px; }
.auto-style40 { width: 256px; height: 256px; }
.auto-style41 { font-weight: normal; font-size: 24px; }
.auto-style42 { font-size: 24px; }
.auto-style43 { color: #9B382E; }
.auto-style44 { height: 22px; }

/* --------------------------------------------------------
   Responsive adjustments for mobile screens
   -------------------------------------------------------- */
@media (max-width: 600px) {
  .card-wrapper {
    flex-direction: column;   /* stack image above text */
    text-align: center;       /* center text under image */
    padding: 15px;
  }

  .card-image {
    margin-right: 0;          /* remove side gap */
    margin-bottom: 15px;      /* add spacing below image */
  }

  .card-image img {
    width: 100%;              /* scale image to container */
    max-width: 300px;         /* cap size */
    height: auto;
  }

  .card-text h2 {
    font-size: 20px;          /* slightly smaller */
  }

  .card-text p {
    font-size: 14px;
  }

  /* Override fixed widths */
  .auto-style39,
  .auto-style40 {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
  }
}