.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1% 5%;
    position: relative;
}

.top-nav h3 {
    padding: 0 !important;
    margin: 0 !important;
}

.top-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.top-nav ul > * {
    padding: 0 !important;
    margin-top: 28px !important;
}

 .top-nav ul li {
    list-style: none;
}

 .top-nav ul li a {
    text-decoration: none;
    color: var(--heading-color) !important;
    font-size: 1.125rem !important;
    transition: all 0.3s;
}

 .top-nav ul li a:hover {
    color: var(--main-color) !important;
}

.login-button {
    background-color: var(--secondary-text);
    border: 1px solid var(--secondary-color);
    padding: 4px 40px;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
    transition: all 0.8 !important;
}

.login-button:hover{
    background-color: var(--main-color);
}

.top-nav .menu-button {
    display: none;
}

    /* PHONE MEDIA QUERY */
    @media only screen and (max-width: 767px) {
        .top-nav{
            padding: 5%;
        }
         .top-nav ul{
            display: none; 
            transition: max-height 0.3s ease-out;
            max-height: 0;
        }

        .top-nav ul > * {
            margin-top: 0 !important;
            margin-bottom: 8px;
        }

        .top-nav .open {
            display: block; 
            max-height: max-content;
        }
         .top-nav ul {
            padding: 5% !important;
            background-color: var(--main-color) !important;
            position: absolute;
            top: 70;
            flex-direction: column;
            left: 0;
            right: 0;
            z-index: 10;
            align-items: start;
            justify-content: start;
            gap: 16px;
        }

         .top-nav ul li a:hover {
            color: var(--secondary-text) !important;
        }

        .top-nav .login-button {
            display: none;
        }

        .top-nav .menu-button{
            display: block;
        }
      }    
      
      /* TABLET AND IPAD QUERY */
      @media (min-width: 768px) and (max-width: 1024px) {
        .top-nav{
            padding: 3% 5%;
        }
         .top-nav ul{
            display: none; 
            transition: max-height 0.3s ease;
        }

        .top-nav ul > * {
            margin-top: 0 !important;
            margin-bottom: 8px;
        }
        
        .top-nav .open {
            display: block; 
        }
         .top-nav ul {
            padding: 5% !important;
            background-color: var(--main-color) !important;
            position: absolute;
            top: 70;
            flex-direction: column;
            left: 0;
            right: 0;
            z-index: 10;
            align-items: start;
            justify-content: start;
            gap: 16px;
        }

         .top-nav ul li a:hover {
            color: var(--secondary-text) !important;
        }

        .top-nav .login-button {
            display: none;
        }

        .top-nav .menu-button{
            display: block;
        }
      }