.navigation {
  background-color: #1B1B1E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
  position: relative;
  flex: 1;
}

#navrow{
    display:flex;
    flex-direction: row;
    width:100%;
    justify-content: space-between;
    align-items: center;
}

#navpages{
    display:flex;
    flex-direction:column;
    flex: 1;
}

#navrow .logo a img{
    height: 3em;
    width: 3em;
    margin: 0px;
    padding: 0px;
}

#navrow .logo a{
    height: 3em;
    width: 3em;
    margin: 3px;
    padding: 0px;
}

#navrow .logo{
    margin: 0px;
    padding: 0px;
}

.dropdown a{
    flex: 1;
    flex-shrink: 0;
}

#games-dropdown, #projects-dropdown{
    display: flex;
    flex-direction:column;
    flex-shrink: 0;
}

.navigation a.icon {
    float: right;
    display: block;
    size:100%;
    font-size:2em;
    padding-right: 10px;
}

.left {
    justify-self: flex-start;
}

.right{
    justify-self: flex-end;
}

.btn {
    color: white;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, rgb(from var(--kitsuneko-purple) r g b / 0.5), rgb(from var(--kitsuneko-blue) r g b / 0.5));
    transform: translateY(-3px) scale(1.02);
    padding-left: 35px;
}

.dropdown > .dropdown .btn{
    padding-left: 37.5px;
}
.dropdown > .dropdown .btn:hover{
    padding-left: 55px;
}

.logo .btn:hover{
    box-shadow: 0 0 10px var(--kitsuneko-lavender), 0 0 10px var(--kitsuneko-lavender) inset;
}

.logo .btn a{
    background: transparent;
    border-radius: 100%
}
.logo .btn{
    background: transparent;
    border-radius: 100%;
}

.btn:active {
    transform: scale(0.97);
}

.btn:hover::after {
    left: 125%;
}

.dropdown {
    will-change: visibility, opacity, max-height, height;
    width: 100%;
    overflow: hidden;
    animation: dropdownClose 0.2s forwards;
    background: #1B1B1E;
}

.dropdown.open{
    animation: dropdownOpen 0.5s forwards;
}

.btn:has(+ .dropdown.open){
    background: linear-gradient(135deg, rgb(from var(--kitsuneko-purple) r g b / 0.5), rgb(from var(--kitsuneko-blue) r g b / 0.5));
}

.dropdown-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.25s ease;
}

.dropdown-overlay.open {
    clip-path: inset(0 0 0% 0);
    transition: clip-path 0.3s ease;
}

.dropdown-push {
    position: relative;
}

@keyframes dropdownOpen{
    0% {
        max-height: 0;
        visibility: hidden;
    }
    1% {
        visibility: visible;
    }
    100% {
        max-height: 1000px;
    }

}

@keyframes dropdownClose{
    0% {
        max-height: 1000px;
    }
    99% {
        visibility: visible;
    }
    100% {
        max-height: 0;
        visibility: hidden;
    }

}
