header {
    height: 90px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    position: relative;
}

header:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
}

nav {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 55px;
    font-size: 1.25rem;
}

nav img {
    height: 65px;
    aspect-ratio: 75 / 29;
}

nav a {
    display: block;
    text-decoration: none;
    color: white;
    height: 65px;
}

.account-block {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
}

.account-block a {
    height: auto;
}

.account-block > a:hover {
    color: var(--button-color);
    transition: 0.3s ease-in-out;
}

.login-link {
    text-decoration: none;
    font-size: 1.25rem;
    color: black;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    background: linear-gradient(91.2deg, #23fff2 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    border-radius: 12px;
}

.profile-wrapper {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 100%;
    position: relative;
}

.profile-wrapper img {
    width: 50px;
    height: 50px;
}

.profile-wrapper a {
    height: auto;
}

.menu {
    min-width: 180px;
    padding-left: 0;
    list-style: none;
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
}

.menu li {
    padding: 15px 15px;
    width: 100%;
    text-align: center;
    position: relative;
}

.menu li a {
    display: block;
    text-decoration: none;
}

.menu li a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.menu li:hover {
    background-color: var(--base-border-color);
}

.menu-item-theme {
    display: none;
}

.menu-item-theme a {

}

.menu.opened {
    display: flex;
    animation-name: fadeInDown;
    animation-duration: 0.3s;
    z-index: 10;
}

.logout-button {
    cursor: pointer;
    font-size: 1.125rem;
    color: black;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    background: linear-gradient(91.2deg, #23fff2 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    transition: background 0.5s ease;
    background-size: 100% 100%;
    border-radius: 12px;
    width: 100%;
}

.logout-button:hover {
    background: linear-gradient(91.2deg, #00d1ff 8.77%, #ba8fff 54.81%, #ff8fa3 92.52%);
    background-size: 200% 200%;
}

#logout-item:hover {
    background: none;
}

@keyframes fadeInDown {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@media (max-width: 768px) {
    nav {
        padding-left: 10px;
        padding-right: 10px;
    }
    nav img, nav a {
        height: 55px;
    }
    .menu-item-theme {
        display: block;
    }
    .account-block > a {
        text-align: center;
        display: none;
    }
    .my-works {
        display: block!important;
    }
    .profile-wrapper img {
        width: 45px;
        height: 45px;
    }
    .menu {
        right: 50%;
        transform: translateX(-80%);
    }
    .login-link {
        display: block!important;
    }
    .generator-tem {
        display: none;
    }
}

@media (max-width: 550px) {
    header {
        height: 80px;
    }
    .account-block {
        column-gap: 15px;
    }
    nav {
        font-size: 1.125rem;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    nav img, nav a {
        height: 50px;
    }
    nav a {
        padding-left: 5px;
    }
    .login-link {
        font-size: 1.125rem;
        padding: 10px 20px;
    }
}

@media (max-width: 400px) {
    nav {
        font-size: 1.0625rem;
    }
}
