* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Nunito Sans', sans-serif;
	text-transform: uppercase;
}

body {
	position: relative;
}

.app {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding-top: 60px;
	padding-bottom: 60px;
	background-image: url('./bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    background-color: #2A2B30;
}

.display {
	width: 100%;
	max-width: 370px;
	padding-left: 20px;
	padding-right: 20px;
	display: none;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 230px;
	height: 200px;
	background-color: #2A2B30;
	border: 1px solid #555555;
	border-radius: 15px;
	margin: 0 auto;
	margin-bottom: 20px;
}

.logo img {
	width: 80%;
	height: auto;
	padding: 20px;
}

.block {
	position: relative;
	width: 100%;
	border-radius: 11px;
	border: 1px solid #555;
	background: #1E1F23;
	appearance: none;
	cursor: pointer;
	padding: 15px;
	color: #FFD602;
	text-align: center;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin-bottom: 20px;
}

.block.forecast {
	cursor: default;
	overflow: hidden;
}

.block.forecast.down {
	background-color: #ff646c;
	color: #fff;
}

.block.forecast.up {
	background-color: #14c679;
	color: #fff;
}

.block .tit {
	color: #FFF;
	text-align: center;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 11px;
	border: 1px solid #000;
	background: #FFDD3C;
	padding: 15px;
	cursor: pointer;
	color: #1E1F23;
	text-align: center;
	font-size: 32px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.btn:active {
	animation: click .3s ease;
}

.currency-container, .set-time-items {
	position: absolute;
	top: 105%;
	left: 0;
	width: 100%;
	max-height: 50vh;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 12px;
	padding: 8px;
	background-color: #2a2b30;
	color: #f6f7f7;
	box-shadow: 0 8px 16px rgba(0, 0, 0, .3), 0px 12px 32px rgba(0, 0, 0, .4);
	z-index: 3;
	opacity: 0;
	visibility: hidden;
	transform: scale(.5);
	transition: all .2s ease;
}

.set-time-items {
	top: auto;
	bottom: 105%;
}

/* Стилизация для браузеров на основе WebKit (Google Chrome, Safari) */
/* Полоса прокрутки */
.currency-container::-webkit-scrollbar, .set-time-items::-webkit-scrollbar {
	width: 10px; /* Ширина полосы прокрутки */
	height: 10px;
	border-radius: 5px;
}

/* Бегунок (перемещаемая часть полосы) */
.currency-container::-webkit-scrollbar-thumb, .set-time-items::-webkit-scrollbar-thumb {
	background-color: #868893; /* Цвет бегунка */
	border-radius: 5px; /* Скругленные углы бегунка */
}

/* Фон полосы прокрутки */
.currency-container::-webkit-scrollbar-track, .set-time-items::-webkit-scrollbar-track {
	background-color: #3e3f45; /* Цвет фона полосы прокрутки */
	border-radius: 5px;
}


.currency-container .item, .set-time-items .item {
	position: relative;
	transition: all .2s ease;
	border-radius: 12px;
	width: 100%;
	padding-top: 10px;
	padding-bottom: 10px;
	color: #868893;
}

.currency-container .item:not(:last-child), .set-time-items .item:not(:last-child) {
	margin-bottom: 9px;
}

.currency-container .item:not(:last-child):before, .set-time-items .item:not(:last-child):before {
	content: '';
	position: absolute;
	width: 106%;
	height: 1px;
	bottom: -5px;
	left: -8px;
	background-color: #868893;
}

.currency-container .item:hover, .set-time-items .item:hover {
	background-color: #3e3f45;
	color: #f6f7f7;
}

.windowShow {
	transform: scale(1);
	opacity: 1;
	visibility: visible;
}

.set-time .time_input {
	background: none;
	border: none;
	outline: none;
	width: 100%;
	color: #FFD602;
	text-align: center;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.spinner {
	display: inline-block;
	width: 19px;
	height: 19px;
	margin: 0 auto;
	margin-top: 5px;
	border: 4px solid #ffdd3c;
	border-top: 4px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.block.forecast.down .spinner, .block.forecast.up .spinner {
	border: 4px solid #fff;
	border-top: 4px solid transparent;
}

.btn .spinner {
	width: 20px;
	height: 20px;
	display: none;
	border: 4px solid #1E1F23;
	border-top: 4px solid transparent;
	margin: 0;
	margin-left: 15px;
}

.btn.loading .spinner {
	display: inline-block;
}

.load-dot {
	opacity: 0;
	display: none;
}

.load-dot:nth-child(1) {
	animation: dot-animation 1s .3s infinite;
}

.load-dot:nth-child(2) {
	animation: dot-animation 1s .6s infinite;
}

.load-dot:nth-child(3) {
	animation: dot-animation 1s .9s infinite;
}

.dotShow {
	display: inline-block;
}

.popup {
	animation: click .1s ease;
}

.modal {
	position: fixed; /* Change from absolute to fixed */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 320px;
	z-index: 1000;
	background-color: #2A2B30;
	border-radius: 12px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, .3), 0px 12px 32px rgba(0, 0, 0, .4);
	padding: 24px;
}

/* Add overlay for modal background */
.modal::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: -1;
}

.modal-close {
	display: flex;
	justify-content: flex-end;
}

.modal-close img {
	width: 20px;
	height: auto;
	cursor: pointer;
}

.modal .modal-tit {
	font-weight: 600;
	font-size: 16px;
	text-align: center;
	color: #fff;
	margin-bottom: 30px;
	margin-top: 30px;
}

.modal-input {
	margin-bottom: 15px;
}

.modal-input .errtxt {
	font-weight: 500;
	font-size: 12px;
	color: red;
	opacity: 0;
}

.modal-input .errtxt.active {
	opacity: 1
}

.modal-input input {
	border: none;
	border-radius: 12px;
	width: 100%;
	background-color: #3E3F45;
	height: 56px;
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	outline: none;
	padding: 0 10px;
	margin-bottom: 7px;
}

.modal .unlock {
	border: none;
	width: 100%;
	border-radius: 12px;
	background-color: #FFDD3C;
	height: 56px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

@keyframes dot-animation {
	0% {
		opacity: 0;
	}
	25% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
	75% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); } /* Вращение на 360 градусов */
}

@keyframes click {
	0% {
		transform: scale(0.95);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}