@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');

:root {
	--primary: #18BA5D;
	--accent: #F9BE01;
	--light-grey-2: #D7DCDF;
	--light-grey: #BBBBBB;
	--grey: #F6F7F8;
	--dark-grey: #F1F1F1;
	--underline: #3CF079;
}

input {
	-webkit-appearance: none;
	-webkit-border-radius:0;
}

body, h2 {
	text-align: center;
	margin: auto 0px;
	font-family: 'Rubik', 'Open Sans', sans-serif;
	color: #3c3c3c;
}

a:link, a:visited, a:active {
	text-decoration: none;
}

.underlined {
	text-decoration: underline;
	text-decoration-color: var(--underline);
	text-decoration-thickness: 4px;
}

.font-56px {
	font-family: Rubik;
	font-style: normal;
	font-weight: bold;
	font-size: 56px;
	line-height: 66px;
}

.font-32px {
	font-family: Rubik;
	font-style: normal;
	font-weight: 500;
	font-size: 32px;
	line-height: 38px;
}

.font-28px {
	/* F1/XL/Medium/Heading-2 */
	font-family: Rubik;
	font-style: normal;
	font-weight: 500;
	font-size: 28px;
	line-height: 33px;
}

.font-24px {
	/* F1/XL/Regular/Large-Text */
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 24px;
	line-height: 32px;
	/* or 133% */
}

.font-22px {
	/* F1/XL/Regular/Medium-Text */
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 22px;
	line-height: 32px;
	/* or 145% */
}

.font-18px {
	/* F1/XL/Medium/Medium-Text */
	font-family: Rubik;
	font-style: normal;
	font-weight: 500;
	font-size: 18px;
	line-height: 21px;
}

.font-16px {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 16px;
	line-height: 19px;
}

.font-14px {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 172%;
}

.font-12px {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 12px;
	line-height: 15px;
}

#header-fixed {
	position: fixed;
	top: 0px;
	width: 100%;
	height: 6em;
	background-color: white;
}

#header-fixed-content {
	box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.126926);
	padding: 1em;
	height: 4em;
}

#header-fixed-container {
	display: flex;
	max-width: 1080px;
	align-items: center;
	justify-content: space-between;
	margin: auto;
}

.header-fixed-part {
	width: calc(100% / 3);
}

.header-fixed-center {
	flex: 1 1 auto;
}

.header-fixed-left {
	text-align: left;
	flex: 0 0 30%;
}

.header-fixed-right {
	text-align: right;
	flex: 0 0 30%;
}

#header__logo {
	width: 80%;
}

#publish {
	display: inline-flex;
	align-items: center;
	color: black;
	background-color: var(--accent);
}

#publish img {
	margin-right: 0.5em;
}

.searchbox {
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0px 6px 10px rgba(23, 29, 32, 0.07), 0px 1px 18px rgba(23, 29, 32, 0.06), 0px 3px 5px -1px rgba(23, 29, 32, 0.1);
	border-radius: 8px;
	padding: 0em 1em;
}

.searchbox#header-fixed {
	visibility: hidden;
}

#searchbox-body {
	padding: 0em 0.5em;
}


.searchbox input[type=text] {
	border: 0px;
	padding: 1em 1em 1em 0em;
	color: black;
}

.searchbox input[type=text]:focus {
	outline-style: none;
	box-shadow: none;
	border-color: transparent;
}

.searchbox input[type=text]::placeholder {
	color: black;
	opacity: 1; /* Firefox */
}

#milanuncios-logo {
	width: 50%;
}

#header, h2 {
	display: flex;
	align-items: center;
	margin: 3em auto auto auto;
}

#header-left {
	text-align: left;
}

#page-content {
	padding-top: 5em;
	background-image: url("../images/common/BG.svg");
	background-repeat: no-repeat;
	background-size: contain;
	background-position-y: 6em;
}

#header span {
	width: 100%;
}

h2 {
	letter-spacing: 1px;
	text-align: center;
	color: #3c3c3c;
}

/* Add from font-16px-verdana */
.button {
	font-family: Verdana;
	font-style: normal;
	font-weight: normal;
	font-size: 16px;
	line-height: 19px;
	text-align: center;
	border: 0px;
	padding: 0.5em 1em;
	border-radius: 4px;
	color: white;
	background-color: var(--primary);
	text-align: center;
	cursor: pointer;
}

#start-selling {
	color: #c1215b;
}

#categories, #advantages, #header, h2 {
	max-width: 1080px;
	width: 100%;
	text-align: center;
}

#advantages-container {
	background-color: white;
}

#advantages {
	display: inline-grid;
	grid-template-columns: 1fr 1fr 1fr;
}

#advantage {
	display: inline-block;
	margin: 1em 1em;
	padding: 2em;
	background-color: white;
	text-align: left;
	min-width: 0;
}

#advangate h3 {
	/* F1/XL/Medium/Heading-2 */
	font-family: Rubik;
	font-style: normal;
	font-weight: 500;
	font-size: 28px;
	line-height: 33px;
}

#advantage p {
	/* F1/XL/Regular/Medium-Text */
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 22px;
	line-height: 32px;
	/* or 145% */a
}

.section {
	margin-top: 4em;
}

#categories-container {
	text-align: center;
}

#categories {
	margin-top: 2em;
	display: inline-grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	justify-items: center;
}

.category {
	/* Get from font-18px */
        font-family: Rubik;
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        line-height: 21px;
	width: 50%;
	margin: 0.5em;
	padding: 2em;
	border-radius: 1em;
	box-shadow: 0px 6px 10px rgba(23, 29, 32, 0.07), 0px 1px 18px rgba(23, 29, 32, 0.06), 0px 3px 5px -1px rgba(23, 29, 32, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	background-color: white;
}

.category p {
	color: black;
}

/* Fix grid overflowing screen width */
.category img {
	width: 100%;
	min-width: 0;
	max-width: fit-content;
	width: -moz-max-content;
}

.mobile-only {
	display: none;
}

#more-categories {
	margin-top: 3em;
}

.section-container {
	margin-top: 5em;
}

#app-download-container {
	background-color: var(--grey);
}

#app-download, #like-a-pro, #help-pages {
	text-align: left;
	margin: 1em auto;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1080px;
	width: 100%;
}

#app-download span, #like-a-pro span {
	width: 40%;
}

#pava-cajas {
	width: 100%;
}

#app-download-right img {
	width: 100%
}

#app-buttons {
	display: flex;
}

#app-buttons a {
	margin-right: 1em;
}

#footer {
	flex-direction: column;
}

#footer a {
	color: black;
}

#footer a:hover {
	text-decoration: underline;
}

#best-sellers-container {
	background-color: var(--dark-grey);
	padding: 3em 0em 2em 0em;
}

#best-sellers {
	text-align: left;
	margin: 0em auto;
	max-width: 1080px;
}

#best-sellers ol {
	padding-left: 1em;
}

#best-sellers li {
	font-style: normal;
	font-weight: normal;
	font-size: 12px;
	line-height: 15px;
}

#help-pages-container {
	padding: 3em 0em;
	background-color: var(--grey);
}

#help-pages {
	align-items: flex-start;
	margin: 0em auto;
	width: 100%;
}

#help-pages h4 {
	font-family: Rubik;
	font-style: normal;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
}

#help-pages a {
	display: block;
	margin-bottom: 2em;
}

.help-links a {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 172%;
}

#social {
	display: flex;
	flex-direction: column;
}

#footer-milanuncios-logo {
	margin-bottom: 1em;
}

#social .app-button, #social-networks {
	padding: 0px;
	margin: 1em 0em 0em 0em;
	color: white;
}

#social-networks {
	display: flex;
	align-items: center;
}

.social-icon {
	margin-right: 1em;
}

#legal-container {
	background-color: var(--grey);
}

#legal {
	padding: 1em 0em;
	text-align: left;
        margin: 0em auto;
	max-width: 1080px;
	border-top: 1px solid var(--light-grey);
}

#copyright {
	margin-top: 8em;
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 17px;
}

#adevinta-members-desktop a {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 17px;
}

#adevinta-members-mobile a {
	font-family: Rubik;
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 17px;
}

@media (max-width: 750px) and (min-width: 600px) {
	/*
	.font-h3, .font-medium {
		font-size: 2.2vw;
	}

	.category p {
		font-size: 1.8vw;
	}

	.font-small {
		font-size: 1.6vw;
	}
	*/
}

/* No mobile */
@media (min-width: 600px) {
	#best-sellers li {
		display: inline;
	}

	#best-sellers li::after {
		content: ", ";
	}

	#best-sellers li.last-item::after {
		content: "";
	}

	#adevinta-members-desktop {
		margin-top: 1em;
		display: flex;
		justify-content: space-between;
	}
}

/* mobile */
@media (max-width: 600px) {
	/* Change names to the fonts */
	.font-56px {
		/* F1/XS/Bold/Display-2 */
		font-family: Rubik;
		font-style: normal;
		font-weight: bold;
		font-size: 28px;
		line-height: 33px;
	}

	.font-28px, .font-32px {
		font-family: Rubik;
		font-style: normal;
		font-weight: 500;
		font-size: 24px;
		line-height: 30px;
	}

	.font-24px {
		font-family: Rubik;
		font-style: normal;
		font-weight: normal;
		font-size: 16px;
		line-height: 24px;
		/* or 150% */
	}

	.font-22px {
		font-family: Rubik;
		font-style: normal;
		font-weight: normal;
		font-size: 16px;
		line-height: 24px;
	}

	.font-18px {
		font-family: Rubik;
		font-style: normal;
		font-weight: 500;
		font-size: 16px;
		line-height: 19px;
	}

	.desktop-only {
		display: none;
	}

	.mobile-only {
		display: inline;
		max-width: initial;
	}

	#milanuncios-logo-mobile {
		width: 100%;
	}

	#advantages-container, #app-download-container, #best-sellers-container, #help-pages-container, #legal-container, #like-a-pro-container {
		padding: 0px 2em;
	}

	#advantage h3  {
		/* F1/XS/Medium/Heading-2 */
		font-family: Rubik;
		font-style: normal;
		font-weight: 500;
		font-size: 20px;
		line-height: 32px;
	}

	#advantage p {
		font-family: Rubik;
		font-style: normal;
		font-weight: normal;
		font-size: 16px;
		line-height: 24px;
	}

	.section-container {
		margin-top: initial;
	}

	#page-content {
		padding: 4em 2em 1em 2em;
	        background-position-y: 5em;
	}

	#header-fixed {
		height: 5em;
		filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
	}

	#header-fixed-content {
		height: 3em;
	}

	.header-fixed-left {
		flex: 60%;
	}

	#header-fixed .searchbox {
		padding: initial;
		box-shadow: initial;
		text-align: right;
		padding-right: 1em;
		flex: 30%;
	}

	#publish {
		display: flex;
		justify-content: center;
		flex: 30%;
	}

	.header-fixed-right {
		flex: 100%;
	}

	#header {
		flex-direction: column;
	}

	#header-left {
		margin-bottom: 1em;
	}

	#categories, #advantages, #like-a-pro, #help-pages {
		display: flex;
		flex-direction: column;
	}

	#categories {
		align-items: center;
	}

	.category {
		flex-direction: row;
		width: 80%;
		/* F1/XS/Medium/Medium-Text */
		font-family: Rubik;
		font-style: normal;
		font-weight: 500;
		font-size: 16px;
		line-height: 19px;
	}

	#advantages-container {
		text-align: left;
	}

	#advantage {
		margin: initial;
		padding: initial;
	}

	#app-download {
		display: initial;
	}

	#app-download-container {
		padding-top: 1em;
		padding-bottom: 2em;
		margin-top: 2em;
		margin-bottom: 3em;
	}

	#like-a-pro span {
		width: 100%;
	}

	#milanuncios-pro {
		width: 50%;
	}

	#best-sellers-container, #social {
		padding-top: 2em;
		padding-bottom: 2em;
	}

	#best-sellers li {
		margin-top: 1em;
	}

	#footer-milanuncios-logo  {
		width: 60%;
	}

	#help-pages {
		padding-bottom: 3em;
	}

	.members-group {
		display: flex;
		justify-content: space-around;
		margin-top: 1em;
	}

	.button {
		display: block;
	}

	#search-inputs {
		display: none;
		align-items: center;
		justify-content: space-between;
	}

	#search-input-group {
		border: 1px solid var(--light-grey-2);
		border-radius: 0.5em;
		height: 39px;
		width: 80%;
		display: inline-flex;
		justify-content: space-between;
	}

	#search-input {
		padding-left: 0.5em;
		background-color: transparent;
	}

	#searchbox-body {
		padding: 0em 0.5em;
		width: 90%;
	}

	#searchbox-body__search-input {
		padding-left: 0.5em;
		width: inherit;
	}
}
