.header {
	z-index: 3;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;

	background-color: transparent;
	color: white;
    font-weight: 500;
	padding: 2rem 0;
	transition: all linear 0.2s;
}

.scrolled {
	position: fixed;
	background-color: white;
	color: black;
	padding-top: 1rem;
	padding-bottom: 1rem;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
}

.nav {
	width: 100%;
	padding: 0 5rem;
	/* position: relative; */
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;

	/* border: 1px solid green; */
}

.logo {
	display: flex;
	justify-content: center;
	align-items: center;

	cursor: pointer;
}

.logo img {
	max-width: 200px;
	padding: 10px 0 10px 0;
}

.links {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	align-self: stretch;
	gap: 0.25rem;
}

.link_wrapper {
	display: inline;
	position: relative;
}

.link {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0px;
	cursor: pointer;
	padding: 0.5rem 0.75rem;
	z-index: 3;
    opacity: 0.75;
}

.link:hover {
	opacity: 1;
}

.specijalno {
	opacity: 1;
	background-color: #f93839;
	color: white;
	border: 1px solid transparent;
	transition: all 0.2s;
	text-align: center;
}
.specijalno a {
	width: 100%;
	text-align: center;
	padding: 0.2rem 3rem;
}
.specijalno:hover {
	background-color: transparent;
	border-color: white;
}
.scrolled .specijalno:hover {
    color: #f93839;
    border-color: #f93839;
}


.dropdown_list {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	pointer-events: none;
	transform: translateY(-10px);
	opacity: 0;
	transition: all 0.2s;
	
	width: max-content;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background-color: white;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
	color: black;
	overflow-y: auto;
}
.dropdown_list_item {
	align-self: stretch;
}
.dropdown_list_item a {
	padding: 0.875rem 1.5rem ;
	width: 100%;
	display: block;
	/* margin: 0.125rem 0; */
}
.dropdown_list_item:hover {
	background: rgb(200, 200, 200);
}

/* LINIJE DROPDOWN */
/* .dropdown_list_item:not(:last-child) {
	border-bottom: 1px solid rgba(50, 50, 50, 0.5);
} */

.dropdown_list.active {
	transform: translateY(0);
	opacity: 1;
	pointer-events: all;
}

.menu_icon {
	display: none;
	cursor: pointer;
}
.menu_icon_close {
	display: none;
	pointer-events: none;
}

.dropdown_list_item {
	opacity: 0.75;
}
.dropdown_list_item:hover {
	opacity: 1;
}
@media screen and (max-width: 1024px) {
	.menu_icon {
		display: block;
	}
	body:has(.show_x), 
	#__next:has(.show_x) {
		overflow: hidden;
	}
	.menu_icon_close {
		position: fixed;
		top: 1rem;
		right: 1rem;
		cursor: pointer;
		pointer-events: none;
		display: none;
	}
	.menu_icon_close.show_x {
		display: block;
		pointer-events: all;
	}
	.links {
		display: none;
	}
	
	.dropdown_list {
		position: static;
		width: 100%;
		box-shadow: none;
		max-height: 0;
		padding: 0;
		/* transform: unset; */
		transition: all 0.3s;
		/* transition: opacity 0s; */
		align-items: flex-end;
	}
	.dropdown_list_item a{
		padding: 0.5rem 2.5rem;
	}
	.dropdown_list.active {
		max-height: 100vh;
	}
	.sidebar_links {
		min-height: 100%;
		z-index: 2;
		display: flex;
		gap: 2rem;
		flex-direction: column;
		justify-content: space-between;
		/* justify-content: center; */
		align-items: center;
		/* align-items: center; */
		background-color: white;
		color: black;
		padding: 3rem 0;
	}
	.sidebar_links div {
		align-self: stretch;
	}
	.specijalno {
		margin: 0 1rem;
	}
	.specijalno:hover {
		color: #f93839;
		border-color: #f93839;
	}
	.link_wrapper {
		padding: 0;
		gap: 2rem;
	}
	/* LINIJE LINK */
	/* .link:not(.specijalno) {
		border-bottom: 1px solid rgba(0, 0, 0, 0.9);
	} */
	.link {
		justify-content: space-between;
		padding: 1rem ;
	}
	
}

@media screen and (max-width: 768px) {
	.header {	
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
	.scrolled {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}
	.nav {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
	.logo img {
		max-width: 150px;
	}
}

@media screen and (max-width: 320px) {
	.header {	
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
	.scrolled {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}
	.nav {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	.logo img {
		max-width: 125px;
	}
}
@media screen and (max-width: 335px) {
	.sidebar_links{
		width: 300px;
	}
}
@media screen and (max-width: 290px) {
	.sidebar_links{
		width: 210px;
	}
}