* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* TYPOGRAPHY */
h1 {
  font-family: "Playfair Display", sans-serif;
  letter-spacing: 1.5px;
}
h2 {
  font-family: "Playfair Display", sans-serif;
  font-size: 3em;
  font-weight: normal;
  color: #623E2A;
  letter-spacing: 1.5px;
  padding-bottom: 10px;
}
h3 {
  font-family: "Playfair Display", sans-serif;
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: 1px;
}
h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4em;
  font-weight: bold;
}
h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3em;
  font-weight: 400;
}
p {
  font-family: "Lato", sans-serif;
  font-size: 1.2em;
}

body {
  background-color: #f4f1ed;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #623E2A;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #623E2A;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.button:hover {
  color: #d89349;
  transform: scale(0.9);
}

/*HEADER & NAV FOR ALL PAGES excl home*/
.header {
  background-color: #623E2A;
  width: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 2rem;
  top: 60px;
  height: 0;
  width: 300px;
  backdrop-filter: blur(5px);
  background-color: hsla(21.43, 40%, 27.45%, 0.65);
  border-radius: 10px;
  overflow: hidden;
  transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*HOMEPAGE HEADER*/
.homepage.header {
  width: 100%;
  height: 75vh;
  background-image: linear-gradient(0deg, hsla(21.43, 40%, 27.45%, 0.65), hsla(21.43, 40%, 27.45%, 0.65)), url(./Images/Pool-Deck.jpg);
  background-position: center;
  background-size: cover;
}

nav {
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.15);
  justify-content: flex-end;
  padding: 15px;
}

nav .nav-link {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25em;
  font-weight: bold;
  padding: 0 10px;
  color: #fff;
}
.nav-link:hover {
  color:#d89349;
}

.homepage.nav-link:hover {
  color: #623E2A;
}

nav .toggle-btn {
  color: #fff;
  font-size: 1.25em;
  cursor: pointer;
  display: none;
}

/* DROPDOWN MENU */
.homepage .dropdown-menu {
  display: none;
  position: absolute;
  right: 2rem;
  top: 60px;
  height: 0;
  width: 300px;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0);
  border-radius: 10px;
  overflow: hidden;
  transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.open {
  height: 200px;
}

.dropdown-menu li {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu .nav-link {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25em;
  font-weight: bold;
  padding: 0 10px;
  color: #fff;
}

.dropdown-menu .nav-link:hover {
  color: #623E2A;
}

/*HERO*/
.hero-text {
  height: 75vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* BODY */
section.one-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}

section.two-col {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}

#change {
  width: 80%;
  padding: 0;
  align-items: flex-start;
  gap: 20px;
}

/*Containers*/
.container-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 0;
  margin: 0px 0
}
.container-center-text {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  margin: 15px 0
}

.container {
  width: 100%;
  height: 100%;
  padding: 0px 0;
  margin: 0px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-right: 50px;
}
.map-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 80%;
  transform: translate(-50%, -50%);
}

.divider {
  height: .5px;
  margin: 1px;
  padding: 1px;
  background: #623E2A;
  background: -webkit-linear-gradient(left, rgb(255,255,255) 0%, rgb(98, 62, 42) 50%, rgb(255,255,255) 100%);
}

/*PROGRESS BAR*/
.progress-container {
  width: 80%;
  margin: 20px auto;
  background-color: #f4f1ed;
  height: 30px;
}

.progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  background-color: #623E2A;
  border-radius: 10px;
  transition: width 4s ease;
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Playfair Display", sans-serif;
  font-size: 16px;
  color: #fff;
}

.no-progress {
  position: relative;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: #623E2A;
}

.no-progress-bar {
  background-color: #f4f1ed;
}

/*LOGIN PAGE*/
/* Bordered form */
#loginform {
  padding: 16px;
  margin: 20px;
  text-align: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Full-width inputs */
input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  font-family: "Montserrat", sans-serif;
}

/* Set a style for all buttons */
button {
  background-color: #623E2A;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* Add a hover effect for buttons */
button:hover {
  opacity: 0.8;
  color:#d89349;
}

/* Add padding to containers */
.container {
  padding: 16px;
}

/* The "Forgot password" text */
span.psw {
  float: right;
  padding-top: 16px;
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
    display: block;
    float: none;
  }
  .cancelbtn {
    width: 100%;
  }
}

/* CSS styling for the confetti particles */
.confetti {
  position: absolute;
  width: 3px;
  height: 5px;
  background-color: #ff0000; /* Red color for demonstration */
  border-radius: 50%;
  animation: fall 3s linear infinite; /* Example animation */
}

/* Keyframes for the confetti animation */
@keyframes fall {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

/*MODAL BACKGROUND*/
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #f4f1ed;
  margin: 20% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid black;
  border-radius: 15px;
  width: 50%; /* Could be more or less, depending on screen size */
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}
/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* TABLE STYLING*/
table {
  table-layout:auto;
  margin: 10px;
  width: 60%;
  border-collapse: collapse;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  background-color: #f4f1ed;
}

th, tr, td {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  letter-spacing: 0.5px;
  padding: 10px 0px 15px 10px;
}

th {
  text-align: start;
}
/*CRUISE PRICING TABLE*/
table.cruise-pricing {
  width: 90%;
}
table.cruise-pricing thead {
  background-color: hsla(21.43, 40%, 27.45%, 0.65);
  color: white;
}
table.cruise-pricing tr:nth-child(even) {
  background-color: hsla(21.43, 40%, 27.45%, 0.1);
}

/* LOGIN */
.error-message {
  color: red;
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
}


/* RESPONSIVE DESIGN */
/* tablet */
@media(max-width:720px) {
  /*MODAL*/
  .modal {
    display: none; /* Initially hide the modal */
    position: fixed;
    top: 50%; /* Center the modal vertically */
    left: 50%; /* Center the modal horizontally */
    transform: translate(-50%, -50%); /* Adjust position to center */
    z-index: 1000;
  }
  .modal-content {
    background-color: #f4f1ed;
    padding: 20px;
    border: 1px solid black;
    border-radius: 15px;
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: none; /* Limit maximum width */
    text-align: center;
  }
  /*dropdown menu*/
  nav .nav-link {
    display: none;
  }
  nav .toggle-btn {
    display: block;
  }
  .homepage .dropdown-menu {
    display: block;
  }
  .dropdown-menu {
    display: block;
  }
  .container-center-text {
    text-align: center;
  }

  /*table responsive*/
  table {
    width: 60%;
  }
  th, td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0px 5px 0px;
  }
  /*CRUISE PRICING TABLE RESPONSIVE*/
  table.cruise-pricing thead {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  table.cruise-pricing tr {
    border: 1px solid black;
  }
  table.cruise-pricing td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%;
  }
  table.cruise-pricing td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: wrap;
  }
  table.cruise-pricing td:nth-of-type(1):before { content: "Twin Share";}
  table.cruise-pricing td:nth-of-type(2):before { content: "Triple Share";}
  table.cruise-pricing td:nth-of-type(3):before { content: "Quad Share";}
  table.cruise-pricing .deposit {display:none}
}

/* mobile */
@media (max-width: 576px) {
  #change {
    align-items: center;
  }
  
  /*dropdown menu*/
  .dropdown-menu {
    left: 2rem;
    width: unset;
  }
  .container-center-text {
    text-align: center;
  }
    /*table responsive*/
    table {
      width: 100%;
    }
    th, td {
      display: block;
      width: 100%;
      text-align: center;
      padding: 5px 0px 5px 0px;
    }
    /*map responsive*/
    section.two-col {
      width: 100%;
      display: flex;
      flex-direction: column; /* Change flex-direction to column */
      align-items: center;
      justify-content: center;
    }
    .map-container {
      display: none;
    }
    
}
