
* {
  transition: all 0.5s ease-in-out;
  box-sizing: border-box;
}

/*html {
  scroll-behavior: smooth;
}*/

body {
  margin: 0;
  font-family: system-ui;
}

div.container {
  scroll-behavior: smooth;
  overflow-y: scroll;
  height: 100vh;
  
  scroll-snap-type: y proximity;
  
  width: 1366px;
  width: 100%;
  max-width: 1440px;
  position: relative;
  margin: 0 auto;
}

@media screen and (min-width: 321px) and (max-width: 768px) {		/* Note-2 163  @media (max-width: 980px)*/
  header {
	height: 300px;
  }
  
  div.container {
	width: 768px;
	width: 100%;
	max-width: 810px;
	/*height: 400px;*/
  }
}

@media screen and (max-width: 320px) {		/* Note-2 165 */
	div.container {
	  width: 320px;		/* Note-2 165  width: 320px; */
	  width: 100%;
	  max-width: 340px;
	  /*height: 400px;*/
	}
}

header {
  background: #2f4f2f; 	/*#cccc99;*/
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
}

nav ul li {
  width: 100%;
  display: flex;
  justify-content: center;
}

nav ul a {
  text-decoration: none;
  color: white;
  /*background: #476b27;  /*#60B99A;*/
  /*background-image: linear-gradient(#476b27, #506020);*/
  /*background-image: linear-gradient(#462, #562);*/
  background-image: linear-gradient(#556b2f, #3f5222);
  display: block;
  width: 100%;		/* 110px; */
  height: 38px;
  text-align: center;
  padding: 8px ;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
  text-shadow: 0px 2px 3px rgba(0,0,0,035);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.22);
  border: solid 1.5px rgba(255,255,255,0.75);

  margin: 10px 20px 10px 0;
  border-radius: 10px;
  
  transition: all .25s ease-in-out;
}

nav ul a:hover, nav a:focus {
  background-image: linear-gradient(#6b8e23, #4f6f1d);
  letter-spacing: 2px;
}

section {
  min-height: 100vh;
  background-size: cover;
  padding: 8vw;
  padding-top: calc(8vw + 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 	/*center*/
  align-items: center;
  
  scroll-snap-align: start;		
}

/* Removed to show the ladybug on the first section only */
/*#section1 #ladybug {		
  display: block;
}*/

#ladybug {
  position: absolute;
  left: 10%;
  top: 100px;		/*  78%  150px*/
  width: 4vw;		/* 4vw 35px */
  z-index: 2;
  
  /*animation: walk 10s linear infinite;	*/
  animation: wander 30s ease-in-out infinite;	
}

@keyframes wander {
  0% {
    transform: translate(0vw, 0vh) rotate(135deg);
  }
  10% {
    transform: translate(8vw, 15vh) rotate(160deg);
  }
  20% {
    transform: translate(15vw, 30vh) rotate(160deg);
  }
  30% {
    transform: translate(15vw, 30vh) rotate(40deg);
  }
  40% {
    transform: translate(28vw, 20vh) rotate(90deg);
  }
  50% {
    transform: translate(40vw, 25vh) rotate(135deg);
  }
  60% {
    transform: translate(40vw, 25vh) rotate(45deg);
  }
  70% {
    transform: translate(52vw, 10vh) rotate(90deg);
  }
  80% {
    transform: translate(64vw, 15vh) rotate(155deg);
  }
  90% {
    transform: translate(64vw, 15vh) rotate(45deg);
  }
  100% {
    transform: translate(75vw, 0vh) rotate(50deg);
  }
}

	
section h2 {
  background: rgba(210, 230, 200, 0.88);
  color: #223018;
  font-size: 4vw;
  margin: 0 0 3vw 0;
  padding: 1vw 3vw;
  border-radius: 2vw;
}

section p {
  background: rgba(244, 241, 232, 0.82);
  color: #2d2d2d;
  padding: 4vw;
  border-radius: 20px;
}

#section1 {
  background-image: url("images/blue_sky.jpg");
  background-attachment: fixed;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  position: relative;
  overflow: hidden;
}

#section1 h1 {
  background: rgba(255, 255, 255, 0.85);
  color: #2f4f2f;
  font-size: 5.5vw;
  letter-spacing: 1px;
  padding: 1.5vw 4vw;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  
  position: relative;
  z-index:1;
  
  animation: getBig 2s ease both;
  animation-timeline: scroll();
  animation-range: 0% 20%;
}

@keyframes getBig {
  0% {font-size: 1vw;}
  100% {font-size: 5.5vw;}
}

@keyframes hideMe {
  0% {opacity: 1;}
  100% {opacity: 0;}
}

#section1 p {
  background: rgba(244, 241, 232, 0.75);	
  position: relative;
  z-index:3;
}

#section2 {
  background-image: url("images/garden.jpg");
  background-attachment: fixed;
}

#section2 h2,
#section3 h2,
#section4 h2,
#section5 h2 {
  animation: slideIn linear both;
  animation-timeline: scroll();
  animation-range: 0% 30%;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

#section3 {
  background-image: url("images/garden_house.jpg");
  /*height: 50vh;
  min-height: 50vh;*/
  
  /*scroll-snap-align: center;*/
}

#section4 {
  background-image: url("images/onion.jpg");
  background-attachment: fixed;
}

#section5 {
  background-image: url("images/garden_tools_brown.jpg");
  background-attachment: fixed;
}

article {
  display: flex;
}

figure {
  width: 200px;
  height: 200px;
  background-image: url("images/mini_tomatoes.jpg");
  background-size: cover;
  background-position: center;
}
