/* Custom color palette. Currently defining light theme, we could do dark theme in the future*/
[data-md-color-scheme="cyber-range-light"] {
  --md-primary-fg-color: #273474;
  --md-accent-fg-color: #5d71e2;
  --md-typeset-a-color: #3a4aa5;
}

.large-text {
  font-size: 1.1em;
}

.md-typeset .md-button:focus,
.md-typeset .md-button:hover {
  border-color: var(--md-primary-fg-color);
}

/* Resize/reposition logo */
.md-header__button.md-logo img,
.md-nav__title .md-nav__button.md-logo img,
.md-header__button.md-logo svg {
  height: 40px;
  width: 220px;
  /* margin: -10px;
    margin-bottom: 5px; */
}

/* Table styling */
.md-typeset table:not([class]) th {
  font-weight: 500;
  background-color: var(--md-primary-fg-color);
  color: white;
  width: 30rem;
}

/* Analytics Opt-out Styling */
#optout {
  width: 1rem;
  height: 1rem;
  vertical-align: bottom;
}

#optout.focus-visible {
  outline: 2px solid var(--md-primary-fg-color);
}

/* Admonition customizations */

/* Nav spacing */
.md-sidebar--secondary a {
  margin-bottom: -6px;
}

.md-nav--secondary li.md-nav__item {
  margin-bottom: 2%;
}

/* Focus indicators */

.md-skip,
.md-tabs__link.focus-visible,
.md-header__button {
  outline-color: #fcfcfc;
}

footer a.focus-visible {
  outline-color: white !important;
}

.md-tabs__link--active {
  text-decoration: underline;
}

.md-nav__link--active {
  text-decoration: underline;
}

article a {
  text-decoration: underline;
}

.md-footer-copyright {
  color: #fcfcfc;
}

/* Hamburger Menu Styling */
button.md-nav__link {
  text-align: left;
}

ul.md-nav__list > li.md-nav__item > .md-nav__link {
  width: 100%;
}

#close-drawer {
  float: right;
  color: white;
  padding: 13px 19px;
}

#close-drawer:focus {
  outline: 1px solid white;
}

button.md-nav__title {
  text-align: left;
  text-overflow: inherit;
}

button.md-nav__title:focus {
  outline: none;
}

button.md-nav__title.focus-visible > span {
  outline: 2px solid #273474;
}

#main-nav-div {
  background-color: var(--md-primary-fg-color);
  color: white;
}

/* Footer Reflow */
.reflow-wrap {
  white-space: normal;
  line-height: 1rem;
}

/* No transition to title when scrolling down */
.md-header__topic {
  transition: none;
}

.md-header__title[data-md-state="active"] .md-header__topic {
  opacity: 1;
  transform: none;
  transition: none;
}

article.md-content__inner {
  margin-bottom: 10rem;
}

.md-header-nav__title[data-md-state="active"] .md-header-nav__topic {
  z-index: auto;
  transform: none;
  opacity: 1;
  transition: none;
}

.hidden {
  display: none !important;
}

@media screen and (min-width: 76.25em) {
  /* Hide button when in standard view */
  #hamburgerToggleButton,
  .md-nav--lifted
    > .md-nav__list
    > .md-nav__item--active
    > .md-nav
    > button.md-nav__title,
  .md-nav__item--nested > .md-nav > button.md-nav__title,
  .md-nav--lifted > .md-nav__list > .md-nav__item--active > button.md-nav__link,
  .md-nav__item--section > button.md-nav__link {
    display: none;
  }

  /* Show h3 nav element when in standard view */
  .md-nav__item--nested > .md-nav > h3.md-nav__title {
    display: block;
    padding: 0;
  }

  /* Show h2 nav element when in standard view */
  .md-nav__item--nested > .md-nav > h2.md-nav__title {
    display: block;
    padding: 0;
  }

  /* Re-align first section title */
  .md-nav__item--nested > .md-nav[data-md-level="1"] > h2.md-nav__title {
    padding: 0 0.6rem;
  }

  /* Re-align section title */
  .md-nav__item--nested > .md-nav[data-md-level="1"] > h3.md-nav__title {
    padding: 0 0.6rem;
  }
}

/* Hamburger Menu Available */
@media screen and (max-width: 76.1875em) {
  /* Hide h2 nav element when in hamburger view */
  .md-nav--primary .md-nav > h2.md-nav__title {
    display: none;
  }

  /* Hide h3 nav element when in hamburger view */
  .md-nav--primary .md-nav > h3.md-nav__title {
    display: none;
  }

  /* Focus styling in hamburger menu */
  button.md-nav__link.focus-visible,
  a.md-nav__link.focus-visible {
    outline: 2px solid var(--md-primary-fg-color);
    outline-offset: -2px;
  }
}

@media screen and (min-width: 59.9375em) {
  /* Hide TOC buttons when in standard view*/
  .tocCloseButton,
  #tocOpenButton {
    display: none;
  }
}

@media screen and (max-width: 59.9375em) {
  /* Hide TOC link, but show TOC button when in hamburger view*/
  #tocOpenButton + .md-nav__link {
    display: none;
  }
}

/* Feedback */
textarea#feedback-textbox,
select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: "Roboto";
}

#flagForReviewWrapper {
  margin-bottom: 0.25rem;
}

#feedback-form {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ffrSubmitButton {
  margin-top: 0.4rem;
  padding: 0.4rem;
  font-size: inherit;
  background-color: white;
}

#feedback-button, #ffrSubmitButton {
  padding: 0.1rem;
  color: black;
  font-weight: 500;
  border-width: 0.05rem;
  border-color: black;
}

#feedback-button:hover,
#feedback-button:focus,
#feedback-button:active,
#ffrSubmitButton:hover,
#ffrSubmitButton:focus,
#ffrSubmitButton:active {
  background-color: black;
  color: white;
  border-color: black;
}

.thumb-button > svg {
  width: 1rem;
  height: 1rem;
}

.thumb-button {
  border-radius: 50%;
  padding: 0.25rem;
}

.thumb-button:hover,
.thumb-button:focus-visible {
  background-color: lightgray;
}

.thumb-button:disabled {
  background-color: inherit;
}

.feedback-widget {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.feedback-buttons {
  display: flex;
  align-items: center;
  flex-direction: column;
  column-gap: 0.1rem;
  margin-bottom: 0.1rem;
}

.thumbs {
  display: flex;
  justify-content: center;
}

.feedback-buttons > fieldset {
  border: none;
  padding: 0;
}

.feedback-group {
  display: flex;
  justify-content: flex-end;
}

#ffrSubmitButton:disabled {
  background-color: #cccccc;
  color: #666666;
  border: none;
}

#thank-you-feedback {
  text-align: center;
}

/* Index page nav links */
.home-nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-left: 10%;
  padding-right: 10%;
  grid-gap: 1em;
}

@media screen and (max-width: 40em) {
  /* Single column on small screens */
  .home-nav-cards {
    grid-template-columns: 1fr;
    padding-left: 5%;
    padding-right: 5%;
  }
}

.index-nav-link {
  background-color: #fcfcfc;
  color: #273474 !important;
  font-size: 20px;
  border-style: solid;
  border-width: thin;
  box-shadow: 2px 4px 5px #e0e3e5;
  border-color: #e0e3e5;
  padding: 1%;
  text-decoration: none;
}

.index-nav-link:hover,
.home-nav-cards > .index-nav-link.focus-visible {
  background-color: #edf4ff; /* e2f4ff OR e8ffe9 #e5efff*/
  box-shadow: 5px 7px 5px #e0e3e5;
  outline: 4px solid var(--md-accent-fg-color);
  outline-offset: 0;
}

.home-nav-cards > a > span {
  display: block;
}

@media screen and (min-width: 40em) {
  /* Double-wide when on big screens */
  .full-row {
    grid-column: span 2;
  }
}

.md-nav__title {
  font-size: medium;
}

.menu-icons {
  width: 45px;
}

#homepage-cyber-range-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 20%;
}

.homepage-content {
  text-align: center;
}

#cyber-basics-quickstart-pdf {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
