html {
	scroll-behavior: smooth;
}

* {
	font-family: "Inter", sans-serif;
	letter-spacing: -0.06em;
	line-height: 1em;
	font-weight: 400;
}

:root {
	--primary: #060606;
	--secondary: #fff;
	--border: #222222;
	--border-2: #444444;
	--border-3: #aaa;
	--success: #00ee77;
	--danger: #ff0044;
}

body {
	margin: 0;
	background: var(--primary);
	color: var(--secondary);
	flex-direction: column;
}

p {
	font-size: 20px;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

button {
	width: fit-content;
	height: fit-content;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 8px 20px;
	font-size: 16px;
	border: none;
	border-radius: 4px;
	text-transform: uppercase;
}

button:hover {
	cursor: pointer;
	opacity: 0.8;
}

input {
	width: -webkit-fill-available;
	background: var(--primary);
	color: var(--secondary);
	font-family: "Inter", sans-serif;
	font-size: 20px;
	padding: 8px;
	border-radius: 4px;
	border: 2px solid var(--border);
}

.hero {
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: url("../images/tower-bg.jpg") no-repeat fixed center / cover;
}

header {
	position: relative;
	width: -webkit-fill-available;
	height: -webkit-fill-available;
	background: linear-gradient(rgba(6, 6, 6, 0.25), var(--primary));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

header .nav {
	position: absolute;
	top: 20px;
}

header .hero-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

header .hero-text h1 {
	font-family: "Bodoni Moda", serif;
	font-size: 80px;
	font-style: italic;
	letter-spacing: -0.06em;
	line-height: 0.75;
	font-variation-settings: "opsz" 15;
}

header .hero-text p {
	max-width: 720px;
	text-align: center;
}

header .hero-text .btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

header .hero-text .btns button {
	height: 40px;
}

header .hero-text .btns button.pred-btn {
	background: var(--primary);
	color: var(--secondary);
}

.prediction-container {
	width: -webkit-fill-available;
}

.predict-section,
footer {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px;
}

.predict-section h2 {
	width: -webkit-fill-available;
	font-size: 60px;
	scroll-margin-top: 16px;
}

.predict-section .future-data {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 2px;
}

.predict-section .future-data .company {
	width: -webkit-fill-available;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.predict-section .future-data .company p {
	font-size: 24px;
	text-transform: uppercase;
}

.predict-section .future-data .company p.company-name {
	color: var(--border-2);
	text-transform: none;
}

.predict-section .future-data .data {
	width: -webkit-fill-available;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.predict-section .future-data .data h1 {
	font-size: 80px;
}

.predict-section .future-data .data .extra {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
}

.predict-section .future-data .data .extra p {
	color: var(--border-2);
	font-size: 28px;
}

.predict-section .future-data .data .extra .change {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--success);
	fill: var(--success);
}

.predict-section .future-data .data .extra .change p {
	color: inherit;
	font-size: 24px;
}

.predict-section .future-data .data .extra .change svg {
	width: 36px;
	height: 36px;
	fill: inherit;
}

.predict-section .form {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 12px;
}

.predict-section .form .inputs {
	width: -webkit-fill-available;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.predict-section .form .inputs .input1 {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
}

.predict-section .form .inputs .input1 label {
	font-size: 20px;
}

.predict-section .form .actions {
	width: -webkit-fill-available;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.predict-section .form .actions .data-date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.predict-section .form .actions .data-date input {
	width: 36px;
	height: -webkit-fill-available;
	font-size: 16px;
	color: var(--border-3);
}

.predict-section .form .actions .data-date p {
	color: var(--border-2);
}

.predict-section .form .actions button {
	font-weight: 500;
}

.predict-section .form .actions button.p-btn:disabled {
	background-color: var(--border-3);
	cursor: not-allowed;
	opacity: 0.7;
}

.predict-section .form .actions button.p-btn svg {
	width: 20px;
	fill: var(--primary);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.market-chart-section {
	width: -webkit-fill-available;
	display: flex;
	justify-content: center;
	padding: 0;
	scroll-margin-top: 20px;
}

.market-chart-card {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 20px;
	border-radius: 4px;
	overflow: hidden;
}

.chart-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 20px 8px 20px;
}

.chart-controls-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.chart-range-label {
	color: var(--border-3);
	font-size: 24px;
}

.company-selector-wrap {
	display: flex;
	align-items: center;
}

.chart-toggle-wrap,
.chart-zoom-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.company-selector {
	display: flex;
	gap: 0;
	font-size: 28px;
	padding: 0;
	border: none;
	border-radius: 0;
}

select,
::picker(select) {
	appearance: base-select;
}

select:hover,
select:focus {
	background: none;
	color: var(--border-3);
	cursor: pointer;
}
select::picker-icon {
	appearance: base-select;
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'%3E%3C/path%3E%3C/svg%3E");
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
}
select:open::picker-icon {
	transform: rotate(180deg);
}
::picker(select) {
	border: none;
}
option {
	display: flex;
	justify-content: flex-start;
	border: 2px solid var(--border);
	background: var(--primary);
	color: var(--secondary);
	padding: 8px;
	transition: 0.2s;
}
option:first-of-type {
	border-radius: 4px 4px 0 0;
}

option:last-of-type {
	border-radius: 0 0 4px 4px;
}

option:not(option:last-of-type) {
	border-bottom: none;
}

option:hover,
option:focus {
	background-color: var(--border);
}
option:focus {
	cursor: auto;
}
option:hover {
	cursor: pointer;
}
selectedcontent .icon {
	display: none;
}
option::checkmark {
	order: 1;
	margin-left: auto;
	content: "";
}
::picker(select) {
	opacity: 0;
	transition: all 0.2s allow-discrete;
	background: none;
}
::picker(select):popover-open {
	opacity: 1;
	background: none;
}
@starting-style {
	::picker(select):popover-open {
		opacity: 0;
	}
}
::picker(select) {
	top: calc(anchor(bottom) + 5px);
}
.chart-toggle {
	fill: var(--success);
}

.chart-toggle,
.chart-zoom,
.chart-zoom-p {
	padding: 0;
	background: none;
	color: #666;
	font-size: 24px;
	text-transform: capitalize;
	cursor: pointer;
}

.chart-zoom-p {
	margin-right: 8px;
	cursor: auto;
}

.chart-zoom.active {
	color: var(--secondary);
}

.chart-toggle.active {
	background: #202020;
}

.tradingview-widget-container {
	width: -webkit-fill-available;
	height: -webkit-fill-available;
	position: relative;
	margin: 0 20px;
}

.tradingview-widget-container::after {
	content: "";
	display: block;
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
}

#tradingview_chart {
	width: 100%;
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
}

#tradingview_chart iframe {
	pointer-events: auto;
	border-radius: 4px !important;
	display: block;
}

#tradingview_chart iframe[src*="tradingview"] {
	overflow: hidden;
}

#tradingview_chart iframe::after {
	content: none;
}

.graph-zoom,
.chart-heading {
	width: -webkit-fill-available;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

.chart-heading h1 {
	font-size: 60px;
}

.chart-heading .company {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.chart-heading .company p {
	font-size: 28px;
}

.chart-heading .company .chart-toggle svg {
	width: 40px;
	fill: inherit;
}

footer p {
	color: var(--border-2);
	font-size: 16px;
}

footer p.warning {
	text-align: justify;
}

.error-panel {
	width: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 20px;
	color: var(--danger);
}

.error-panel h2 {
	width: -webkit-fill-available;
	font-size: 40px;
	color: inherit;
}

.error-panel p {
	width: -webkit-fill-available;
	text-align: justify;
	color: inherit;
}
