/* Basic styles for the menu bar */

* {
  padding:0;
  margin:0;
}

:root {
  --fs-600: 3em;
}

h1 {
  font-size: 10em;
}
.title {
    font-size: clamp(var(--fs-600),1rem + 5vw,5rem);
}


:root {
  --height: 5rem;
}

#tx-nav {
  position:fixed;
  top:0;
  left:0;
  width:100%;
}

.tx-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0rem;
  background-color: #f8f8f8;
  border: 1px solid red;
    height: var(--height);
}

/* Logo styles */
.tx-logo {
  width: 5rem;
  height: var(--height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ddd;
  font-weight: bold;
}

/* Links styles */

.tx-links {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--height);
}

.tx-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  background: #999;
  width:100%;
  height: var(--height);
}

.tx-links li {
  display: flex;
  align-items: center;
  justify-content: center;
    height: var(--height);
}

.tx-links a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem;
  transition: color 0.3s;
}

.tx-links a:hover {
  color: #007bff;
}

/* Search styles */
.tx-search {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ddd;
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 600px) {

  :root {
    --height: 4rem;
  }

  .tx-menu-bar {
    flex-wrap: wrap;
    /* overflow: hidden; */
    height: var(--height);
  }

  .tx-logo {
    height: var(--height);
  }

  .tx-search {
    height: var(--height);
  }

  .tx-links {
    display:block;
    order: 2; /* Position links below logo and search */
    width: 100%;
    outline:1px solid lime;
    height:calc(var(--height) *3 );

  }

  .tx-links ul {
    flex-direction: column;
    align-items:center;
    justify-content: flex-start;
    gap:0;
    height:calc(var(--height) *3 );

  }

  .tx-links li {
    align-items: center;
    justify-content: center;
    outline:1px solid red;
    width: 100%;

  }


  .tx-logo {
    order: 0;
  }

  .tx-search {
    order: 1;
  }
}
