:root {
  --docusaurus-announcement-bar-height: auto;
}

.announcementBar {
  position: relative;
  width: 100%;
  height: var(--docusaurus-announcement-bar-height);
  background-color: var(--ifm-color-secondary-dark);
  color: var(--ifm-color-white);
  font-weight: bold;
}

@media print {
  .announcementBar {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --docusaurus-announcement-bar-height: 30px;
  }
}

.announcementBarClose {
  position: absolute;
  right: 0;
  top: 0;
  width: 55px;
  font-size: 1.25rem;
  padding: 0;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  height: 100%;
}

.announcementBarContent {
  font-size: 85%;
  width: 100%;
  text-align: center;
  padding: 5px 0;
}

.announcementBarCloseable {
  margin-right: 55px;
}

@media screen and (max-width: 576px) {
  .announcementBarClose {
    width: 35px;
  }
  .announcementBarContent {
    width: auto;
  }
  .announcementBarCloseable {
    margin-right: 35px;
  }
}

.announcementBarContent a {
  color: inherit;
  text-decoration: underline;
}
