*,
*::before,
*::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

body {
  font-family: "Montserrat", sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  scroll-behavior: smooth;
}

/*Main*/
.card {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("background2.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.title-container {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.telephone {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  padding: 1em;
  text-shadow: 2px 2px 6px rgba(0.9, 0.9, 0.9, 0.9);
  animation: appear 0.6s ease-out forwards;
}

.title {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0.9, 0.9, 0.9, 0.9);
  animation: appear 0.6s ease-out forwards;
}

.title-second {
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 6px rgba(0.9, 0.9, 0.9, 0.9);
  animation: appear 0.6s ease-out forwards;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/*Sections*/
.all-sections-container {
  position: absolute;
  width: 100%;
  top: 100vh;
  display: flex;
  flex-direction: column;
}

/*About Us Section*/
.about-us {
  width: 100%;
  /*border: 1px solid red;*/
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.about-us.active {
  animation: sectionAppear 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sectionAppear {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.img-text-container {
  width: 100%;
  /*border: 1px solid blue;*/
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4em;
  padding: 3em;
}

.img-text-container img {
  width: 45%;
  height: 45%;
  border-radius: 10px;
}

.text-container {
  width: 30%;
  /*Mobile/Tablet*/
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.text-container h1 {
  color: black;
}

.text-container h3 {
  line-height: 2;
  color: black;
  opacity: 0.7;
}

/*Rooms Section*/
.rooms-section {
  width: 100%;
  /*border: 1px solid green;*/
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 2em 0 4em 0;
  opacity: 0;
}

.rooms-section.active {
  animation: sectionAppear 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.text-hr {
  color: black;
  text-align: center;
}

.text-hr hr {
  color: black;
  width: 20rem;
}

.rooms-articles-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.rooms-article {
  width: 25%;
  /*Mobile/Tablet*/
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 6px -6px black;
}

.rooms-article img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.rooms-img-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.room-title {
  color: black;
}

/*Amenities Section*/
.amenities-section {
  width: 100%;
  /*border: 1px solid green;*/
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 2em 0 4em 0;
  opacity: 0;
}

.amenities-section.active {
  animation: sectionAppear 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.amenities-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.amenities-svgs-text-container {
  /*Phone/Tablet*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  color: black;
  opacity: 0.7;
  text-align: center;
}

.amenities-svgs-text-container p {
  font-size: 1.3rem;
}

/*Gallery Section*/
.gallery-section {
  width: 100%;
  /*border: 1px solid black;*/
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 2em 2em 4em 2em;
  opacity: 0;
}

.gallery-section.active {
  animation: sectionAppear 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-visible {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-imgs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.gallery-imgs-container img {
  width: 30%;
  border-radius: 10px;
}

.gallery-invisible {
  display: none;
}

.gallery-invisible.active {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.gallery-section button {
  border: none;
  cursor: pointer;
  padding: 1em 2em;
  border-radius: 5px;
  background-color: #c89b5a;
  color: white;
}

/*Footer*/
footer {
  width: 100%;
  border-radius: 1px solid orange;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  background-color: black;
}

footer p {
  color: white;
  font-size: 1.2rem;
}

.footer-article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.footer-link-p a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

/*Mobile*/
@media (max-width: 750px) {
  /*Main*/
  .title {
    font-size: 2rem;
  }

  .title-second {
    font-size: 1.3rem;
  }

  .telephone {
    text-align: center;
  }

  /*About Us*/
  .img-text-container {
    flex-direction: column-reverse;
    gap: 4em;
    padding: 3em;
  }

  .img-text-container img {
    width: 100%;
    height: 100%;
  }

  .text-container {
    width: 100%;
    text-align: center;
  }

  .text-container h1 {
    color: black;
  }

  .text-container h3 {
    line-height: 2;
    color: black;
    opacity: 0.7;
  }

  /*Rooms Section*/
  .rooms-articles-container {
    flex-direction: column;
  }

  .rooms-article {
    width: 90%;
    flex-direction: column;
  }

  /*Amenities Section*/
  .amenities-section {
    padding: 2em 1em 4em 1em;
  }

  /*Gallery Section*/
  .gallery-visible {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .gallery-imgs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }

  .gallery-imgs-container img {
    width: 90%;
    border-radius: 10px;
  }

  /*Footer*/
  footer p {
    font-size: 1rem;
  }
}

/*Tablet*/
@media (min-width: 751px) and (max-width: 1100px) {
  /*Main*/
  .title {
    font-size: 2.5rem;
  }

  .title-second {
    font-size: 1.8rem;
  }

  /*About Us*/
  .img-text-container {
    flex-direction: column-reverse;
    gap: 4em;
    padding: 3em;
  }

  .img-text-container img {
    width: 100%;
    height: 100%;
  }

  .text-container {
    width: 100%;
    text-align: center;
  }

  .text-container h1 {
    color: black;
  }

  .text-container h3 {
    line-height: 2;
    color: black;
    opacity: 0.7;
  }

  /*Rooms Section*/
  .rooms-articles-container {
    width: 90%;
    flex-direction: row;
  }

  .rooms-article {
    width: 30%;
  }

  /*Amenities Section*/
  .amenities-section {
    padding: 2em 1em 4em 1em;
  }

  /*Gallery Section*/
  .gallery-visible {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .gallery-imgs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }

  .gallery-imgs-container img {
    width: 40%;
    border-radius: 10px;
  }
}
