#skill_test_form {
    max-width: 600px;
    margin: auto;
}
.question-block {
    margin-bottom: 20px;
}
.question-block h1, .question-block h2, .question-block h3, .question-block h4, .question-block h5, .question-block h6 {
    text-transform: none;
}
.entry-content #quiz-container h3 {
    margin-bottom: 20px;
    text-align: center;
}
#unanswered-warning, #unanswered-warning p {
    line-height: 1.2;
    margin: 0 0 20px 0;
}
ul.questions-unanswered li, .entry-content ul.questions-unanswered li {
    list-style-type: disc;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

/* Questions animation */
.question-block {
    position: relative;
    left: 0;
    opacity: 1;
    display: none; /* Hide all questions by default */
    transition: all 0.5s ease; /* Smooth transition for position and opacity */
}
.question-block.animate-in {
    left: 0;
    opacity: 1;
    display: block; /* Show the specific question */
}

.question-block.animate-out {
    left: -100%;
    opacity: 0;
    display: block; /* Ensure it's still visible during animation */
}
/* Table scrollable horizontally on mobile */
/* Wrap the table in a scrollable container */
.table-container {
    overflow-x: auto; /* Enables horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Style the table to take full width */
.table-container table {
    width: 100%; /* Optional: Maintain table width */
    border-collapse: collapse;
}

/* Optional: Make the table responsive with minimal styles */
.table-container th,
.table-container td {
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Optional: Add a border */
.table-container th,
.table-container td {
    border: 1px solid #ddd;
}

/* Make the header stand out */
.table-container th {
    background-color: #f5f5f5;
    font-weight: bold;
}


/* Tab styling */
.auth-container .tab {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.auth-container .tab button {
    background-color: inherit;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.auth-container .tab button:hover {
    background-color: #ddd;
}

.auth-container .tab button.active {
    background-color: #f1f1f1;
    border-bottom: 2px solid #000;
}

/* Tab content */
.tabcontent {
    display: none;
    padding: 15px;
    border-top: none;
}

.tabcontent form {
    display: flex;
    flex-direction: column;
}

.tabcontent form label,
.tabcontent form input {
    margin-bottom: 10px;
}

/* Columns Flexbox */
.container-flex {
  display: flex;
  /*flex-wrap: wrap;*/
  justify-content: space-between;
  gap: 10px; /* Spacing between columns */
}
/* default styles columns */
.container-flex .column {
  /*background-color: #f0f0f0;*/
  /*border: 1px solid #ddd;*/
  padding: 10px;
  box-sizing: border-box;
}

.container-flex[data-columns="2"] > .column {
  flex: 0 0 calc(50% - 10px); /* 2 columns, 50% each */
}

.container-flex[data-columns="3"] > .column {
  flex: 0 0 calc(33.333% - 10px); /* 3 columns */
}

.container-flex[data-columns="4"] > .column {
  flex: 0 0 calc(25% - 10px); /* 4 columns */
}

.container-flex[data-columns="6"] > .column {
  flex: 0 0 calc(16.666% - 10px); /* 6 columns */
}

.container-flex[data-columns="12"] > .column {
  flex: 0 0 calc(8.333% - 10px); /* 12 columns */
}

/* 2/3 and 1/3 */
.container-flex[data-layout="2-3-1-3"] .column:nth-child(1) {
  flex: 0 0 calc(66.666% - 10px); /* 2/3 */
}

.container-flex[data-layout="2-3-1-3"] .column:nth-child(2) {
  flex: 0 0 calc(33.333% - 10px); /* 1/3 */
}

/* 1/3 and 2/3 (reversed) */
.container-flex[data-layout="1-3-2-3"] .column:nth-child(1) {
  flex: 0 0 calc(33.333% - 10px); /* 1/3 */
}

.container-flex[data-layout="1-3-2-3"] .column:nth-child(2) {
  flex: 0 0 calc(66.666% - 10px); /* 2/3 */
}

/* 3/4 and 1/4 */
.container-flex[data-layout="3-4-1-4"] .column:nth-child(1) {
  flex: 0 0 calc(75% - 10px); /* 3/4 */
}

.container-flex[data-layout="3-4-1-4"] .column:nth-child(2) {
  flex: 0 0 calc(25% - 10px); /* 1/4 */
}

/* 1/4 and 3/4 (reversed) */
.container-flex[data-layout="1-4-3-4"] .column:nth-child(1) {
  flex: 0 0 calc(25% - 10px); /* 1/4 */
}

.container-flex[data-layout="1-4-3-4"] .column:nth-child(2) {
  flex: 0 0 calc(75% - 10px); /* 3/4 */
}
/* Responsive Layout for Small Devices */
@media (max-width: 767px) {
  .container-flex {
    flex-wrap: wrap !important; /* Allows columns to stack */
    gap: 0;
  }

  .container-flex .column {
    flex: 0 0 100% !important; /* Full width for each column */
  }
}


/* Questions exam page*/
#quiz-container {
   margin: 0 0 1rem;
}
.entry-content ul.questions-fetched li {
   list-style-type: none;
}
form#quiz-form input[type=submit]:disabled, form#quiz-form input[type=submit][disabled] {
    border: 1px solid #c8c8c8;
    background-color: #cccccc;
    color: #898989;
    float: right;
}
.entry-content ul.questions-fetched li label {
    cursor: pointer;
    line-height: 1;
}
.entry-content ul.questions-fetched li {
    list-style-type: none;
    border: 1px solid #d8d8d8;
    /*border: none;*/
    border-radius: 25px;
    margin: 0 0 20px 0;
    padding: 10px 20px 6px 40px;
    background-color: #e8e8e8;
    text-align: left;
    cursor: pointer;
}
.entry-content ul.questions-fetched li:hover {
    border: 1px solid #787878;
    background-color: #c8c8c8;
}

/* Certificates */
.dc-certificates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dc-certificates-table th, .dc-certificates-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dc-certificates-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}


/* Spinner */
/* Backdrop styling */ 
.backdrop { 
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure it appears above other elements */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(253, 253, 253, 0.7);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 999;
    position: relative;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

