/* General styling */
 /* Dark theme styles - copy this to css */
    body {
      background-color: #1e1e1e;
      color: #f0f0f0;
      font-family: 'Segoe UI', sans-serif;
      line-height: 1.6;
      margin: 0;
      padding: 20px;
      text-align: center;
      padding-bottom: 60px;
    }

    h1 {
      text-align: center;
      margin-bottom: 30px;
    }

    section {
      max-width: 1000px;
      margin: auto;
    }

    h2, h3, h4, h5, h6 {
      margin-top: 40px;
      color: #7ba77d;
      border-bottom: 1px solid #444;
      padding-bottom: 5px;
    }

    p {
      margin: 15px 0;
    }




/* Quiz table container */
#quiz {
    display: flex;
    justify-content: center;
    gap: 5px; /* DO NOT INCREASE */
    flex-wrap: wrap; /* allow wrapping on small screens? test */
    margin-top: 20px;
}

/* Table styling */
.quiz-table {
    border-collapse: collapse;
    background-color: #97a198; 
    border: 1px solid #555;
    color: #000000;   
    width: 300px;              
}

.quiz-table th, .quiz-table td {
    border: 1px solid #555;
    padding: 0;           
} 

/* Input styling */
.quiz-table input {
    width: 100%;               
    box-sizing: border-box;    
    padding: 10px 15px;       
    font-size: 1em;
    border: none;
    background-color: transparent; 
    color: #000000;           
}

/* Disabled inputs (correct answers) */
.quiz-table input:disabled {
    background-color: transparent; /* keep transparent. probably test this */
    color: #dbe6d2;            /* texT */
    cursor: default;
    outline: none;             /* remove focus */
}

/*  make it green! */
.quiz-table td:has(input:disabled) {
    background-color: #81a581; /* green for correct answers */
}

/* Add class "correct-answer" to td via js */
.quiz-table td.correct-answer {
    background-color: #1d3a1e; /* green for correct answers. maybe make lighter */
}


/* BUTTONS styling */


button:hover {
    background-color: #566b56;   
    transform: translateY(-2px);
}

button {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin: 10px;
    border-radius: 4px;
}

#grammar-buttons button:hover {
    background-color: #566b56;  
}

/* hide buttons on the quiz pages */

#nav-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;  /* stack all row vertically */
    align-items: center;
    gap: 15px;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
#nav-buttons.hidden {
    display: none;
}



/* Responsive buttons test */
@media (max-width: 600px) {
    body {
        margin: 10px;
    }
    .quiz-table {
        width: 100%;  
        max-width: 320px;
    }
    button {
        width: 90%;
        max-width: 300px;
    }
    #nav-buttons {
        gap: 10px;
    }
}

/* CONTACT AND ABOUT */
#footer-links {
    background-color: #1e1e1e;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #ebebeb;
    padding: 10px 0;
    border-top: 1px solid #333;
    text-align: center;
    z-index: 1000;
}

#footer-links a {
    color: #ebebeb;
    text-decoration: none;
    margin: 0 10px;
}


footer {
      text-align: center;
      margin-top: 50px;
      padding-top: 20px;
      border-top: 1px solid #333;
    }


    #footer-links a:hover {
      color: #fff;
      text-decoration: underline;
    }

    

/*-------------------------------------------------------- OTHER PAGES------------------------------ */


/* fucking lets try to wrap all grammar pages into one container. this should not affect the quiz */

#grammar-resources-heading {
    display: none;
}


.grammar-container {
  max-width: 1000px;
  margin: 0 auto;  /* centers the container */
  padding: 20px;   /* just incase it needs it i guess test without */
  padding-bottom: 60px;
}




/*GRAMMAR MAIN  PAGE*/

#grammar-buttons {
    text-align: center; 
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

#grammar-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#go-back-btn {
  text-align: center;
  margin-top: 20px;
}

#go-back-btn button:hover {
    background-color: #566b56;  
}

.compact-examples p {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  line-height: 1.2;
}
