/* Styles for the header */
header {
  background: var(--red);
  color: var(--white);
  padding: 1rem 1.5rem;
}

/* Styles for the main header section */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Styles for child elements within the main header */
.main-header > div {
  text-align: center;
}

/* Styles for the main header span */
.main-header span {
  margin-right: 20px;
  font-size: 16px;
  font-family: 'Roboto';
  color: var(--white);
}

/* Styles for the timer element */
.timer {
  vertical-align: middle;
}

/* Additional styles for timer within the main header */
.main-header .timer {
  width: 200px;
}

/* Styles for the sub-header section */
.sub-header {
  width: 100%;
  position: absolute;
  box-sizing: border-box;
  background-color: transparent;
}

/* Styles for the content within the sub-header */
.sub-header-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 50px;
}

/* Styles for child elements within the sub-header content */
.sub-header-content div {
  display: flex;
}

/* Styles for spans within the sub-header content */
.sub-header-content span {
  color: var(--white);
  font-family: 'Montserrat';
  font-size: 12px;
  font-weight: 200;
}

/* Styles for icons within the sub-header */
.icon-sub-header {
  height: 15px;
  margin-right: 12px;
}

/* Media query for responsive design when the screen width is 900px or less */
@media only screen and (max-width: 900px) {
  /* Adjusting styles for sub-header content in smaller screens */
  .sub-header-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  /* Hiding button within the main header in smaller screens */
  .main-header button {
    display: none;
  }

  /* Adjusting font size for span within the main header in smaller screens */
  .main-header span {
    font-size: 8px;
  }

  /* Adjusting width for timer within the main header in smaller screens */
  .main-header .timer {
    width: 120px;
  }
}
