@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {

}

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

body {
    background-color: hsl(43, 100%, 91%);
    height: 100%;
    width: 100%;
    overflow-x: clip;
    top: 0;
    left: 0;
    margin-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

/* ========================================================================= */
/*                              LANDING PAGE                                 */
/* ========================================================================= */

top {
    position: relative;
    top: 0;
    left: 0;
    margin-left: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: clip;
    user-select: none;
    margin-bottom: max(15vw, 7.5rem);
}

.toptext {
    margin-top: min(-4vw, -2rem);
    top: calc(100% - max(10vw, 5rem) - max(5vw, 2.5rem));
    left: 2%;
    user-select: none;
}
.heading {
    position: relative;
    font-family: 'Kanit', sans-serif;
    font-style: bold;
    font-weight: 700;
    font-size: max(10vw, 5rem);
    text-shadow: max(.5vw, .25rem) max(.5vw, .25rem) 0 rgba(153, 106, 48, 0.32);
    color: #91613C;
    text-align: left;
    z-index: 100;
    -webkit-animation: slide-in-left 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-left 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.smal {
    font-size: max(5vw, 2.5rem);
}
.smaltxt {
    position: relative;
    font-family: 'Kanit', sans-serif;
    /* font-style: bold; */
    font-weight: 500;
    font-size: max(2vw, 1rem);
    /* text-shadow: max(.5vw, .25rem) max(.5vw, .25rem) 0 rgba(153, 106, 48, 0.32); */
    color: rgba(145, 97, 60, 0.25);
    text-align: left;
    z-index: 100;
}

a {
    color: rgba(145, 97, 60);
    font-style: italic;
}

.cloud {
    position: absolute;
    z-index: 99;
    right: calc(max(50vw, 25rem) * -0.2);
    bottom: calc(max(50vw, 25rem) / -2.5);
    width: max(50vw, 25rem);
    -webkit-animation: slide-in-right 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-right 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
.cloud2 {
    position: absolute;
    z-index: 99;
    left: calc(max(50vw, 25rem) * -0.38);
    bottom: calc(max(50vw, 25rem) / -5);
    width: max(50vw, 25rem);
    -webkit-animation: slide-in-left 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-left 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.baguettes {
    position: absolute;
    bottom: calc((max(50vw, 25rem) * (881 / 1048)) * -0.02);;
    left: calc((max(50vw, 25rem) * (881 / 1048)) * 0.1);
    width: calc(max(50vw, 25rem) * (881 / 1048));
    z-index: 98;
    -webkit-animation: slide-in-left 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-left 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@media only screen and (max-width: 705px) {
    .bread {
      display: none;
    }
    .cloud {
      display: none;
    }
}
.bread {
    position: absolute;
    bottom: calc((max(50vw, 25rem)) * -0.02);;
    right: 0; /* calc((max(50vw, 25rem) * (881 / 1048)) * 0.1); */
    width: calc(max(50vw, 25rem));
    z-index: 98;
    -webkit-animation: slide-in-right 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-right 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* ========================================================================= */
/*                               MAIN BODY                                   */
/* ========================================================================= */

main {
    position: relative;
    top: 0;
    width: 100vw;
    overflow: clip;
}
.boxLR, .boxRL {
    margin-bottom: 100px;
}
.boxLR {
    position: relative;
    left: 0;
    width: calc(max(50vw, 25rem));
    z-index: 98;
}
.boxRL {
    position: relative;
    
    left: calc(100% - max(50vw, 25rem));
    width: calc(max(50vw, 25rem));
    z-index: 98;
}
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
      .boxRL {
        -webkit-animation: slide-in-right2 cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
          animation: slide-in-right2 cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
        animation-timeline: view(y auto);
      }
      .boxLR {
        -webkit-animation: slide-in-left2 cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: slide-in-left2 cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
        animation-timeline: view(y auto);
      }
  }
}
.boxLR object {
    position: relative;
    left: -9%;
    width: 100%;
}
.boxLR p {
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-style: bold;
    font-weight: 500;
    font-size: max(2.25vw, 1.125rem);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: max(1vw, 0.5rem);
    width: calc(((1405 - 300) / 1405) * 100% - max(5vw, 2.5rem));
    z-index: 99;
}

.boxRL object {
    position: relative;
    right: -9%;
    width: 100%;
}
.boxRL p {
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-style: bold;
    font-weight: 500;
    font-size: max(2.25vw, 1.125rem);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: max(2vw, 1rem);
    width: calc(((1405 - 300) / 1405) * 100% - max(5vw, 2.5rem) - max(1vw, 0.5rem));
    z-index: 99;
}



/* ========================================================================= */
/*                                 FOOTER                                    */
/* ========================================================================= */



footer {
    position: relative;
    display: flex;
    align-items: end;
    /* justify-content: end; */
    padding: 1%;
    padding-bottom: 0.5%;
    left: 0;
    width: 100vw;
    height: 10vh;
    overflow: clip;
    background-color: #FFF2D0;
    outline: max(0.5vw, 0.5rem) solid white;
}






/* ========================================================================= */
/*                               BACKGROUND                                  */
/* ========================================================================= */

.breadbg {
    left: 0;
    position: fixed;
    top: 0;
    height: max(200vw, 200vh);
    z-index: -100;
    animation: breadscroll 3s linear infinite;
    rotate: -15deg;
}

/* ========================================================================= */
/*                               ANIMATIONS                                  */
/*                             thanks animista                               */
/* ========================================================================= */

  @-webkit-keyframes slide-in-left {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-left {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @-webkit-keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }

  @-webkit-keyframes slide-in-left2 {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
      opacity: 0;
    }
    70% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-left2 {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
      opacity: 0;
    }
    70% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @-webkit-keyframes slide-in-right2 {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      opacity: 0;
    }
    70% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-right2 {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      opacity: 0;
    }
    70% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }

@keyframes breadscroll {
    0% {
        transform: translateX(min(-25vw, -25vh)) translateY(min(-50vw, -50vh));
    }
    100% {
        transform: translateX(min(-50vw, -50vh)) translateY(min(-45vw, -45vh));
    }
}
