/*** VSCodeEDU preview fix ***/
html {
    background-color: var(--bg-color);
    scroll-behavior: smooth;
  }
  
  /*** Root theme variables ***/
  :root {
    --bg-color: #dce8f5;
    --text-color: #1a2a3a;
  
    --accent-color-light: #cfe4f7;
    --accent-color-medium: #5fa0d6;
    --accent-color-dark: #3a7fc1;
    --accent-color-darkest: #1e4d7b;
    --accent-color-green: #2ecc71;
  
    --error-color: #f8bbd0;
    --error-color-border: #e63946;
  }
  
  /*** Body styling ***/
  body {
    background-color: var(--bg-color);
    font-size: 16px;
    color: var(--text-color);
    font-family: Tahoma, sans-serif;
    margin: 50px;
  }
  
  /*** Text Styling ***/
  h1 {
    font-size: 2.5rem;
    color: var(--accent-color-darkest);
    text-align: center;
  }
  
  h2 {
    font-size: 2rem;
    color: var(--accent-color-dark);
    margin-top: 20px;
  }
  
  h3 {
    font-size: 1.5rem;
    color: var(--accent-color-medium);
  }
  
  h4 {
    font-size: 1.2rem;
    color: var(--accent-color-green);
  }
  
  p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 10px;
    color: var(--text-color);
  }
  
  a:link {
    color: var(--accent-color-dark);
    text-decoration: none;
  }
  
  a:visited {
    color: white;
  }
  
  a:hover {
    color: var(--accent-color-darkest);
    text-decoration: underline;
  }
  
  a:active {
    color: var(--accent-color-medium);
  }
  
  /*** Buttons ***/
  button {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: darkgreen;
  }

  .header-overlay {
    text-align: center;
    padding: 20px;
  }
  
  .header-button {
    display: inline-block; 
    background-color: var(--accent-color-dark);
    color: white;
    padding: 10px 16px;
    margin: 8px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .header-button:hover {
    background-color: var(--accent-color-darkest);
    color: var(--accent-color-light);
  }
  
  /*** Header Flexbox ***/
  .header-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    margin-bottom: 20px;
    background-color: var(--accent-color-light);
    border-bottom: 3px solid var(--accent-color-darkest);
    gap: 20px;
    text-align: center;
  }
  
  .header-item:nth-of-type(1),
  .header-item:nth-of-type(2) {
    width: 100%;
  }
  
  @media (min-width: 700px) {
    .header-item:nth-of-type(1) {
      width: 30%;
    }
  
    .header-item:nth-of-type(2) {
      width: 65%;
      text-align: center;
    }
  }
  
  #header-img {
    width: 100px;
    max-width: 100%;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  /*** Navbar ***/
  .navbar ul {
    list-style-type: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color-darkest);
    padding: 0;
    z-index: 1000;
    margin: 0;
  }
  
  .navbar ul li {
    float: left;
  }
  
  .navbar ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .navbar ul li a:hover {
    background-color: var(--accent-color-medium);
    color: #fff;
  }
  
  /*** Schedule Flexbox ***/
  .schedule-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .schedule-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    width: 30%;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /*** RSVP Input Feedback ***/
  input.invalid {
    background-color: var(--error-color);
    border: 2px solid var(--error-color-border);
  }
  
  /*** RSVP Confirmation Message ***/
  #confirmation-message {
    margin-top: 15px;
    color: var(--accent-color-green);
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .hidden {
    display: none;
  }
  
  /*** RSVP Input Style (Modern Touch) ***/
  #rsvp-form input {
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  /*** Footer ***/
  .footer {
    position: static; /***this will help see the sumbit button ***/
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-bottom: -50px;
    background-color: var(--accent-color-darkest);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
  .footer a {
    color: var(--accent-color-medium);
  }
  
  .footer a:visited {
    color: var(--accent-color-medium);
  }
  
  .footer a:hover {
    color: white;
  }

  .block article {
    background-color: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color-dark);
  }
  /*** Success Modal ***/
  .modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
  }
  
  .modal-container {
    background-color: var(--accent-color-light);
    border: 2px solid var(--accent-color-darkest);
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 0px 15px #444;
    text-align: center;
  }
  
  #modal-item {
    margin: 10px;
  }
  
  #modal-text {
    font-size: 1.2rem;
    color: var(--accent-color-darkest);
    font-weight: bold;
  }
  /* Responsive & Animated Cybersecurity Image */
  .modal-image {
    width: 100%;
    max-width: 180px;
    border-radius: 12px;
    animation: zoomIn 0.6s ease-in-out;
  }
  
  /* Zoom animation */
  @keyframes zoomIn {
    from {
      transform: scale(0.5);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Mobile tweaks */
  @media (max-width: 500px) {
    .modal-container {
      width: 90%;
      padding: 20px;
    }
  
    .modal-image {
      max-width: 120px;
    }
  
    #modal-text {
      font-size: 1rem;
    }
  }
  
  /*** Links Section ***/
    .links-container {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
  
  .link-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color-dark);
    flex: 1;
    min-width: 200px;
    display: block;
    text-decoration: none;
  }
  
  .link-card:hover {
    border-left: 4px solid var(--accent-color-darkest);
    background-color: var(--accent-color-light);
    text-decoration: none;
  }
  
  .link-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
  }
  
  .link-card p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-color);
  }