/* static/css/style.css */
.badge-category {
    margin-bottom: 30px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.badge {
    text-align: center;
    flex: 0 1 calc(25% - 20px); /* Three items per row */
    box-sizing: border-box;
}

.badge img {
    width: 100px;
    height: 100px;
}

@media (max-width: 768px) {
    .badge {
        flex: 0 1 calc(50% - 20px); /* Two items per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .badge {
        flex: 0 1 calc(100% - 20px); /* One item per row on very small screens */
    }
}

.hidden {
    display: none !important;
}

.badge-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.badge-content {
    background: rgba(153, 52, 22, 1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.badge-content img {
    max-width: 100px;
}

.badge-content p {
    margin-top: 10px;
}

.badge-content button {
    margin-top: 20px;
    padding: 10px 20px;
}

#feedback-container {
    position: fixed;
    z-index: 0; /* Lower than the navbar */
    /* Other properties remain the same */
}

#feedback-container.slide-in-left {
    position: fixed;
    left: -100%; /* Start off-screen */
    top: 50%;
    transform: translateY(-50%) translateX(-50%); /* Center vertically and horitzontally */
    width: 300px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    transition: left 0.5s ease-in-out; /* Smooth slide-in */
}

#feedback-container.slide-in-left.show {
    left: 50%;
}

/* Styles for Correct Feedback */
.correct-feedback #feedback-container {
    left: -100%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 300px;
    height: 200px;
    transition: left 0.5s ease-in-out;
}

.correct-feedback #feedback-mascot {
    width: 256px; /* Size for the mascot in correct feedback */
    height: auto;
}

.correct-feedback #feedback-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Mascot on the left */
    grid-template-rows: 1fr 1fr;
    height: 100%;
    width: 100%;
}

/* Styles for Incorrect Feedback */
.incorrect-feedback #feedback-container {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    transition: top 0.5s ease-in-out;
}

.incorrect-feedback #feedback-mascot {
    width: 256px; /* Larger size for the mascot in incorrect feedback */
    height: auto;
}

.incorrect-feedback #feedback-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Mascot on the right */
    grid-template-rows: 1fr 1fr;
    height: 100%;
    width: 100%;
}

.incorrect-feedback #feedback-container.show {
    top: 50%; /* Move it into view */
    transform: translate(-50%, -50%);
}

#mascot-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

#feedback-mascot {
    width: 512px;
    height: auto;
}

#message-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10px; /* Add space between the mascot and the text */
}

#feedback-message {
    margin: 0;
    font-size: 16px; /* Adjust font size as needed */
}

#next-button {
    margin-top: 10px; /* Space between the message and the button */
}

/* For the mascot on the prompt page */
.mascot-container {
    width: 200px; /* Set the width of the mascot container */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mascot-icon {
    width: 100%; /* Mascot image will fill the container */
    height: auto;
}

.item-mastery {
    width: 32px; /* Adjust size as needed */
}

.item-mastery-box {
    width: 24px; /* Size of the mastery boxes */
    height: 24px;
    margin-bottom: 4px;
    background-color: #e0e0e0; /* Placeholder color, change as needed */
    border-radius: 2px;
}

.green-box {
    background-color: #28a745; /* Bootstrap green */
}

.session-stats {
    font-size: 0.75rem;
    color: #fff; /* Ensure the text is visible on a dark background */
}

/* Change the background color of accordion headers */
.accordion-header {
    background-color: #333; /* Darker background for the header */
    color: #fff; /* Light text color */
}

/* Change the background color of the active accordion item */
.accordion-item.active .accordion-header {
    background-color: #444; /* Slightly lighter background when active */
}

/* Change the background color of accordion body */
.accordion-body {
    background-color: #222; /* Dark background for the body */
    color: #ddd; /* Light text color */
}

/* Custom CSS for Small Caps with Serif Font */
.latin-text {
    font-variant: small-caps;
    font-family: 'Georgia', 'Times New Roman', serif; /* Specify serif fonts */
}

.translation-text {
    font-family: "Courier New", Courier, monospace;  /* Monospace font to clearly distinguish characters */
}

/* Style for the part of speech abbreviation */
.pos-abbreviation {
    text-align: right;
    font-size: small;
    text-transform: lowercase;
    vertical-align: middle;
}

/* Style for grammatical information like gender and cases governed */
.grammatical-info {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    text-transform: lowercase;
}

/* image thumbnails for pop-up lexicon */
.thumbnail {
    width: 50px; /* Adjust as needed */
    height: auto;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
}

/* Responsive images */
.responsive-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .thumbnail {
        width: 30px; /* Smaller thumbnails for mobile */
    }
    .responsive-image {
        width: 100%;
    }
}

/* Full-size images in modal */
.full-image {
    width: 100%;
    height: auto;
}

/* Image grid layout styling */
.image-grid-container {
    display: flex;
    justify-content: center; /* Center the grid */
    margin-top: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr)); /* 2 images per row */
    gap: 10px;
    margin-top: 20px;
    max-width: 270px; /* Limit the overall width of the grid */
}

.image-grid img {
    width: 100%;
    height: auto;
    max-width: 128px; /* Shrink from default 512x512 to a more reasonable size */
    cursor: pointer;
}

/* styling for new vocab words in the Iter app */
.new-vocab-word {
    color: green;
    text-decoration: underline;
    text-decoration-style: dashed;
}

.new-vocab-word:hover {
    color: darkgreen;
    text-decoration: underline;
    text-decoration-style: dashed;
}

/* for the audio icon in the Iter app */
.play-audio-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;  /* Makes it clear it's clickable */
}

/* For the image grid select in the Iter app */
.image-option input[type="radio"] {
    display: none;
}

.image-option img {
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.3s ease;
}

.image-option input[type="radio"]:checked + img {
    border: 5px solid darkblue;
}

/* For the multiple choice select in the Iter app */

.multiple-choice-options {
    display: flex;
    flex-wrap: wrap; /* This will wrap the buttons onto the next row if they exceed the container width */
    gap: 10px; /* Add some spacing between buttons */
    justify-content: center; /* Center the buttons */
}

.choice-button.selected {
    background-color: #0066cc; /* Change color when selected */
}

.choice-button:hover {
    background-color: #0066cc; /* Darker green on hover */
}

.choice-button:focus {
    outline: none; /* Remove the outline on focus */
}

/* Feedback modal for the practice app*/
.feedback-banner .modal-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  width: 100%;
  max-width: none; /* remove any max-width restrictions */
}

/* Optional: Remove rounded corners and adjust background if desired */
.feedback-banner .modal-content {
  border-radius: 0;
  /* Adjust background, padding, etc. as desired */
}

/* Optional: Adjust modal header/footer so the banner looks cohesive */
.feedback-banner .modal-header,
.feedback-banner .modal-footer {
  padding: 0.5rem 1rem;
}

/* Add a right border to every progress bar segment except the last one */
.progress-bar {
  border-right: 2px solid #ffffff; /* or another contrasting color */
}

.progress-bar:last-child {
  border-right: none;
}

/* Icons for the lesson selection */
.curriculum-tile {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.curriculum-tile:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.unit-tile {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.unit-tile:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.lesson-tile {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  position: relative;
}

.lesson-tile:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.vocab-overlay {
  z-index: 10; /* ensures it sits above the image */
}
/* Settings drawer for practice app */
#settings-drawer {
  position: fixed;
  top: 0;
  right: -300px; /* Hidden off-screen initially */
  width: 300px;
  height: 100%;
  background: #f8f9fa;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  padding: 15px;
  overflow-y: auto;
  z-index: 1000;
}
/* When open, bring the drawer onscreen */
#settings-drawer.open {
  right: 0;
}
/* Handle styling */
#drawer-handle {
  position: fixed;
  top: 50%;
  right: 0;
  margin: 0;
  transform: translate(25%, -50%) rotate(-90deg);
  transform-origin: center;
  background: #007bff;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  transition: right 0.3s ease;
  z-index: 1001;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
  cursor: pointer;
}

#settings-drawer.open + #drawer-handle {
  right: 300px; /* Same as the drawer's width */
}

/* "Carousel" to move from curriculum to unit to lesson and back */
.carousel-container {
  overflow: hidden;
  width: 100%;
  height: auto; /* Adjust as needed */
  position: relative;
  transition: height 0.3s ease;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.slide.active {
  transform: translateX(0); /* Bring active slide into view */
}

/* Initially, only the active slide is visible */
.slide:not(.active) {
  transform: translateX(100%);
}

/* When sliding in from the right (e.g., moving to units from curricula) */
.slide.slide-in {
  transform: translateX(0%);
}

/* When sliding out to the left */
.slide.slide-out-left {
  transform: translateX(-100%);
}

/* When sliding out to the right */
.slide.slide-out-right {
  transform: translateX(100%);
}

/* Add some padding to the body of the main container for the practice app */
.container {
  padding-bottom: 60px; /* or the height of your fixed footer */
}

/* Admin panel for SentenceConstruction */
