@font-face {
    font-family: 'AlexBrush';
    src: url("../fonts/alex-brush/AlexBrush-Regular-OTF.otf") format("opentype");
    font-style: normal;
}
@font-face {
    font-family: 'FontAwesomeSolid';
    src: url("../fonts/fontawesome-free-6.0.0-web/webfonts/fa-solid-900.woff2") format("woff2"); 
}

html {
  --color-back: rgba(37, 43, 54, 1);
  --color-back-trans: rgba(37, 43, 54, 0);
  --color-light: rgba(194, 208, 254, 1);
  --color-color: rgba(169, 203, 170, 1);
  --color-font-light: white;
  --fa-font-solid: 1rem FontAwesomeSolid;

  padding: 0;
  margin: 0;
  min-height: 100vh;
  width: 100%;

  /* font-family: "Cantarell", "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", serif; */
  font-family: "Cantarell";

  scroll-behavior: smooth;
}

/* general */
a {
	color: var(--color-font-light);
	text-decoration: none;
}

a:hover {
	color: var(--color-light);
}

h2 {
	color: var(--color-font-light);
}

button, textarea, select, input {
  border: solid 3px var(--color-font-light);
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 1.05rem;
  margin: 10px 0;
  background: none;
  color: var(--color-font-light);
}

button:invalid, textarea:invalid, select:invalid, input:invalid {
	border-color: rgb(153, 0, 0);
}

button {
  background: white;
  color: var(--color-back);
  font-weight: bold;

  cursor: pointer;
}

textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--color-light);
}

div.anchor {
  position: relative;
  top: -150px;
  height: 0;
}

body {
  padding: 0;
  margin: 0;

  background-color: var(--color-back);
}

body.mopen {
	overflow: hidden;
}

.icons {
	display: none;
}

/* mainmenu */
#mainmenu {
	position: fixed;
	top: 0;
	left: 0;
	
	width: 100%;
	height: 70px;

	display: flex;

	background-color: var(--color-back-trans);
	z-index: 100;

	transition: background-color .7s ease-in-out, transform .7s ease-in-out;

	font-family: Cantarell;

	transform-origin: top center;
}

body.scrolled #mainmenu {
	background-color: var(--color-back);

	box-shadow: 0px 0px 2px 0px var(--color-light);

	transition: background-color .7s ease-in-out, transform .7s ease-in-out, box-shadow .5s ease-in-out;
}

body.dscroll #mainmenu {
	transform: translateY(-66px);
}

#mainmenu > div {
  flex-grow: 1;
  flex-basis: 40%;
}

#mainmenu > .left {
	display: block;
}

#mainmenu > .left::before {
	display: flex;
	justify-content: center;
	align-items: center;

	width: 70px;
	height: 70px;

	color: var(--color-light);

	font: var(--fa-font-solid);
	font-size: 25px;
	text-align: center;
	line-height: 25px;
	content: '\f0c9';

	cursor: pointer;
}

#mainmenu > .center {
	display: block;
}

#mainmenu > .center img {
	position: absolute;
	top: 0;
	right: 0;

	height: calc(100% - 20px);
	/* width: calc(100% - 20px); */
	object-fit: contain;
	/* object-position: right; */
	margin: 10px;

	transition: opacity .4s ease-in-out;
}

#mainmenu > .center img:nth-child(1) {
	opacity: 0;
}

body.mopen #mainmenu > .center img:nth-child(1),
body.scrolled #mainmenu > .center img:nth-child(1) {
	/* display: block; */
	opacity: 1;
}

body.mopen #mainmenu > .center img:nth-child(2),
body.scrolled #mainmenu > .center img:nth-child(2) {
	/* display: none; */
	opacity: 0;
}

#mainmenu > .right {
	display: flex;
	justify-content: center;

	flex-direction: column;
	align-items: stretch;

    position: fixed;
    left: 0;
    right: 0;
	top: 0;

	list-style: none;
	padding: 0;
	margin: 0;

	
	font-family: "Lato", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
	font-weight: 700;
	font-size: 1rem;

	/* height: calc(100vh - 2 * 70px); */
	height: 100vh;

	transform: scaleY(0);

	overflow: hidden;

	z-index: -1;

	transition: transform .4s ease-in-out;

	background-color: var(--color-back);
}

body.mopen #mainmenu .right {
	transform: scaleY(1);
	background-color: var(--color-back);
}


#mainmenu > .right > ul {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  list-style: none;
  padding: 0;
  margin: 0;

  font-family: "Lato", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

#mainmenu > .right > ul li {
	/* position: relative; */
	display: block;
	list-style: none;
}

#mainmenu > .right > ul a {
	display: flex;
	justify-content: center;
	align-items: center;

	width: calc(100% - 20px);
	height: calc(100% - 2px);
	padding: 7px;
	margin: 0;

	/* border-bottom: 2px solid rgba(0,0,0,0); */

	color: var(--color-light);

	transition: color .4s ease, border-color .4s ease;

	white-space: nowrap;
}

/* Footer */
footer {
  display: block;
  background-color: var(--color-back);
  padding: 30px 20px;

  color: var(--color-font-light);
}


/**************************************************************** Footer Form */
footer form {
  display: flex;
  flex-direction: column;
}

/**************************************************************** Footer Left */
footer .footer-right {
  margin: 20px 0;

  border-top: 2px solid var(--color-font-light);
}

footer .footer-right .address,
footer .footer-right .contact {
  margin: 0 30px;
}

footer .footer-right .contact .contact-element .name {
  text-transform: capitalize;
  font-size: .8rem;
  color: var(--color-color);
  margin-right: 10px;
  /* cursor: pointer; */
}

footer .footer-right .contact .contact-element:first-child {
  margin-top: 10px;
}

footer form .msg div.success,
footer form .msg div.error {
	display: none;

	padding: 20px;

	background: rgb(153, 0, 0);
	border: 2px solid rgb(51, 0, 0);
	border-radius: 5px;
}

footer form .msg div.success {
	background: rgb(0, 153, 51);
	border-color: rgb(0, 128, 43);
}

footer form .msg.error .error,
footer form .msg.success .success {
	display: block;
}

/*********************************************************** Footer Right Menu */
footer ul.nav {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-column-gap: 10px;
}
footer ul.nav li {
  list-style: none;
  background: rgb(49, 48, 53);
  margin: 2px;
}
footer ul.nav li a {
  display: block;
  padding: 10px 30px;
}

