header {
    position: sticky; 
    right: 0; 
    left: 0;
    top: 0px;
    height: 10rem;
    display: flex; 
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-right: calc(1rem * 0);
    background-color: var(--main-color);
    z-index: 1000;
}
@media (max-width: 550px) {
	header {
		min-height: 90px;
		height: 4rem;
	}
}
@media (max-height: 450px) {
	header {
		min-height: 90px;
		height: 4rem;
	}
}

.header-icon {
    flex: 0 0 auto;
    display: flex; 
    flex: none; 
    align-items: center;
}

.header-desktop {
    flex: 1 1 auto;
    margin-left: calc(1.25rem * calc(1 - 0));
    margin-right: 9px;
    display: none; 
    flex-basis: 80%; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-around; 
    font-size: 1.125rem; 
    line-height: 1.75rem;
    text-decoration: none;
}

.header-redirect {
    padding: 0.33rem;
    font-size: 1.25rem; 
    line-height: 1.75rem; 
    color: var(--text-header-color); 
    text-decoration: none;
}
.header-redirect:hover {
    color: rgb(255,255,255); 
    text-decoration: underline;
}

.mobile-header-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    margin-right: 3rem;
}

.header-menu-button {
    border: 1px solid white;
    background-color: transparent;
    color: white;
    font-size: 1.5rem;  
    width: 3rem; 
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

.header-redirect-2 {
    display: block; 
    padding-left: 1.5rem; 
    padding-right: 1.5rem; 
    padding-top: 1rem; 
    padding-bottom: 1rem; 
    font-weight: 500; 
    color: var(--text-primary-color);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    display: block;
    text-decoration: none;
}
.header-redirect-2:hover {
    text-decoration: underline;
    color: rgb(25,89,5); 
    background-color: rgb(243,244,246);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-color: rgb(255,255,255);
    z-index: 9000;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-img {
    height: 3rem; 
    justify-content: flex-end;
}

.mobile-menu-top {
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    background-color: rgb(6,112,49);
}

.mobile-menu-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 8800; 
    display: none; 
    background-color: rgb(0,0,0,0.3);
}
.mobile-menu-overlay.active {
    display: block;
}

.header-inner {
    width: 100%;
    padding-right: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

@media (max-width: 1300px) {
    .basic-header {
        height: 6.25rem;
    }
}
@media (max-width: 450px) {
    .mobile-header-wrapper {
        margin-right: 0.2rem;
    }
}

@media (max-width: 375px) {
    .mobile-header-wrapper {
        display: flex;
        align-items: right;
        margin-right: 4px;
    }
}
@media (min-width: 1300px) {
    .header-desktop {
        display: flex;
    }
    .mobile-header-wrapper {
        display: none;
    }
}
@media (min-width: 450px) {
    .header-inner{
        padding-left: 2rem;
    }
}


.desktop-settings {
	position: relative;
	display: inline-block;
	z-index: 1000;
}

.settings-dropdown {
	overflow-y: visible;
	position: absolute;
	right: 0;
	top: 100%;
	background-color: var(--bck-main-color);
	border: 1px solid var(--border-inverse-color);
	border-radius: 4px;
	padding: 1rem;
	z-index: 1000;
	width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
}

.settings-item {
	margin-bottom: 1rem;
	width: 100%;
	display: flex;
	justify-content: center;
    box-sizing: border-box;
}

.menu-button {
    display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: background-color 0.2s;
}
.menu-button:hover {
  	background-color: rgba(255, 255, 255, 0.1);
}
@media (min-width: 1300px) {
  .menu-button {
      display: flex;
  }
}

.menu-icon,
.icon-button {
	width: 48px;
	height: 48px;
}

/* Language */
.language-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.language-anchor {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 2;
}

.language-canvas {
	position: absolute;
	right: 100%; 
	top: 50%;
	transform: translateY(-50%);
	background: var(--bck-main-color);
	padding: 14px 14px;
	border-radius: 6px;
	overflow-x: visible;
	z-index: 11000;
}

.language-row {
	display: flex;
	gap: 1.85rem;
	margin-right: 1.5rem;
}
@media (max-width: 1300px) {
    .language-canvas {
	    right: 110%; 
        top: 125%;
    }
    .language-row {
        flex-direction: column;
	    margin: 0.5rem;
    }
}

.language-item {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

@media (max-width: 450px) {
    .language-row {
        flex-direction: column;
    }
    .language-canvas {
        top: 150%;
        margin-top: -7px;
    }
}




.theme-toggle {
  	cursor: pointer;
}

.sun-icon {
	transform: translateX(0);
	opacity: 0;
	transition: opacity 0s linear;
}

.moon-icon {
	transform: translateX(0);
	opacity: 1;
	transition: opacity 0s linear;
}

.theme-toggle:not(.dark-mode) .moon-icon {
	transform: translateX(-15px);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle:not(.dark-mode) .sun-icon {
	opacity: 1;
	transition-delay: 0.3s;
}

.theme-toggle.dark-mode .sun-icon {
	transform: translateX(15px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-toggle.dark-mode .moon-icon {
	opacity: 1;
	transition-delay: 0.3s;
}


.icon-button {
	background: none;
	border: none;
}
.icon-wrapper {
	position: relative;
	display: inline-block;
}
.cross-line {
	position: absolute;
	top: -5px;
	left: -5px;
	opacity: 0;
	transition: opacity 0.2s;
}

.cross-line.show-line {
  	opacity: 1;
}



/* Mobile header */
.mobile-button {
    display: flex;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: background-color 0.2s;
}
.mobile-button:hover {
  	background-color: rgba(255, 255, 255, 0.1);
}
@media (min-width: 1300px) {
    .mobile-button {
        display: none;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 44%;
    height: 100%;
    background-color: var(--bck-surface-color2);
    border-left: 1px solid #333;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: start;
    overflow-y: scroll;
    min-width: 120px;
}
.sidebar.active {
    transform: translateX(0);
    margin-right: 0.4rem;
}
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar nav li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 375px) {
    .sidebar.active {
        margin-right: 0.2rem;
    }
    .header-redirect-2 {
        padding: 0.75rem 0.25rem;
    }
}
@media (max-width: 500px) {
    .settings-item {
    	justify-content: flex-end;
        padding-right: 10%;
    }

    .header-redirect-2 {
        text-align: right;
    }
}

.mobile-separator {
    margin-top: 2rem;
}