/* Campus Directory styles */

body {
  font-size: 1rem;
  font-family: setimo, arial, sans-serif;
  background: #e2e1db;
}
.bg-dark {
  background-color: #311A4D !important;
}
/* Headings */

h1 {
  font-size: 1.5em;
  color: #311A4D;
  text-transform: uppercase;
  text-align: center;
}
.card-title {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #d2cfcd;
}
h2, h3 {
  letter-spacing: -.04em;
}

/* Navbar Banner */

.navbar {
  padding: 1em 2em .75em
}
.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-size: .95rem;
  line-height: 120%;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #64dfeb;
}
.navbar-dark .navbar-brand {
  background: transparent url('../img/Amherst-College-wordmark-white.svg') no-repeat top .25rem left;
  background-size: 255px;
  width: 265px;
  height: 45px;
  color: transparent;
}
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:visited,
.navbar-dark .navbar-brand:active,
.navbar-dark .navbar-brand:focus {
  color: transparent;
}
.navbar-expand-md .navbar-nav .nav-link {
  padding-right: .75em;
}
#top-menu-alumni-search {
  display: inline-block;
  min-height: 16px;
  padding-right: 20px;
  background: transparent url('../img/external-link-icon.svg') no-repeat top 8px right;
  background-size: 13px;
}
.user-menu {
  margin-left: 20px;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.department-listing-name {
  font-size: 0.95rem;
  margin-bottom: 0;
  font-weight: bold;
}
#new-profile-perm-value {
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }
}
@media screen and (max-width: 992px) {
  .navbar-dark .navbar-brand {
    background-size: 225px;
    background-position-y: .3rem;
    width: 230px;
  }
}
@media screen and (min-width: 860px) and (max-width: 930px) {
  .navbar-dark .navbar-brand {
    background-size: 190px;
    background-position-y: .3rem;
    width: 190px;
  }
  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: .5em;
  }
}
@media screen and (min-width: 769px) and (max-width: 859px) {
  .navbar-dark .navbar-brand {
    background-size: 190px;
    background-position-y: .3rem;
    width: 190px;
  }
  .navbar-expand-md .navbar-nav .nav-link {
    font-size: .85rem;
  }
}
@media screen and (max-width: 380px) {
  .navbar-dark .navbar-brand {
    background-size: 185px;
    background-position-y: .7rem;
    width: 185px;
  }
}
@media screen and (max-width: 768px) {
  .user-menu {
    margin-left: 10px;
  }
  #top-menu-signin {
    display: inline-flex;
  }
}
#sign-in-error {
  display: none;
}
.signin-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}
#top-menu-signin {
  padding: .25rem .8rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
}
#top-menu-myprofile {
  display: inline-block;
  padding-left: 22px;
  min-height: 16px;
  background: transparent url('../img/profile-person-icon.svg') no-repeat top .5rem left;
  background-size: 16px;
}
.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
  .navbar-collapse {
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.2);
  }
  .navbar-collapse .main-menu {
    float: left;
  }
  .navbar-collapse .user-menu {
    float: right;
    text-align: right;
  }
}

/* Main */

.main-card {
  background: rgba(255, 255, 255, 0.8) url('../img/Mammoth-Purple.svg') no-repeat top .6rem right 2rem;
  background-size: 80px;
  margin-bottom: 2em;
}
@media (max-width: 576px) {
  .container {
    max-width: 570px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 760px;
  }
}
.card-body {
  padding: 1.25rem 2.5rem;
  margin-bottom: 1em;
}
@media screen and (max-width: 992px) {
  .main-card {
    background-position: top .6rem right 1rem;
  }
  .card-body {
    padding: 1.25rem .75rem;
  }
}
@media screen and (max-width: 576px) {
  .main-card {
    background-size: 65px;
  }
}
@media screen and (max-width: 380px) {
  .main-card {
    background-image: none;
  }
}
@media screen and (min-width: 578px) {
  #main-card-advanced-search h1.card-title {
    margin: .25em 0 1rem 0;
  }
}

/* Search forms */

#form-header-search {
  margin: 1.5rem .05rem;
}
#edit-header-search-submit,
#edit-header-search-submit:hover,
#edit-fetch-search-results.btn-primary {
  color: transparent;
  background: #5d3c85 url('../img/search-icon.svg') no-repeat center center;
  background-size: 25px;
  border: 0;
  margin: 0;
  height: 42px;
  width: 50px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 4px #ccc;
}
#edit-header-search-text,
#edit-basic-search-text {
  font-size: 1.2em;
  letter-spacing: -.025em;
  margin-right: 0 !important;
  height: 42px;
  border: 0;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 0 4px #ccc;
}
#edit-basic-search {
  padding: 15px 15px 5px 15px;
  margin-bottom: 1.5em;
  background: #e2e1db;
  border-radius: 4px;
}
#edit-basic-search .search-checkbox-container  {
  font-size: .95em;
  color: #505061;
  padding: 5px 0 0;
  text-align: center;
}
#edit-advanced-search .search-button-container {
  padding: 1rem 0;
  margin: .5rem .05rem;
  border-top: 1px solid #d2cfcd;
}

/* Autocomplete */

.autocomplete-photo {
  margin-right: 5px;
}
.autocomplete-force-public {
  font-size: .8rem;
  font-style: italic;
}
.autocomplete-name {
  font-size: .9rem;
}
.autocomplete-photo {
  margin: 4px 8px 0 0;
}
.autocomplete-phone {
  font-size: .75rem;
}
.autocomplete-roles, .autocomplete-class-year {
  font-size: .75rem;
  line-height: 1rem;
  color: #505061;
  margin: 4px 0 0 0;
}
.autocomplete-item {
  height: 70px;
  border: 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid white;
}
.autocomplete-item:hover,
.autocomplete-item:focus {
  border-top-color: black;
  border-bottom-color: black;
}
.ui-menu .ui-state-focus, .ui-menu .ui-state-active {
  margin-left: 0;
}
.ui-state-active, .ui-widget-content .ui-state-active, 
.ui-widget-header .ui-state-active, a.ui-button:active, 
.ui-button:active, .ui-button.ui-state-active:hover {
  border: 0;
}

/* Search Results */

.search-summary  {
  padding: .5rem 0 .5rem;
  margin-bottom: 1em;
  border-bottom: 1px solid #aeaeb2;
}
.search-overview {
  display: inline-block;
}
.search-order {
  display: inline-block;
}
@media screen and (min-width: 578px) {
  .search-order {
    margin-left: 2em;
  }
}

.search-order .btn-sm {
  color: #505061;
  padding: .05rem .5rem;
  background: transparent;
  border-color: #aeaeb2;
}
.search-order .btn-sm:hover {
  color: white;
  background: #aeaeb2;
  border-color: #aeaeb2;
}
.search-order .btn-primary,
.search-order .btn-primary:hover {
  background: #5d3c85;
  border-color: #5d3c85;
  color: white;
}
.search-results-row {
  overflow: hidden;
  padding: .5rem 0;
  border-bottom: 1px solid #d2cfcd;
}
.results-cell {
  font-size: .95em;
  letter-spacing: -.025em;
  padding: 1px 0 2px;
}
.search-results-name {
  font-size: 1em;
  font-weight: 700;
  margin: .5em 0;
}
.search-result-image-container {
  float: left;
  margin-right: 10px;
  min-height: 220px;
}
.search-result-pagination {
  margin: 30px 0 20px;
}
.search-result-pagination .page-item.active .page-link,
.search-result-pagination .page-link:hover {
  color: white;
  background: #5d3c85;
  border-color: #5d3c85;
}
.label-small-screen {
  margin-right: 10px;
  font-style: italic;
  display: inline-block;
}
@media screen and (min-width: 768px) {
  .results-cell .label-small-screen {
    min-width: 120px;
  }
}
@media screen and (min-width: 992px) {
  .results-cell .label-small-screen {
    min-width: 160px;
  }
}
.search-results-row:last-of-type {
  border-bottom: none;
}
.search-results-subcontainer {
  text-align: left;
  display: inline-block;
}
.search-label-header {
  font-weight: 700;
  margin: .25em 0;
}
@media screen and (max-width: 576px) {
  .search-label-header {
    margin-top: .5em;
  }
}

/* Buttons and Forms */

.form-control, .custom-select {
  font-size: 1rem;
  border-color: #d2cfcd;
}
@media screen and (max-width: 576px) {
  #main-card-advanced-search .form-control {
    margin-bottom: .5rem;
  }
  .custom-select {
    margin: .25rem 0;
  }
}
.btn-primary, .btn-sm {
  font-size: .9em;
  color: white;
  background-color: #5d3c85;
  margin-left: .75em;
  border-radius: 4px;
  border: 1px solid #5d3c85;
}
.btn-sm.external-link {
  padding-right: 30px;
  background: #5d3c85 url(../img/external-link-icon.svg) no-repeat top 6px right 8px;
  background-size: 14px;
}
.btn-sm:hover, .btn-sm.external-link:hover  {
  background-color: #311a4d;
}
.btn-secondary {
  font-size: .9em;
  border-radius: 4px;
}
.btn#edit-fetch-advanced-clear {
  color: #666;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.btn-primary:hover,
.btn#edit-fetch-advanced-clear:hover {
  color: white;
  background: #311A4D;
  border: 1px solid #311A4D;
  text-decoration: none;
}
button:focus {
  outline: none;
	border: 1px solid #00b8d5;
	box-shadow: 0 0 0 1px #00b8d5;
}
.modal-content button.close:focus {
  outline: 2px solid #00b8d5;
  border: none;
  box-shadow: none;
}
.form-check-label {
  font-size: .95em;
}
.form-check-inline {
  margin-right: 20px;
}
@media screen and (max-width: 576px) {
  .form-check-inline {
    margin-right: 0;
    display: block;
    text-align: left;
  }
}

/* PROFILE */

/* Photo */
#privacy-block-container-photo {
  width: 150px;
  text-align: left;
}
#privacy-block-container-photo .privacy-block {
  margin: 8px 0 0 0;
}
.photo-update-link {
  font-size: .95em;
  margin: 15px 0 0 2px;
}

.profile-header {
  font-size: 1.3em;
  font-weight: 700;
}
#main-card-profile .row  {
  margin-left: 0;
  margin-right: 0;
  border-bottom: 1px solid #e2e1db;
}
#main-card-profile .col-md-2,
#main-card-profile .col-md-3,
#main-card-profile .col-md-4 {
  padding-left: 0;
  padding-right: 0;
}
@media screen and (min-width: 980px) {
  #main-card-profile {
    font-size: .95em;
  }
  #main-card-profile .row.profile-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 0;
    background: #e2e1db;
  }
}
#main-card-profile .row.profile-section .privacy-label  {
  font-size: .95em;
  margin-top: 1em;
}
#main-card-profile .row.profile-section .btn-group-toggle {
  margin: 0;
}
#main-card-profile .row.profile-section .btn-group-toggle label.btn.btn-secondary {
  border-radius: 8px 0 0 8px;
}
#main-card-profile .row.profile-section .btn-group-toggle label.btn.btn-secondary:last-child {
  border-radius: 0 8px 8px 0;
}
#main-card-profile .row.profile-section .btn-secondary:not(:disabled):not(.disabled):active,
#main-card-profile .row.profile-section .btn-secondary:not(:disabled):not(.disabled).active,
#main-card-profile .row.profile-section .show>.btn-secondary.dropdown-toggle {
  background-color: #5ba051;
  border-color: #5ba051;
}
#main-card-profile .row.profile-section .btn-secondary:hover {
  background-color: rgba(0,255,0,.1);
}
#main-card-profile .row.profile-section .btn-secondary:not(:disabled):not(.disabled):active:focus,
#main-card-profile .row.profile-section .btn-secondary:not(:disabled):not(.disabled).active:focus,
#main-card-profile .row.profile-section .show>.btn-secondary.dropdown-toggle:focus,
#main-card-profile .row.profile-section .btn-secondary:focus {
  box-shadow: none;
}
#main-card-profile .row.profile-section .row {
  padding: .4rem 0;
  border-bottom: 1px solid white;
}
@media screen and (max-width: 979px) {
  #main-card-profile .row.profile-section .row {
    padding-bottom: 10px;
    border-color: #e2e1db;
  }
}
#main-card-profile .btn-sm {
  margin-left: 0;
}
.profile-section h1 {
  margin: 0;
}
.profile-image-full {
  border: 1px solid #999;
}
.profile-label {
  font-size: .9em;
  text-transform: uppercase;
}
.profile-line-item {
  margin: .5em 0;
}
.profile-line-item-border {
  padding: .5em 0;
  margin: 0;
  border-bottom: 1px solid #d2cfcd;
}
.profile-line-header-border {
  padding: 1em 0 .75em 0;
  margin: 0;
  border-bottom: 1px solid #d2cfcd;
}
.profile-section-header {
  font-weight: 700;
  padding: 0;
}
@media screen and (max-width: 992px) {
  .profile-section .profile-line-item {  }
}
.privacy-label {
  margin: 0 0 10px 0;
}
.no-padding {
  padding: 0;
}

/* Bookmark */
.bookmark-update {
  font-size: .9rem;
  color: #505061;
  background-color: transparent;
  border-color: #aeaeb2;
  float: none !important;
}
@media screen and (max-width: 768px) {
  .bookmark-update {
    display: block;
    margin: .5rem 0;
  }
}
.bookmark-update:hover {
  color: white;
  background: #aeaeb2;
  border-color: #aeaeb2;
}
.bookmark-update svg {
  margin-right: 5px;
}
.editing-help-information {
  margin-top: 10px;
  padding: 15px;
  background-color: #EBEBEB;
}

/* Departments list */

#department-listing .row {
  font-size: .95rem;
  padding: .5rem 0;
  margin-left: 0;
  margin-right: 0;
  border-bottom: 1px solid #e2e1db;
}
#department-listing .col-xl {
  padding-left: 0;
  padding-right: 0;
}
#department-listing .directory-header {
  font-weight: 700;
}
@media screen and (max-width: 1200px) {
  #department-listing .row {
    font-size: .9rem;
    border-bottom: 0;
  }
  #department-listing .directory-header {
    display: none;
  }
}

/* Privacy Settings Popup */
@media screen and (min-width: 990px) {
	.privacy-column {
    text-align: right;
  }
 .privacy-block, .edit-field-button, .edit-certificate-button {
    margin: 0 0 6px 8px;
  }  
}

.privacy-block, .new-permission-val-notice, .new-permission-val {
  font-size: .9em;
  display: inline-block;
  min-width: 85px;
  cursor: pointer;
  color: #000000;
  padding: 2px 8px 3px 28px;
  background-position: 5px center;
  background-repeat: no-repeat;
  background-size: 19px;
  background-color: rgba(255,255,255,.4);
  border: 1px solid rgba(1,1,1,.2);
  border-radius: 4px;
}
.edit-field-button, .edit-certificate-button {
  font-size: .9em;
  display: inline-block;
  cursor: pointer;
  color: #000000;
  padding: 2px 8px 3px 25px;
  background-position: 5px center;
  background-repeat: no-repeat;
  background-size: 18px;
  background-color: rgba(255,255,255,.4);
  border: 1px solid rgba(1,1,1,.2);
  border-radius: 4px;
}
.privacy-block:hover, .edit-field-button:hover, .edit-certificate-button:hover {
  background-color: white;
}
@media screen and (max-width: 992px) {
  .edit-field-button {
    border-color: rgba(1,1,1,.2);
  }
}
.privacy-column .btn-sm {
	margin-bottom: 10px;
}
@media screen and (max-width: 990px) {
  .privacy-block-container {
    margin: 10px 0;
  }
}
.privacy-option {
  border-bottom: 1px solid #ddd;
  padding: 5px;
  width: 100%;
  background-color: #fff;
  text-align: left;
  border-top: none;
  border-left: none;
  border-right: none;
}
.privacy-option:hover {
  background-color: #ddd;
}
.privacy-option:last-of-type {
  border-bottom: none;
}
button.privacy-option:focus {
	outline: none;
	border:none;
	box-shadow: none;
}
.privacy-header {
  font-weight: bold;
}
.privacy-left {
  padding-left: 40px;
  background-position: 5px 10px;
  background-repeat: no-repeat;
  background-size: 19px;
}
.privacy-left:hover {
  color: #000000;
}
.privacy-active {
  color: #000000;
}
.privacy-right {
  margin: 10px;
  float: right;
  width: 20px;
  text-align: center;
}
.privacy-public, .privacy-button-public {
  background-image: url('../img/privacy-icon-public.svg');
}
.privacy-community, .privacy-button-community {
  background-image: url('../img/privacy-icon-amherst.svg');
}
.privacy-private, .privacy-button-private {
  background-image: url('../img/privacy-icon-hidden.svg');
  background-size: 16px;
}
.privacy-public.privacy-active {
  background-image: url('../img/privacy-icon-public.svg');
}
.privacy-community.privacy-active {
  background-image: url('../img/privacy-icon-amherst.svg');
}
.privacy-private.privacy-active {
  background-image: url('../img/privacy-icon-hidden.svg');
  background-size: 16px;
}
.popover {
  border-radius: 4px;
}
.edit-icon {
  background-image: url('../img/pencil.svg');
  background-size: 16px;
}
.delete-icon {
  background-image: url('../img/trash.svg');
  background-size: 16px;
}

/* Rosters */

#main-card-roster .card-body {
  text-align: center;
}
#main-card-roster .card-title {
  text-align: left;
}
#main-card-roster .roster-result-container {
  font-size: .9rem;
  float: left;
  min-height: 250px;
  min-width: 200px;
  margin-bottom: 1rem;
}
@media screen and (max-width: 768px) {
  #main-card-roster .roster-result-container {
    min-width: 49%;
    min-height: 0;
  }
}
@media screen and (max-width: 320px) {
  #main-card-roster .roster-result-container {
    min-width: 100%;
  }
}
#main-card-roster .roster-result-container .label-small-screen {
  margin-right: .5rem;
}

/* Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin-bottom: 0;
  vertical-align: middle;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

.switch-container {
  height: 20px;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #aaa;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #5ba051;
}

input:focus + .slider {
  box-shadow: 0 0 1px #5ba051;
}

input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Footer */

footer {
  font-size: .9rem;
  color: white;
  background: #311A4D;
}
footer .container {
  padding: .5em 1em 1em;
  background: #311A4D;
  display: flex;
  justify-content: space-evenly;
}
footer .footer-address {
  display: inline-flex;
  align-items: center;
  margin: 0 1em;
}
footer img.footer-seal {
  max-width: 140px;
  margin-right: 1em;
}
footer .footer-links {
  display: flex;
  align-items: center;
  text-align: center;
}
footer a, footer a:visited {
  display: inline-block;
  color: white;
  padding: 8px 12px;
  margin: 10px;
  border: 1px solid #5d3c85;
}
footer a:hover {
  color: white;
  text-decoration: none;
  background: #5d3c85;
}
footer a[href^="tel:"] {
  border: 0;
  padding: 0;
}
@media screen and (max-width: 980px) {
  footer .container {
    flex-wrap: wrap;
  }
  footer .footer-links {
    margin-top: 1.5em;
  }
  footer .footer-address,
  footer .footer-links {
    display: inline-flex;
    flex-wrap: wrap;
  }
  footer .footer-links a {
    width: 45%;
  }
}
@media screen and (max-width: 768px) {
  footer .container {
    display: block;
  }
  footer .footer-links {
    margin-top: 1.5em;
  }
  footer .footer-address,
  footer .footer-links {
    display: block;
    width: 100%;
    text-align: center;
  }
  footer .footer-links a {
    width: 90%;
    text-align: center;
  }
}
