@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
.navbar {
    background-color: #333;
    overflow: hidden;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
   
    width: 100%;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    float: left;
}

.navbar a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: 100vh; /* Add this line */
    display: flex; /* Add this line */
    justify-content: center; /* Add this line */
    align-items: center; /* Add this line */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff; /* Add this line */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add this line */
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

.social-links img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}


.button {
    display: inline-block;
    padding: 15px 32px;
    color: #00ff00;
    border: 2px solid #00ff00;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    background-color: transparent;
    font-family: 'Courier New', Courier, monospace;
    transition: background-color 1s, color 1s;
}

.button:hover {
    color: #000;
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 40px #00ff00, 0 0 80px #00ff00;
    transition: background-color 0.5s, color 0.5s;
}

.qrCode {
    width: 200px;
    height: 300px;
    margin: 0 auto; /* Centers the QR code container horizontally */
    padding: 10px; /* Add padding inside the container */
    border: 2px solid #333; /* Add border around the QR code container */
    border-radius: 10px; /* Add rounded corners */
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers the QR code image hrizontally */
    align-items: center; /* Centers the QR code image vertically */
    animation: pulse 2s infinite; /* Add pulse animation */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.qrCode:hover {
    animation: none; /* Stop the pulse animation */
    transform: scale(1.05); /* Slightly enlarge the QR code on hover */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Intensify the shadow on hover */
}

.qrCode img {
    max-width: 100%;
    max-height: 100%;
}

.qrCaption {
    font-size: 14px; /* Font size for caption */
    color: #555; /* Text color */
    text-align: center; /* Center the text */
}
/* Mobile Responsive CSS for STLCC Programming Club Website */

/* Ensure proper viewport behavior on all devices */
@viewport {
    width: device-width;
    zoom: 1.0;
  }
  
  /* Mobile-first approach - base styles for small screens */
  
  /* Container adjustments */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  /* Responsive body adjustments */
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
  }
  
  /* Responsive header */
  header {
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
  }
  
  header h1 {
    font-size: 1.8rem;
    word-wrap: break-word;
    margin: 10px 0;
  }
  
  /* Responsive navbar for mobile */
  .navbar {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 5px;
    margin: 10px auto;
    box-sizing: border-box;
  }
  
  .navbar ul {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .navbar li {
    float: none;
    width: 100%;
    margin: 3px 0;
  }
  
  .navbar a {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
  }
  
  /* Responsive sections and content */
  section {
    padding: 15px 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Responsive images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Responsive QR code */
  .qrCode {
    width: 80%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
  }
  
  /* Responsive buttons */
  .button, #changeBackground, #rainbowButton {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    box-sizing: border-box;
    display: block;
  }
  
  /* Social media links */
  .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-links a {
    margin: 8px;
  }
  
  /* Responsive footer */
  footer {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 10px;
    margin-top: auto;
  }
  
  /* Music player adjustments for mobile */
  .music-player {
    bottom: 10px;
    right: 10px;
    padding: 8px;
    max-width: 90%;
  }
  
  .song-info {
    max-width: 120px;
  }
  
  /* Prize cards responsive */
  .prize-card {
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
  }
  
  .prize-container {
    flex-direction: column;
  }
  
  /* Map container responsive */
  .map-container {
    padding-bottom: 75%; /* Taller aspect ratio for mobile */
  }
  
  /* Media queries for tablets and larger devices */
  @media (min-width: 600px) {
    .container {
      padding: 15px;
      max-width: 90%;
    }
    
    header h1 {
      font-size: 2rem;
    }
    
    /* Horizontal navbar for tablets+ */
    .navbar ul {
      flex-direction: row;
      justify-content: center;
    }
    
    .navbar li {
      width: auto;
      float: left;
    }
    
    .navbar a {
      width: auto;
    }
    
    /* Two prize cards per row on tablet */
    .prize-container {
      flex-direction: row;
      flex-wrap: wrap;
    }
    
    .prize-card {
      width: 45%;
    }
    
    /* Map container more standard ratio */
    .map-container {
      padding-bottom: 60%;
    }
  }
  
  /* Media queries for desktop and larger tablets */
  @media (min-width: 900px) {
    .container {
      max-width: 800px;
    }
    
    header h1 {
      font-size: 2.5rem;
    }
    
    /* Return to original desktop layout */
    .prize-container {
      flex-direction: row;
    }
    
    .prize-card {
      width: 250px;
    }
    
    /* Original map aspect ratio */
    .map-container {
      padding-bottom: 56.25%;
    }
  }
  
  /* Fix for minion-list on mobile */
  .minion-list li {
    display: flex;
    flex-wrap: wrap;
    padding-left: 35px;
  }
  
  .event-detail {
    min-width: 70px;
    margin-right: 5px;
  }
  
  /* Prevent horizontal scrolling caused by animations */
  .shine, .navbar a:before {
    overflow-x: hidden;
  }