﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.custom-bg-button {
    background-color: #CFE2FF;
}

.custom-bg-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 73, 125, 0.5); /* Optional focus effect */
}

.dhit-logo-img {
    max-height: 100px; 
    padding-top: 5px;
    margin-right: 16px;
    background-color: transparent;
}

@media (max-width: 768px) {
    .dhit-logo-img {
        max-height: 50px; /* Adjust size for tablets and smaller devices */
    }
}

@media (max-width: 576px) {
    .dhit-logo-img {
        max-height: 40px; /* Adjust size for phones */
    }
}

/* Align View Permissions and More Info button horizontally */
.permissions-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.accordion-container {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink */
}

.more-info-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 100%;
    margin-top:10px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .permissions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .more-info-container {
        align-self: center;
        margin-top: 0;
    }
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    /* iPad specific styles */
    .permissions-row {
        align-items: center;
        gap: 20px;
    }

    .accordion-container {
        min-width: 200px; /* Ensure minimum width for View Permissions */
    }

    .more-info-container {
        align-items: flex-start;
        padding-top: 8px;
        margin-top: 0;
    }

    .card-header {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

a.nav-link {
    padding-right: 1em !important;
    padding-left: 1em !important;
}
