@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@450;800&display=swap');

:root{
	--violet: #C2B7EF;
	--turquoise: #9CFCD4;
}


.theme-toggle {
	margin-right: 30px;
	z-index: 1;
	cursor: pointer;
	background: none;
	border: none;
	font-size: 1.5rem;
	position: fixed;
	top: 15px;
	right: 40px;
	transition: background-color 0.5s ease;
}

.theme-toggle .sun {
	display: none;
}

html.dark .theme-toggle .sun {
	display: inline;
}

html.dark .theme-toggle .moon {
	display: none;
}
html{
	background-color: white;
}
/* Применение тёмной темы через инверсию цветов */
html.dark {
    filter: invert(0.95) hue-rotate(180deg);
}
html.dark .no-invert {
	filter: invert(0.95) hue-rotate(180deg); /* Инвертируем обратно */
}


*{
	padding: 0;
	margin: 0;
}

body{
	font-family: 'Montserrat';

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/*----------------------------------------*/

header{
	background-color: whitesmoke;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}
#checkbox_for_menu{
	display: none;
}
#menu_button{
	display: none;
	cursor: pointer;
}
#menu_button_line{
	background: black;
	display: block;
	height: 2px;
	position: relative;
	width: 24px;
}
#menu_button_line::before,
#menu_button_line::after{
	background: black;
	display: block;
	content: '';
	position: absolute;
	transition: all .5s;
	width: 100%;
	height: 100%;
}
#menu_button_line::before{
	top: 7px;
}
#menu_button_line::after{
	top: -7px;
}
@media (max-width: 768px){
	.header_menu{
		max-height: 0;/* это нужно для анимации */
		overflow: hidden;
		position: absolute;
		background-color: whitesmoke;
		text-align: center;
		right: 0;
		left: 0;
	}
	#main_content{
		min-width: 95vw;
	}
	header{
		justify-content: space-between;
	}

	#checkbox_for_menu:checked ~ .header_menu{
		display: block;
		max-height: 100%;
		transition: all .5s;
		border-radius: 0 0 20px 20px;
		z-index: 999999;
	}
	#menu_button{
		display: block;
		padding: 20px 0;
	}

	#checkbox_for_menu:checked ~ #menu_button #menu_button_line{
		background-color: transparent;
		transition: .3s;
	}
	#checkbox_for_menu:checked ~ #menu_button #menu_button_line::before{
		transform: rotate(45deg);
		top: 0;
		transition: .5s;
	}
	#checkbox_for_menu:checked ~ #menu_button #menu_button_line::after{
		transform: rotate(-45deg);
		top: 0;
		transition: .5s;
	}
}



.header_logo_img img{
	height: 60px;
	margin-left: 0px;
}
.header_menu_wrapper{
	align-self: center;
	margin-right: 20px;
}
.header_menu{
	display: flex;
}
.header_menu_item li{
	font-weight: bold;
	font-size: 20px;
	border-radius: 20px;
	padding: 8px 15px 8px 15px;
}
.header_menu_item li:hover{
	border-radius: 20px;
	background-color: var(--violet);
	transition: .5s;
}

.header_menu_item{
	text-decoration: none;
	color: black;
}
.header_menu_item li{
	list-style: none;
}

/*----------------------------------------*/

main{
	padding: 10px 0;
	display: flex;
	/* чтобы занять все оставшееся место (растянуть сверху вниз) */
	/* работает если задана минимальная высота всего body в 100vh */
	flex-grow: 1;
}
#main_title{
	margin: 10px 0 20px 0;
}
#main_content{
	width: 60vw;
	margin-left: auto;
	margin-right: auto;
}
.cummon_text{
	margin: 15px 0;
}

/*----------------------------------------*/
footer{
	background-color: whitesmoke;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
}
#footer_imgs img{
	height: 30px;
	padding: 0 5px 0 5px;
}
#footer_copyright{
	font-size: 12px;
}