/* Set the base font and layout for the entire page */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
}

/* Add spacing between input fields and buttons */
input, button {
  margin: 5px 0;
}

.container p,
.container ul {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}


/* Style the page header */
header {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.scaled-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.header-image {
  width: 80px;
  height: auto;
  margin-right: 1rem;
}

.header-text {
  flex: 1;
  text-align: center;
/*  font-family: 'Mohave', sans-serif;
/*  text-transform: uppercase; /* ensures all caps even if typed lowercase */
}

.header-text h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.subscript {
  font-size: 0.9rem;
  color: #666;
}

nav {
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  color: white;
  text-align: left;
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background-color: #555;
}

.container {
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 3rem auto;
  text-align: left;
}

.title-image {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

p.overview,
.definition,
p.examples,
p.intro,
p.summary,
.follow-up,
.examples-section,
.cyber-section {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: left;
}

ul.objectives,
ul.functions,
ul.examples,
ul.scada-list,
ul.topics,
ul.vulnerabilities {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: #444;
  line-height: 1.6;
  text-align: left;
}

ul.objectives li,
ul.functions li,
ul.examples li,
ul.scada-list li,
ul.topics li,
ul.vulnerabilities li {
  margin-bottom: 0.5rem;
}

ul.scada-list li {
  margin-bottom: 0.75rem;
}

table.structure,
table.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table.structure th,
table.structure td,
table.comparison th,
table.comparison td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

table.structure th,
table.comparison th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.next-button,
.test-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.next-button:hover,
.test-button:hover {
  background-color: #0056b3;
}

.component-block img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.component-block {
  margin-bottom: 20px;
}

figcaption {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  color: #555;
}

.center-underline {
  text-align: center;
  text-decoration: underline;
  font-weight: bold;
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  color: #333;
}

.center {
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1rem;
}

.image {
  margin: 2rem 0;
  text-align: center;
}

.image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.resource-link {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #2a5db0;
  word-break: break-word;
}

/* === Responsive Scaling for Mobile Devices === */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .container,
  .section,
  .content {
    padding: 1rem;
    font-size: 1rem;
  }

  .title-image,
  .header-image {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
  }

  nav li {
    font-size: 1rem;
    text-align: center;
  }

  button,
  .next-button,
  .return-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    margin: 1rem 0;
  }

  .subscript,
  .footer-text {
    font-size: 0.95rem;
    text-align: center;
  }
}
@font-face {
  font-family: 'Cybernetics';
  src: url('../fonts/Cybernetics.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.logo-text {
  font-family: 'Cybernetics', sans-serif;
}
.stuxnet-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 2rem auto;
  border: 2px solid #ccc;
  border-radius: 8px;
}
    .course-section {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      gap: 2rem;
      margin-top: 2rem;
    }
        .course-card {
      text-align: center;
    }

    .course-card img {
      width: 300px;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.2s ease;
    }
        * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
        .start-button {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.75rem 1.5rem;
      background-color: #4CAF50;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
    }

    .start-button:hover {
      background-color: #45a049;
    }

    .course-description {
      max-width: 400px;
      text-align: left;
      font-size: 1rem;
      color: #444;
      line-height: 1.6;
    }
    #requestCount {
  display: none; /* hidden by default */
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 4px;
}
