/* ----------- GLOBAL BOOTSTRAP OVERRIDES -----------  */
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

.row > * {
  max-width: none !important;
}
/* ----------- GLOBAL CLASSES ----------- */
.app-table {
  display: table;
}

.app-table-cell{
  display: table-cell;
}

.app-pos-mid{
  vertical-align: middle;
}

.text-center{
  text-align: center;
}
/* ----------- MAIN STYLES ----------- */
html {
  height: 100%;
  font-size: 16px !important; /* Bootrstrap override */
}

body {
  position: relative;
  height: 100%;
  min-height: 100%;
  min-width: 20rem; /* 320px */
  line-height: 0rem !important; /* Bootstrap override */
}

body::-webkit-scrollbar{
  display: none;
}

#app-container{
  position: relative;
  height: 100%; 
}
/* nav-frame */
#nav-frame{
  position: relative;
  height: 10%;
  max-height: 10%;
  margin-left: -0.75rem; /* compensation for margin-left: 0.75rem introduced by Bootstrap .container-fluid class */
  margin-right: -0.75rem; /* compensation for margin-right: 0.75rem introduced by Bootstrap .container-fluid class */
  padding: 0 !important; /* Bootstrap override */
  background-color: #000000;       
}

#nav-frame img.nav-frame-logo{
  max-height: 100%;
  margin-left: 0.75rem;
  padding: 0.5rem 0;
}

#nav-frame .navbar-toggler{
  margin-right: 0.75rem;
  border-color: #666666;
  border-radius: 0 !important;
}

#nav-frame img.nav-frame-logo-collapse{
  display: none;
}

#nav-frame div.navbar-collapse{
  height: 100%;
  margin-left: 0.75rem;
  justify-content: flex-start;
}

#nav-frame div.navbar-collapse ul{
  height: 100%;
}

#nav-frame div.navbar-collapse ul:last-child{
  margin-left: 0.75rem; /* styling availabe to target "Groups" navigation option */
}

#nav-frame div.navbar-collapse ul li.nav-item{
  display: flex;
  flex-direction: column;
  width: 8rem;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background-color .3s ease-in, color .1s ease-in; 
}

/* #nav-frame div.navbar-collapse ul:last-child li.nav-item{
  border-left: 0.1rem solid #2F2F2F;
  border-right: 0.1rem solid #2F2F2F;
} */

#nav-frame div.navbar-collapse ul li.nav-item:hover{
  color: #000000;
  background-color: #F9C400;
}

#nav-frame div.navbar-collapse ul li.nav-item i{
  display: block;
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

#nav-frame div.navbar-collapse ul li.nav-item span{
  display: block;
  color: inherit;
  font-size: .75rem;
  cursor: pointer;
}

#nav-frame > div.navbar-search-input{
  display: none;
}

#nav-frame > div.navbar-search-input > span.input-group-text{
  border: 0.1rem solid #F9C400 !important;
  border-radius: 0 !important;
  background-color: #000000;
  color: #F9C400;
}

#nav-frame > div.navbar-search-input > span.input-group-text:hover{
  border: 0.1rem solid #F9C400 !important;
  border-radius: 0 !important;
  background-color: #F9C400;
  color: #000000;
  cursor: pointer;
}

#nav-frame div.navbar-collapse div.navbar-search-input{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0.75rem;
}

div.navbar-search-input input{
  width: 20rem;
  border: 0.1rem solid #FFFFFF !important;
  border-radius: 0 !important;
  background-clip: border-box !important;
}

div.navbar-search-input input:focus{
  border: 0.15rem solid #F9C400 !important;
  color: #3194AC;
  font-weight: bold;
}

#nav-frame div.navbar-collapse div.navbar-search-input button.search-input-submit{
  margin-left: 0.75rem;
  border: 0.1rem solid #F9C400 !important;
  border-radius: 0 !important;
  color: #F9C400 !important;
}

#nav-frame div.navbar-collapse div.navbar-search-input button.search-input-submit:hover{
  border: 0.1rem solid #F9C400 !important;
  background-color: #F9C400 !important;
  color: #000000 !important;
}
/* app-frame */
#app-frame{
  position: relative;
  height: 90%;
  max-height: 90%; 
}

#app-frame-right{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding-left: 0 !important; /* Bootrstrap override */
  padding-right: 0 !important; /* Bootrstrap override */
  background-color: #FDFDFD;
  overflow-x: scroll;
  overflow-y: hidden;
}

.app-data-list-horz{
  display: grid;
  /* grid-auto-flow: column; */
  grid-gap: 1rem;
  margin: 1rem;
}

.app-data-list-horz .card{
  display: inline-flex; /* Bootstrap override */
  border: none !important; /* Bootstrap override */
  background: none;
  perspective: 1000px; /* animation style */
  /* width, height, max-width, and max-height properties set programmatically by app.js build function. */
}

.app-data-list-horz .card .card-flip{
  height: inherit;
  width: inherit;
  max-height: inherit;
  max-width: inherit;
  padding: 0 !important; /* Bootstrap override */
  transition: 2s;
  transform-style: preserve-3d;
}

/* .card-flip:hover {
  -webkit-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
} */

.app-data-list-horz .card .card-flip .card-front{
  position: absolute;
  top: 0;
  left: 0;
  height: inherit;
  width: inherit;
  max-height: inherit;
  max-width: inherit;
  padding: .5rem;
  border: 1px solid #FFFFFF;
  background-color: #FFFFFF;
  -webkit-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  transform: rotateY(0deg);
  transition: border 2s, background-color 2s;
  z-index: 2;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.app-data-list-horz .card .card-flip .card-back{
  position: absolute;
  top: 0;
  left: 0;
  height: inherit;
  width: inherit;
  max-height: inherit;
  max-width: inherit;
  padding: .5rem;
  border: 1px solid #FFFFFF;
  background-color: #FFFFFF;
  -webkit-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* ----------- MODALS ----------- */
.modal-content{
  border-radius: 0 !important;
}

div.modal-header button.btn-close{
  font-size: 0.5rem;
}

div.modal-footer button.btn-primary{
  background-color: #219EBC !important;
  border-color: #219EBC !important;
}

div.modal-footer button.btn-primary:hover{
  background-color: #1A7E96 !important;
  border-color: #1A7E96 !important;
}

div.modal-footer button.btn-outline-primary{
  color: #AAAAAA !important;
  border-color: #AAAAAA !important;
}

div.modal-footer button.btn-outline-primary:hover{
  color: #FFFFFF !important;
  background-color: #AAAAAA !important;
  border-color: #AAAAAA !important;
}

div.modal .form-control, div.modal .form-select{
  border-radius: 0 !important;
}

div.modal .form-control:focus {
  color: #023047 !important;
  border-color: #219EBC !important;
  box-shadow: 0 0 0 0.25rem #90CEDD !important;
}

div.modal .form-select:focus {
  border-color: #219EBC !important;
  box-shadow: 0 0 0 0.25rem #219EBC !important;
}
/* ----------- BREAKPOINTS ----------- */
/* 992px is break-point for Bootstrap .col-lg classes. */
@media screen and (max-width: 992px){
  html{
    height: auto;
  }

  body{
    height: auto;
  }

  #app-container{
    height: auto;
  }

  /* #nav-frame */      
  #nav-frame{
    height: auto;
  }

  #nav-frame img.nav-frame-logo{
    display: none;
  }

  #nav-frame img.nav-frame-logo-collapse{
    display: inline-block;
    max-height: 4rem;
    margin-left: 0.5rem;
    padding: 0.5rem 0;
  }

  #nav-frame .navbar-toggler{
    margin-right: 0.5rem;
  }  

  #nav-frame div.navbar-collapse{
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  #nav-frame div.navbar-collapse ul{
    margin-left: 0 !important; /* !important used to override all main styling */ 
  }

  #nav-frame div.navbar-collapse ul li.nav-item{
    display: flex !important; /* !important used to override all main styling */
    flex-direction: row;
    height: 4rem;
    width: auto;
    align-items: center;
    justify-content: flex-start;
    color: #FFFFFF;
    border-right: none !important; /* !important used to override all main styling */
    border-bottom: 0.15rem solid #2F2F2F;
    border-left: none !important; /* !important used to override all main styling */
  }

  #nav-frame div.navbar-collapse ul li.nav-item i{
    margin-right: .75rem;
    margin-bottom: 0;
    padding-left: 0.5rem;
    font-size: 1.1rem;
  }

  #nav-frame div.navbar-collapse ul li.nav-item span{
    font-size: 1.1rem;
  }

  #nav-frame > div.navbar-search-input{
    display: flex;
  }

  #nav-frame div.navbar-collapse div.navbar-search-input{
    display: none;
  }
 
  div.navbar-search-input input{
    width: 14rem;
  } 
 
  /* #app-frame */
  #app-frame{
    height: auto;
    max-height: none;
  }

  #app-frame-right{
    justify-content: center;
    align-items: flex-start;
    height: calc(100vh - 4rem);
    overflow-x: hidden;
    overflow-y: scroll;
  }

  /* #app-frame-right::-webkit-scrollbar{
    display: none;
  } */

  .app-data-list-horz{
    width: auto;
    max-width: 100%;
  }
}

/* 500px is break-point for small device screens. */
@media screen and (max-width: 500px){
  html{
    height: auto;
    font-size: 14px !important;
  }

  body{
    height: auto;
  }

  #app-container{
    height: auto;
  }

  /* #nav-frame */      
  #nav-frame{
    height: auto;
  }

  #nav-frame img.nav-frame-logo{
    display: none;
  }

  #nav-frame img.nav-frame-logo-collapse{
    display: inline-block;
    max-height: 4rem;
	max-width: 4rem;
    margin-left: 0.25rem;
    padding: 0.5rem 0;
  }

  #nav-frame .navbar-toggler{
    margin-right: 0.25rem;
  }  

  #nav-frame div.navbar-collapse{
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  #nav-frame div.navbar-collapse ul{
    margin-left: 0 !important; /* !important used to override all main styling */ 
  }

  #nav-frame div.navbar-collapse ul li.nav-item{
    display: flex !important; /* !important used to override all main styling */
    flex-direction: row;
    height: 4rem;
    width: auto;
    align-items: center;
    justify-content: flex-start;
    color: #FFFFFF;
    border-right: none !important; /* !important used to override all main styling */
    border-bottom: 0.15rem solid #2F2F2F;
    border-left: none !important; /* !important used to override all main styling */
  }

  #nav-frame div.navbar-collapse ul li.nav-item i{
    margin-right: .75rem;
    margin-bottom: 0;
    padding-left: 0.5rem;
    font-size: 1.1rem;
  }

  #nav-frame div.navbar-collapse ul li.nav-item span{
    font-size: 1.1rem;
  }

  #nav-frame > div.navbar-search-input{
    display: flex;
  }

  #nav-frame div.navbar-collapse div.navbar-search-input{
    display: none;
  }
 
  div.navbar-search-input input{
    width: 12rem;
  } 
 
  /* #app-frame */
  #app-frame{
    height: auto;
    max-height: none;
  }

  #app-frame-right{
    justify-content: center;
    align-items: flex-start;
    height: calc(100vh - 4rem);
    overflow-x: hidden;
    overflow-y: scroll;
  }

  /* #app-frame-right::-webkit-scrollbar{
    display: none;
  } */

  .app-data-list-horz{
    width: auto;
    max-width: 100%;
  }
}