/*styles for the table */
body {
    font-family: "Exo 2", sans-serif; /* Sets the font family for the entire page */
    margin: 0; /* Removes default margin */
    background: #f4f4f4; /* Sets a light grey background color for the page */
    overscroll-behavior-y: contain;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  height: 100%;
}

.custom-navbar {
    background-color: white;
    transition: all 200ms ease;
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    padding: 0 20px;
    align-items: center;
    width: 100%;
}
.custom-navbar-brand {
    display: flex;
    align-items: center;
}
.ihub-logo {
    height: 35px;
    width: auto;
  }
.custom-navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.custom-nav-link {
    padding: 20px !important;
    color: black;
    font-weight: 500;
}
.custom-nav-link:hover {
    color: #005b9c !important;
}
video-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust the space between videos */
}

.rounded-video {
    border-radius: 15px; /* Adjust for desired curvature */
    overflow: hidden;
}
video {
    width: 100%;
    height: auto;
}

.gif {
    width: 100%; /* Adjusts the width of the GIF within its column */
    height: auto; /* Keeps the aspect ratio of the GIF */
    border-radius: 15px; /* Adds rounded corners to the GIF */
}

/* Make sure the videos fill the available space */
.video-container {
    padding-right: 30px;
    padding-left: 30px;
}

/* Responsive adjustments for the GIF to be smaller */
@media (min-width: 992px) {
    .gif {
        max-width: 60%; /* Make the GIF smaller than its column */
        margin: 10px; /* Center the GIF within its column */
    }
}
.description-text {
    text-align: center;
    margin-top: 10px;
    color: #333; /* Set the text color as needed */
    font-size: 24px; /* Sets the font size to be larger */
    font-weight: bold; /* Makes the text bold */
}

/* Adjustments for layout */
.video-container{
    padding: 0 15px; /* Adjust the padding as needed */
}

table {
    width: 80%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    table-layout: auto; /* Allow column widths to adjust based on content */
}
th {
    padding: 10px;
    text-align: left;
    border: 2px solid #666;
    white-space: nowrap;
    overflow: hidden;
    background-color: #005b9c;
    color: #f4f4f4;
}
td {
    padding: 10px;
    text-align: left;
    border: 2px solid #666;
    white-space: nowrap;
    overflow: hidden;
}
th, td {
    white-space: normal;
    word-wrap: break-word;
}
tr {
    page-break-inside: avoid; /* This will prevent the rows from being split across pages */
}
/* Typography improvements */
table, th, td {
    font-size: 16px; /* Adjusted font size for better readability */
    line-height: 1.5; /* Improved line height */
}

/* Zebra striping for rows */
tbody tr:nth-child(odd) {
    background-color: #f8f9fa; /* Light grey for odd rows, subtle and printer-friendly */
}

/* Adjust padding and spacing for better readability */
th, td {
    padding: 12px; /* Increased padding */
    border: 1px solid #dee2e6; /* Lighter borders */
}

.pdf-mode {
    font-size: 10px;
  }

/* Responsive design adjustments */
@media screen and (max-width: 768px) {
    .table-responsive {
        display: block;
        overflow-x: auto; /* Allows table to scroll horizontally on small screens */
        -webkit-overflow-scrolling: touch;
    }
}

/* Styles for printing */
@media print {
    tbody tr:nth-child(odd) {
        background-color: #fff; /* Ensure zebra striping does not print */
    }
    th, td {
        page-break-inside: avoid; /* Ensure table rows do not break across pages */
    }
}

.violators-img {
    max-width: 231px;
    max-height: 385px;
}
.licenseplates-img {
    max-width: 231px;
    max-height: 385px;
}
.editable-text {
    width: auto;
    box-sizing: border-box;
    cursor: pointer;
}
.editable-text input {
    display: none;
}
.delete-btn {
    padding: 8px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    cursor: pointer;
}
.pdf-btn {
    padding: 12px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
    display: block;
}
.home-btn {
    padding: 12px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
    display: block;
}

.button-container {
    text-align: center; /* Align buttons in the center */
    margin-top: 20px; /* Adjust margin as needed */
}

.pdf-btn,
.home-btn {
    display: inline-block; /* Set buttons to display inline-block */
    vertical-align: middle; /* Align buttons vertically */
    margin-right: 10px; /* Adjust margin between buttons */
    border-radius: 5px;
}

.delete-btn {
    border-radius: 5px;
}

.custom-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #005b9c;
    color: #f4f4f4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;
}

.custom-button i {
    margin-right: 10px;
    color: #f4f4f4;
}

.custom-button:hover {
    background-color: #004080;
}

.custom-nav-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #005b9c;
    color: #f4f4f4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 15px;
    
  }

  .custom-nav-button i {
    margin-right: 10px;
    color: #f4f4f4;
  }

  .custom-nav-button:hover {
    background-color: #004080;
  }

.image-reference-img {
    width: 230px;
    height: 380px;
    object-fit: contain;
}

.footer {
    background-color: #005b9c;
    color: #f4f4f4;
    padding: 20px 0;
    text-align: right;
}

.footer-logo {
    max-width: 180px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #f4f4f49b;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #f4f4f4;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

.copyright {
    margin-top: 30px;
}

/* Tablet Screen */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .gif {
        display: none; /* Hide the GIF */
    }
    .video-container {
        flex-direction: column;
        padding: 0 15px; /* Add some left and right padding */
    }
    .video-container .rounded-video {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Mobile Screen */
@media only screen and (max-width: 767px) {
    .gif {
        display: none; /* Hide the GIF */
    }
    .video-container {
        flex-direction: column;
        padding: 0 10px; /* Add some left and right padding */
    }
    .video-container .rounded-video {
        width: 100%;
        margin-bottom: 20px;
    }
    .custom-nav-link {
        padding: 10px !important;
    }
    .description-text, .h2, .h3 {
        font-size: 18px; /* Adjust text size */
    }
    h2 {
        font-size: 1.5rem; /* Size similar to h4 */
    }
    h3 {
        font-size: 1.25rem; /* Size similar to h5 */
    }
    .custom-nav-link, .navbar-nav {
        font-size: 14px; /* Smaller font size for nav links */
    }
    .navbar-toggler-icon {
        width: 24px; /* Adjust hamburger icon size if needed */
        height: 24px;
    }
    /* Add spacing between buttons */
    .button-container > .custom-button {
        margin-bottom: 10px; /* Add spacing below each button */
    }
}

/* Small Mobile Screen */
@media only screen and (max-width: 450px) {
    .gif {
        display: none; /* Hide the GIF */
    }
    .video-container {
        flex-direction: column;
        padding: 0 5px; /* Add some left and right padding */
    }
    .video-container .rounded-video {
        width: 100%;
        margin-bottom: 15px;
    }
    .description-text, .h2, .h3 {
        font-size: 16px; /* Adjust text size for very small devices */
    }
    .custom-navbar {
        font-size: 14px;
    }
    .custom-navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
    h2 {
        font-size: 1.5rem; /* Size similar to h4 */
    }
    h3 {
        font-size: 1.25rem; /* Size similar to h5 */
    }
    .custom-nav-link, .navbar-nav {
        font-size: 14px; /* Smaller font size for nav links */
    }
    .navbar-toggler-icon {
        width: 24px; /* Adjust hamburger icon size if needed */
        height: 24px;
    }
    /* Add spacing between buttons */
    .button-container > .custom-button {
        margin-bottom: 10px; /* Add spacing below each button */
    }
}

.highlighted-section {
    background-color: #ffffff78;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative; /* Ensure relative positioning for absolute overlay */
    overflow: hidden; /* Hide overflow to contain overlay */
    box-shadow: 0 0 10px 5px #87cdff;
}

.highlighted-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/img/ram_img_vid/demo_bannar.png') center/cover no-repeat; /* Replace with your image path */
    z-index: -1;
    transition: opacity 0.3s ease; /* Smooth transition for overlay */
}

.highlighted-section:hover::before {
    opacity: 0.7; /* Increase opacity on hover */
}

.highlighted-section .custom-button {
    background-color: #005b9c;
    border-color: #005b9c;
    position: relative; /* Ensure relative positioning for button glow */
    overflow: hidden; /* Hide overflow to contain glow */
    transition: box-shadow 0.3s ease; /* Smooth transition for button glow */
    box-shadow: 0 0 5px 2px #87cdff; 
}

.highlighted-section .custom-button:hover {
    box-shadow: 0 0 10px 5px #87cdff; /* Add glow effect on hover */
}

.highlighted-section h4,
.highlighted-section h5 {
    color: #000000;
    text-shadow: 0 0 15px #87cdff, 0 0 30px #87cdff, 0 0 45px #87cdff, 0 0 60px #87cdff;
    font-weight: bold;
}

.custom-navbar {
    background-color: white;
    transition: all 200ms ease;
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    padding: 0 20px;
    align-items: center;
    z-index: 1;
}

.custom-navbar-brand {
    display: flex;
    align-items: center;
}

.ihub-logo {
    height: 35px;
    width: auto;
  }

.custom-nav-link {
    padding: 20px !important;
    color: black;
    font-weight: 500;
}

.custom-nav-link:hover {
    color: #005b9c !important;
}
.navbar-text {
    color: #005b9c;
    font-weight: bold;
    margin: 0;
}

.logo-img {
    height: 45px;
}

/* Fullscreen overlay for preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eff0f2; /* Updated background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Main loader style */
.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #005b9c; /* Updated to primary blue */
  box-shadow: 32px 0 #005b9c, -32px 0 #005b9c;
  position: relative;
  animation: flash 1.2s ease-in-out infinite alternate;
}

/* Left and Right balls */
.loader::before, .loader::after {
  content: '';
  position: absolute;
  left: -64px;
  top: 0;
  background: #005b9c; /* Updated to primary blue */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform-origin: 35px -35px;
}

/* Left ball animation */
.loader::before {
  transform: rotate(45deg);
  animation: hitL 1.4s ease-in-out infinite alternate;
}

/* Right ball animation */
.loader::after {
  left: 64px;
  transform: rotate(-45deg);
  transform-origin: -35px -35px;
  animation: hitR 1.3s ease-in-out infinite alternate;
}

/* Keyframes for middle ball */
@keyframes flash {
  0%, 100% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 0.25);
  }
  25% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 1);
  }
  50% {
    background-color: rgba(0, 91, 156, 1);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 0.25);
  }
  75% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 1), -32px 0 rgba(0, 91, 156, 0.25);
  }
}

/* Keyframes for left ball */
@keyframes hitL {
  0% {
    transform: rotate(45deg);
    background-color: rgba(0, 91, 156, 1);
  }
  25%, 100% {
    transform: rotate(0deg);
    background-color: rgba(0, 91, 156, 0.25);
  }
}

/* Keyframes for right ball */
@keyframes hitR {
  0%, 75% {
    transform: rotate(0deg);
    background-color: rgba(0, 91, 156, 0.25);
  }
  100% {
    transform: rotate(-45deg);
    background-color: rgba(0, 91, 156, 1);
  }
}
