@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300&family=Poppins:wght@300;400;600&display=swap');

* {
	padding: 0;
	margin: 0;
	outline: none;
  line-height: 1;
  box-sizing: border-box;
}
html, body {
	width: 100%;
	height: 100%;
}

html {
	--main-light-color: #f1f1f1;
	--main-dark-color: #313841;
	--primary-color: #f6571f;
	--border-color: #e1e1e1;
	--color-white: #fff;
}

body {
	color: var(--main-dark-color);
	background: var(--main-light-color);
  font-size: 1.12rem;
	font-family: "Poppins", sans-serif;
}

a {
	color: var(--main-dark-color);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
  margin: 0 0 1.5rem;
}
h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.6rem;
}
h4 {
	font-size: 1.4rem;
}
h5, h6 {
	font-size: 1.2rem;
}

b, strong {
  font-weight: 600;
}

p, ul {
  line-height: 1.8rem;
  margin: 0 0 1.36rem;
}

#app > header {
	grid-area: header;
	display: flex;
	gap: 2%;
	align-items: center;
  height: 10vh;
  padding: 2%;
  justify-content: space-around;
  flex-direction: column;
}

#app > nav {
  grid-area: nav;
	background: var(--main-dark-color);
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
  position: relative;
  align-content: stretch;
}

#app > nav > a {
  color: var(--main-light-color);
	text-decoration: none;
	padding: 0.5rem;
}

.collapse-nav {
  position: fixed;
  cursor: pointer;
	display: inline-block;
	font-size: 2rem;
	vertical-align: middle;
	text-align: center;
	padding: 0.25rem;
	width: 3rem;
  align-self: flex-end;
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: 
    'header'
	  'nav'
    'main'
    'footer';
}

#app > main {
  grid-area: main;
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
  background: var(--color-white);
}

.comming-soon-contaner {
  text-align: center;
}

#comming-soon {
  stroke: var(--main-dark-color);
  fill: var(--main-dark-color);
  width: 100%;
  max-width: 32rem;
}

#app > footer {
  grid-area: footer;
  height: 2.8rem;
  text-align: end;
  padding: 0.875%;
  background: #c1c1c1;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.branding {
  font-family: "Montserrat Alternates", sans-serif;
	text-transform: lowercase;
	font-size: 2.24rem;
  margin: 0;
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 600ms ease-in-out, font-size 200ms ease-in-out;

}

.branding a {
  text-decoration: none;
	display: block;
}

.branding a::before,
.branding a::after {
  color: var(--primary-color);
  display: inline-block;
}

.branding a::before {
  content: '<';
}

.branding a::after {
  content: '/>';
	padding: 0 0 0 1rem;
}

.slogan {
  font-size: 0.84rem;
	text-transform: uppercase;
	opacity: 0.75;
  text-shadow: 0 0 1px var(--main-light-color);
  margin: 0;
}

.slogan::before {
  content: '//';
	display: inline-block;
	margin: 0 0.25rem 0 0;
}

@media only screen and (min-width: 668px) {  
  h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1.5rem;
  }
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 3rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.8rem;
  }
  h5, h6 {
    font-size: 1.4rem;
  }
  #app > header {
    overflow: hidden;
    position: relative;
    justify-content: flex-start;
    height: 8.2rem;
    flex-direction: initial;
  }

  #app > header::before {
    content: '';
    position: absolute;
    display: block;
    opacity: 0.2;
    background-image: url('/img/js-code.jpg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .branding {
    font-size: 4rem;
  }
  
  .slogan {
    font-size: 1.36rem;
  }

	#app > nav {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0 2rem;
		height: 3rem;
    font-size: 1.2rem;
	}

	#app > nav > a {
    align-items: center;
  }

	#app > nav > a:hover {
		color: var(--primary-color);
	}

	.collapse-nav {
		overflow: hidden;
		width: 0;
		padding: 0.25rem 0;
		border: 0;
    position: absolute;
	}

  body.scrolling .branding {
    position: fixed;
    width: 100%;
    transform: translate3d(0, -130%, 0);
    font-size: 2rem;
    display: inline-block;
    width: auto;
  }
  
  body.scrolling .branding a {
    color: var(--main-light-color);
  }

  body.scrolling #app > nav {
    position: fixed;
    top: 0;
    width: 100%;
    justify-content: end;
  }
  
  #app > main {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 2rem 0 var(--border-color);
  }
}