
        
        :root {
            --primary-blue: #209cee;
            --light-blue: #b3d8fd;
            --yellow: #ffe066;
            --green: #4caf50;
        }
        
                
     .game-container {
            width: 100%;
            max-width: 400px;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 20px auto;
            position: relative;
        }
        
        .header {
            background-color: var(--primary-blue);
            color: white;
            padding: 15px;
            text-align: center;
        }
        
        .header h1 {
            margin: 0;
            font-size: 2rem;
        }
        
        .header p {
            margin: 5px 0 0;
            color: var(--light-blue);
        }
        
        .instructions {
            background-color: #d1ecf1;
            padding: 15px;
            margin: 10px;
            border-radius: 8px;
        }
        
        .instructions p {
            margin: 0 0 10px;
            font-weight: bold;
        }
        
        .instructions ul {
            margin: 0;
            padding-left: 20px;
        }
        
        .game-stats {
            display: flex;
            justify-content: space-between;
            background-color: var(--yellow);
            padding: 10px 15px;
            margin: 10px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        .game-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 10px;
            padding: 10px;
            height: 300px;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 12l-8.5 8.5c-.83.83-2.17.83-3 0 0 0 0 0 0 0a2.12 2.12 0 0 1 0-3L12 9"/><path d="M17.64 15L22 10.64"/><path d="M20.91 11.7l-1.25-1.25c-.6-.6-.93-1.4-.93-2.25v-.86L16.01 4.6a5.56 5.56 0 0 0-3.94-1.64H9l.92.82A6.18 6.18 0 0 1 12 8.4v1.56l2 2h2.47l2.26 1.91"/></svg>') 16 16, auto;
        }
        
        .grid-cell {
            background-color: var(--light-blue);
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 12l-8.5 8.5c-.83.83-2.17.83-3 0 0 0 0 0 0 0a2.12 2.12 0 0 1 0-3L12 9"/><path d="M17.64 15L22 10.64"/><path d="M20.91 11.7l-1.25-1.25c-.6-.6-.93-1.4-.93-2.25v-.86L16.01 4.6a5.56 5.56 0 0 0-3.94-1.64H9l.92.82A6.18 6.18 0 0 1 12 8.4v1.56l2 2h2.47l2.26 1.91"/></svg>') 16 16, pointer;
            position: relative;
            font-size: 1.2rem;
            text-align: center;
            transition: background-color 0.2s;
        }
        
        .grid-cell.correct {
            background-color: #8bc34a;
        }
        
        .grid-cell.wrong {
            background-color: #ff5252;
        }
        
        .feedback {
            position: absolute;
            font-size: 2rem;
            color: white;
            z-index: 10;
            animation: fadeOut 0.5s forwards;
            animation-delay: 0.5s;
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        .hammer {
            position: absolute;
            width: 50px;
            height: 50px;
            transform: rotate(45deg);
            pointer-events: none;
            z-index: 100;
            display: none;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 12l-8.5 8.5c-.83.83-2.17.83-3 0 0 0 0 0 0 0a2.12 2.12 0 0 1 0-3L12 9"/><path d="M17.64 15L22 10.64"/><path d="M20.91 11.7l-1.25-1.25c-.6-.6-.93-1.4-.93-2.25v-.86L16.01 4.6a5.56 5.56 0 0 0-3.94-1.64H9l.92.82A6.18 6.18 0 0 1 12 8.4v1.56l2 2h2.47l2.26 1.91"/></svg>');
        }
        
        .sound-control {
            position: absolute;
            bottom: 10px;
            left: 10px;
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #4caf50;
            border-radius: 50%;
            cursor: pointer;
            color: white;
            z-index: 10;
        }
        
        .score-display {
            text-align: center;
            padding: 15px;
            border-top: 1px solid #eee;
        }
        
        .score-fraction {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .score-message {
            color: #555;
            margin-bottom: 15px;
        }
        
        .button-container {
            display: flex;
            justify-content: space-around;
            padding: 10px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
        }
        
        .btn-primary {
            background-color: var(--green);
            color: white;
        }
        
        .btn-secondary {
            background-color: var(--light-blue);
            color: white;
        }
        
        .hidden {
            display: none !important;
        }
        
        .start-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
        }
        
        .start-button {
            padding: 15px 30px;
            background-color: var(--green);
            color: white;
            font-size: 1.5rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

@keyframes popOut {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
.pop-out {
  animation: popOut 0.5s forwards ease-out;
}
span.pop-out {
  z-index: 2;
}

.input {
    
    

  padding: 0; /* Remove any default padding inside the input */
  text-align: center; /* Center the text inside the square */
  border: 4px solid  #00FF00; /* Add a solid black border (2px width) */
  border-radius: 10px; /* Optional: Adds rounded corners */
}.correct-answer {
  background-color: #d7ffd7; /* light green background */
}

.incorrect-answer {
  background-color: #FF0000; /* light red background */
}
#resetButton {
  display: block;
  margin-left: auto;
  margin-right: auto;

}  


.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.game-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #3a2a12;
}

.instructions {
  text-align: center;
  margin-bottom: 15px;
  color: #555;
  font-size: 16px;
}

.circles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 800px;
  flex-wrap: wrap;
  gap: 8px;
}

.circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #3a2a12;
  position: relative;
  
  /* Enhanced wooden effect */
  background: linear-gradient(145deg, #e0c49b, #b89670);
  border: 2px solid #8f6b44;
  box-shadow: 
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(0, 0, 0, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.2);
}

.circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.07) 55%),
      linear-gradient(transparent 45%, rgba(0, 0, 0, 0.1) 55%),
      url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 8px 8px, 8px 8px, 100px 100px;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 1;
}

.circle span {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3), -1px -1px 1px rgba(0, 0, 0, 0.2);
}

.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.timer-label {
  font-size: 16px;
  color: #555;
}

.timer {
  font-size: 40px;
  font-weight: bold;
  color: #333;
}

.timer.warning {
  color: #d9534f;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.input-container {
  width: 100%;
  margin-bottom: 20px;
}

.word-input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #8f6b44;
  border-radius: 5px;
  box-sizing: border-box;
}

.enter-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  background-color: #212b58;
  color: #f9efd4;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 15px;
}

.start-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  background-color: #CCCCCC;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.enter-btn:hover {
  background-color: #4a5258;
}

.start-btn:hover {
  background-color: #67bc77;
}

.enter-btn:disabled, .start-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.feedback {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  display: none;
}

.feedback.correct {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback.incorrect {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.score-container {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}

.try-another-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 15px;
}

.try-another-btn:hover {
  background-color: #357abd;
}

.try-another-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* New styles for the custom words section */
.add-word-container {
  width: 100%;
  margin-top: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-word-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #3a2a12;
  text-align: center;
}

.add-word-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.add-word-btn {
  padding: 12px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.add-word-btn:hover {
  background-color: #4cae4c;
}

.add-word-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.word-status {
  padding: 10px;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
  display: none;
}

.word-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.word-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.custom-words-list {
  margin-top: 20px;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background-color: #f5f5f5;
}

.custom-words-list .list-title {
  font-weight: bold;
  margin-bottom: 8px;
}

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

.custom-words-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-words-list li:last-child {
  border-bottom: none;
}

.delete-word-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
}

.delete-word-btn:hover {
  background-color: #c9302c;
}

.toggle-form-btn {
  margin-top: 20px;
  padding: 8px 15px;
  background-color: #f0ad4e;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-end;
}

.toggle-form-btn:hover {
  background-color: #ec971f;
}


body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

body {
  font-size: 5 !important;
  font-family: 5 !important;
  color: 5 !important;
}

tw-story {
  background-color: white !important;
  color: black !important;
}

tw-link {
  display: block !important;
  padding: 10px !important;
  background-color: #209cee !important;
  color: white !important;
  border-radius: 5px !important;
  text-align: center !important;
  font-weight: bold !important;
  text-decoration: none!important;
}
tw-link:hover {
  background-color: #3273dc !important; /* Darker shade for hover effect */
}

tw-story {
  background-color: white !important;
  color: black !important;
  display: block !important;
  padding: 10px !important;
  border-radius: 5px !important;
  text-align: center !important;
  font-weight: bold !important;
  text-decoration: none!important;
}

#twine-container tw-story {
  font-size: 1em !important;
}

.tooltip-container {
    position: relative;
    display: inline-block;
  }
  .tooltip-container .tooltip-text {
    visibility: hidden;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    padding: 6px 8px;
    border-radius: 4px;
    position: absolute;
    bottom: 125%; /* Position above the link */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

   /* Add some hover effects for each navbar item */
   .navbar-item.item-showcase .icon {
    color: Tomato;
    transition: color 0.2s ease;
  }
  .navbar-item.item-showcase:hover .icon {
    color: #e94a2e; /* a slightly darker shade of Tomato */
  }

  .navbar-item.item-directory .icon {
    color: RoyalBlue;
    transition: color 0.2s ease;
  }
  .navbar-item.item-directory:hover .icon {
    color: #2b63c6; /* a slightly darker shade of RoyalBlue */
  }

  .navbar-item.item-skills .icon {
    color: Orange;
    transition: color 0.2s ease;
  }
  .navbar-item.item-skills:hover .icon {
    color: #cc7000; /* a slightly darker shade of Orange */
  }

  .navbar-item.item-advanced .icon {
    color: MediumSeaGreen;
    transition: color 0.2s ease;
  }
  .navbar-item.item-advanced:hover .icon {
    color: #2a9668; /* a slightly darker shade of MediumSeaGreen */
  }
  .navbar {
    background-color: #f0f8ff !important;
  }
  .navbar-menu {
    background-color: #f0f8ff !important;
  }
  
  .box {
            background-color: #f0f8ff;
            border: 2px solid #00d1b2;
            transition: transform 0.2s;
        }


  .box {
      height: 100%;
  }

  .modal-card-head {
  position: relative;
}
.modal-card-head .delete {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.pagination-link.button.is-primary:not(.is-current) {
  background-color: #00d1b2 !important;
  border-color: #00d1b2 !important;
  color: #fff !important;
}

/* The currently selected page: make it white with a green border and text */
.pagination-link.button.is-primary.is-current {
  background-color: #fff !important;
  color: #00d1b2 !important;
  border-color: #00d1b2 !important;
}

section.section {
  padding-bottom: 5rem; /* Adjust as needed */
}
  
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Let the main content expand, keeping footer at bottom */
section.section {
  flex: 1;
}

.tag-highlight .tag {
  background-color: #00d1b2; /* Bulma's primary color */
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  text-transform: capitalize;
}