body {
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  text-align: center;
}


nav {
  background-color: rgba(236,7,7,0.85);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul { list-style:none; display:flex; gap:2rem; padding:0; margin:0; }
nav li { cursor:pointer; line-height:1; }
nav li:hover { text-decoration:underline; }

.section { display:none; padding:2rem; }
#home { display:block; }

#header h1 { color:red; font-size:3rem; margin:0; }
#header h2 { font-size:1.5rem; margin:0.5rem 0 2rem; }

.quiz-container { max-width:700px; margin:auto; position:relative; }
#sign-image { width:100%; border:1px solid #444; border-radius:4px; margin-bottom:15px; }
.tabs { display:flex; justify-content:space-between; margin-bottom:10px; }
.tab { flex:1; padding:8px; margin:0 2px; background:#555; cursor:pointer; border-radius:4px 4px 0 0; color:#ccc; }
.tab.active { background:#888; color:#fff; }
.question { display:flex; flex-direction:column; align-items:center; gap:20px; }
.answer-buttons { display:flex; justify-content:center; gap:30px; margin-top:30px; }
.answer-buttons button { width:300px; height:120px; font-size:32px; font-weight:bold; border-radius:12px; border:3px solid #fff; background-color:#222; color:#fff; cursor:pointer; transition: all 0.2s ease; }
.answer-buttons button:hover { background-color:#555; transform:scale(1.05); }
.answer-buttons button.selected { background-color:#0a84ff; color:#fff; }
.true-btn { background:#0a0; color:#fff; }
.false-btn { background:#a00; color:#fff; }



#popup-overlay h3 { text-align:center; margin-top:0; }
#popup-overlay ul { padding-left:20px; margin:0; }
#popup-overlay ul li { padding:5px 0; border-bottom:1px solid #fff; }
.wrong-list { color:red; margin-top:10px; }
.next-btn { display:block; margin:20px auto 0 auto; padding:16px 30px; background:#444; color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:18px; }


.english {
  color: #3b82f6 !important; /* bright blue */
}

#insurance-quiz .quiz-container {
  max-width: 600px;
  margin: 1rem auto;
  text-align: center;
}

#insurance-quiz .question {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#insurance-quiz .true-btn, 
#insurance-quiz .false-btn {
  padding: 0.5rem 2rem;
  margin: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

#insurance-rules {
  display: none; /* Optional, if you want to be explicit */
}



/* overlay covers entire screen, hidden by default */
/* Overlay dims the background */
/* Overlay dims the background */
/* Overlay dims the background */
/* Overlay: full screen, dim background */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;  /* horizontal centering */
  padding: 20px;            /* space around popup */
  z-index: 9999;
  overflow: hidden;          /* prevents overlay scroll */
  box-sizing: border-box;
}

/* Popup content: auto height, scroll if too tall */
.popup-content {
  background: transparent;   /* no border, no background */
  box-shadow: none;
  border: none;
  padding: 20px;
  width: auto;
  max-width: 600px;
  max-height: 80vh;          /* popup can grow up to 80% of viewport */
  overflow-y: auto;          /* only popup scrolls */
  display: block;            /* not flex, so it fits content height */
  box-sizing: border-box;
}

.insurance-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

.insurance-text .italian {
  color: #ffffff; /* white */
  margin-bottom: 1rem;
}

.insurance-text .english {
  color: #1e90ff; /* blue */
  margin-bottom: 1rem;
}

/* ===== Road Rules Bilingual Section ===== */

.road-rules-text {
  margin-top: 2rem;
  padding: 25px;
  background: #111;
  border-radius: 10px;
  line-height: 1.6;
}

/* Italian text */
.road-rules-text .italian {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

/* English text */
.road-rules-text .english {
  color: #3fa9ff;
  margin-bottom: 1rem;
}

/* Lists */
.road-rules-text ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

/* Headings */
.road-rules-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Divider */
.road-rules-text hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 1.5rem 0;
}
#safety-rules h1 {
  color: red;
}

/* Desktop grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 0.5rem;
  max-width: 500px;
  margin-top: 1rem;
}

/* Second row buttons positioning */
.materials-grid button:nth-child(4),
.materials-grid button:nth-child(5) {
  grid-column: span 1;
}

.menu-btn {
  background-color: #fff;
  color: red;
  border: 1px solid red;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.menu-btn:hover {
  background-color: red;
  color: #fff;
}

/* Hamburger button styling */
#hamburger-btn {
  display: none; /* hidden on desktop */
  background-color: red;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

/* Car Parts Section */
#car-parts {
  display: none; /* hidden by default */
  padding: 20px;
  background-color: #222;
  line-height: 1.5;
}

/* Headings in red */
#car-parts h1,
#car-parts h2 {
  color: red;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Text colors */
#car-parts .italian {
  color: white;
  margin-left: 1em;
  margin-bottom: 0.5em;
}

#car-parts .english {
  color: blue;
  margin-left: 1em;
  margin-bottom: 1em;
}

/* Vocabulary quiz buttons container */
.vocab-buttons {
  display: flex;
  justify-content: center;  /* center horizontally */
  gap: 10px;                /* space between buttons */
  margin-top: 15px;         /* spacing from columns above */
}

/* Center the whole game container */
#game-container {
  display: flex;
  justify-content: center;  /* centers the two columns horizontally */
  gap: 50px;                /* space between Italian & English columns */
  flex-wrap: wrap;           /* ensures responsiveness on smaller screens */
  margin-top: 20px;
}




/* Each column of buttons */
#italian-buttons,
#english-buttons {
  display: flex;
  flex-direction: column;   /* stack buttons vertically */
  gap: 10px;                /* space between buttons */
  min-width: 200px;         /* optional: make columns a decent width */
}

/* Italian buttons: red background, white text; hover white with red text */
#italian-buttons button {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #cc0000;
  background-color: #cc0000; /* Italian buttons start red */
  color: #fff;               /* white text */
  cursor: pointer;
  transition: all 0.3s ease;
}

#italian-buttons button:hover {
  background-color: #fff;    /* hover: white background */
  color: #cc0000;            /* hover: red text */
}

/* English buttons: white background, red text; hover red with white text */
#english-buttons button {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #cc0000;
  background-color: #fff;    /* English buttons start white */
  color: #cc0000;            /* red text */
  cursor: pointer;
  transition: all 0.3s ease;
}

#english-buttons button:hover {
  background-color: #cc0000; /* hover: red background */
  color: #fff;               /* hover: white text */
}






/* Each column stacks buttons vertically */
#italian-buttons,
#english-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; /* center buttons inside column */
}

/* Button styling */
.match-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px;
}

/* Each column stacks buttons */
#italian-buttons,
#english-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;         /* space between buttons */
    align-items: center; /* center buttons horizontally in column */
}

/* Button styling */
.match-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px; /* uniform button width */
}

/* Each column stacks buttons */
#italian-buttons,
#english-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;         /* space between buttons */
    align-items: center; /* center buttons horizontally in column */
}

/* Button styling */
.match-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px; /* uniform button width */
}


/* Button columns stacked vertically */
#italian-buttons,
#english-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;  /* vertical spacing between buttons */
    align-items: center; /* center buttons in each column */
}

/* Optional: style buttons */
.match-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px;  /* makes buttons uniform size */
}



/* Button columns stacked vertically */
#italian-buttons,
#english-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px; /* space between buttons */
}

/* Optional: style buttons */
.match-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}




/* Section buttons container */
.section-buttons {
  display: flex;
  flex-wrap: wrap;       /* Wrap to next line if needed */
  justify-content: center; /* Center buttons horizontally */
  gap: 12px;             /* Space between buttons */
  margin-top: 1em;
}

/* Buttons styling - restored previous color scheme */
.section-buttons button {
  padding: 12px 25px;
  font-size: 1rem;
  background-color: #fc0505;  /* Original blue background */
  color: rgb(250, 247, 247);                /* Text white */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.section-buttons button:hover {
  background-color: #f5f1f1;  /* Darker blue on hover */
  color: rgb(3, 3, 3);
  transform: translateY(-1px);
}


.popup-content button {
  margin-top: 15px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  background: #cc0000;
  color: white;
  cursor: pointer;
}

/* Mobile responsive - stack buttons vertically */
@media (max-width: 600px) {
  .section-buttons {
    flex-direction: column; /* Stack vertically */
    align-items: center;
  }
  .section-buttons button {
    width: 80%;            /* Fill most of the screen width */
  }
}





/* Mobile styling */
@media (max-width: 600px) {
  .materials-grid {
    display: none; /* hide menu by default on mobile */
    grid-template-columns: 1fr; /* single column for mobile */
  }

  #hamburger-btn {
    display: block;
  }
}
#materials {
    text-align: center; /* centers inline/block elements under the heading */
}

#materials-menu {
    display: inline-grid;                  /* treat grid as inline so it can be centered */
    grid-template-columns: repeat(3, 150px); /* first row: 3 buttons */
    gap: 10px;
    justify-content: center;               /* center the grid itself */
    margin-top: 10px;                      /* spacing under the heading */
}

/* second row: place remaining buttons under first row */
#materials-menu button:nth-child(4),
#materials-menu button:nth-child(5) {
    grid-column: span 1;                  /* ensures they go on second row */
}

/* Optional: responsive stacking on small screens */
@media (max-width: 600px) {
    #materials-menu {
        grid-template-columns: 1fr;       /* all buttons stacked vertically */
    }
}








/* Mobile styles */
@media (max-width:768px) {
  #sign-image { width:90%; margin:40px auto 20px; }
  #question-text { font-size:28px; }

  .true-btn, .false-btn { width:80%; height:70px; font-size:32px; margin:15px 0; }
  .next-btn { font-size:28px; padding:20px 30px; }
}

  #popup-overlay .popup-content {
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    padding: 30px;
    border-radius: 20px;
  }


body {
  margin: 0;
  background-color: black;
  color: rgb(247, 243, 243);
  font-family: Arial, sans-serif;
  text-align: center;
}

nav {
  background-color: rgba(236, 7, 7, 0.856);
  padding: 0 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

nav li {
  cursor: pointer;
  line-height: 1;
}

nav li:hover {
  text-decoration: underline;
}

#header {
  margin-top: 2rem;
}

#header h1 {
  color: red;
  font-size: 3rem;
  margin: 0;
}

#header h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 2rem;
}

.section {
  display: none;
  padding: 2rem;
}

#home {
  display: block;
}

#main-content img {
  max-width: 25%;
  margin-top: 2rem;
  height: auto;
}

@media (max-width: 768px) {
  #main-content img {
    max-width: 80%;
    width: auto;
  }
}

button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
}

.quiz-buttons button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
}

#quiz-result {
  margin-top: 2rem;
  text-align: center;
}

.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0px); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0px); }
}

.teoria p {
  margin: 0.5rem 0;
}

.italian {
  color: rgb(242, 243, 245);
}

.english {
  color: rgb(123, 181, 235); /* Change this to whatever color you want */
  font-weight: normal; /* Optional, if you want English normal weight */
}

.coach-img {
  width: 250px;       /* desktop size */
  max-width: 80%;     /* ensures it doesn’t overflow on small screens */
  height: auto;
  display: block;
  margin: 0 auto 1rem; /* center with bottom margin */
}

@media (max-width: 768px) {
  .coach-img {
    width: 180px;     /* slightly smaller on mobile */
  }
}


.coach-profile {
  max-width: 600px;  /* limit text width */
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}
        body {
            background-color: #000;
            color: #fff;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        .quiz-container {
            position: relative;
            max-width: 700px;
            margin: auto;
        }
        #sign-image {
            width: 300px;      /* choose the size you want */
            height: 300px;     /* same height = uniform signs */
            object-fit: contain;  /* keeps proportions, no distortion */
            display: block;
            margin: 0 auto;    /* keeps it centered */
        }

        
        .tabs {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .tab {
            flex: 1;
            padding: 8px;
            margin: 0 2px;
            background: #555;
            text-align: center;
            cursor: pointer;
            border-radius: 4px 4px 0 0;
            color: #ccc;
            user-select: none;
        }
        .tab.active { background: #888; color: #fff; }

        
        /* Ensure the question container allows the button to grow */
        /* Ensure the container allows buttons to expand */
    .question {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
}
    .answer-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.answer-buttons button {
    width: 200px;       
    height: 120px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 12px;
    border: 3px solid #fff;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.answer-buttons button.selected {
    background-color: #0a84ff;
    color: #fff;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.answer-buttons button {
    width: 300px;       
    height: 120px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 12px;
    border: 3px solid #fff;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.answer-buttons button.selected {
    background-color: #0a84ff;
    color: #fff;
}
       .true-btn { background: #0a0; color: #fff; }
        .false-btn { background: #a00; color: #fff; }


      
        #popup-overlay h3 { margin-top: 0; text-align: center; }
        #popup-overlay ul { padding-left: 20px; margin: 0; }
        #popup-overlay ul li { 
            padding: 5px 0; 
            border-bottom: 1px solid #fff; /* line between wrong answers */
        }
        .wrong-list { color: red; margin-top: 10px; }
        .next-btn {
            display: block;
            margin: 20px auto 0 auto; /* centered */
            padding: 16px 30px;
            background: #444;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 18px;
        }

    #question-text {
    font-size: 28px; /* increase as needed */
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin: 20px 0;
}
    /* Mobile-specific styles */

@media (max-width: 768px) {
    /* Push image down to make room for popup */
    #sign-image {
        width: 90% !important;
        margin: 40px auto 20px auto !important;
        display: block;
    }

    /* Make question text bigger */
    #question-text {
        font-size: 18px !important;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 20px;
    }


    
}


    /* True/False buttons bigger for mobile */
    .true-btn, .false-btn {
        width: 90% !important;
        height: 80px !important;
        font-size: 32px !important;
        margin: 15px 0 !important;
    }

    /* Popup "Next Sign" button bigger */
    .next-btn {
        font-size: 28px !important;
        padding: 20px 30px !important;
        display: block;
        margin: 20px auto 0 auto;
    }

  




     body {
            background-color: #000;
            color: #fff;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        .quiz-container {
            position: relative;
            max-width: 700px;
            margin: auto;
        }
        #sign-image {
            width: 100%;
            border: 1px solid #444;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .tabs {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .tab {
            flex: 1;
            padding: 8px;
            margin: 0 2px;
            background: #555;
            text-align: center;
            cursor: pointer;
            border-radius: 4px 4px 0 0;
            color: #ccc;
            user-select: none;
        }
        .tab.active { background: #888; color: #fff; }

        
        /* Ensure the question container allows the button to grow */
        /* Ensure the container allows buttons to expand */
    .question {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
}
    .answer-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.answer-buttons button {
    width: 200px;       
    height: 120px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 12px;
    border: 3px solid #fff;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.answer-buttons button.selected {
    background-color: #0a84ff;
    color: #fff;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.answer-buttons button {
    width: 300px;       
    height: 120px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 12px;
    border: 3px solid #fff;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.answer-buttons button.selected {
    background-color: #0a84ff;
    color: #fff;
}
       .true-btn { background: #0a0; color: #fff; }
        .false-btn { background: #a00; color: #fff; }


        #popup-overlay {
            display: none;
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 400px; /* popup width */
            background: rgba(0,0,0,0.95);
            border: 3px solid #fff; /* border */
            border-radius: 10px;
            padding: 20px;
            overflow: auto;
            z-index: 10;
        }

        
        .wrong-list { color: red; margin-top: 10px; }
        .next-btn {
            display: block;
            margin: 20px auto 0 auto; /* centered */
            padding: 16px 30px;
            background: #444;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 18px;
        }

    #question-text {
  
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin: 20px 0;
}

/* Shorter input boxes and textarea, centered */
#about-coach form input,
#about-coach form textarea {
    width: 80%;          /* make them shorter than the form width */
    max-width: 400px;    /* optional: limit max width */
    padding: 12px 15px;
    margin: 10px auto;   /* centers each input horizontally */
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 16px;
    display: block;      /* ensures margin auto works */
}
#about-coach form input,
#about-coach form textarea,
#about-coach form button {
    display: block;
    margin: 10px auto; /* center each element */
}
/* Center the contact form under the heading */
#about-coach h2 {
    text-align: center;
    margin-bottom: 20px; /* space between heading and form */
}

#about-coach form {
    display: block;          /* ensures it behaves like a block element */
    margin: 0 auto 40px auto; /* center horizontally, add bottom margin */
    max-width: 500px;        /* limit width */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8); /* black with slight transparency */
    border: 5px solid #fff;  /* white border */
    border-radius: 12px;
    font-family: Arial, sans-serif;
    color: #fff;             /* text color white */
    box-shadow: none;
    text-align: left;        /* keep inputs left-aligned inside form */
}

.match-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.match-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-btn {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 6px;
    min-width: 180px;
}

.italian-btn {
    background-color: rgb(255, 2, 2);
    color: black;
}

.english-btn {
    background-color: rgb(252, 250, 250);
    color: rgb(253, 2, 2);
}

.selected {
    outline: 3px solid gold;
}

#match-message {
    margin-top: 20px;
    font-weight: bold;
}

.price-highlight {
    color: rgb(50, 146, 255);
    font-size: 20px;   /* adjust size if you want bigger */
    font-weight: 600;
}
#vocab-results-popup {
  position: fixed;          /* attach to viewport */
  inset: 0;                 /* full screen */
  background: rgba(0,0,0,0.6);
  display: none;            /* hidden by default */
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  z-index: 9999;
}

#vocab-results-popup .popup-content {
  background: rgba(0,0,0,0.95);
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

/* Vocabulary Match Game buttons */
#vocabulary button.italian-btn,
#vocabulary button.english-btn {
    width: 120px;      /* Fixed width */
    height: 50px;      /* Fixed height */
    margin: 5px;       /* Space between buttons */
    font-size: 16px;   /* Text size */
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 5px;
}


/* Green highlight for correct */
.correct {
    background-color: #4CAF50 !important;
    color: white;
}

/* Shake animation for wrong */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s;
    background-color: #f44336 !important;
    color: white;
}




.wrong-shake {
  background-color: #ffd102 !important; /* red-ish for wrong */
  color: #fff !important;
  animation: shake 0.5s;
}

/* --- Question styles --- */
#test-italian {
    font-size: 1.6em;
    color: #ffffff; /* blue */
    margin-bottom: 0.5em;
}

#test-english {
    font-size: 1.4em;
    color: #2583fd; /* dark orange */
    margin-bottom: 1em;
}

/* --- Button feedback --- */
.correct {
    background-color: #4CAF50 !important; /* green */
    color: white !important;
}

.wrong {
    background-color: #FFD700 !important; /* yellow */
    color: black !important;
    animation: shake 0.5s;
}
/* --- Test buttons --- */
#test-true,
#test-false {
    font-size: 1.3em;        /* bigger text */
    padding: 12px 30px;      /* bigger click area */
    margin: 0 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#test-true:hover,
#test-false:hover {
    transform: scale(1.05);
}

#test-questions h2 {
    color: red;
}


    /* Mobile-specific styles */

@media (max-width: 768px) {
    /* Push image down to make room for popup */
    #sign-image {
        width: 90% !important;
        margin: 40px auto 20px auto !important;
        display: block;
    }

    /* Make question text bigger */
    #question-text {
 
        line-height: 1.5;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Scale up the popup overlay */
    @media (max-width: 768px) {
   
}


    /* True/False buttons bigger for mobile */
    .true-btn, .false-btn {
        width: 90% !important;
        height: 80px !important;
        font-size: 32px !important;
        margin: 15px 0 !important;
    }

    /* Popup "Next Sign" button bigger */
    .next-btn {
        font-size: 28px !important;
        padding: 20px 30px !important;
        display: block;
        margin: 20px auto 0 auto;
    }

   /* Center the contact form under the heading */
#about-coach h2 {
    text-align: center;
    margin-bottom: 20px; /* space between heading and form */
}

#about-coach form {
    display: block;          /* ensures it behaves like a block element */
    margin: 0 auto 40px auto; /* center horizontally, add bottom margin */
    max-width: 500px;        /* limit width */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8); /* black with slight transparency */
    border: 2px solid #fff;  /* white border */
    border-radius: 12px;
    font-family: Arial, sans-serif;
    color: #fff;             /* text color white */
    box-shadow: none;
    text-align: left;        /* keep inputs left-aligned inside form */
}


/* ===== Contact Form Styles ===== */


#about-coach form input,
#about-coach form textarea {
    width: 80%;          /* make them shorter than the form width */
    max-width: 400px;    /* optional: limit max width */
    padding: 12px 15px;
    margin: 10px auto;   /* centers each input horizontally */
    border: 3px solid #fff;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 16px;
    display: block;      /* ensures margin auto works */
}

#about-coach form input:focus,
#about-coach form textarea:focus {
    border-color: #e63946; /* red accent */
    outline: none;
    box-shadow: 0 0 5px rgba(230,57,70,0.3);
}

#about-coach form button {
    width: 100%;
    padding: 14px;
    background-color: #e63946; /* red button */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#about-coach form button:hover {
    background-color: #d62839;
    transform: translateY(-2px);
}

#about-coach form button:active {
    transform: translateY(0);
}

#about-coach form input[name="website"] {
    display: none; /* keep honeypot hidden */
}

/* Optional: style the headings in the section */
#about-coach h1, #about-coach h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
  }
}

/* Points and Penalties section */
#points-penalties {
  display: block;
  text-align: center;       /* center the text block */
  margin: 0 auto;
  max-width: 800px;         /* keeps text narrower */
}

#points-penalties h1 {
  color: red;
  text-align: center;
}
#points-penalties h2 {
  color: red;
  text-align: center;
}
#points-penalties {
  text-align: center;
}

#points-penalties h1,
#points-penalties h2,
#points-penalties p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px; /* keeps text readable */
}

/* MOBILE FIX */
@media (max-width: 768px) {

  #game-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;      /* NEVER wrap */
    justify-content: center;
    width: 94%;             /* creates side margins */
    margin: 0 auto;
    gap: 10px;
  }

  #italian-buttons,
  #english-buttons {
    flex: 1;                /* equal width columns */
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

}
