/* Basic Reset */

 @font-face{
        font-family: myFont;
        src: url(./fonts/Galindo-Regular.ttf);
    }
    
    p, h1, h2, h3, h4, a {
        font-family: myFont;
    }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Global Styles */
body {
  padding: 50px;
  margin-right: 100px;
}

/* Headings */
.h1 {
  font-size: 100px;
}

/* Buttons */
button {
  text-decoration: none;
}

#protectedButton {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: auto;
  margin-bottom: 50px;
  align-items: center;
  font-size: 30px;
}

#protectedButton:hover {
  background-color: #0056b3;
}

/* Text and List Styles */
.puzzleHint {
  margin-top: 0.3px;
  margin-left: 50px;
  font-size: 30px;
}

.instructions {
  display: block;
  margin: 50px;
  font-size: 25px;
}

li {
  font-size: 25px;
  margin-left: 50px;
  margin-top: 10px;
}

.puzzleOneHint {
  font-size: 24px;
  display: block;
  margin: 50px;
}

.highlight {
  background-color: lightgreen;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  align-items: center;
  font-size: 20px;
  margin: 50px;
  margin-right: 50px;
}

th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

.cipher {
  text-align: center;
}

/* Image Styles */
.pigPenPic {
  display: block;
  margin: auto;
  align-items: center;
  width: auto;
  height: auto;
}

.hintPic {
  max-width: 100%;
  height: auto;
}

.puzzle5 {
  margin: 100px;
}

.image-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #000;
}

.table-row {
  display: table-row;
}

.table-cell {
  display: table-cell;
  padding: 5px;
  text-align: center;
  border: 1px solid #000;
}

.table-cell img {
  max-width: 100%;
  height: auto;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: black;
  color: white;
  position: relative;
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 1.5em;
}

nav a, a:visited.homeButton, a:hover.homeButton, a:active.homeButton {
  color: white;
  text-decoration: none;
}

.homeButton {
  color: white;
}

/* Hamburger Icon (only visible on mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Dropdown Menu for Mobile */
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 1em;
  z-index: 5;
}

.dropdown-menu a {
  padding: 0.5em 0;
  color: white;
  text-decoration: none;
}

.dropdown-menu.open {
  display: flex;
}

/* Hero Banner */
.hero {
  background-color: gold;
  background: url('hero-image.jpg') no-repeat center center/cover;
  color: gold;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 4em;
  text-shadow: -2px -2px 0 black, 2px 2px 0 black, -2px 2px 0 black, 2px -2px 0 black;
}

.hero p {
  font-size: 2em;
  margin-top: 0.5em;
  color: green;
  font-weight: bold;
}

/* Course and Key Features Sections */
.container {
  padding: 2em;
  max-width: 1100px;
  margin: 0 auto;
}

.courses, .features {
  display: flex;
  gap: 2em;
  margin-top: 2em;
}

.cardA {
  background: #90df90;
  flex: 1;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.cardB {
  background: #ffec86;
  flex: 1;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  font-size: 0.9em;
  color: #555;
}

.card a {
  display: inline-block;
  margin-top: 1em;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.a {
  color: green;
  text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black, -0.5px 0.5px 0 black, 0.5px -0.5px 0 black;
}

.b {
  color: gold;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1.5em 0;
  margin-top: 2em;
}

footer a {
  color: #007BFF;
  text-decoration: none;
}

/* Notepad Container */
    .notepad {
      position: fixed;
      bottom: 0;
      right: 20px;
      width: 250px;
      background-color: #f8f8f8;
      border: 1px solid #ddd;
      border-radius: 8px 8px 0 0;
      box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
      z-index: 1000;
    }

    /* Notepad Content Hidden by Default */
    .notepad-content {
      display: none;
      padding: 10px;
    }

    /* Toggle Button Style */
    .toggle-button {
      width: 100%;
      background-color: #007bff;
      color: white;
      padding: 8px;
      border: none;
      border-radius: 8px 8px 0 0;
      cursor: pointer;
      font-weight: bold;
      text-align: center;
    }

    /* Notepad Textarea */
    .notepad textarea {
      width: 100%;
      height: 150px;
      resize: none;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-top: 10px;
    }

    .notepad button {
      margin-top: 8px;
      width: 100%;
      padding: 8px;
      background-color: #ff4d4d;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .notepad button:hover {
      background-color: #e60000;
    }

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
  }

  .dropdown-menu.open {
    display: flex;
  }

  .courses, .features {
    flex-direction: column;
  }
}
