* {
margin: 0;
padding: 0;
}

html, body {
	height: 100%;
	margin: 0;
}

body {
	color: #333;
	background-color: #fff;
	font: normal 16px Verdana, Arial, Helvetica, sans-serif;

	display: flex;
	flex-direction: column;
}

a:link, a:active, a:visited,
span#delete-image {
	color: #0067EA;
	text-decoration: underline;
	font: normal 16px Arial, Tahoma, sans-serif;
}
a:hover,
span#delete-image:hover {
	color: #CC0000;
	text-decoration: none;
	font: normal 16px Arial, Tahoma, sans-serif;
}

h1 {
	padding: 5px 0 15px 0;
	font: normal 28px Arial, Tahoma, sans-serif;
	letter-spacing: 2px;
}
h1 a {
	font: normal 28px Arial, Tahoma, sans-serif;
	font: normal 28px Arial, Tahoma, sans-serif !important;
	letter-spacing: 2px;
}

h2 {
	padding: 5px 0 15px 0;
	font: normal 28px Arial, Tahoma, sans-serif;
	letter-spacing: 2px;
}
h2 a {
	font: normal 28px Arial, Tahoma, sans-serif;
	font: normal 28px Arial, Tahoma, sans-serif !important;
	letter-spacing: 2px;
}

.c {
	clear: both;
}
.line {
	padding: 5px 0;
}
.line_e {
	padding: 10px 0;
}
.white {
	color: white;
}
.green {
	color: green;
}
.blue {
	color: blue;
}
.red {
	color: red;
}
.gray {
	color: gray;
}





@media screen and (max-width: 768px) {
	#signin,
	#error {
		width: 80%;
	}
	.inp_e_1 {
		width: 85%;
	}
	.t_area {
		width: 85%;
		min-height: 150px;
		max-height: 300px;
	}
	#main {
		margin: 85px auto 30px auto;
		width: 90%;
	}
	#home {
		width: 100%;
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	}

	#top {
		height: 66px;
	}

	#c_top {}

	a#logo {
		width: 138px;
		height: 45px;
		background-image: url('/img/logo_mob.png');
			position: absolute;
			top: 12px;
			left: 15px;
	}

	#menu {
		width: 65px;
		height: 33px;
		background: #fff url("/img/menu_mob.png") center center no-repeat;
			position: absolute;
			top: 15px;
			right: 15px;
				z-index: 1000;
		cursor: pointer;
		color: #fff;
		font-family: Arial, sans-serif;
		font-size: 18px;

		border: #fff 1px solid;
		-webkit-border-radius: 15px;
		-moz-border-radius: 15px;
		border-radius: 15px;
	}

	#in_menu {
		position: absolute;
		top: 42px;
		right: 0;
		width: 250px;
		box-shadow: none;
	}

	#footer_cont {
		width: 100%;
	}
}
@media screen and (min-width: 768px) {
	#signin,
	#error {
		width: 600px;
	}
	.inp_e_1 {
		width: 90%;
	}
	.t_area {
		width: 90%;
		height: 200px;
	}
	#main {
		margin: 130px auto 40px auto;
		width: 900px;
	}
	#home {
		width: 900px;
		grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	}
	#home a.url_box {
		width: 100%;
	}

	#top {
		height: 94px;
	}

	#c_top {
		margin: 0 auto;
		width: 900px;
	}

	a#logo {
		width: 315px;
		height: 77px;
		background-image: url('/img/logo_web.png');
			position: absolute;
			top: 8px;
			left: 15px;
	}

	#menu {
		width: 80px;
		height: 50px;
		background: #fff url("/img/menu_web.png") center center no-repeat;
			position: absolute;
			top: 20px;
			right: 15px;
				z-index: 1000;
		cursor: pointer;
		color: #fff;
		font-family: Arial, sans-serif;
		font-size: 18px;

		border: #fff 1px solid;
		-webkit-border-radius: 10px;
		-moz-border-radius: 10px;
		border-radius: 10px;
	}

	#in_menu {
		position: absolute;
		top: 120%;
		right: 0;
		background-color: #444;
		width: 200px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	}

	#footer_cont {
		width: 900px;
	}
}





#main {
	flex: 1 0 auto; /* растягивается на оставшееся пространство */
}

#top {
	background: #f9f9ff;
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
			z-index: 999;
}

#c_top {
	position: relative;
}

a#logo {
	display: block;
	text-decoration: none;

	background-position: center;
	background-repeat: no-repeat;
}
a#logo:hover {
	text-decoration: none;
}

/* меню */
#in_menu {
	display: none;
	background-color: #444;
	border-radius: 4px;
	overflow: hidden;
	z-index: 10;
	animation: dropdown 0.3s ease forwards;
}

a.imenu {
	display: block;
	padding: 12px 20px;
	color: #fff;
	text-decoration: none;
	border-bottom: #555 1px solid;
	transition: background-color 0.3s ease;
}
a.imenu:hover {
	background-color: #555;
}

a.imenu_last, a.imenu_last:hover {
	border-bottom: none;
	border-bottom: none !important;
}

/* Keyframes for dropdown animation */
@keyframes dropdown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* / меню */

#signin, #error {
	margin: 0 auto;
	padding: 20px;
	background: #fff;
		position: fixed;
		top: calc(50% - 150px / 2);	/* на 150px вище від центру */
		left: 50%;
		transform: translate(-50%, -50%);
	box-shadow: 1px 1px 10px 1px #bbb;
}

#loader {
	margin: 0 auto;
	width: 181px;
	height: 181px;
	background: #fff url("/img/ring_loader.gif") center center no-repeat;
}

#no_entries, #auth_u {
	display: flex;
	flex-direction: column; /* Ensure vertical stacking */
	justify-content: center;	/* Horizontally center */
	align-items: center;		/* Vertically center */
	height: 50vh;
}

#home {
	margin: 0 auto;
		display: grid;
	/*	grid-template-columns: repeat(auto-fill, minmax(80px, 90px));
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));	*/	/* Адаптивное количество колонок */
		gap: 15px;
		row-gap: 18px;
		column-gap: 15px;
}
#home a.url_box {
	display: inline-block;
	color: #0067EA;
	text-decoration: underline;
	font: normal 10pt Arial, Tahoma, sans-serif;
	border-bottom: #888 1px dashed;
}
#home a:hover.url_box {
	color: #CC0000;
	text-decoration: none;
	font: normal 10pt Arial, Tahoma, sans-serif;
}

#home a.url_box div.url_title {
	padding: 7px 0 2px 0;
	font-size: 11pt;
	width: 100%;				/* Элемент занимает всю ширину контейнера */
	white-space: nowrap;		/* Запрещает перенос текста на новую строку */
	overflow: hidden;			/* Если текст не помещается, он будет обрезан */
	text-overflow: ellipsis;	/* Добавляет многоточие (...) в конце */
}

#home a.url_box div.img_box {
	width: 100%;
	aspect-ratio: 1 / 1;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
			box-shadow: 1px 1px 4px 1px #bbb;
}

.sort_box {
	width: 100px;
	text-align: right;
		position: absolute;
		top: 5px;
		right: 5px;
}

.a_bg {
	margin: 0 0 2px 0;
	padding: 10px;
	background: #e6f0ff;
	border: #cce6ff 1px solid;
		position: relative;
}
.a_bg:hover {
	background: #e6f5ff;
	border: #ccebff 1px solid;
}

.inp_e_1 {
	padding: 8px 15px;
	color: #333;
	font-size: 16px;
	background: #fff;

	border: #dadada 1px solid;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}
.inp_e_2 {
	margin: 5px 0 0 0;
	padding: 8px 20px;
	color: #fff;
	font-size: 16px;
	background: #0B57D0;

	border: #dadada 1px solid;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;

	cursor: pointer;
}
.inp_e_2:hover {
	color: fff;
	background: #0066ff;
}
.inp_e_3 {
	margin: 5px 0 0 0;
	padding: 8px 14px;
	color: #fff;
	font-size: 16px;
	background: #007dd4;

	border: #dadada 1px solid;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;

	cursor: pointer;
}
.inp_e_3:hover {
	color: fff;
	background: #0066ff;
}

.inp_e_middle {
	padding: 8px 15px;
	width: 200px;
	color: #333;
	font-size: 16px;
	background: #fff;

	border: #dadada 1px solid;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

.inp_e_short {
	padding: 8px 15px;
	color: #333;
	font-size: 16px;
	background: #fff;
	width: 100px;

	border: #dadada 1px solid;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

.t_area {
	padding: 8px 15px;
	color: #333;
	font: normal 16px Verdana, Arial, Helvetica, sans-serif;
	background: #fff;

	border: #dadada 1px solid;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

.delete-link {
	display: inline-block;
	margin: 0 0 -7px 0;
	width: 25px;
	height: 25px;
	background-image: url('/img/x_red_big.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}





#cookie_msg {
	padding: 20px 40px;
	color: #fff;
	font-size: 12pt;
	background: #222;
	line-height: 25px;
		position: fixed;
		bottom: 0;
		right: 0;
		left: 0;
}
#cookie_msg a {
	color: #56B6FF;
	font-size: 12pt;
	text-decoration: underline;
}
#cookie_msg a:hover {
	color: #CC0000;
	font-size: 12pt;
	text-decoration: none;
}
.inp_e {
	margin: 5px 0 0 0;
	padding: 8px 20px;
	color: #fff;
	font-size: 16px;
	background: #00b721;

	border: #00b721 1px solid;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;

	cursor: pointer;
}
.inp_e:hover {
	background: #00d326;
}





ol {
	margin:  0;
	padding: 0 0 0 19px;
}
ol li {
	padding: 5px 0;
}





#drop-zone {
	border: 2px dashed #ccc;
	padding: 30px;
	text-align: center;
	cursor: pointer;
}
#drop-zone.dragover {
	border-color: #000;
}

#image-preview {
	width: 200px;
	height: 200px;
	margin-top: 10px;
}

img#crop-image {
	max-width: 100%;
}





/*	Home	*/
.hero {
	text-align: center;
	padding: 50px 20px;
	color: #fff;
	background-color: #0066cc;
	background-image: url('/img/bg_home.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero h1 {
	font-size: 3em;
	margin-bottom: 20px;
}

.hero p {
	font-size: 1.5em;
}

.hero a {
	padding: 15px 30px;
	background-color: #ff9900;
	color: #fff;
	font-size: 1.2em;
	text-decoration: none;
	border-radius: 5px;
}

.advantages {
	display: flex;
	justify-content: space-around;
	padding: 50px 20px;
	background-color: #fff;
}
.advantage {
	text-align: center;
	width: 25%;
}
.advantage p {
	padding: 10px;
}

.how-it-works {
	padding: 50px 20px;
	background-color: #f4f4f4;
	text-align: center;
	background-color: #f4f4f4;
	background-image: url('/img/bg_home_bottom.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.steps {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
}

.step {
	width: 30%;
}
.step h3 {
	padding: 0 0 15px 0;
}

a.btn_style_1 {
	display: inline-block;
	padding: 10px 20px;
	margin-top: 40px;
	background-color: #4CAF50;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	font-size: 18px;
	letter-spacing: 1px;
	transition: background-color 0.3s ease;
}
a.btn_style_1:hover {
	background-color: #66BB6A;
}

a.btn_style_2 {
	display: inline-block;
	padding: 10px 20px;
	margin: 10px 0;
	background-color: #4CAF50;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	font-size: 18px;
	letter-spacing: 1px;
	transition: background-color 0.3s ease;
}
a.btn_style_2:hover {
	background-color: #66BB6A;
}

.btn_style_3 {
	display: inline-block;
	padding: 10px 20px;
	margin: 10px 0;
	background-color: #0B57D0;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 5px;
	font-size: 18px;
	letter-spacing: 1px;
	transition: background-color 0.3s ease;
	cursor: pointer;
}
.btn_style_3:hover {
	background-color: #0066ff;
}

@media (max-width: 768px) {
	.advantages, .steps {
		flex-direction: column;
	}

	.advantage, .step {
		width: 100%;
		margin-bottom: 20px;
	}

	.hero h1 {
		font-size: 2.5em;
	}

	.hero p {
		font-size: 1.2em;
	}

	.hero a {
		font-size: 1em;
		padding: 10px 20px;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 2em;
	}

	.hero p {
		font-size: 1em;
	}

	.hero a {
		font-size: 0.9em;
		padding: 8px 16px;
	}

	.advantages, .steps {
		padding: 30px 10px;
	}
}
/*	/ Home	*/





#footer {
	flex-shrink: 0; /* фіксована висота footer */
	height: 100px;
	background-color: #f9f9ff;
	padding: 15px;
}

#footer_cont {
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 900px;
}

#footer_right {
	text-align: right;
}
#footer_left {
	text-align: left;
}
#footer_left div, #footer_left div a {
	font-size: 14px;
}

