@import url("https://fonts.googleapis.com/css2?family=Katibeh&family=Montserrat:wght@300;700&display=swap");

/*  BASIC STYLES AND RESETS **************************/
:root {
  --orange-button: #ed9a4f;
  --orange-multiply: rgba(237, 145, 64, 0.75);
  --strawberry-button: #fb5975;
  --strawberry-multiply: rgba(235, 112, 136, 0.75);
  --kiwi-button: #82a842;
  --kiwi-multiply: rgba(120, 154, 61, 0.75);
  --slider-width: 1080px;
  --slider-height: 600px;
  --slider-width-mobile: 600px;
  --slider-height-mobile: 85vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/***************************************************/

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-position: center center;
  background-size: auto;
  overflow: hidden;
  transition: 0.4s;
  position: relative;
}

#bgColorContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--orange-multiply);
  mix-blend-mode: multiply;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#carouselContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

#carouselContainer > button {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.75);
  background-color: transparent;
  border: none;
  border-radius: 5px;
  width: 50px;
  height: 50px;
  margin: 0.5rem;
  transition: transform 0.2s linear;
}
#carouselContainer > button:hover {
  background-color: rgba(239, 239, 239, 0.9);
  color: rgba(0, 0, 0, 1);
  cursor: pointer;
  mix-blend-mode: lighten;
}
#carouselContainer > button:active {
  transform: scale(0.94);
}

#slider {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--slider-width);
  height: var(--slider-height);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 3px 4px 7px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.slide {
  width: 100vw;
  height: 100vh;
  background-position: center center;
  background-size: auto;
  overflow: hidden;
  position: absolute;
  top: calc(- ((100vh - var(--slider-height)) / 2));
  left: calc(- ((100vw - var(--slider-width)) / 2));
  z-index: 1;
  opacity: 0;
  transition: 0.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide .slideContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: calc(var(--slider-width) / 2);
  z-index: 2;
  position: absolute;
  transform: translate(-50%);
}

.slide .slideContent h2 {
  font-family: "Katibeh", cursive;
  font-size: 120px;
  font-weight: 400;
  line-height: 65px;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.slide .slideContent button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.05);
}

.slide .slideContent button:active {
  transform: scale(0.98);
}

.slide:nth-child(odd) .slideContent {
  top: calc(50vh - (var(--slider-height) / 4));
  left: calc(50vw + (var(--slider-width) / 6));
}

.slide:nth-child(even) .slideContent {
  top: calc(50vh - (var(--slider-height) / 4));
  left: calc(50vw - (var(--slider-width) / 6));
}

.slide#slide1 .slideContent button {
  background-color: var(--orange-button);
}
.slide#slide1 .slideContent button:hover {
  background-color: #f1a15b;
}

.slide#slide2 .slideContent button {
  background-color: var(--strawberry-button);
}
.slide#slide2 .slideContent button:hover {
  background-color: #e9667b;
}

.slide#slide3 .slideContent button {
  background-color: var(--kiwi-button);
}
.slide#slide3 .slideContent button:hover {
  background-color: #97bf53;
}

/*  FOOTER STYLES  *********************************/
footer {
  display: flex;
  padding-top: 3rem;
  position: absolute;
  bottom: 1rem;
}

footer p {
  color: white;
}

footer a,
footer a:visited,
footer a:active {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/**************************************************/

@media (max-width: 810px) {
  #slider {
    max-width: var(--slider-width-mobile);
    height: var(--slider-height-mobile);
  }

  .slide:nth-child(odd) .slideContent,
  .slide:nth-child(even) .slideContent {
    max-width: var(--slider-width-mobile);
    top: calc(100vh / 6);
    left: calc(100vw / 2);
  }

  .slide .slideContent h2 {
    font-size: 80px;
    line-height: 45px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .slide:nth-child(odd) .slideContent,
  .slide:nth-child(even) .slideContent {
    top: calc(100vh / 8);
  }

  .slide .slideContent h2 {
    font-size: 60px;
    line-height: 35px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 360px) {
  .slide .slideContent h2 {
    font-size: 50px;
    line-height: 30px;
    margin-bottom: 1.25rem;
  }
}
