* {
    margin: 0;
    padding: 0;
  }
  body {
    align-content:center;
    vertical-align:center;
    display:flex;
    flex-direction: column;
    justify-content:center; 
  }

  .container {
    display:flex;
    justify-content:center;
  }

  #scoreboard{
    flex-direction:column;

  }

  #hexGrid {
    display: grid;
    grid-gap:6px;
    grid-template-columns: repeat(4,fr);
    width: 250px;
    margin: 0 auto;
    font-size:.9em;
    list-style-type: none;
    overflow:hidden;
    
  }
  
  .hex {
    grid-column-end: span 2;
    position: relative;
    visibility:hidden;
    background-color:solid yellow;
    outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
  }
 
  .hex::after{
    content:'';
    display:block;
    padding-bottom: 86.602%;  /* =  100 / tan(60) * 1.5 */
  }
  .hexIn{
    position: absolute;
    width:100%;
    padding-bottom: 115.470%; /* =  width / sin(60) */
    overflow: hidden;
    visibility: hidden;
    outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
    -webkit-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
        -ms-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
            transform: rotate3d(0,0,1,-60deg) skewY(30deg);
  }
  .hexIn * {
    position: absolute;
    visibility: visible;
    outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
  }
  .hexLink {
    display:block;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #ffd300d1;
    overflow: hidden;
    -webkit-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
        -ms-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
            transform: skewY(-30deg) rotate3d(0,0,1,60deg);
  }

  #center-letter{
    background-color:#b7afafe6;
  }

  input[type="text"]
  {
      background: transparent;
      border: none;
  }
  
/*** HEX CONTENT *************************************************************/

  .hex p {
    width: 100%;
    padding: 38%;
    box-sizing:border-box;
    background-color:transparent;
    font-weight: 800;
    font-size:1.4em;
    color:black;
    font-family: 'Open Sans', sans-serif;
    
  }
/*** HEX HOVER *****************************************************************/
  .hexLink:hover p, .hexLink:focus p{
    background-color: #ffb103c2
  }

  #center-letter.hexLink:hover p, #center-letter.hexLink:focus p{
    background-color: gray
  }

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *********************************/
  
  #hexGrid{
    grid-template-columns: repeat(6,2fr);
    padding-bottom: 5.4%;
    margin-bottom:2vh;
  }
  .hex:nth-child(5n+1){ /* first hexagon of odd rows */
    grid-column-start: 2;
  }
  .hex:nth-child(5n+3){ /* first hexagon of even rows */
      grid-column-start: 1;
  }

/*** INPUT & CURSOR ********************************************************************/

  #testword {
    
    height:50px; 
    text-align: center;  
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    padding-top:3px;
  }

  #cursor {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 100;
    height:6vw;
    color: rgb(255, 187, 0);
  
  }
  .cursor {
    position: relative;
    margin: 0 auto;
    margin-bottom:10px; 
  }

/*** TEXT **********************************************************************/
h1 {
  text-align: center;
  margin-top:4vh; 
  margin-bottom:1vhpx; 
  font-size: 1.5rem;
  font-family: 'Roboto Slab', serif;
}

.scoreText {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight:100;
  align-self:center;
}

ul {
  /*display:inline-block;*/
  list-style-type: none;
  text-align: center;
}

#discoveredText {
  font-family: 'Open Sans',  sans-serif;
  font-size: 15px;
  align-self:center;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
}

.dwords{
  font-weight:100;
  padding:0

}


/*** BUTTONS *******************************************************************/
#shuffle_button {
  padding: 10px 10px;
}

.button_container {
 display:-webkit-inline-flex; 
 margin-bottom:5vh; 
 width: 300px;
 height: 10%;

}
.button {
  background-color: white; 
  border: 2px solid #e7e7e7;
  margin: 0 auto;
  color: black;
  padding: 0px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: .8em;
  border-radius:30px;
  cursor: pointer;
}

.button:hover {
  background-color: #e7e7e7;
  color: black;
  border: 2px solid #e7e7e7;
}

/*** NOTIFICATIONS AND SHAKE EFFECT ****************************************************************/

#too-short{
  display:none;
}
#invalid-word{
  display:none;
  
}
#already-found{
  display:none;

}
#miss-center{
  display:none;

}
#good{
  display:None;
  background-color:white; 
  color:black; 
  border:1px solid rgb(179, 177, 177);
}

#great{
  display:None;
  background-color:white; 
  color:black; 
  border:1px solid rgb(179, 177, 177);
}

#pangram{
  display:None;
  background-color:white; 
  color:black; 
  border:1px solid rgb(179, 177, 177);
}

#amazing{
  display:None;
  background-color:white; 
  color:black; 
  border:1px solid rgb(179, 177, 177);
}


.notifications {
  background-color:black; 
  color:white; 
  display:flex;
  padding:5px;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  font-family: 'Calibri Light',sans-serif;
  font-size: .6em;
}

/* SEO Content Styles */
.seo-content {
  margin-top: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-top: 3px solid #ffd300;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.content-section {
  background: white;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.content-section h2 {
  color: #2c3e50;
  font-family: 'Roboto Slab', serif;
  font-size: 2em;
  margin-bottom: 20px;
  border-bottom: 3px solid #ffd300;
  padding-bottom: 10px;
}

.content-section h3 {
  color: #34495e;
  font-family: 'Roboto Slab', serif;
  font-size: 1.4em;
  margin: 20px 0 15px 0;
}

.content-section p {
  color: #555;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
}

.content-section ul, .content-section ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-section li {
  color: #555;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.content-section strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Instructions List */
.instructions-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #ffd300;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.benefit-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
}

/* Tips Container */
.tips-container {
  background: #fff3cd;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ffeaa7;
  margin: 20px 0;
}

.tips-container ol {
  margin: 0;
}

/* Facts Container */
.facts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.fact-item {
  background: #e8f5e8;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #27ae60;
}

.fact-item h3 {
  color: #27ae60;
  margin-bottom: 15px;
}

/* Features Showcase */
.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  background: #f0f8ff;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #b3d9ff;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #e6f3ff;
  border-color: #4da6ff;
}

.feature-item h3 {
  color: #0066cc;
  margin-bottom: 15px;
}

/* FAQ Container */
.faq-container {
  margin: 30px 0;
}

.faq-item {
  background: #f8f9fa;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #17a2b8;
}

.faq-item h3 {
  color: #17a2b8;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.faq-item p {
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  margin-top: 40px;
}

.cta-section h2 {
  color: white;
  border-bottom: 3px solid white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.cta-button.primary {
  background: white;
  color: #667eea;
}

.cta-button.primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .seo-content {
    padding: 20px 10px;
    margin-top: 30px;
  }
  
  .content-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .content-section h2 {
    font-size: 1.6em;
  }
  
  .benefits-grid,
  .facts-container,
  .features-showcase {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 15px;
  }
  
  .content-section h2 {
    font-size: 1.4em;
  }
  
  .content-section p {
    font-size: 1em;
  }
  
  .benefit-card,
  .fact-item,
  .feature-item {
    padding: 20px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.cta-button:focus,
.feature-item:focus,
.benefit-card:focus {
  outline: 3px solid #ffd300;
  outline-offset: 2px;
}

/* Additional Content Styles */
.strategies-container {
  background: #f0f8ff;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #b3d9ff;
  margin: 20px 0;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.strategy-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  transition: transform 0.3s ease;
}

.strategy-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.strategy-item h4 {
  color: #0066cc;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.edu-card {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: #333;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
}

.edu-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.categories-container {
  background: #fff9e6;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #ffe4b5;
  margin: 20px 0;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.category-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: #fff3e0;
  border-color: #f57c00;
}

.category-item h4 {
  color: #ff9800;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.practice-routine {
  background: #e8f5e8;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #c8e6c9;
  margin: 20px 0;
}

.routine-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.routine-step {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  transition: transform 0.3s ease;
}

.routine-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.routine-step h4 {
  color: #4caf50;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.community-content {
  background: #f3e5f5;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e1bee7;
  margin: 20px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.community-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #9c27b0;
  transition: all 0.3s ease;
}

.community-item:hover {
  background: #f8f4fc;
  border-color: #7b1fa2;
}

.community-item h4 {
  color: #9c27b0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.mobile-benefits {
  background: #e3f2fd;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #bbdefb;
  margin: 20px 0;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.mobile-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
  transition: all 0.3s ease;
}

.mobile-item:hover {
  background: #e3f2fd;
  border-color: #1976d2;
}

.mobile-item h4 {
  color: #2196f3;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.teacher-resources {
  background: #fce4ec;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #f8bbd9;
  margin: 20px 0;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.teacher-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #e91e63;
  transition: all 0.3s ease;
}

.teacher-item:hover {
  background: #fce4ec;
  border-color: #c2185b;
}

.teacher-item h4 {
  color: #e91e63;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.extended-faq {
  margin: 30px 0;
}

.extended-faq .faq-item {
  background: #f8f9fa;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #17a2b8;
  transition: all 0.3s ease;
}

.extended-faq .faq-item:hover {
  background: #e9ecef;
  border-color: #138496;
}

.extended-faq .faq-item h3 {
  color: #17a2b8;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  margin-top: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.final-cta h2 {
  color: white;
  border-bottom: 3px solid white;
  margin-bottom: 20px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2em;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .strategy-grid,
  .educational-grid,
  .category-list,
  .routine-steps,
  .community-grid,
  .mobile-grid,
  .teacher-grid {
    grid-template-columns: 1fr;
  }
  
  .strategy-item,
  .edu-card,
  .category-item,
  .routine-step,
  .community-item,
  .mobile-item,
  .teacher-item {
    padding: 15px;
  }
  
  .final-cta {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .strategies-container,
  .categories-container,
  .practice-routine,
  .community-content,
  .mobile-benefits,
  .teacher-resources {
    padding: 15px;
  }
  
  .strategy-item h4,
  .category-item h4,
  .routine-step h4,
  .community-item h4,
  .mobile-item h4,
  .teacher-item h4 {
    font-size: 1.1em;
  }
  
  .final-cta p {
    font-size: 1.1em;
  }
}

/* Animation for new sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strategy-item,
.edu-card,
.category-item,
.routine-step,
.community-item,
.mobile-item,
.teacher-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced hover effects */
.strategy-item:hover,
.category-item:hover,
.routine-step:hover,
.community-item:hover,
.mobile-item:hover,
.teacher-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
.strategy-item:focus,
.edu-card:focus,
.category-item:focus,
.routine-step:focus,
.community-item:focus,
.mobile-item:focus,
.teacher-item:focus {
  outline: 3px solid #ffd300;
  outline-offset: 2px;
}
