/*All content below has been created or edited with the help of OpenAI. (2024). ChatGPT (November 2024 version) [Large language model]. https://chat.openai.com/ */
/* Content below has been created or edited with the help of Worthy, P. (2024). Guides [Instructional manual]. University of Queensland. */

/* Global Button Styles */
button {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--background-color);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-color);
}

header button{
  margin-top: 5%;
}

a.button {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--background-color);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

a.button:hover {
  background-color: var(--primary-color);
}

/* Slideshow Styles */
.slideshow-container {
  position: relative; /* Even if moved, original space is kept empty */
  width: 70%;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 10%;
}

.slide-container {
  display: flex; /* Flexbox for side-by-side images */
  width: 100%;
}

.image-container {
  position: relative; /* Won't push other elements around or be affected by them.*/
  width: 100%; /* Each image takes full width */
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 15px; /* Apply border-radius */
  margin: 10px;
}

.image-container img {
  width: 100%; /* Fill the container's width */
  height: 100%; /* Fixed height */
  object-fit: cover; /* Maintain aspect ratio and cover the container */
  border-radius: 15px; /* Apply border-radius */
}

.image-container .text {
  background-color: #333333;
  color: white;
  width: 20%;
  text-align: center;
  justify-content: center;
}

/* Navigation for slideshow */
.prev,
.next {
  cursor: pointer;
  position: absolute; /* Won't push other elements around or be affected by them for example the image underneath this text */
  top: 40%;
  transform: translateY(-50%);
  color: var(--background-color);
  font-weight: bold;
  font-size: 2vw;
  transition: 0.6s ease;
  border-radius: 3px;
  user-select: none; /* Prevent users from accidentally selecting text while interacting with those elements. */
  z-index: 10; /*  Arrows will appear on top of the slideshow images even as they change. */
}

/* Left 0 and Right 0 means they are positioned at the left and rightmost edges of the parent element (slideshow container)*/
/* Arrows on Slideshow on homepage (index.html) */
.index-arrows .prev {
  padding: 0;
  margin: 0;
  padding-left: 30px;
}


.index-arrows .next {
  right: 0;
  padding: 0;
  margin: 0;
  padding-right: 30px;
}

/* Arrows on Slideshow on community page (community.html) */
.community-arrows .prev {
  padding: 0;
  margin: 0;
  padding-left: 40px;
}

.community-arrows .next {
  right: 0;
  padding: 0;
  margin: 0;
  padding-right: 30px;
}

.prev:hover,
.next:hover {
  color: var(--text-color);
}

.image-container a {
  width: 100%;
  height: 100%;
}

.image-container a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption text */
.text {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--background-color);
  font-weight: 2vw;
  font-size: 15px;
  padding: 8px;
  margin-left: 2%;
  width: 100%;
  text-align: left;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  } /* Starting point of the animation */
  to {
    opacity: 1;
  } /* End point of animation */
}

/* Discussion board on Community Page*/
.discussion-form {
  background: var(--background-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
}

.discussion-form,
.posts {
  width: 70%;
  margin: 20px auto;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2%;
}

.discussion-form h2 {
  margin: 0;
  text-align: center;
  margin-bottom: 20px;
  padding: 0;
  padding-top: 2%;
}

#postForm {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  padding-left:10% ;
}

textarea {
  width: 100vh;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  box-sizing: border-box;
  margin-right: 10px;
  flex-direction: column;
  align-items: center;
}

.discussion-form button {
  padding: 10px 20px;
  margin-bottom: 2.5%;
  border: none;
  cursor: pointer;
}

.post {
  border-bottom: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin: 0;
  position: relative;
}

.user-info {
  display: flex;
  align-items: center; /* Center the image and name vertically */
}

.user-info img {
  width: 50px; /* Set the width of the profile image */
  height: 50px; /* Set the height of the profile image */
  border-radius: 50%; /* Make the image circular */
  margin-right: 20px; /* Add space between the image and name */
  object-fit: cover; /* Ensure the image covers the area without distortion */
}

.post-actions {
  display: flex;
  margin-top: 10px;
  align-items: center;
  justify-content: start;
  margin-left: 6%; /* icons margin */
}

.post-actions button {
  width: 30px; /* Set a fixed width */
  margin: 0; /* Remove default margins */
  padding: 0; /* No padding */
  background: transparent;
  border: none;
  cursor: pointer;
}

.post-actions button:hover {
  transform: scale(1.1); /* Enlarge the button to 110% */
}

.post:last-child {
  border-bottom: none;
}

.post-content {
  font-size: 16px; /* Adjust text size */
  color: black; /* Set text color */
  margin-top: 10px; /* Add space above the text */
  margin-left: 70px; /*The text of the post */
  margin-bottom: 2%;
  width: 100%;
}

/* Interaction features on discussion board */

.like-button {
  background: transparent;
  border: none;
  color: #6412ea;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.heart {
  font-size: 22px; /* Adjust size as needed */
  color: #ccc; /* Default color */
  transition: color 0.3s;
  margin-bottom: 4px;
}

.liked .heart {
  color: red; /* Color when liked */
}

.post-actions .like-button {
  margin-left: 5px;
}

.post-actions button:last-child {
  margin-left: 2px;
}

.posts h2 {
  font-weight: 600;
  margin: 0;
  padding: 0;
}

#postFeed {
  background-color: white;
  padding: 30;
  border-radius: 8px;
  box-shadow: 0 2px 10px #0000001a;
  width: 1040px;
  margin: 0 auto;
}


/* Style the top navigation */
.top-content {
  margin-top: 2%;
  align-items: center;
  justify-content: center;
}

.top-content .topnav {
  display: flex; /* Use flexbox for alignment */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  padding: 8px; /* Padding around the nav */
  width: 100%; /* Ensure it spans the full width */
}

.top-content-recomspage .topnav button {
  border: 1px solid white;
}

/* Style the search box */
.topnav input[type="text"] {
  width: 100%; /* Set width to 50% */
  max-width: 900px; /* Optional: limit max width for larger screens */
  padding: 10px;
  border: 1px solid #ccc; /* Add border for better visibility */
  border-radius: 4px; /* Rounded corners */
  margin-right: 8px; /* Space between input and button */
  box-sizing: border-box;
}

/* Style the search button */
.topnav button {
  padding: 6px 10px;
  border: none;
  background-color: var(--primary-color); /* Your desired color */
  color: white;
  border-radius: 4px; /* Rounded corners */
  cursor: pointer;
  width: 80px;
}

.topnav button:hover {
  background-color: var(--hover-color);
}

/* Specific Styles for Navigation Buttons in Community page */
.nav_buttons {
  padding: 0;
  padding-left: 19em;
  padding-bottom: 2%;
}

.nav_buttons .navigation-button {
  font-size: 14px;  /* Smaller font size */
  padding: 8px 15px; /* Smaller padding */
  background-color: var(--primary-color);
  color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav_buttons .navigation-button:hover {
  background-color: var(--hover-color);
}

.read-more {
  padding: 0;
  padding-top: 40%;
}

/* Pop-up boxes for images in slideshows on the Events Page */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2500; /* Sit on top */
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Modal Content Inside */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  margin-top: 10%;
  border: 1px solid #888;
  width: 50%;
  height: 50%;
  border-radius: 10px;
}

.modal-content h2{
  padding:0 10%;
  padding-top: 8%;
  padding-bottom: 5%;
}

.modal-content p{
  font-size: 15px;
  padding: 2% 10%;
}

.modal-content span{
  padding: 0;
  padding: 2% 10%;
}

/* Modal Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Pop-up boxes for items */

.insights-modal .modal-content{
  height: 40%;
}

.insights-modal h2{
  padding: 0;
  padding-left: 10%;
  padding-top: 7%;
}

.modal-body h3{
  display: none;
}

.notifications-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  height: 30%;
  transform: translate(-50%, -50%);
  width: 500px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none; /* Hidden by default */
}

.popup-content {
  padding: 20px;
  margin: 5%;
}

.close-popup {
  cursor: pointer;
  float: right;
  font-size: 18px;
}

/* Items in Insights and Recommendations Page*/

.gallery {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  padding: 0;
  padding-left: 10%;
}

.item {
  width: 23%;
  margin: 1%;
  transition: transform 0.3s;
}

.item img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.info {
  margin-top: 8px;
  padding: 0;
}

.info h3{
  padding: 0;
}

.info p{
  padding: 0;
  margin-top: 2%;
  margin-bottom: 2%;
}

/* Toggle for hidden items */
.see-more {
  padding: 0;
  padding: 15px 10px;
  margin-left: 25%;
  cursor: pointer;
}

.see-more p{
  font-size: 15px;
  font-weight: 400;
  padding-bottom: 0;
}

.arrow{
  padding: 0;
  padding-left: 87%;
  transition: transform 0.3s ease; /* Smooth rotation */
  display: inline-block; /* Ensure it rotates correctly */
}

/* Hide additional items initially */
.hidden {
  display: none;
}

/* Item section headings and elements */
.activities h2{
  padding: 0;
  padding-left: 11%;
}

.food-drink{
  padding-top: 5%;
}

.food-drink h2{
  padding: 0;
  padding-left: 11%;
}

.food-drink .see-more {
  margin: 0;
  margin-left: 25%;
}

.food-drink .arrow{
  padding: 0;
  padding-left: 86%;
}

.title-button{
  display: flex;
}

.accommodations h1{
  padding-top: 5%;
}

.accommodations h2{
  padding: 0;
  padding-left: 11%;
}

.accommodations p{
  margin: 0;
  padding: 0;
}

.accommodations .see-more{
  margin: 0;
  padding: 0;
  padding-top: 5%;
  margin-left: 47%;
}

.accommodations .arrow {
  margin: 0;
  padding: 0;
  margin-left: 37%;
}

.visa{
  padding-top: 5%;
}

.visa h2{
  padding: 0;
  padding-left: 11%;
}

.visa .see-more {
  margin-left: 26%;
}

.visa .arrow{
  padding: 0;
  margin-left: 87%;
}

.user-profile-sample{
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* Read more button for visa section of Insights and Recoms page*/
.visa-section .visa-button{
  margin: 0;
}

.modal-body .visa-button{
  margin: 0;
  margin-top: 5%;
  margin-left: 30%;
  padding: 5px 0;
}

.visa-button{
  padding: 5px 10px;
  border: none;
  background-color: var(--primary-color); /* Your desired color */
  color: white;
  border-radius: 20px; /* Rounded corners */
  cursor: pointer;
  width: 40%;
}

.signup-message{
  font-size: 15px;
  text-align: center;
  align-items: center;
  /* padding-right: 20%; */
  color: var(--primary-color);
}

/* Notification popup on Community Page */
#notificationsList {
  list-style: none;
  padding: 0;
  display:flex;
}

#notificationsList p{
  padding: 0;
  margin: 0;
  width: 300px;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5%;
  margin-left: 8%;
}

.back-to-top {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  z-index: 1000;
  cursor: pointer;
}

/* Newsletter signup on the read more page */
.read-more-footer {
  align-items: center;
  justify-content: center;
}

.read-more-footer .rm-footer {
  display: flex; 
  justify-content: center; 
  align-items: center;
  padding: 8px;
  width: 100%;
}

/* Style the search box */
.rm-footer input[type="text"] {
  width: 50%;
  max-width: 600px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 8px; 
  box-sizing: border-box;
}

/* Style the search button */
.rm-footer button {
  padding: 5px 10px;
  border: none;
  background-color: var(--primary-color); /* Your desired color */
  color: white;
  border-radius: 4px; /* Rounded corners */
  cursor: pointer;
  width: 8%;
}

.rm-footer button:hover {
  background-color: var(--hover-color);
}

.form login{
  width: 90%;
}

/* Media query for mobile */
@media (max-width: 750px) {

  body{
    font-size: 12px;
  }

  #flexnavbar {
      display: none; /* Hide regular navbar on mobile */
  }

  .cta {
    display: none;
  }

  .create-account-message{
    margin: 0 20% 10% 10%;
  }

  /* Search bar */
  .top-content {
    padding: 0;
    padding-bottom: 5%;
    padding-top: 15%;
  }

  .top-content .top-nav {
    padding: 0;
    width: 100%;
  }
  
  .topnav input[type="text"]{
    width: 80%;
  }

  /* Slideshow */
  .community-slideshow{
    margin: 0;
    padding-right: 12%;
  }

  .slideshow-container {
    position: relative; /* Even if moved, original space is kept empty */
    width: 90%;
    margin: 0;
    margin-left: 5%;
    overflow: hidden;
    padding-bottom: 10%;
  }

  .community-slideshow  .slideshow-container {
    width: 100%;
  }

  .mySlides{
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .slide-container {
    display: flex; /* Flexbox for side-by-side images */
    width: 100%; /* Ensure it fills the parent container */
  }

  .image-container {
    border-radius: 15px;
    width: 100%; 
    margin: 10px 5px;
  }
  
  .image-container img {
    box-sizing: border-box; /* Includes padding and border in the total width calculation */
    width: 100%;
  }

  .image-container a {
    width: 100%;
    height: 100%;
  }
  
  .image-container a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .image-container .text {
    background-color: var(--text-color);
    color: white;
    width:fit-content;
    padding: 2%;
    border-radius: 5%;
    text-align: center;
    justify-content: center;
  }
  
  /* Navigation for slideshow */
  .prev,
  .next {
    cursor: pointer;
    position: absolute; /* Won't push other elements around or be affected by them for example the image underneath this text */
    top: 42%;
    transform: translateY(-50%);
    color: var(--background-color);
    font-weight: bold;
    font-size: 2vw;
    transition: 0.6s ease;
    border-radius: 3px;
    user-select: none; /* Prevent users from accidentally selecting text while interacting with those elements. */
    z-index: 10;
  }
  
  /* Left 0 and Right 0 means they are positioned at the left and rightmost edges of the parent element (slideshow container)*/
  .index-arrows .prev {
    left: 0;
    padding: 0;
    margin: 0;
    padding-left: 15px;
  }

  .index-arrows .next {
    right: 0;
    padding: 0;
    margin: 0;
    padding-right: 15px;
  }
  
  .community-arrows .prev {
    padding: 0;
    margin: 0;
    padding-left: 20px;
  }
  
  .community-arrows .next {
    right: 0;
    padding: 0;
    margin: 0;
    padding-right: 20px;
  }

  /* Items in Insights and Recommendations Page*/
  .item {
    flex: 1 1 calc(50% - 20px); /* 2 items per row on tablet/small screens */
    width: 10%;
    margin-top: 5%;
  }
  
  .item img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }

  .info {
    margin-top: 8px;
    padding: 0;
  }
  
  .info h3{
    padding: 0;
    font-size: 14px;
  }
  
  .info p{
    font-size: 10px;
    padding: 0;
    margin-top: 2%;
    margin-bottom: 5%;
  }

  .activities h1{
    font-size: 20px;
  }

  .activities h2{
    padding: 0;
    padding-left: 11%;
  }

  
  .food-drink h2{
    padding: 0;
    padding-left: 11%;
  }

  /* See More button and arrow for sections */
  .food-drink .see-more {
    margin: 0;
    margin-left: 25%;
  }
  
  .food-drink .arrow{
    padding: 0;
    padding-left: 45%;
    margin-bottom: 50%;
  }
  
  .title-button{
    display: flex;
  }
  
  .accommodations h1{
    padding-top: 5%;
    font-size: 20px;
  }
  
  .accommodations h2{
    padding: 0;
    padding-left: 11%;
  }
  
  .accommodations .see-more{
    margin: 0;
    padding: 0;
    padding-top: 5%;
    margin-left: 41%;
  }
  
  .accommodations .arrow {
    margin: 0;
    padding: 0;
    margin-left: 40%;
  }
  
  .visa h2{
    padding: 0;
    padding-left: 11%;
  }
  
  .visa .see-more {
    margin-left: 26%;
    margin-bottom: 10%;
  }
  
  .visa .arrow{
    padding: 0;
    margin-left: 45%;
  }

  /* Toggle for hidden items in Insights and Recoms page */
  .see-more {
    padding: 0;
    padding-top: 10%;
    padding-left: 15%;
    cursor: pointer;
  }
  
  .see-more p{
    font-size: 12px;
    font-weight: 400;
    width: 100%;
    padding: 0;
  }
  
  .arrow{
    padding: 0;
    padding-left: 40%;
    transition: transform 0.3s ease;
    display: inline-block;
  }

  /* Popup window for when items are clicked on */
  .insights-modal .modal-content{
    height: 30%;
  }

  .insights-modal h2{
    padding: 0;
    padding-left: 10%;
  }

  .insights-modal p{
    padding: 0;
    padding-left: 10%;
    padding-right: 12%;
    padding-bottom: 5%;
  }

  .modal-content{
    padding: 0;
    padding-top: 5%;
    width: 70%;
    height: auto;
    margin: 0;
    margin-left: 15%;
    margin-top: 50%;
    padding-bottom: 10%;
  }

  nav {
    padding: 0;
    margin: 0;
  }

  /* Search bar in insights and recoms page */
  .top-content-recomspage{
    height: 60px;
    background-color: var(--background-color);
    padding:0;
    padding-left: 10%;
    margin-top: 20%;
  }

  /* Search bar in Community Page */
  .discussion-form{
    padding: 0;
    margin-top: 20%;
  }
  
  .discussion-form,
  .posts {
    width: 90%;
  }
  
  .discussion-form h2 {
    font-size: 15px;
    margin-top: 5%;
  }

  /* Post content on community discussion board */
  .user-info{
    font-size: 14px;
    font-weight: 600;
  }

  #postForm {
    display:block;
    align-items: center;
    width:75%;
    padding: 0;
  }
  
  textarea {
    width: 270px;
    padding: 5%;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  
  .discussion-form button {
    padding: 5px 20px;
    font-size: 12px;
    margin-top: 5%;
    margin-left: 35%;
    margin-bottom: 5%;
    border: none;
    cursor: pointer;
    border-radius: 10px;
  }
  
  .post-actions {
    padding-left: 14%;
    padding-top: 2%;
    width: 30%;
    gap: 20%;
  }
  
  .post-content {
    font-size: 14px; /* Adjust text size */
    color: black; /* Set text color */
    margin-top: 10px; /* Add space above the text */
    margin-left: 70px; /*The text of the post */
    margin-bottom: 2%;
    width: 90%;
  }
  
  .like-button {
    background: transparent;
    border: none;
    color: #6412ea;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .post-actions .like-button {
    margin-right: 5px;
  }
  
  .posts h2 {
    font-weight: 600;
    margin: 0;
    padding: 0;
  }
  
  #postFeed {
    width: 90%;
  }

  /* Back to top button on Events page */
  .back-to-top {
    display: block;
  }
  
  /* Adjust position when footer is visible */
  .back-to-top.above-footer {
    bottom: 80px; /* Adjust this value based on your footer height */
  }

  /* Popup window for visa section with read more button on insights and recoms page */
  .visa-section .visa-button{
    margin: 0;
  }
  
  .modal-body .visa-button{
    margin: 0;
    margin-top: 5%;
    margin-left: 25%;
    padding: 5px 0;
  }
  
  .visa-button{
    padding: 2px 2px;
    border: none;
    background-color: var(--primary-color); /* Your desired color */
    color: white;
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    width: 50%;
    font-size: 10px;
  }
}