/* General Styles */
body {
  font-family: Helvetica, sans-serif;
  font-size: 13px;
}

/* Header Styles */
h3 {
  /* Add any specific styles for h3 elements here */
}

/* Explanation Type Styles */
.explanation-type {
  border: 1px solid rgb(204, 204, 204);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.explanation-type h3 {
  /* Add any specific styles for h3 elements inside .explanation-type here */
}

/* List Styles */
ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 10px;
}

ul li {
  border: 1px solid rgb(204, 204, 204);
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 5px;
}

ol li {
  border-bottom: 1px solid rgb(204, 204, 204);
  padding: 5px;
  margin-bottom: 5px;
}

/* Correct Answer Styles */
.correct {
  font-weight: bold;
  color: green;
}

/* Answer Table Styles */
.answer-table {
  border-collapse: collapse;
  width: 100%;
}

.answer-table th,
.answer-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgb(221, 221, 221);
}

.answer-table th {
  background-color: rgb(242, 242, 242);
}

.answer-table tbody tr:nth-child(2n) {
  background-color: rgb(249, 249, 249);
}

/* Horizontal Rule Styles */
hr:first-child {
  display: none;
}

hr {
  break-after: page;
  border: 1px solid white;
  width: 100%;
  display: none;
}

/* Image Styles */
td img {
  max-height: 280px;
}

/* Caderno de Respostas Styles */
.caderno-de-respostas {
  break-before: page;
}

/* Question Styles */
.question {
  border: 1px solid rgb(204, 204, 204);
  border-radius: 5px;
  padding: 53px 10px 10px;
  position: relative;
  break-inside: avoid;
}

.question .question-number,
.question .question-type {
  position: absolute;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background-color: rgb(240, 240, 240);
  border-radius: 5px;
  padding: 0px 10px;
  font-weight: bold;
  color: rgb(0, 0, 0);
}

.question .question-number {
  left: 10px;
}

.question .question-type {
  right: 10px;
  text-transform: uppercase;
}

.question .question-text {
  margin-top: 0;
  width: 100%;
}

.question-text img {
  margin: 15px 0;
  max-width: 100%;
  max-height: 380px;
}

/* Alignment Styles */
.center-align {
  text-align: center;
}

/* Question Container Styles */
#question-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 10px;
  max-width: 21cm;
  margin: 0 auto;
}

#question-container > .explanation-type {
  flex: 1 1 auto;
  width: 100%;
  display: none;
}

#question-container > .full-width {
  width: 100%;
  display: flex;
  align-items: center;
}

#question-container > .half-width {
  width: 46%;
}

.explanation img {
  max-width: 200px;
}

.svg-image {
  /* Add any specific styles for .svg-image here */
}

/* Answer Container Styles */
.answer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Number Answer Styles */
.answer.number-answer .answer-text {
  text-align: center;
}

.number-answer .answer-letter {
  position: absolute;
  top: 6px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background-color: rgb(241, 241, 241);
  font-weight: bold;
}

.answer-text {
  width: 100%;
}

.answer-label {
  /* Add any specific styles for .answer-label here */
}

/* Image Answer Styles */
.answer.image-answer {
  border: 1px solid gray;
  display: flex;
  flex: 0 1 0%;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

/* General Answer Styles */
.answer {
  position: relative;
  padding-left: 29px;
}

.correct-answer {
  /* Add any specific styles for correct answers here */
}

/* Footer Styles */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

/* Print Styles */
@media print {
  hr {
    border: 1px solid white;
  }

  .question-number,
  .answer-letter,
  .question-type {
    -webkit-print-color-adjust: exact;
    background-color: rgb(241, 241, 241);
  }

  .correct-answer {
    -webkit-print-color-adjust: exact;
  }

  .answer.image-answer {
    /* Add any specific styles for image answers in print mode here */
  }

  th,
  td {
    -webkit-print-color-adjust: exact;
    border-bottom: 1px solid rgb(221, 221, 221);
    break-inside: avoid;
  }

  th {
    -webkit-print-color-adjust: exact;
    background-color: rgb(242, 242, 242);
  }

  tbody tr:nth-child(2n) {
    -webkit-print-color-adjust: exact;
    background-color: rgb(249, 249, 249);
  }

  #question-container {
    /* Add any specific styles for #question-container in print mode here */
  }

  html,
  body {
    /* height: 297mm;
    width: 210mm; */
    padding: 0;
    margin: 0;
  }
}

/* Table Styles */
.answer-table td.text-center {
  text-align: center;
}

.GeneratedTable {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.GeneratedTable th,
.GeneratedTable td {
  padding: 27px;
  text-align: center;
  border: 1px solid rgb(221, 221, 221);
  overflow: hidden;
  text-overflow: ellipsis;
}

.GeneratedTable th {
  background-color: rgb(242, 242, 242);
}

.GeneratedTable tbody tr:nth-child(2n) {
  background-color: rgb(249, 249, 249);
}

.smallTable th, .smallTableLeft th, 
.smallTable td, .smallTableLeft td {
  padding: 13px;
}
.smallTableLeft td {
  text-align: left;
}

colgroup {
  display: table-column-group;
}

.columnTable {
  background-color: rgb(242, 242, 242) !important;
  border-right: 2px solid black;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
  /* Adjust styles for smaller screens and mobile devices here */
  /* For example: */

  /* Center-align question numbers and types */
  .question .question-number,
  .question .question-type {
    /*! position: static; */
    text-align: center;
  }

  /* Remove absolute positioning for question numbers and types */
  .question .question-number,
  .question .question-type {
    /*! position: static; */
    text-align: center;
  }

  /* Make images in questions responsive */
  .question-text img {
    max-width: 100%;
    height: auto;
  }

  /* Adjust the width of answer containers */
  .answer-container {
    flex-wrap: wrap;
    gap: 5px;
  }

  .answer {
    width: 100%;
  }

  /* Increase font size for better readability */
  body {
    font-size: 16px;
  }

  /* Add any other specific responsive styles for your content */
}
