/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Galada&family=Montserrat:wght@100..900&display=swap");

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(1, 100%, 38%);
  --white-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Galada", "cursive";
  --biggest-font-size: 3rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  color: var(--white-color);
  font-family: var(--second-font);
}

.nav__toggle, .nav__close{
  display: flex;
  font-size: 1.25rem;
  cursor: pointer;
}


/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu{
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--first-color);
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, .3);
    width: 100%;
    padding-block: 3.5rem;
    transition: top .4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link{
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu{
  top: 0;
}

/*=============== HOME ===============*/
.home{
  position: relative;
}

.home__container{
  height: 100vh;
  overflow: hidden;
}

.home__bg,
.home__cloud-1,
.home__cloud-2,
.home__sled,
.home__images img,
.home__title{
  position: absolute;
}

.home__bg{
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.home__images img{
  max-width: initial;
  width: 900px;
  right: -16rem;
  bottom: 0;
}

.home__sled{
  width: 200px;
  top: 11rem;
  left: 0;
  animation: sled 10s linear infinite;
  transition: transform .4s;
}

.home__cloud-1,
.home__cloud-2{
  width: 80px;
}

.home__cloud-1{
  left: 2rem;
  top: 5rem;
  animation: cloud-1 12s linear infinite;
}

.home__cloud-2{
  right: 2rem;
  top: 8.5rem;
  animation: cloud-2 12s linear infinite;
}

.home__title{
  bottom: 1.5rem;
  left: 0;
  right: 0;
  color: var(--first-color);
  font: var(--font-regular) var(--biggest-font-size) var(--second-font);
  line-height: 100%;
  text-align: center;
}
  

/* Animated Clouds */
@keyframes cloud-1 {
  0%{
    margin-left: 100%;
  }
  100%{
    margin-left: -1000px;
  } 
}
@keyframes cloud-2 {
  0%{
    margin-right: -1000px;
  }
  100%{
    margin-right: 100%;
  } 
}

/* Animated sled */
@keyframes sled {
  0%{
    transform: translateX(-150vw) rotate(15deg) scale(.2);
  }
  15%{
    transform: translateX(0vw) rotate(10deg) scale(1);
  }
  30%{
    transform: translateX(10vw) rotate(7deg);
  }
  45%{
    transform: translateX(20vw) rotate(6deg);
  }
  60%{
    transform: translateX(30vw) rotate(5deg);
  }
  75%{
    transform: translateX(40vw) rotate(4deg);
  }
  90%{
    transform: translateX(50vw) rotate(-2deg);
  }
  100%{
    transform: translateX(150vw) rotate(-15deg) scale(.2);
  }
}


/* Snow color */
#embedim--snow .embedim-snow{
  background: white;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 320px) and (max-height: 680px){
  .home__container{
    height: 780px;
  }
}


/* For medium devices */
@media screen and (min-width: 576px) {
  .home__images img{
    width: 100%;
    right: 0;
  }
  .home__title{
    bottom: -.5rem;
  }
}

@media screen and (min-width: 768px) {
  .home__sled{
    width: 300px;
  }
  .home__title{
    bottom: -.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container{
    margin-inline: auto;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav__logo{
    font-size: var(--h3-font-size);
  }

  .home__container{
    height: 860px;  /* for full screen */
  }
  .home__cloud-1,
  .home__cloud-2{
    width: 150px;
  }
  .home__cloud-1{
    top: 8rem;
  }
  .home__cloud-2{
    top: 12rem;
  }
  .home__sled{
    width: 480px;
    top: 7rem;
  }
}

@media screen and (min-width: 1500px){
  .home__images img{
    bottom: -4rem;
  }
  .home__title{
    bottom: 0;
  }
}


/* For taller devices */
@media screen and (min-width: 1150px) and (min-height: 860px) {
  .home__container{
    height: 100vh;
  }
   
}