/* ======================================
Missing Persons Database ADA Redev
Version 2.0.2   Updated 02-22-25
========================================== */


/*Global variables */
:root{

 /*Min page Size is low for mobile devices...*/
  --minPageSize: 300px;
  --maxContentWidth: 1200px;
  
 

  /*UI highlight color*/
  --LightUIColor: #efad06 ;
  --UIColor: #0049E6 ;
  --UIHoverColor: #0823b8;
  --AccentColor: #efad06 ;
  --ErrorColor: #db0000 ;
  --DarkErrorColor: #940000 ;

  --DOJBlue: #152b40;
  --DOJDarkBlue: #081826;
  --DOJDarkGrey: #767676;
  --DOJGrey: #d2d2d2;
  --DOJLightGrey:#efefef;


}

/*
*:focus {
  outline: 2px solid #0049E6 ;
  outline-offset: 0px !important;
 
}*/

*:focus-visible {
  outline: 2px solid var(--UIColor)  !important;
  outline-offset: 2px !important;

  
}



/*Page Setup, full width, scales down to fixed size */
body{

  margin: 0;
  padding: 0;
  height: 100%;

  

  /*want scroll bar to appear if window is very small*/
  /* avoids menu collapse - should be more than min header size*/
  min-width: var(--minPageSize);        
  width: auto !important;  /* Firefox will set width as auto */
  width:var(--minPageSize);            /* As IE6 ignores !important it will set width as 500px; */
}

/* sets default formatting for all HTLM elements */
*, *:before, *:after {
    box-sizing: border-box;


    /*Set all elements default text to paragraph*/
    font-family: 'Montserrat','Arial';
    font-size: 1.0rem;
  
    letter-spacing: .015rem;
    line-height: 1.2 ;
  }


/*===   TEXT FORMATING  ===*/

/*link text formatting, should be accessible*/
a { 
    color: var(--UIColor);
}

p {

    font-family: 'Montserrat','Arial';
    font-size: 1.0rem;

    font-weight: 400;

    letter-spacing: .015rem;
    line-height: 1.4;
}




/*Top Bar Application Title, does not scale with window size*/

.applicationTitle {

  display: block;

  margin-top: 15px;
  margin-bottom: 10px;

  font-family: 'EB Garamond','Bookman Old Style';
  font-size: 2.25rem;

  font-weight: 400;
  letter-spacing: .01rem;
  line-height: 1.1;
}


/*additional class for long App Titles */
.scalableTitle{

  font-size: clamp(1.8rem, 4.0vw, 2.25rem);
}

.subheading{
    margin-top: 10px;
    font-size: clamp(1.3rem, 3.0vw, 1.5rem);
}

H1 {
    font-family: 'EB Garamond','Bookman Old Style';
   /* font-size: 30px;*/

   /* text scales down with size, middle value is "ideal" helps to avoid overlap with menu*/
 
   font-size: 2.0rem;
    font-weight: 400;
    letter-spacing: .01rem;
    line-height: 1.0;

    margin-top: 15px;
    margin-bottom: 45px;
}


H2 {

    font-family: 'Montserrat','Arial';
    font-size: 1.4rem;

    font-weight: 500;
    letter-spacing: .01rem;
    line-height: 1.1;

}

H3 {

    font-family: 'EB Garamond','Bookman Old Style';
    font-size: 1.4rem;

    font-weight: 400;
    letter-spacing: .01rem;
    line-height: 1.1;
}


H4 {

    font-family: 'Montserrat','Arial';
    font-size: 1.1rem;

    font-weight: 600;

    letter-spacing: .015rem;
    line-height: 1.2;
}


/*  Save H6 for future use  */

/*===   Main Page Div, contains Header, Main Content and Footer   ===*/
.fullPageWrap{
  
  min-height: 100vh;
 /* position: relative;*/

 /*Full page Wrap is a large flexbox container*/
  display: flex;
  flex-direction: column;

  background-color: #222222;

  background-color: white;

  overflow-y: auto;

}





/*==== RESULTS CONTENT  ====*/
   



#resultsListContainer{

  margin: auto;

  max-width: var(--maxContentWidth);

  /*width + padding will preserve minum margin*/
  width: max(95%,var(--minPageSize));
  
  padding: 10px 0px 30px 0px;

  
  

  /*flexbox item properties for fullPageWrap container*/
  /*main content fills empty space, anchoring footer to bottom*/
  flex-grow: 1;
  flex-shrink: 1;


}



main.resultsContainer{

      flex-grow: 1;
      flex-shrink: 1;

        z-index: 0;
        margin: 0px;
        padding: 0px 0px;

        
      background-color: var(--DOJLightGrey);
      
        width: 100%;
        max-width: 100%;


}



#resultsInfo{

  padding: 35px 15px 10px 15px;

  display: flex;
  background-color: var(--DOJBlue);
  color:white;

  align-content: center;
  justify-content: center;
  text-align: center;

  flex-wrap: wrap;
   gap: 5px 20px ;
}


#resultsOptions{

    width:100%;
    text-align: center;
   

}

.resultsButton{

  display: in;

  padding: 6px 10px;
  margin: 4px 2px;
  min-width: 10.0rem;

  background-color: var(--DOJDarkBlue);
  border: 1px solid white;

  display: inline-block;

  text-decoration: none;


  color: white;
  font-size: .9rem;


  
  border-radius: 5px;


  cursor: pointer;

}
.resultsButton:hover{
    background-color: var(--UIHoverColor);
}

.resultsButton:focus-visible{
    outline-color: white !important;
}

.resultsButton[aria-expanded="true"]{
     background-color: black;
}



#resultsList{

  width: 100%;

    margin:0px 0px 20px 0px;
    padding: 0px;
    list-style: none;




}


/*================================*/ 
/*=== RESULTS REPORT OPTIONS ===*/ 

#reportOptionsContainer{

  background-color: white;
  color: black;
  width: fit-content;

  
  min-width: 300px;

   margin: 0px auto;

}

.reportControls{


  padding: 10px 20px;

   border-bottom: 2px solid var(--DOJDarkBlue);

 /* border-top: 0px;*/
  

}

.reportControls button{

    width:100%;
  padding: 8px 10px; 


  margin:0px;
  margin-top: 10px; 

}



/*============================*/ 
/*=== RESULTS SORT OPTIONS ===*/ 

#sortOptionsContainer{

  background-color: white;
  color: black;
  width: fit-content;

   margin: 0px auto;

  min-width: 300px;

}

.sortControls{
  display: flex;
  align-items: start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;

  padding: 10px 20px;

   border-bottom: 2px solid var(--DOJDarkBlue);

 
  

}

.sortControls fieldset{
  display: inline-block;
}

.sortControls button{

    width:100%;
  padding: 8px 10px; 


  margin:0px;
  margin-top: 10px; 

}


/*=============================*/ 
/*==== RESULTS PERSON CARD ====*/ 

 .personCard{

    display: flex;

    margin: 15px 10px;
    background-color: white;

    border: 2px solid var(--DOJDarkBlue);

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 10px;
 }

   .personCard h2{
    margin: 10px 15px;
    font-size: 1.25rem;
    font-weight: 500;
  }

  .personCard p{
    margin: 2px 15px 2px 15px;
  }



 .personImageContainer{

   order:0;

   height: 180px;
   width: 180px;

   flex-shrink: 0;
   flex-grow: 0;

  


 }

 .personImage{
    width: 100%;
  height: 100%;
  object-fit: contain;
 }

 .personDetailsButton{

  width: 90%;
  margin: 10px 5%;

  padding: 5px 10px;

  font-size: 1.1rem;

  text-align: center;


 }

 .personDetailsFirst{

   order:1;

  flex-shrink: 0;
   flex-grow: 0;

   display: flex;
   flex-direction: column;
   justify-content: space-between;
 
   width: 100%;
   max-width: 21.0rem;

  min-height: 180px;

   
  /* border: 1px solid rgb(201, 201, 201); */
 }

 .personDetailsSecond{

   order:2;

  flex-shrink: 1;
   flex-grow: 1;

   display: flex;
   flex-direction: column;
   justify-content: center;

   padding: 10px 0px;


    
   width: 20rem;
 
   
   /* border: 1px solid rgb(201, 201, 201); */
 }



/*==================================*/
/*===   Dialog Popup Styling    ====*/

.dialogWindow {

  border-radius:  10px;
  

}
.dialogWindow h2 {

  font-size: 1.4rem;
  margin:0px ;
}
.dialogWindow h2:focus-visible {

  outline-style: none !important;
}


.dialogWindow::backdrop {

  background-color: rgba(0,0,0,0.75); 
 
}

/* Cancels scrolling when dialog is open */
html:has(dialog[open]) {
  overflow: hidden;
}


button.popupclose {

  position: absolute;

  right: 5px;
  top: 3px;

  padding:0px;  
  height: 36px; 
  width:  36px;

  background-color: var(--DOJGrey);

}


button.popupclose:hover path{
  stroke: white;
}

/*=========================================*/ 
/*==== RESULTS SEARCH OPTIONS WINDOW   ====*/
   
#search-options-window{

  width: 95%;
 
 max-height: 90% ;
  height: min(90%,54rem) ;

 max-width: 40rem;
 
 overflow-y: hidden;

   overflow-x: hidden;

   padding-right: 5px;
    padding-top: 10px;
 
 
} 

.searchOptionsContent{

    display: flex;
    flex-direction: column;


    position: absolute;

    top: 10px;
    bottom: 15px;
     right: 5px;
    left: 10px;

    padding-top: 5px;

      overflow-y: hidden;
   overflow-x: hidden;
   
}

.searchOptionsHeader{
  display: flex;

   justify-content: space-between;
  align-items:start;

   border-bottom: 1px solid var(--DOJBlue);
  

}

.searchOptionsHeader .popupclose{

  /*overide close button behavior*/
  position:static;
  margin-top:0px;
  margin-right:0px;

   
}

.searchFormContainer{

  /*
  display: flex;

  justify-content: center;
  align-items:start;
  */

    flex-grow: 1;

    min-width: 250px;
    overflow-y: auto;
    overflow-x: auto;
    width: min(100%,32rem);
  
  

  margin: 0px auto;

  padding: 0px 10px 10px 5px;

  
  

}



/*==========================*/ 
/*==== RESULTS DETAILS  ====*/
   
#details-window{

  width: 95%;
 
 max-height: 90% ;


height: min(90%,44rem) ;


 max-width: 64rem;
 
 overflow-y: hidden;
  



 
 
} 

.detailsContent{

    display: flex;
    flex-direction: column;


    position: absolute;

    top: 10px;
    bottom: 15px;
     right: 10px;
    left: 15px;

    padding-right: 5px;



    overflow-y: hidden;
   overflow-x: hidden;
   
}

#detailsContainer{


  flex-grow: 1;

 /* border: 1px solid var(--DOJDarkGrey); */

  display: flex;
  gap: 20px;

  justify-content: center;
  /*flex-wrap: wrap-reverse;*/

  min-width: 250px;
  overflow-y: auto;

}


.detailsHeader{
  display: flex;

  justify-content: space-between;
  /*align-items:stretch;*/
   align-items:start;
  border-bottom: 1px solid var(--DOJBlue);

}


.detailsHeader img{
  width:120px;
  height: auto;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: 0px;
}

.detailsHeader .headingContainer{

  display:flex; 
  flex-direction:column; 
  justify-content:center;
  padding-bottom:5px;
  align-self: center;
}

.detailsHeader .popupclose{

  /*overide close button behavior*/
  position:static;
  margin-top:5px;
  margin-right:0px;
}

#details-window h3{
  font-size: 1.1rem;

  font-weight: 600;

  font-family: 'Montserrat','Arial';
   
  margin: 10px 0px;


}

.detailsContact{
  background-color: var(--DOJLightGrey);
  border: 1px solid var(--DOJBlue);

  border-radius: 10px;

  margin: 10px 0px;
  padding: 0px 15px;
}

#detailsInfoContainer{
  order: 1;

  max-width: 35rem;

  flex-grow: 1;
  flex-shrink: 1;

  padding:0px 10px;

  min-width: 240px;

 /* border: 1px solid rgb(150, 150, 150); */
}



 #detailsInfoContainer .buttonLink{

  min-width:12rem;
 

  padding: 8px 10px;

  font-size: 1.05rem;

  text-align: center;
 }



#detailsImagesContainer{
  order: 0;



  text-align: center;


  max-width: 360px;
  min-width: 240px;
  

  flex-grow: 1;
  flex-shrink: 1;

  /* border: 1px solid rgb(150, 150, 150); */

  padding: 5px 10px 15px 10px;

}

#detailsImagesContainer figure
{
  margin:10px 0px;

   width: 100%;
   display: block;
}

#detailsImagesContainer  img{
  
    max-width: 100%;
  max-height: 100%;
  object-fit: contain;
 }



/*============================*/ 
/*==== FULL DETAILS PAGE  ====*/
/*============================*/ 

main.fullDetailsContainer{

      flex-grow: 1;
      flex-shrink: 1;

        z-index: 0;

      margin: auto;

        max-width: 1000px;

        /*width + padding will preserve minum margin*/
        width: max(95%,var(--minPageSize));
        
        padding: 20px 15px 30px 15px;
        

}

.nameHeader{

  margin: 10px 0px;
  font-family:  'Montserrat','Arial';
  font-size: 2.0rem;
}

.fullDetailsPhotosContainer{
  display: flex;
  flex-wrap: wrap;
  
}
.fullDetailsPhotosContainer figure{
  text-align: center;
  margin: 10px 10px;
}




/*=======================*/   
/*==== HOME CONTENT  ====*/
/*=======================*/   

    /*over rides main for homepage*/
    main.homeContainer{

      
      /* background-color: rgb(241, 241, 241); */

      /*flexbox item properties for fullPageWrap container*/
      /*main content fills empty space, anchoring footer to bottom*/

      flex-grow: 1;
      flex-shrink: 1;

        z-index: 0;
        margin: 0px;
        padding: 0px 0px;

        

      
        width: 100%;
        max-width: 100%;


        display: flex ;
        flex-direction: column;
        align-items: center;
        justify-content: center;


  background-image: url("./Images/backgrounds/bg1.jpg");
     /*  
     background-image: url("./Images/backgrounds/family-sunsetb.jpg");
*/
    background-repeat: no-repeat;
    background-origin:content-box;
    background-position: bottom center;
        background-size: cover;

/* 
     background-image: url("./Images/backgrounds/family-sunset4.jpg");

    background-repeat: no-repeat;
    background-origin:content-box;
    background-position: bottom left;
        background-size: cover;

   */ 
    }
   

    #recentCasesFrame{

      max-width: 82rem;
    }

    .homeContent{


       
        text-align: center;
        margin: 15px auto;

        padding: 10px 20px 5px 20px;


        background-color: #081826cb;

       
       width: 94%;

       border-radius: 15px;

       /* border: 1px white solid;*/

    }

      .homeContent h2{

        color:white;
        font-size: 1.3rem;
        margin: 0px 0px;

      }



      /*This class is a UL that is also a flexbox*/
      .recentCases{

        width: 100%;
      
        margin:0px 0px 20px 0px;
        padding: 0px;
        list-style: none;

        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: stretch;

        justify-content: center;
      
       

      
      }


      

      .recentCard{

        display: inline-block;

        margin: 5px;

       padding: 0px;
        min-width: 12.5rem;
        max-width: 12.5rem;

        min-height: 180px;

        

       background-color: var(--DOJBlue);

        border: 1px grey solid;

      }

         .recentCard:hover   {
          background-color: var(--DOJDarkBlue);
          border-color: var(--AccentColor);
          
        }


      .recentCard a:focus-visible{

        outline: none !important;
      }

      .recentCard:focus-within{
          outline-offset: -3px !important;
          outline: 2px solid white  !important;

      }

    


    .recentImageContainer{

        height: 184px;
         width: 184px;

         margin: 5px auto;
    }


    .recentCard img{


          width: 100%;
          height: 100%;
          object-fit: contain;

    /*  margin: 5px;
      
        max-height: 184px;
         max-width: 184px;

        border: 1px black solid;*/
    }


    .recentCard h3{
        margin: 0px 5px 10px 5px;
         font-size: 1.1rem;

         font-family: 'Montserrat','Arial';

    }
    .recentCard  a
    {
        text-decoration: none;
        color: white;
     
    }



    .dataCheckText{

      color: var(--DOJGrey);
    }



    .mainButtonContainer{
        display: block;

        margin: 5px auto;

        text-align: center;
        

        width: 100%;
       
         
    }

 

    .mainButtonContainer .homeButton{


           font-size: 1.05rem;
           padding: 12px 10px;

            width:100%;
            margin: 8px auto;

            border: 1px var(--DOJGrey) solid;

            border-radius: 10px;

            outline-color: white !important;
    }


/*===   PAGE HEADER   ===*/

  /*header contains Flex Container for 
        div containing Title and Nav Menu 
        & separate div for DOJ Icon  */

header {
    background-color: var(--DOJDarkBlue);
    color: white;
    
    margin: 0px 0px 0px 0px;
    padding: 10px 0px 0px 0px;
   
    border: 0px;

    /*
    border-bottom: 1px;
    border-color:  white;

    border-style: dotted;
    */

    /*flexbox item properties for fullPageWrap*/
    flex-grow: 0;
    flex-shrink: 0;
}

/*Flex container for Title/Menu and Icon DIVs*/
.header-FlexBox {


  display: flex;
  flex-wrap: nowrap;

  padding: 0px 10px;
  margin: 0px auto;

  max-width:  max(1200px,46rem);

 
  /*justify-content: space-between;*/

 /* background-color: #db5bd5;*/
}

/*Want icon anchored on right*/
.header-Flex-Icon {
 
  margin: 0px 0px 0px 0px;
  
  /*height should be less than image height for overhang*/
  height: 110px;
}

.header-Flex-Icon img {
 
  
  margin: 0px;
  padding: 0px;

/*Icon Flexbox Item does not fill empty space */
  flex-grow: 0;
  flex-shrink: 0;
 
  width: 160px;

  z-index: 1000;

  position: relative;
}



/*want title and menu  to fill remaining flexbox space, to min width*/
.header-Flex-Title-Menu {
 
  margin: 0px;
  padding: 0px;
  
  /*Title/Menu Flexbox Item fills empty space */
  flex-grow: 1;
  flex-shrink: 1;

  width: auto; 

  /*min height should be same as Flex-Icon Height */
  min-height: 60px;
 
  position: relative;

}

/*Inner div for Title, sets minimum height to properly position menu*/
.header-Flex-Title-Area{

    text-align: center;
  margin: 0px;
  padding: 0px 0px 15px 0px;
 
  /*min height keeps top of menu anchored on header */
  min-height: 60px;
}


/* Optional Subheader for User Account Actions*/
.subheader{
  float: left;
  width: 100%;
  margin: 0px;
  padding: 15px 10px 15px 35px ;

  color: white;
  background-color: var(--DOJBlue);

  font-size: .9rem;
  text-align: left;

  z-index: -10;

  /*flexbox item properties for fullPageWrap container*/
  flex-grow: 0;
  flex-shrink: 0;
}


/*===   HEADER NAV MENU   ===*/

    ul.menu {
   
      padding: 0px 0px 0px 0px;
      margin: 10px 0px 0px 10px;
    
      font-family: 'Montserrat';
      
      /*text-transform: uppercase;*/
    }
    
    ul.menu li { 
      display: inline; 

      border-right: 1px solid white; 
      margin: 0px 0px 0px -4px;
      
    }
    
    ul.menu li:last-child{
      border-right:none;
      
    }

    ul.menu li a {
      color: white;
      text-align: right;
      padding: 4px 8px 4px 8px ;
      margin: 0px 0px 0px 0px;

      text-decoration: none;
     
      font-size: .9rem;
      font-weight: 600;
      letter-spacing: .1em;
      line-height: 1.5;
    
    }
    ul.menu li a:hover {  
      color: var(--AccentColor);

      /*background-color: #152b40;*/
    
      text-decoration: underline;
      text-decoration-color: #767676;
      text-underline-offset: 2px;
      text-decoration-thickness: 2px;
      } 

      ul.menu li a[aria-current="page"] {

        
        
        text-decoration: underline;
        text-decoration-color: var(--DOJGrey);
        text-underline-offset: 2px;
        text-decoration-thickness: 2px;
      }
    



      /*alternate keyboard focus state*/
      ul.menu li a:focus-visible {  
        outline-color: white !important;
  

      }


      .header-Flex-Icon a:focus-visible {  
        outline-color: white !important;
      }



      #mobile-menu-button{
        display: none;
        background-color: var(--DOJBlue);

        font-size: 1.0rem;
        font-weight: 550;

      border-radius: 0px;

        padding: 8px 10px 10px 10px;
      }
    
      #mobile-menu-button:hover{
     
        background-color: var(--DOJDarkGrey);

    
      }  
      #mobile-menu-button:focus-visible {  
        background-color: var(--DOJDarkGrey);
        outline-color: white !important;
      }


/* For elements that need to be in accessibility Tree, but not render on page */
    .visually-hidden {
      position:absolute;
      left:-10000px;
      top:auto;
      width:1px;
      height:1px;
      overflow:hidden;

      word-wrap: normal !important;
    }

/* For Skip link at very top*/


    .skipLink-container{
      position:relative; 
      width:0px; 
      height: 0px; 
    }

    .skipLink {

  
      display: inline-block;

      position: absolute  ;
      width: 12.5rem;

      top: -100px;
      left: 0px;      

      padding: 5px;

      text-align: center;
     

      background-color: var(--DOJDarkGrey);
      color: white;

      text-decoration: none ;

      border-radius: 5px    ;
    }

    .skipLink:focus {

      top: -8px;
      outline-color: white !important   ;

    }


/*========================*/
/*===   PAGE CONTENT   ===*/

/* Div to display test site warning banner*/
  .testsite {
    float: left;
    width: 100%;
    margin-bottom: 10px;
    padding: 20px 0px 20px 0px ;
    background-color: var(--AccentColor);

    color: black;
    text-transform: uppercase;
    text-align: center;

    font-weight: 600;

    z-index: -10;

    /*flexbox item properties for fullPageWrap container*/
    flex-grow: 0;
    flex-shrink: 0;

  }


 

/*=======================*/
/*===   PAGE FOOTER   ===*/
footer {

  min-height: 80px;
  width: 100%;

  padding: 10px;

  background-color: var(--DOJDarkBlue);
  color: #ffffff;
  
  font-family: 'Montserrat';
  font-size: 1.0rem;
  text-align: center;

  /*underline offset for links in footer*/
  text-underline-offset: 3px;


  /*flexbox item properties for fullPageWrap container*/
  flex-grow: 0;
  flex-shrink: 0;
 
}

footer p {
  margin: 5px 0px;
}

footer a {
  color:white;
}

footer a:hover {
  color:var(--AccentColor);
}



/*keyboard focus state*/
footer a:focus-visible {  
  outline-color: white !important;


}
    

/*dotted divider line*/
footer hr.dotted {

  margin: 10px 0px 30px 0px;
  border: 0px;
  border-bottom: .5px;
  border-color: #ffffff;
  border-style: dotted; 
}



/*=========================*/
/*===   CONTAINERS      ===*/



.scroll-container {
  overflow-y: auto;
  overflow-x: auto;

 
  border: 1px solid var(--DOJBlue);

  margin-bottom: 20px;
  margin-top: 10px;
}




.bordered-container {
  border: 2px solid var(--DOJBlue);
  padding: 20px 20px;

  margin-bottom: 20px;
  margin-top: 10px;
}

div.fitContent {
  width: fit-content;
}




/* flexbox parent container */
.flex-row{

  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 0px;

  padding: 0px 2px;

}


/* flexbox item container */
.flex-group{
  flex-grow: 0;
  flex-shrink: 1;

  margin: 3px 0;
  word-wrap: break-word;

}

.debug-border{
    border: 1px solid var(--AccentColor);
}




/*=========================*/
/*===   INPUT ELEMENTS  ===*/




a.buttonLink {
  display: inline-block;

 text-decoration: none;

  background-color: var(--DOJBlue) ;
  color: white;
  font-size: .9rem;

  padding: 8px 10px;
  margin: 5px 3px;
  
  border-radius: 0px;
  border-width:  2px 0px 2px 0px;
  border-style: solid;
  border-color: var(--DOJGrey);

  cursor: pointer;
}

 a.buttonLink:hover   {
  background-color: var(--DOJDarkBlue);
  border-color: var(--AccentColor);
  
}




button {
  display: inline-block;

 text-decoration: none;

  background-color: var(--DOJBlue) ;

  
  color: white;
  font-size: .9rem;

  padding: 10px 15px;
  margin: 5px 3px;
  
  border-radius: 5px;
  border: none;

  cursor: pointer;
}

button:hover  {
  background-color: var(--UIHoverColor);
  
}

button:disabled   {
  background-color: #646464;
  cursor: not-allowed;
}



/*=== Form Buttons  ===*/
form input[type=button],[type=submit], [type=reset] , a.formButtonLink  {

  background-color: var(--DOJBlue) ;
  color: white;
  font-size: 1.0rem;

  padding: 8px 15px;
  border-radius: 5px;
  border: none;

  display: inline-block;
  text-decoration: none;
}

form input[type=button]:hover,[type=submit]:hover, [type=reset]:hover,a.formButtonLink:hover  {
  background-color: var(--UIHoverColor);
}

form input[aria-invalid="true"] , form select[aria-invalid="true"] {
  /*background-color: #ffdfdf;*/
  border-color: var(--ErrorColor);

}


/*Form labels and legend styling*/
form label { 
  
  line-height: 1.5;
  font-size: 1.0rem;
  margin-right: 5px;
 }

form legend {
  border: none ;
}

form fieldset {
  border: .5px solid gray;
  margin: 10px 0px ;
  padding-bottom: 0px;
}


form fieldset.fitContent {

  width: fit-content;

}

form fieldset.hiddenBorder {
    border: 0;
    padding: 5px 0;
   
}



/*=== General Input Elements  ===*/
form input {

  border: 1px solid rgb(134, 134, 134);
  border-radius: 5px;
  padding: 5px 10px;
  margin: 3px 0px 10px 0px;
  box-shadow: 1px 1px 3px 0px rgba(104, 104, 104, 0.212);
   
}


/*=== Form Selection Box  ===*/

form select {
  padding: 5px 10px;
  border: 1px solid black;
   margin: 3px 0px 10px 0px;

   width:80%;
   min-width: 230px;
   max-width: fit-content;
}


/*order of focus styles is complicated... !important needed?*/
form input:focus {

  outline: 2px solid var(--UIColor) ;
  outline-offset: 0px !important;
 

}



form input[type=button]:focus,[type=submit]:focus, [type=reset]:focus , a.formButtonLink:focus  {
/* 
  background-color: var(--UIHoverColor);
  outline-offset: 0px ;
  */
  outline: 0px solid var(--UIColor) ;
  outline-offset: 2px !important;
}


form select:focus {
  /* outline-color:  var(--UIColor) ;*/
  outline: 2px solid var(--UIColor) ;

 
  outline-offset: 0px !important;

}

form option:focus {
  background-color:  var(--UIColor) ;

}


/*===   Error Text Format    ===*/

.paddedText {
  display: inline-block;
  min-width: 50px;
}

.errorText {
  font-size: .9rem;
  color:   var(--ErrorColor) ;
}
.errorText ul, .errorText li{
  font-size: .9rem;
  margin:0px;
 /* padding:0px;*/
}

div.errorText{

  border: 1px solid var(--ErrorColor);
  width: fit-content;
  padding: 10px 20px;
  margin-bottom: 20px;
  margin-top: 10px;
}

/*make darker red links in error text?*/
.errorText a {

 color: var(--DarkErrorColor);
}

.requiredText {
  color:   var(--ErrorColor) ;
}



/*Special Responsive States for Homescreen */

/*Responsive Breakpoint for Small Screens */
@media only screen and (max-width: 1400px ){

 #recentCasesFrame{

      max-width: 42rem;
    }

  }

  /* Increase Home Recent Card Size if Small */
@media only screen and (max-width: 504px ){

 .recentCard{

    width: 95%;
    max-width: max(12.5rem,280px);

 }
 .recentImageContainer{
    width:220px;
    height: 220px;

  }
}




/*========================*/
/*===   MOBLE VIEW     ===*/

/*Responsive Breakpoint for Small Screens */
@media only screen and (max-width: 800px ){
  
  /*remove image container*/
  .header-Flex-Icon  {
    display: none;
  }

  
  .mobileVisible  {
    display: flex !important;
    align-items: center;

  }

 .mobileVisible img  {
    width: 120px;
    margin: 0px !important;

  }
  
  main.homeContainer{

        background-image: none;
      
          background-color: var(--DOJGrey);
  }


  /*Change Details Layout*/
  .detailsHeader img{
  display:none;

}


   #details-window{

    height: 90%;
  }

  #detailsContainer{
    
    flex-wrap: wrap-reverse;
    
  }




}

/*Responsive Breakpoint for Mobile Screens */
@media only screen and (max-width: 600px ){

 

  .personCard{

    flex-direction: column;
    align-items: flex-start;

    padding-top: 10px;

    /*padding: 10px 10px;*/
  }

  .personCard h2{
      text-align: center;
  }

  .personImageContainer{
    width: 100%;
  }
  .personDetailsFirst{
    min-width: 100%;
    width: 100%;
  }
  .personDetailsSecond{
    min-width: 100%;
    width: 100%;
   
  }
  .nameHeader{
    font-size: 1.6rem;
  }
}


