/* Global Styles */
body {
  height: 100%;
  cursor: url('./images/tiny_slime.png'), auto;	
  min-height: 100%;
  background-color: #99e550;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

img {
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
}

/* Header Styles */
.header {
  color: antiquewhite;
  background-color: #639bff;
  background-image: url("./images/TiledHeader.png");
  background-position: bottom;
  background-repeat: repeat-x;
  height: 120px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title-section {
  flex: 1;
  text-align: left;
}

.header-title {
  font-family: 'Ranchers', cursive;
  -webkit-text-stroke: 2px #222034;
  font-size: 50px;
}

.header-logo {
  margin-top: 10px;
  width: 64px;
  height: 64px;
}

.title-link {
  font-family: 'Ranchers', cursive;
  -webkit-text-stroke: 2px #222034;
  font-size: 50px;
  color: antiquewhite;
  display: flex;
  text-decoration: none;
  align-items: center;
}

.title-link:hover {
  color: #ff6b6b;
  text-decoration: none;
}

.title-link:focus {
  color: #222034;
}

.title-link:active {
  color: #ff6b6b;
}

.title-link:visited {
  color: antiquewhite;
}

.header-title-text {
  padding-left: 12px;
  display: block;
}

.button-area {
  text-align: right;
  flex: 1;
}

.bigButtons {
  display: contents;
}

.littleButtons {
  display: none;
  position: relative;
}

.header-buttons {
  font-family: 'Bungee', cursive;
  padding: 8px;
  color: antiquewhite;
  font-size: 20px;
  text-align: center;
  background-color: rgba(203, 219, 252, 0.5);
  border-radius: 7px;
  border-color: #222034;
  border: 1px solid #222034;
  cursor: pointer;
}

.header-buttons:active {
  color: #222034;
}

.header-buttons:hover {
  color: #222034;
  text-decoration: underline;
}

.header-buttons:focus {
  color: #222034;
}

.social-header { 
  font-family: 'Bungee', cursive;
  padding: 8px;
  color: antiquewhite;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
}

.social-header:active {
  color: #ff6b6b;
}

.social-header:hover {
  color: #ff6b6b !important;
  text-decoration: underline;
}

.social-header:focus {
  color: #222034;
}

.social-header:visited {
  color: antiquewhite;
}

.header-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #222034;
  border-radius: 7px;
  padding: 10px;
  z-index: 1000;
  min-width: 120px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-dropdown a {
  display: block;
  margin: 5px 0;
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.close-menu-btn {
  background: none;
  border: none;
  color: antiquewhite;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.close-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.close-menu-btn:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content Styles */
.main {
  text-align: center;
  height: 100%;
  background-color: #99e550;
  font-family: 'Bungee', sans-serif;
  color: #222034;
  -webkit-text-stroke: 1px #222034;
  font-size: 20px;
  padding-bottom: 60px; /* Space for fixed footer */
}

.main-top {
  padding-bottom: 20px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-image-div {
  width: 25%;
  min-width: 200px;
}

.hero-image {
  max-height: 80%;
  max-width: 80%;
}

.hero-body {
  background-color: "rgba(255, 255, 255, 0.5)";
  -webkit-text-stroke: 2px #222034;
  border-radius: "10px";
  font-size: 32px;
  text-align: center;
  color: antiquewhite;
  width: 50%;
  min-width: 300px;
}

.hero-section {
  margin: 20px 0;
}

.hero {
  background-color: "rgba(255, 255, 255, 0.5)";
  -webkit-text-stroke: 2px #222034;
  border-radius: "10px";
  font-size: 40px;
  text-align: center;
  padding-left: 240px;
  padding-right: 240px;
  color: antiquewhite;
}

.description-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-div {
  float: right;
  position: relative;
  left: 0%;
  text-align: center;
}

.hero-body-wrapper {
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 12px;
  color: antiquewhite;
  border-radius: 6px;
  text-align: justify;
}

.main-content {
  background-color: #37946e;
  background-image: url("./images/plainbg.png");
  min-height: 200px;
}

/* Footer Styles */
.footer {
  font-family: 'Ranchers', cursive;
  color: antiquewhite;
  background-color: #847e87;
  padding: 4px;
  font-size: 24px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-button {
  padding-left: 14px;
  color: antiquewhite;
  text-decoration: none;
}

.footer-button:hover {
  color: #222034;
}

.footer-button:visited {
  color: antiquewhite;
}

/* Utility Classes */
.links {
  color: antiquewhite;
  -webkit-text-stroke: 1px #222034;
  text-decoration: underline;
  text-decoration-color: #222034;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 1000px) {
  .header-title-text {
    font-size: 34px;
  }

  .hero {
    font-size: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-body {
    width: 100%;
    padding: 20px;
  }

  .hero-image {
    display: none;
  }

  .hero-body-wrapper {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 12px;
    max-width: 500px;
    position: relative;
  }

  .center-div {
    float: right;
    position: relative;
    left: 0%;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media only screen and (max-width: 779px) {
  .bigButtons {
    display: none;
  }

  .littleButtons {
    display: contents;
  }

  .button-area {
    margin-top: 4px;
  }

  .header-title {
    display: none;
    font-size: 30px;
  }

  .header-title-text {
    display: none;
  }

  .header {
    background-color: #306082;
  }

  .main {
    background-color: #99e550;
    font-size: 16px;
  }

  .hero-body-wrapper {
    max-width: none;
  }

  .hero {
    font-size: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    font-family: 'Ranchers', cursive;
    color: antiquewhite;
    -webkit-text-stroke: 0px #222034;
    padding: 4px;
    font-size: 12px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .main {
    padding-bottom: 40px; /* Smaller padding for mobile */
  }

  .hero-row {
    flex-direction: column;
  }

  .hero-image-div {
    width: 100%;
  }

  .hero-body {
    width: 100%;
    min-width: auto;
  }

  .description-section {
    flex-direction: column;
    padding: 0 20px;
  }

  .description-section > div {
    width: 100% !important;
  }

  .header-dropdown {
    position: fixed;
    top: 120px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: auto;
  }
} 

/* Card Browser Styles */
.card-browser-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  background-image: url("./images/plainbg.png");
  background-repeat: repeat;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  text-align: center;
}

.card-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-browser-title {
  font-size: 32px;
  color: antiquewhite;
  -webkit-text-stroke: 2px #222034;
  margin: 0;
}

.card-counter {
  font-size: 18px;
  color: antiquewhite;
  -webkit-text-stroke: 1px #222034;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
}

.card-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.carousel-btn {
  background-color: #222034;
  border: 3px solid antiquewhite;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: antiquewhite;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: antiquewhite;
  color: #222034;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.card-display {
  text-align: center;
  position: relative;
}

.card-image {
  max-width: 300px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.05);
}

.card-info {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card-info span {
  color: antiquewhite;
  -webkit-text-stroke: 1px #222034;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 14px;
}

.card-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.card-type-btn {
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid #222034;
  color: antiquewhite;
  font-family: 'Bungee', cursive;
  -webkit-text-stroke: 0px #222034;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.card-type-btn:hover,
.card-type-btn.active {
  background-color: #222034;
  border-color: antiquewhite;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media only screen and (max-width: 779px) {
  .card-browser-section {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .card-browser-title {
    font-size: 24px;
  }
  
  .card-counter {
    font-size: 14px;
  }
  
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .card-image {
    max-width: 250px;
    max-height: 350px;
  }
  
  .card-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .card-type-btn {
    width: 200px;
  }
} 

/* Rainbow Sparkly Link Styles - Fixed Version */
.rainbow-sparkly-link {
  font-family: 'Bungee', cursive;
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  position: relative;
  display: inline-block;
  
  /* Use color animation instead of background-clip */
  animation: rainbow-text 3s ease-in-out infinite;
  
  /* Remove problematic background properties */
  background: none !important;
  
  /* Add glow effect */
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 255, 255, 0.4);
  
  /* Add sparkles */
  overflow: visible;
}

.rainbow-sparkly-link::before,
.rainbow-sparkly-link::after {
  content: '✨';
  position: absolute;
  font-size: 0.8em;
  animation: sparkle 2s ease-in-out infinite;
  pointer-events: none;
  /* Fix emoji rendering */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: none;
  border: none;
}

.rainbow-sparkly-link::before {
  top: -10px;
  left: -15px;
  animation-delay: 0s;
}

.rainbow-sparkly-link::after {
  top: -8px;
  right: -15px;
  animation-delay: 1s;
}

/* Hover effects */
.rainbow-sparkly-link:hover {
  transform: scale(1.1);
  animation-duration: 1s;
  filter: brightness(1.3) saturate(1.5);
}

.rainbow-sparkly-link:hover::before,
.rainbow-sparkly-link:hover::after {
  animation-duration: 0.5s;
}

/* New rainbow animation using color instead of background */
@keyframes rainbow-text {
  0% { color: #ff0000; }
  14% { color: #ff7f00; }
  28% { color: #ffff00; }
  42% { color: #00ff00; }
  57% { color: #0000ff; }
  71% { color: #4b0082; }
  85% { color: #9400d3; }
  100% { color: #ff0000; }
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Mobile optimizations */
@media only screen and (max-width: 779px) {
  .rainbow-sparkly-link {
    font-size: 1em;
  }
  
  .rainbow-sparkly-link::before,
  .rainbow-sparkly-link::after {
    font-size: 0.7em;
  }
} 

/* Calendar Styles */
.calendar-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  background-image: url("./images/plainbg.png");
  background-repeat: repeat;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  text-align: center;
}

.calendar-header {
  margin-bottom: 25px;
}

.calendar-title {
  font-size: 32px;
  color: antiquewhite;
  -webkit-text-stroke: 2px #222034;
  margin: 0 0 10px 0;
}

.calendar-subtitle {
  font-size: 16px;
  color: antiquewhite;
  -webkit-text-stroke: 1px #222034;
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  background-color: rgba(0, 0, 0, 0.3);
  
  font-family: 'Bungee', cursive;
  -webkit-text-stroke: 0px #222034;
  border: 2px solid #222034;
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: antiquewhite;
}

.event-date {
  font-size: 14px;
  color: #99e550;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.event-title {
  font-size: 20px;
  color: antiquewhite;
  margin: 0 0 10px 0;
}

.event-description {
  font-size: 12px;
  color: antiquewhite;
  line-height: 1.4;
  margin-bottom: 10px;
}

.event-type {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.event-type.release {
  background-color: #ff6b6b;
  font-family: "roboto", sans-serif;
  color: black;
}

.event-type.event {
  background-color: #4ecdc4;
  font-family: "roboto", sans-serif;
  color: white;
}

.event-type.community {
  background-color: #45b7d1;
  font-family: "roboto", sans-serif;
  color: white;
}

.event-type.contest {
  background-color: #f9ca24;
  font-family: "roboto", sans-serif;
  color: #222034;
}

.event-type.announcement {
  background-color: #6c5ce7;
  font-family: "roboto", sans-serif;
  color: white;
}

.event-type.shipping {
  background-color: #2d3436;
  font-family: "roboto", sans-serif;
  color: white;
}

.days-until {

  font-size: 11px;
  color: #99e550;
  -webkit-text-stroke: 0.5px #222034;
  font-style: italic;
}

.event-past {
  opacity: 0.6;
  filter: grayscale(50%);
}

.event-today {
  border-color: #f9ca24;
  background-color: rgba(249, 202, 36, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
}

.event-soon {
  border-color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(249, 202, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(249, 202, 36, 0.8);
  }
}

/* Mobile Responsive for Calendar */
@media only screen and (max-width: 779px) {
  .calendar-section {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .calendar-title {
    font-size: 24px;
  }
  
  .calendar-subtitle {
    font-size: 14px;
  }
  
  .events-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .event-card {
    padding: 15px;
  }
  
  .event-title {
    font-size: 18px;
  }
  
  .event-type {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}