/* CSS styles */

@font-face {
    font-family: FontAwesome;
    /* Replace local URLs with jsDelivr CDN URLs */
    src: url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0");
    src: url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0")
        format("embedded-opentype"),
      url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0")
        format("woff2"),
      url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0")
        format("woff"),
      url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0")
        format("truetype"),
      url("https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular")
        format("svg");
    font-weight: 400;
    font-style: normal;
  }
  
  .fa {
    display: inline-block;
    font: normal normal normal 25px / 1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .fa-check-circle:before {
    content: "\F058";
  }
  
  .fa-times-circle:before {
    content: "\F057";
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
  }
  
  /* General styling for the language switcher */
  .language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 100%;
    position: relative;
  }
  
  .language-switcher .selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #229ec3;
    font-weight: 600;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #229ec3;
    border-radius: 5px;
    background-color: #fff;
    width: 120px;
  }
  
  .language-switcher .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px;
    background-color: #fff;
    border: 2px solid #229ec3;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 120px;
    color: #229ec3;
    font-weight: 600;
  }
  
  .language-switcher .dropdown.active {
    display: block;
  }
  
  .language-switcher .dropdown .language-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .language-switcher .dropdown .language-option:hover {
    background-color: #f0f0f0;
  }
  
  .language-switcher .flag {
    /* width: 24px; */
    height: 24px;
    border-radius: 3px;
    padding-right: 10px;
  }
  
  
  /* Main Form Container Styles */
  
  .main-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
  }
  
  .form-container br {
    display: none;
  }

  .form-container .radio-group  br {
    display: block;
  }
  
  .form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #229ec3;
  }
  
  .question {
    display: none; /* Initially hide all questions */
    margin-bottom: 15px;
    color: #229ec3;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid #229ec3;
  }
  
  .question.visible {
    display: flex;
    flex-direction: column; /* Stacks questions vertically */
  }
  
  .info_text {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: rgba(85, 97, 100, 0.8);
    padding: 10px;
    width: 100%;
    top: 20px;
    z-index: 3;
    max-width: fit-content;
    border-radius: 10px;
  }
  
  .info-icon {
    width: 25px;
    padding-left: 5px;
  }
  
  .info_text.visible,
  .info_text:hover {
    visibility: visible;
    opacity: 1;
  }
  
  .low_text,
  .low_text a {
    font-size: 12px;
    color: #fff;
  }
  
  .radio-group {
    display: flex; /* Aligns radio options in a row */
    justify-content: center; /* Centers the radio buttons and labels */
    margin-top: 10px; /* Adds space between the question label and options */
  }
  
  .radio-group div {
    display: flex; /* Aligns the radio button and label in a row */
    align-items: center; /* Vertically centers the radio button with the label */
    flex: 1;
    justify-content: center;
    /* margin-right: 20px; */
  }
  
  .radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 10px;
  }
  
  .radio-group div {
    position: relative;
  }
  
  .radio-group input[type="radio"] {
    display: none; /* Hides the default radio button */
  }
  
  .radio-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #229ec3;
    border-radius: 30px;
    padding: 10px 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
  }
  
  .radio-group input[type="radio"]:checked + label {
    background-color: #ffe4b5; /* Highlighted background color */
    border-color: #f0a500; /* Highlighted border color */
    box-shadow: 0 0 10px rgba(255, 223, 186, 0.6); /* Glow effect */
  }
  
  .radio-group label:hover {
    border-color: #aaa;
    background-color: #f0f0f0;
  }
  
  .radio-group label span {
    display: inline-block;
    margin-left: 5px;
  }
  
  .question label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
    position: relative;
    font-size: 18px;
  }
  
  .question .radio-group label {
    margin-bottom: 0;
    margin-top: 10px;
    padding-left: 18px;
    font-size: 15px;
  }
  
  .question #numberInput {
    border: 1px solid #229ec3;
    border-radius: 30px;
    padding: 15px;
    margin-top: 10px;
    color: #229ec3;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
  }
  
  .question #numberInput::placeholder {
    font-size: 16px;
    color: #229ec3;
    font-weight: 600;
  }
  
  .thank-you {
    display: none; /* Hide thank you message initially */
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }
  
  .submit-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  
  .submit-btn {
    margin-top: 20px;
    padding: 15px 25px;
    background-color: #229ec3; /* Bootstrap primary color */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    height: fit-content;
  }
  
  .submit-btn:hover {
    background-color: #229ec3; /* Darker shade on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
  }
  
  .reset-btn {
    margin-top: 20px;
    padding: 15px 25px;
    background-color: #229ec3; /* Bootstrap primary color */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s; /* Added transform for button effect */
  }
  
  .reset-btn:hover {
    background-color: #229ec3; /* Darker shade on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
  }
  
  .hidden-paragraph {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
  }
  
  .message {
    border: 2px solid #229ec3;
    border-radius: 30px;
    padding: 15px;
    margin-top: 10px;
    color: #229ec3;
    text-align: center;
    padding: 20px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }
  
  .message.true, .message.true a{
    color: #097969;
    border-color: #097969;
  }
  
  .message.false, .message.false a{
    color: #880808;
    border-color:#880808;
  }
  
  .message a {
    color: #229ec3;
  }
  
  .error-message {
    color: red;
    border-color: red;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-top: 30px;
  }
  
  .success-message {
    color: green;
    border-color: #c3e6cb;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 5px;
  }
  
  /* General form styles */
  #search-form {
    display: flex;
    justify-content: center; /* Center the form */
    margin: 20px 0; /* Space above and below the form */
    border: 1px solid #229ec3;
    border-radius: 5px;
    padding: 30px 0px;
  }
  
  #search-form input[type="text"] {
    padding: 10px; /* Padding inside the input */
    margin-right: 10px; /* Space between inputs */
    border: 1px solid #229ec3; /* Light border */
    border-radius: 5px; /* Rounded corners */
    width: 200px; /* Width of input fields */
    transition: border-color 0.3s; /* Smooth border color transition */
  }
  
  #search-form input[type="text"]:focus {
    border-color: #0a4444; /* Change border color on focus */
    outline: none; /* Remove default outline */
  }
  
  #search-form button {
    padding: 10px 15px; /* Padding inside the button */
    background-color: #229ec3; /* Primary color */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change cursor to pointer */
    transition: background-color 0.3s; /* Smooth background color transition */
  }
  
  #search-form button:hover {
    background-color: #0a4444; /* Darker blue on hover */
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    #search-form {
      flex-direction: column; /* Stack inputs on small screens */
      align-items: center; /* Center items */
    }
  
    #search-form input[type="text"] {
      margin-bottom: 10px; /* Space between stacked inputs */
      width: 85%; /* Full width */
    }
  }
  
  #item-container {
    border-top: 2px solid #229ec3;
    padding-top: 30px;
  }
  
  .item-card {
    background-color: #ffffff;
    border: 1px solid #229ec3;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
  }
  
  .item-card:hover {
    transform: scale(1.02);
  }
  
  .item-title {
    font-size: 1.5em;
    color: #229ec3;
    border-bottom: 1px solid #229ec3;
  }
  
  .item-details {
    display: flex;
    padding: 20px 0;
    gap: 20px;
  }
  
  .item-details strong {
    color: #229ec3;
  }
  
  .item-text {
    color: #555;
    line-height: 1.6;
  }
  
  .item-user,
  .item-time {
    font-size: 0.9em;
    color: #777;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
  
  .pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #229ec3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .pagination a:hover {
    background-color: #0a4444;
  }
  
  .pagination .active {
    background-color: #0a4444;
    pointer-events: none; /* Disable clicks on the active link */
  }
  