/*Global*/

body {
	font-family: "M PLUS Rounded 1c", sans-serif;
	background: linear-gradient(to right, #667eea, #764ba2);
}

body .day{
	background: linear-gradient(to right, #667eea, #764ba2);
	color: white;
}

body .night{
	background: linear-gradient(to right, #232526, #1c1c1c);
	color: white;
}

main {
	min-height: 100vh;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}


main div.card {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/*Fonts*/

@font-face {
  font-family: 'weathericons';
  src: url('../font/weathericons-regular-webfont.woff') format('woff'),
     url('../font/weathericons-regular-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/*Main*/

.card{
	min-width: 250px;
}

/* Override Bootstrap input focus glow */
.form-control.search-input:focus {
	outline: none;
	box-shadow: none;
	height: auto;
}

.search-container:focus-within {
	box-shadow: inset 0 0 0 1px #667eea;
}

.btn:focus-visible,
.form-check-input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}


/*Search Bar*/
.search-container {
	background-color: white;
	border: 1px solid #c9c9c9;
	border-radius: 50px;
	box-shadow: inset 1px 1px 7px 3px rgba(172, 171, 171, 0.1);
	padding: 10px;
	max-width: 500px;
	width: 100%;
	transition: all 0.3s ease;
}		

.form-control.search-input {
	border: none;
	background: transparent !important;
	padding-left: 20px;
	font-size: 1rem;
	height: 2rem;
	width: 85%;

}

/* Prevent browser autofill tint from painting over the rounded search container. */
.form-control.search-input:-webkit-autofill,
.form-control.search-input:-webkit-autofill:hover,
.form-control.search-input:-webkit-autofill:focus,
.form-control.search-input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: inherit;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.search-icon {
	color: #6c757d;
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
}

.dropdown{
	width: 80%;
	margin: 0 auto;
}
.dropdown-content{
	position: absolute;
	top: 0rem;
	background-color: white;
	border-radius: 0px 0px 5px 5px;
	box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	width: 100%;
	max-height: 9rem;
	text-align: left;
	overflow-y: auto;
	padding: 0.5rem 1rem;
	color: #6c757d;
}
.dropdown-content *{
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}
.dropdown-content *:last-child{
	border-bottom: none;
}

.dropdown-content div:hover{
	cursor: pointer;
	color: #667eea;
}

.dropdown-content [role="option"] {
	cursor: pointer;
	padding: 0.5rem 0;
}

.dropdown-content [role="option"].city-option-active,
.dropdown-content [role="option"]:hover {
	font-weight: 700;
}




.city-name {
	max-width: 100%;
	display: flex;
	font-size: 2rem;
	font-weight: 300;
	margin-bottom: 0rem;
}

#currentWeatherIcon {
	font-size: 6rem;
	line-height: 1.5;
}




#accordionButtonDown:hover, #accordionButtonUp:hover {
	cursor: pointer;
	transform: scale(1.1);
	transition: all 0.3s ease;
	fill: #2d54ff;
}

/* button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
	outline: 3px solid #0a58ff;
	outline-offset: 3px;
} */

/*Tooltip Styles*/
.my-tooltip {
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
}

.my-tooltip:focus-visible {
	border-radius: 0.5rem;
	box-shadow: 0 0 0 4px rgba(10, 88, 255, 0.3);
}

.my-tooltip:hover {
	transform: scale(1.05);
}

.my-tooltip svg {
	transition: all 0.3s ease;
}

.my-tooltip:hover svg {
	fill: #2d54ff;
	transition: all 0.3s ease;
}

#moreDetail {
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}


#moreDetail{
	background: #d9d9e3;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.detail-cards{
	display: flex;
	padding: 1rem 0;
	justify-content: space-around;
	column-gap: 0.5rem;
}

.detail-box-container{
	width: 45%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	background: #f9fcfe;
	border-radius: 0.5rem;
}

.detail-title {
	background: #eaeff2;
	border-radius: 0.5rem 0.5rem 0 0;
	margin-bottom: 0;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.9rem;
	padding:0.5rem 0.5rem;
}

.detail-summary {
	text-align: center;
	padding: 0.7rem 0;
	margin: 0;
	height: 10px;
	font-size: 0.9rem;
	line-height: 1;
	font-weight: 100;
	opacity: 0.8;
	display: block;
	margin-bottom: 0;
}

.range-slider{
	background: linear-gradient(to right,
		#64e9b8 0%,   /* 0-2: Low - Green */
		#97fb40 15%,  /* 3-5: Moderate - Yellow */
		#f6b072 38%,  /* 6-7: High - Orange */
		#eb7575 54%,  /* 8-10: Very High - Red */
		#ff79ef 100%  /* 11+: Extreme - Purple */
	);
	border: none;
	border-radius: 5px;
	height: 5px;
	outline: none;
	appearance: none;
	margin: 0.5rem 0;
	width: 100%;
	overflow: hidden;
	
}

.range-slider::-webkit-slider-thumb {
	appearance: none;
	background: white;
	width: 7px;
	height: 10px;
	border-radius: 3px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}


.range-slider::-moz-range-thumb {
	appearance: none;
	width: 7px;
	height: 10px;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Local Time Styling */
.local-time {
	font-size: 0.875rem;
	font-weight: 300;
	opacity: 0.9;
}
