nav {
    
    position: sticky;
    top: 0;
    
    width: 100%;
    height: var(--navbar-height);

    padding: 0px var(--horizontal-margin);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    background-image: url("../assets/images/navbar/pale_oak_log.png");
    background-repeat: repeat;

    box-sizing: border-box;
    border-bottom: 2px solid black;
    z-index: 1;

    margin-bottom: -75px;

}

#navbar-toggle {
    display: none;
    color: #FFAA00;
    font-size: 32pt;
    padding-right: 10px;
}

#navbar-toggle-label {
    display: none;
}

nav ul {
    padding: 0;
    margin: 0;
    top: 0;

    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;

    background-repeat: repeat;
    box-sizing: border-box;
}

nav ul li label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    padding-right: 10px;
    width: fit-content;
}

nav > ul:nth-child(1) {
    flex: 1;
}

nav > ul:nth-child(2) {
    width: fit-content;
}

nav ul li {
    margin: 0;
    padding: 0px;
    padding-right: 50px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    font-size: 16pt;
}

nav > ul:first-child li:last-child  {
    padding-right: 0px;
}

@media ( 1300px < width <= 1515px) {
    nav ul li {
        font-size: 12pt;
    }
}

@media ( 1150px < width <= 1300px) {
    nav ul li {
        font-size: 10pt;
    }
}

@media (0px <= width <= 1150px) {
    :root {
        --horizontal-margin: 20px;
    }
    nav {
        position: absolute;
        flex-direction: column;
        
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        font-size: 12pt;
        padding-right: 0px;
    }

    #navbar-toggle-label {
        display: block;
    }

  nav ul li:not(:first-child), nav ul:last-child {
    display: none;
  }

  nav ul:has(#navbar-toggle:checked) li,  nav:has(#navbar-toggle:checked) ul:last-child {
    display: flex;
  }

    nav ul:has(#navbar-toggle:checked) li,  nav {
        max-height: fit-content;
        height: fit-content;
        min-height: var(--navbar-height);
  }

}

nav ul li a {
    display: flex;
    align-items: start;
    flex-direction: row;
    align-items: center;
    color: #FFAA00;
    text-decoration: none;
    transition: transform 150ms;
    width: fit-content;
    transform-origin: center; /* Keeps the text pinned to the left */
    text-wrap: nowrap;

}

nav ul li button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: inherit;
    color: #FFAA00;
    background-color: inherit;
}

nav ul li a:hover {
    text-decoration: underline;
    transform: scale(1.1); /* Grows by 20% */
}

.play-now-bubble {
    visibility: hidden;
    opacity: 0;
    width: fit-content;
    text-wrap: nowrap;
    background-color: #000000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: calc(25% -5px);
    left: 50%;
    transition: all 150ms;
    font-size: 14px;
}

.play-now-bubble-visible {
    visibility: visible;
    opacity: 1;
    left: calc(100% + 15px);
    top: calc(25% - 5px);
}

.play-now-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #000000 transparent transparent;
}