/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
	--header-height: 3rem;

	/*========== Colors ==========*/
	--hue: 174;
	--sat: 63%;
	--first-color: hsl(var(--hue), var(--sat), 40%);
	--first-color-alt: hsl(var(--hue), var(--sat), 36%);
	--title-color: hsl(var(--hue), 12%, 15%);
	/* --text-color: hsl(var(--hue), 8%, 35%); */
	--text-color: hsl(var(--hue), 5%, 5%);
	/* --body-color: hsl(var(--hue), 100%, 99%); */
	--body-color: #fff;
	--container-color: #fff;

	/*========== Font and typography ==========*/
	--body-font: 'Open Sans', sans-serif;
	--h1-font-size: 1.5rem;
	--normal-font-size: 0.938rem;
	--tiny-font-size: 0.625rem;

	/*========== z index ==========*/
	--z-tooltip: 10;
	--z-fixed: 100;
}

@media screen and (min-width: 968px) {
	:root {
		--h1-font-size: 2.25rem;
		--normal-font-size: 1rem;
	}
}

/*=============== BASE ===============*/
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: var(--header-height) 0 0 0;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
	overflow-y: scroll;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
	/* padding: 4.5rem 0 2rem; */
	padding: 2.5rem 0 6rem;
	position: relative; /* kvi */
}

.section__title {
	font-size: var(--h1-font-size);
	color: var(--title-color);
	text-align: center;
	margin-bottom: 1rem;
}

.section__height {
	/* height: 100vh; */
	/* height: calc(100vh - var(--header-height)); */
}

/*=============== LAYOUT ===============*/
.container {
	/* max-width: 968px; */
	max-width: 1200px;
	margin-left: 1rem;
	margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	z-index: var(--z-fixed);
	/* transition: 0.4s; с ним появляются рывки в мобильном браузере*/
	/* border-bottom: rgb(226, 226, 226) solid 1px; */
	/* box-shadow: 0px 3px 20px rgb(231, 231, 231); Считается в Navigation.svelte */
}
.header-shadow {
	box-shadow: 0px 3px 20px rgb(231, 231, 231);
}
.header a {
	/* text-decoration: none; */
	color: #000000;
}

/*=============== NAV ===============*/
.nav {
	/* height: var(--header-height); */
	height: calc(var(--header-height) + 1.5rem);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav__img {
	width: 32px;
	border-radius: 50%;
}

.nav__logo {
	color: var(--title-color);
	font-weight: 600;
	padding-right: 20px;
}

@media screen and (max-width: 766px) {
	.nav__menu {
		position: fixed;
		bottom: 0;
		left: 0;
		background-color: var(--container-color);
		box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
		width: 100%;
		height: 4rem;
		padding: 0 1rem;
		display: grid;
		align-content: center;
		border-radius: 1.25rem 1.25rem 0 0;
		transition: 0.4s;
	}
}

.nav__list,
.nav__link {
	display: flex;
}
.nav__item {
	position: relative;
}

.nav__link {
	flex-direction: column;
	align-items: center;
	/* row-gap: 4px; */
	gap: 4px;
	color: var(--title-color);
	font-weight: 600;
}

.nav__list {
	justify-content: space-around;
}

.nav__name {
	font-size: var(--tiny-font-size);
	/* display: none;*/ /* Minimalist design, hidden labels */
}

.nav__icon {
	font-size: 1.5rem;
}

/*Active link*/
.active-link {
	position: relative;
	color: var(--first-color);
	transition: 0.3s;
}

/* Minimalist design, active link */
/* .active-link::before{
  content: '';
  position: absolute;
  bottom: -.5rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
} */

/* Change background header */
.scroll-header {
	box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
	.nav__name {
		display: none;
	}
}

/* For medium devices */
@media screen and (min-width: 576px) {
	.nav__list {
		justify-content: center;
		/* column-gap: 3rem; */
		gap: 3rem;
	}
}

@media screen and (min-width: 766px) {
	body {
		margin: 0;
	}
	.section {
		padding: 7rem 0 2rem;
	}
	.nav {
		height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
	}
	.nav__img {
		display: none;
	}
	.nav__icon {
		display: none;
	}
	.nav__name {
		font-size: var(--normal-font-size);
		/* display: block; */ /* Minimalist design, visible labels */
	}
	.nav__link:hover {
		color: var(--first-color);
	}

	/* First design, remove if you choose the minimalist design */
	.active-link::before {
		content: '';
		position: absolute;
		bottom: -0.75rem;
		width: 4px;
		height: 4px;
		background-color: var(--first-color);
		border-radius: 50%;
	}

	/* Minimalist design */
	/* .active-link::before{
      bottom: -.75rem;
  } */
}

/* For large devices */
/* @media screen and (min-width: 1024px) { */
@media screen and (min-width: 1224px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

h3 {
	font-size: 14pt;
	font-weight: 500;
	padding-bottom: 7px;
}

ul.drop-menu li {
	list-style: none;
}
li:hover > ul.drop-menu li {
	display: block;
	/* flex: 1; */
}
li > ul.drop-menu {
	position: absolute;
	display: block;
	padding: 2px 10px;
	font-weight: 600;
	white-space: nowrap;
	right: 0px;
	text-align: right;
	line-height: 200%;
	background: white;
	box-shadow: 0px 2px 5px 0px #8bb1ad;
	border-radius: 5px;
}
ul.drop-menu a:hover {
	color: var(--first-color);
}
@media screen and (max-width: 766px) {
	li > ul.drop-menu {
		bottom: 150%;
	}
}
@media screen and (min-width: 766px) {
	li > ul.drop-menu {
		top: 150%;
	}
}
