:root {
	--main-color: rgb(20, 115, 230);
	--secondary-color: rgb(20, 15, 230);
	--background-color: rgb(255, 255, 255);
	--secondary-background-color: rgb(243, 244, 246);
	--border-color: rgba(100, 100, 100, 0.1);
	--border-flight-selected-color: rgba(0, 0, 255, 0.7);
	--border-right-color: rgba(0, 100, 0, 0.7);
	--shadow-color: rgba(0, 0, 0, 0.2);
	--your-flight-color: rgb(240, 240, 240);
	--main-border-radius: 0.625rem;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
	scroll-behavior: auto;
	scroll-behavior: smooth;
}

html {
	font-size: 16px;
}

body {
	height: 100vh;
	background-color: var(--background-color);
}

select, input, textarea {
	font-size: 1rem;
}

a {
	cursor: pointer;
	text-decoration: none;
}

.content {
	max-width: 89rem;
	margin: 0 auto;
}

.spaced {
	padding: 3rem 0;
}

/* NAV */
nav {
	position: fixed;
	z-index: 99;
	top: 0px;
	width: 100%;
	padding: 0rem 2rem;
	align-items: center;
	background-color: var(--background-color);
}

nav li {
	list-style: none;
}

nav .links a {
	color: rgba(88, 88, 88, 255);
	padding: 0 1.25rem;
}

.navbar {
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border-color);
}

.navbar .logo {
	width: 25%;
}

.navbar .links {
	height: 100%;
	align-items: center;
	display: flex;
	gap: 1rem;
	width: 65%;
	justify-content: center;
}

.navbar .links li {
	height: 100%;
	align-items: center;
	justify-content: center;
	display: flex;
	border-bottom: 0.2rem solid var(--background-color);
}

.navbar .links li:has(a:hover) {
	border-bottom: 0.2rem solid var(--main-color);
}

nav .links a:hover {
	color: var(--main-color);
}

.navbar .icons {
	display: flex;
	gap: 1rem;
	width: 10%;
	justify-content: right;
}

.navbar .icons li {
	display: flex;
}

.navbar .flag {
	top: 1rem;
	width: 1.875rem;
	height: 1.875rem;
}

.navbar .toggle_btn {
	color: #000;
	cursor: pointer;
	display: none;
}

.dropdown_menu {
	display: none;
	position: absolute;
	right: 2rem;
	top: 3.75rem;
	max-height: 0rem;
	width: 18.75rem;
	background: var(--background-color);
	backdrop-filter: blur(1rem);
	border-radius: var(--main-border-radius);
	border-width: 1px;
	border-style: none;
	overflow: hidden;
	z-index: 1;
	transition: max-height 0.1s ease-out;
}

.dropdown_menu.open {
	border-style: solid;
	max-height: 100rem;
	transition: max-height 0.5s ease-in;
}

.dropdown_menu li {
	padding: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* SECTION */
section {
	position: relative;
	top: 4rem;
}

/* LINES & CONTENT */
.linea {
	width: 100%;
	padding: 2rem;
}

.pre-title {
	color: var(--main-color);
}

.title {
	font-size: 4rem;
}

/* INTRO */
.hello3 {
	display: none;
	margin: 1rem 0 1rem 0;
	text-align: justify;
}

.hello3.shown {
	display: block;
}

.flight_info {
	width: 100%;
	margin: 0 auto;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.flight_info input {
	height: 3.75rem;
	background: no-repeat scroll 0.625rem 1.25rem;
	padding-left: 2.5rem;
	font-size: 1rem;
	border: 0rem;
}

.flight_info input:focus {
	outline: none;
}

.flight_info .wrapper {
	display: none;
	background-color: var(--secondary-background-color);
	width: 33%;
	position: relative;
	border-radius: 0.3125rem;
}

.flight_info.flights_filterer .wrapper {
	width: 50%;
}

.flight_info .date {
	background-image: url('../icon/calendar.png');
	background-size: 1.25rem 1.25rem;
}

.flight_info .origin {
	width: 100%;
	background-image: url('../icon/departing.png');
	background-size: 1.5625rem 1.25rem;
}

.flight_info .wrapper.shown {
	display: flex;
}

.flight_info .intermediate {
	width: 100%;
	background-image: url('../icon/departing.png');
	background-size: 1.5625rem 1.25rem;
}

.flight_info .destination {
	width: 100%;
	background-image: url('../icon/landing.png');
	background-size: 1.5625rem 1.25rem;
}

.flight_info .flight_numbers {
	display: none;
	width: 68.5%;
	background-position-y: 1rem;
	background-image: url('../icon/plane.png');
	background-size: 1.5625rem 1.5625rem;
}

.flight_info .invalid {
	outline: 2px solid red;
}

.flight_numbers_toggler {
	cursor: pointer;
	font-style: italic;
	text-decoration: underline;
}

.button {
	display: flex;
	height: 3.75rem;
	width: 100%;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 1.25rem;
	color: #fff;
	cursor: pointer;
	background: var(--main-color);
	backdrop-filter: blur(1rem);
	border-width: 0px;
	border-radius: 5px;
	overflow: hidden;
	transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	margin: 1rem 0rem;
	&:hover {
		background: var(--secondary-color);
	}
}

div.success {
	margin: 10rem auto;
	width: 70%;
	font-size: 2rem;
}

.success_container {
	border: 3px solid rgba(0, 100, 100, 0.75);
	border-radius: 1rem;
	padding: 2rem;
}

.success_container .result_row {
	padding: 2rem 0rem;
}

.success_container img {
	width: 6rem;
	margin-left: 2rem;
	margin-right: 3rem;
}

.success_container p {
	font-size: 2rem;
	font-weight: bold;
}

.instructions {
	padding: 2rem 0rem;
	font-size: 1.5rem;
}

.sending_container {
	display: flex;
	position: fixed;
	z-index: 100;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	opacity: 1;
	transition: opacity 0.5s ease, display 0.5s ease allow-discrete;
	&.hidden {
		display: none;
		opacity: 0;
	}
}

@starting-style {
	.sending_container {
		opacity: 0;
	}
}

.close_button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border-radius: 50%;
	width: 2.3rem;    /* 30px */ /* 3rem */      /* 40px */ /* 2.5rem */
	height: 2.3rem;   /* 30px */ /* 3rem */      /* 40px */ /* 2.5rem */
	border: 0.2rem solid rgba(0, 0, 0, 0.5);
	&:hover {
		cursor: pointer;
		border: 0.2rem solid rgba(0, 0, 0, 0.75);
		&::before {
			background-color: rgba(0, 0, 0, 0.75);
		}
		&::after {
			background-color: rgba(0, 0, 0, 0.75);
		}
	}
	&::before {
		content: " ";
		position: absolute;
		display: block;
		background-color: rgba(0, 0, 0, 0.5);
		width: 0.2rem;  /* 2px */  /* 0.2rem */    /* 3px */  /* ¿?rem */
		left: 0.875rem;   /* 12px */ /* 1.27rem */   /* 16px */ /* ¿?rem */
		top: 0.3rem;    /* 5px */  /* 0.5rem */    /* 5px */  /* ¿?rem */
		bottom: 0.3rem; /* 5px */  /* 0.5rem */    /* 5px */  /* ¿?rem */
		transform: rotate(45deg);
	}
	&::after {
		content: " ";
		position: absolute;
		display: block;
		background-color: rgba(0, 0, 0, 0.5);
		height: 0.2rem; /* 2px */  /* 0.2rem */    /* 3px */  /* ¿?rem */
		top: 0.875rem;    /* 12px */ /* 1.27rem */   /* 16px */ /* ¿?rem */
		left: 0.3rem;   /* 5px */  /* 0.5rem */    /* 5px */  /* ¿?rem */
		right: 0.3rem;  /* 5px */  /* 0.5rem */    /* 5px */  /* ¿?rem */
		transform: rotate(45deg);
	}
	opacity: 1;
	transition: opacity 0.5s ease, display 0.5s ease allow-discrete;
	&.hidden {
		opacity: 0;
	}
}

@starting-style {
	.close_button {
		opacity: 0;
	}
}

.sending_box {
	position: relative;
	margin: auto;
	width: 40rem;
	height: 29rem;
	border: 3px solid var(--border-color);
	border-radius: var(--main-border-radius);
	background-color: #ffffff;
	box-shadow: 0rem 0rem 2rem 0rem var(--shadow-color);
	padding: 2rem 0rem;
	text-align: center;
}

.sending_progress {
	height: 14rem;
	align-content: center;
}

.sending_message {
	font-size: 2rem;
	font-weight: bold;
}

.sent_message {
	font-size: 1.5rem;
	color: green;
	margin: 0rem 1rem;
}

.not_sent_message {
	font-size: 1.5rem;
	color: red;
	margin: 0rem 1rem;
}

.sending_progress .result_icon {
	width: 8rem;
	transition: opacity 0.5s ease, display 0.5s ease allow-discrete;
	&.hidden {
		display: none;
		opacity: 0;
	}
}

@starting-style {
	.sending_progress .result_icon {
		opacity: 0;
	}
}

/* FOOTER */
footer {
	position: relative;
	top: 4rem;
	padding: 0rem 2rem;
	background-color: var(--main-color);
}

footer div.content {
	color: #fff;
	align-items: center;
	text-align: center;
	height: 10rem;
	align-content: center;
}

footer a {
	color: #fff;
	cursor: pointer;
}

footer .contact_container {
	display: flex;
	height: 100%;
	align-items: center;
	float: left;
	gap: 2rem;
}

footer .contact {
	font-size: 1.25rem;
	font-weight: bold;
	align-content: center;
	text-align: left;
}

footer .contact .icon {
	display: inline-block;
	width: 4rem;
}

footer .contact img {
	display: block;
	height: 2rem;
	margin: -0.5rem auto;
}

footer .info_container {
	width: 100%;
}

footer .info {
	height: 100%;
	align-content: center;
	text-align: right;
}

/* AIRPORTS */
.flight_info div.elements {
	width: 100%;
}

.initial_form .flight_info div.elements {
	width: 200%;
	margin: 0px -100%;
}

.flights_filterer {
  margin: 0rem auto 2rem auto;
  padding: 1rem 0rem 2.25rem 0rem;
  width: 90%;
  justify-content: center;
  border-bottom: solid;
  border-image-slice: 1;
  border-width: 1px;
  border-image-source: linear-gradient(to left, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.0));
}

.airport .codes {
	color: var(--main-color);
	display: inline-block;
	min-width: 3.5rem;
	text-align: center;
}

.semibold {
	font-weight: 500;
}

.lowerLetters{
	font-size: 0.9rem;
}

.hidden {
	display: none;
}

/* DATE */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
	display: none;
	-webkit-appearance: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
	html {
		font-size: 10px;
	}

	.navbar .links {
		display: none;
	}

	.navbar .icons {
		width: 100%;
		margin: 1.875rem;
	}

	.navbar .toggle_btn {
		display: block;
	}

	.dropdown_menu {
		display: block;
	}

	.intro {
		justify-content: center;
	}

	.initial_form {
		width: 100%;
	}

	.initial_form .flight_info div.elements {
		width: 100%;
		margin: unset;
	}

	.initial_image {
		display: none;
	}

	.your_flight_details > div {
		width: 100%;
	}

	.your_flight_details_right {
		display: none;
	}
}

@media (max-width: 576px) {
	html {
		font-size: 8px;
	}

	.dropdown_menu {
		left: 2rem;
		width: unset;
	}

	.details_text {
		display: none;
	}

	footer .contact_container {
		display: block;
	}
}
