/*
 Theme Name: OceanWP AICC
 Template: oceanwp
 Author: Nevin Katz
*/

/* 
 * Sitewide - Main Areas
 */
html {
  background-color: #dddee0; /*#e7e8ea; /*#f0f1f4; /* #f1f2ef;*/
  font-size: 16px;
  line-height: 24px;
}
html, body {
  height: 100%;
  margin: 0;
  min-height: 100vh;


}
body {
  font-family: Roboto, sans-serif;
  /* inline style overrides this */
  font-size: 1rem;

  padding: 0px;
  font-weight: 400;
  max-width: 1300px;
  margin: 0px auto;
  background-color: #fff;
  min-height: 100vh;
}
a {
  cursor: pointer;
}
div#wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  box-shadow: 
    -10px 0 10px -5px rgba(0, 0, 0, 0.1), /* Left shadow */
    10px 0 10px -5px rgba(0, 0, 0, 0.1); /* Right shadow */
}
body p {
  font-size: 1.2rem;
  line-height: 1.8rem;
}
header#site-header,
div.hero,
footer {
    background-color: var(--navy);
    color: #fff;
}
header#site-header, 
div.content,
footer {
    padding: 1rem;
}
header#site-header {
  padding: 1rem var(--horiz_wrap_pad);
}
div.content,
footer#footer {
  padding: 1rem var(--horiz_wrap_pad) 2rem;
}
div.content {
  background-color: var(--white);
}


main {
    flex: 1;
}

/* header type 1 */
#site-header-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    position: relative;
}

/*
 *  Main Menu Nav
 */
/* make menu horizontal */
header#site-header nav#site-navigation {
    display: flex;
    flex-direction: column;
}
/* general top menu styles */
header#site-header nav#site-navigation ul#menu-main-navigation {
    list-style-type: none;
    padding: 0rem;
    margin: 0rem 0rem 1rem;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* horizontal margin of menu links */
ul#menu-main-navigation li {
  margin: 0em 1em;
}
ul#menu-main-navigation ul.sub-menu li {
  margin: 1em;
}

/* hide the useless and absurd search toggle */
li.search-toggle-li {
  display: none;
}
/* menu link styles */
header#site-header nav#site-navigation ul li a {
   text-decoration: none;
   color: #FFF;
   font-size: 1.25rem;
}

header#site-header nav#site-navigation ul#menu-main-navigation li a:hover span {
  color: var(--aqua);
}
header#site-header nav#site-navigation ul#menu-main-navigation li a:active span {
  color: var(--darkaqua);
}
/* prevent carets from wrapping to new line */
header#site-header nav#site-navigation ul li a span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* the dropdown caret near the menu link */
a.menu-link i.nav-arrow {
  color: var(--aqua);
  /* tied to text size, use em */
  margin-left: 0.5em;
  text-decoration: none;
}
header#site-header nav#site-navigation ul li.search-toggle-li.active a {
    color: lightgreen;
}

/* 
 *  Header and Footer
 */
header#site-header a:not(.primary-btn),
footer a {
    color: var(--aqua);
}

/* footer */
footer {
    padding: 2rem;
    margin-top: auto;
}
footer,
footer p {
  font-size: 1rem;
  line-height: 1.5rem;
}
footer .footer-logos {
  display: flex;
  align-items: center;
  height: auto;
  justify-content: space-between;
}
footer div.logo-slot {
  margin-top: 0.5rem;
}
footer img.footer-logo {
  height: auto;
}
/* specific logo sizes */
footer img#nsf-footer-logo {
  width: 6rem;
}
footer img#aicc-footer-logo {
  width: 7rem;
}
footer img#mail-footer-icon {
  width: 4rem;
}
footer img#edc-footer-logo {
  width: 12rem;
}
footer a {
  display: inline-block;
}
footer a.contact-us-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
footer a.contact-us-link .email-text {

  color: #FFF;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 0.25rem;

}
#footer-bottom #copyright {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
/** 
 * Sitewide - Logo
 */
#site-logo {
    width: 8em;
    text-align: center;
    grid-row: 1 / 4;
}
body img {
  max-width: 100%;
  height: auto;
}
div#site-logo-inner img.custom-logo {
    width: 8em;
} 
header #site-logo a {
    color: var(--aqua);
}
/* 
 * Sitewide - AI in CC tagline under the logo 
*/
header #site-logo #site-description {
    color: var(--aqua);
    width: 100%;
    text-align: center;
    /* may incorporate text into image later */
    margin-top: -0.5rem;

}
header #site-logo #site-description h2 {
    margin: 0px;
    font-size: 1.96rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
}

/** 
 * Sitewide - Search Widget, Desktop and Mobile
 */
div#content-wrap input#ocean-search-form-3,
form.mobile-searchform input#ocean-mobile-search-2,
form.searchform input#ocean-search-form-1 {
  font-size: 1.2rem;
  color: gray;
  padding: 0.5rem 0.75rem;
  /* make room for the icon */
 

}
form.searchform input#ocean-search-form-1 {
  width: 15rem; /*clamp(12rem, 40vw, 17.5rem);*/
  padding-right: 3rem;   
  border-radius: 16px;
  text-align: right;
}
div#content-wrap input#ocean-search-form-3,
form.searchform input#ocean-search-form-1,
input#resource-search {
  background-size: 1.4rem 1.4rem; /* scale as needed */
  background-image: url('images/icons/fa-search.svg');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
form.mobile-searchform input#ocean-mobile-search-2 {
  font-size: 1rem;
  padding: 0.4rem 0.65rem;
  max-width: calc(100% - 60px);
  border-radius: 16px 0px 0px 16px;
  text-align: left;
}


/**
 *  Hide Submenus by default
 */
 /* mobile */
.menu-main-navigation-1 ul.sub-menu,
  /* desktop */
.main-navigation ul.sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    pointer-events: none; /* prevents stray hovers when hidden */
}


ul.sub-menu li {
   margin: 0px;
   list-style-type: none;
}


/* 
 * Search / Contact Container
 */
.search-contact-inner {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
}

/**
 * Buttons
 */

/* <button> element */
body div.content-wrap button {
    background-color: var(--blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border-width: 0px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s ease;
}

/* <a> element masquerading as a button */
a.primary-btn,
div#content-wrap a.primary-btn,
div.content-wrap a.primary-btn {
  background-color: var(--blue);
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8rem;
  padding: 0.3em 1.1em;
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
a.primary-btn.wide,
div#content-wrap a.primary-btn.wide, 
div.content-wrap a.primary-btn.wide {
  display: block;
  text-align: center;
}
div.content-wrap a.primary-btn.caps {
  text-transform: uppercase;
}
div.content-wrap a.primary-btn:hover,
div#content-wrap a.primary-btn:hover,
a.primary-btn:hover {
  background-color: var(--darkblue);
  transition: 0.2s ease;
  color: var(--white);
  text-decoration: none;
}
div#content-wrap a.primary-btn.large{
  font-size: 1.5rem;
  line-height: 2.25rem;
}
div#content-wrap a.primary-btn.orange {
  background-color: var(--orange);
}
div#content-wrap a.primary-btn.orange:hover {
  background-color: var(--darkorange);
}
/**
 *  Header and Hero
 */
div.header-page-title {
  text-align: right;
}

/* page heading */
div.header-page-title h1 {
  font-family: 'Open Sans';
  font-size: 3.125rem;
  line-height: 3.125rem;
  font-weight: 400;
  margin: 1rem 0rem;
  letter-spacing: 0.02em;
}
/* 
 *  Skip Content
 */
/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}


.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  padding: .5rem .75rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: .5rem;
  font-weight: 600;
}

/* Optional: improve focus target */
#main-content { outline: none; }
#main-content:focus { outline: 3px solid #000; }

/* 
 * Mobile Menu
 */
#mobile-dropdown nav {
  border-top: 3px solid #FFF;
}
#mobile-dropdown nav ul#menu-main-navigation-1 {
   list-style-type: none;
   padding-left: 0px;
   margin: 0rem 1rem 1rem;
   padding-top: 1rem;
   position: relative;
   transition: 0.4s ease;

}
div#mobile-menu-search {
  padding: 0rem 1rem 1rem;
}
div#mobile-dropdown {
    background-color: var(--lightnavy);
  margin: 1rem auto;
  transition: 0.2s ease;
}
#mobile-dropdown nav ul.sub-menu {
  display: none;
  padding-left: 0.1rem;
}

ul#menu-main-navigation-1 li a {
  text-decoration: none;
}
ul#menu-main-navigation-1 li a {
  color: var(--white);
}
ul#menu-main-navigation-1 li a:hover {
  text-decoration: underline;
}
ul#mobile-dropdown nav ul.submenu li:before {
  content:'\2013';
  display: inline-block;
  color: #FFF;
}
ul#menu-main-navigation-1 li a:active {
  color: var(--aqua);
}

/* the ubiquitous scroll to top button */
a#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    display: none; /* hidden by default */
    z-index: 1000;
}