/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Raleway: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");
/* Asterisk wildcard to override browsers default settings */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* General styles */
body {
  min-height: 100vh;
  color: #f2e4dc;
  background-color: #023859;
  display: flex;
  flex-direction: column;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", Verdana, sans-serif;
  font-weight: 100;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: capitalize;
}

h1 {
  text-transform: uppercase;
  font-size: 21px;
  font-weight: normal;
  letter-spacing: normal
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 17px;
}

/* Header */
header {
  background-color: #f2e4dc;
  color: #0d0d0d;
  padding: 0 0.5rem;
  position: fixed;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 2px #0d0d0d;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header > div {
  display: inline-block;
  padding: 0 1px;
}

#logo-image {
  height: 3rem;
}

#logo {
  margin-top: 0.5rem;
}

header a,
aside a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: none;
}

header ul > li {
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* To make the text be aligned in the middle on the y axis with the logo*/
#logo-text {
  position: relative;
  bottom: 16px;
}

/* Marks the active web page */
.active {
  border-bottom: 1px solid #0d0d0d;
}

/* Navbar styles with dropdown toggle */
#menu {
  position: absolute;
  background-color: #f2e4dc;
  width: 100%;
  box-shadow: 0 2px 2px #0d0d0d;
  padding: 0 1rem;
  left: 0;
  display: none;
  top: 100%;
}

#nav-toggle:checked ~ nav {
  display: block;
}

#nav-toggle {
  display: none;
  /* To align the toggle with the text on the header */
  position: relative;
  bottom: 16px;
}

.nav-toggle-label {
  font-size: 19px;
  position: relative;
  bottom: 16px;
  color: #0d0d0d;
}

/* Main content */
main {
  flex: 1 0 auto;
  margin-top: 61.5px;
}

#contact-main-center-aligned {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.left-aligned {
  left: 5px;
}

.right-aligned {
  right: 5px;
}

/* The hero section */
#hero-image {
  background-image: url("../images/barra-beach.webp");
  height: 600px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#hero-text {
  position: absolute;
  bottom: 20px;
  padding-right: 10px;
  width: 66.66%;
  right: 2px;
  color: #f2e4dc;
  text-align: right;
}

/* Reasons section */
#reasons > h2 {
  margin: 20px 5px;
}

#advantages-group {
  display: block;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 15px;
  margin: 0 5px 15px 5px;
}

.adv-heading {
  margin-bottom: 10px;
}

.advantages {
  border-radius: 5px;
  padding: 20px 10px 15px 10px;
  max-width: 100%;
  flex: 1 1 300px;
  margin-top: 30px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.2);
}

.thumbnails {
  position: absolute;
  top: -35px;
  display: block;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  z-index: 2;
}

/* iframe Google Maps section */
#googlemaps {
  margin-top: 10px;
}

#map {
  margin-top: 20px;
}

iframe {
  width: 100%;
  height: 300px;
}

/* Accommodation page */
#accommodation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 15px;
  background-color: #023859;
  background-size: cover;
  background-position: 80%;
  padding: 20px 20px 20px 20px;
}

.center-aligned{
  text-align: center;
}

.one-room-collection {
  flex: 1 1 1200px;
  color: #f2e4dc;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 5px;
}

.accommodation-photos {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 5px;
}

#accommodation h2 {
  margin: 5px;
  padding: 5px;
}

#bedroom {
  order: 1;
}

#livroom {
  order: 2;
}

#kitchen {
  order: 4;
}

#balcony {
  order: 3;
}

#bathroom{
  order: 5;
}

aside > p {
  margin: 40px 5px;
}

/* FAQ page */
#faq {
  text-align: justify;
  margin: 1rem;
}

#faq h2 {
  margin-top: 25px;
  padding: 10px 0;
}

#faq h3 {
  margin-bottom: 5px;
  margin-top: 10px;
  padding-top: 5px;
}

/* Contact us page */
#contact {
  background-color: #023859;
  background-size: cover;
  background-position: 75%;
  padding: 20px 10% 20px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

#contact-form {
  color: #f2e4dc;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 5px;
}

#contact-form > h2 {
  color: #f2e4dc;
  margin-bottom: 20px;
}

.form {
  background: #f2e4dc;
  font-family: inherit;
  color: #023859;
  width: 100%;
  height: 25px;
  margin: 5px 0 20px 0;
  border: 1px solid #f2e4dc;
  border-radius: 5px;
  padding: 0 5px;
}

textarea {
  background: #f2e4dc;
  font-family: inherit;
  color:#023859;
  box-sizing: border-box;
  width: 100%;
  padding: 5px;
}

.button {
  font-family: inherit;
  margin: 20px 20px 0 0;
  border-radius: 5px;
  padding: 10px 40px;
  background-color: #023859;
  color: #f2e4dc;
}

/* Thank you page */
#thank-main {
  position: relative;
}

#thankyou {
  background-color: #023859;
  background-size: cover;
  background-position: 75%;
  padding: 20px 10% 20px 10%;
  align-items: center;
  flex-grow: 1;
}

#thankyou > h2 {
  color: #f2e4dc;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Footer */
footer {
  background-color: #0d0d0d;
}

#footer-links {
  padding: 16px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer-links i,
#footer-links a {
  color: #f2e4dc;
  text-decoration: none;
}

/* Media query fot tablets and up (from 768px and larger screens) */
@media screen and (min-width: 768px) {
  /* Header */
  header {
    height: 78px;
    /* Makes logo and logo text align on the left while nav menu aligns on the right */
    justify-content: flex-start;
    gap: 1.5%;
    flex: 0 0 auto;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 23px;
  }

  h3 {
    font-size: 21px;
  }

  #menu-nav {
    display: flex;
    justify-content: flex-end;
    /* To fix the alignment problem on Firefox */
    align-self: flex-end;
    flex: 1 0 auto;
  }

  #footer-links {
    justify-content: space-around;
  }

  /* Make menu always visible to better use horizoltal space */
  #menu {
    position: relative;
    bottom: 16px;
    width: fit-content;
    padding-right: 1rem;
    box-shadow: none;
    display: block;
  }

  /* To make menu items show side by side */
  #menu-items {
    display: flex;
  }

  #menu-items > li {
    padding-left: 1rem;
  }

  .nav-toggle-label {
    display: none;
  }

  #logo-image {
    height: 4rem;
  }

  /* To make main visible under the fixed header */
  main {
    margin-top: 78px;
  }

  /* Reasons section */
  .thumbnails {
    height: 65px;
    width: 65px;
  }
}

/*Media query for laptop and larger (from 992px and larger*/
@media screen and (min-width: 992px) {
  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 23px;
  }

  body {
    font-size: 18px;
  }

  #menu-items > li {
    padding-left: 1.5rem;
  }
  /* To give the user a feedback of hovering over that specific link */
  #menu-items a:hover {
    border-bottom: 1px solid #0d0d0d;
  }

  /* Reasons section */
  /* To align all thumbnails on the left */
  .thumbnails {
    left: 5px;
  }

  .advantages {
    padding: 30px 10px 20px 10px;
  }

  /* Contact us page */
  /* To give the user a feedback of hovering over that specific fields and button */
  .form:hover,
  textarea:hover {
    border: 2px solid #023859;
  }

  #submit:hover {
    background-color: #f2e4dc;
    color: #023859;
  }
}

/* Media query for very large screens larger than 1500px */
@media screen and (min-width: 1500px) {
  #hero-image {
    height: 1000px;
  }

  .advantages {
    max-width: 700px;
  }
}