/*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 related to API has been created or edited with the help of Worthy, P. (2024). Guides [Instructional manual]. University of Queensland. */

/* Importing Google Font - Poppins */
/*Created with the help of OpenAI. (2024). ChatGPT (November 2024 version) [Large language model]. https://chat.openai.com/*/
@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

* {  /* selects all elements on the page.*/
  box-sizing: border-box; /* Width includes padding and border*/
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif; /* Set font for all elements */
}

:root { /* Highest level of the document tree (HTML) '--' used for custom property */
  --primary-color: #6412EA;  /* Primary color (e.g., brand color) */
  --secondary-color: #B7BFED; /* Secondary color (e.g., accent color) */
  --text-color: #333333;      /* Main text color */
  --background-color: #FFFFFF; /* Background color */
  --link-color: #6412EA;      /* Color for links */
  --hover-color: #FD6A17;     /* Hover color for buttons/links */
  --border-color: #CCCCCC;     /* Border color */
}

/* Heading Styles */
h1{
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color); /* Access a custom property in variable root */
}

.activities h1{
  margin-top: 10%;
}

.privacy-title h1{
  margin: 0;
  margin-top: 5%;
}

.contact-title h1{
  margin: 5% 0;
  text-align: left;
  margin-bottom: 5%;
}

.login-title h1{
  margin: 5% 0;
  text-align: left;
  margin-bottom: 5%;
}

.budget-title h1{
  margin-top:5%;
}

h2{
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
}

h2.read-more-page{
  padding: 0;
  padding-top: 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-slide-titles h2{
  padding: 0;
  padding-left: 16%;
  padding-bottom: 2%;
}

.events-titles h2{
  padding: 0;
  padding-left: 16%;
  padding-bottom: 2%;
  padding-top: 5%;
}

.index-title h2{
  padding: 0;
  padding-left: 16%;
  padding-bottom: 2%;
}

.community-titles h2{
  padding: 0;
  padding-left: 16%;
  padding-bottom: 2%;
  padding-top: 5%;
}

.title-logo {
  width: 200px;
  height: 200px;
  margin: 0;
  margin-left: 240px;
}

h3{
  padding: 25px 0 25px 250px; /*Top, right, bottom, left */
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  color: var(--text-color);
}

h4{
  padding: 25px 0 25px 250px;
  font-size: 15px;
  font-weight: 300;
  text-align: left;
  color: var(--text-color);
}

h5 {
  padding: 25px 0 25px 250px;
  font-size: 12px;
  font-weight: 300;
  text-align: left;
  color: var(--text-color);
}

p {
  padding: 25px 0 25px 250px;
  font-size: 11px;
  font-weight: 200;
  text-align: left;
  color: var(--text-color);
}

.title-text h2{
  padding: 0;
}

/* Logo styles */
.logo {
  padding-left: 1%;
  display: inline-block; /* Placed in line with other elements than start on a new line, allows more control with width and height */
  vertical-align: top;
  top: 0;
  width: 30%;
  cursor: pointer;
}

a, button {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color:var(--text-color);
  text-decoration: none;
}

/* Navigation styles */
#flexnavbar {
  display: flex;
  justify-content: center; /* Centers items horizontally within container. If extra space, items are distributed with space equally on either side.*/
  align-items: center; /* Based on vertical space, as long as container height is filled, items are centred accordingly. */
  grid-area: nav;
  padding-left: 15%;
  justify-content: center;
  padding-right: 20%;
}


#flexnavbar > a {
  flex: 1;
  flex: none;
  padding: 3px 10px;
}

#flexnavbar a {
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
  margin: 0 15px; /* Adds space between navigation links */
}

#flexnavbar a:hover {
  color: var(--hover-color);
  font-weight: 600;
}

#flexnavbar a.active {
  color: var(--link-color);
  font-weight: 600;
}

/* Add Event Form*/
.wrapper {
  width: 75vw;
  margin: 50px auto;
  background-color: var(--primary-color); 
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Creating a shadow effect */
}

.wrapper h2 {
  text-align: center;
  color: white;
  padding: 15px;
  margin: 0;
}

.form-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 10px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.form-container input[type="text"], input[type="datetime-local"], textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

input[type="file"] {
  margin-bottom: 20px;
}


/* Specific Styles for Form Submit Button */
.submit-button {
  width: 100%;
  max-width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
}

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

/* Style for the main event card container */
#events-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10%;
}

/* Individual event card styles */
.event-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--primary-color); 
  padding: 15px;
  width: 400px;
  margin: 10px;
}

.event-card p{
  padding: 0%;
}

.event-card h3{
  padding: 0%;
}

/* Event header - title section */
.event-header {
  background-color: var(--primary-color); /* Purple background */
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Image placeholder in the card */
.event-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  border: 2px solid var(--primary-color);
  margin: 15px 0;
  padding: 0;
  width: 100%;
  height: 300px; /* Fixed height for the image container */
  box-sizing: border-box;
  overflow: hidden; /* Ensures that the image doesn't overflow the container */
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
}


/* Styling for the event details container */
.event-card-body {
  font-size: 14px;
  color: #333;
  padding: 0 10px;
}

/* Flexbox layout for the event details (Date, Location) */
.event-details {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.event-details p {
  margin: 0;
  font-weight: 600;
}

/* Flexbox layout for the organiser and event type */
.event-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.event-description {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}

/* Footer section styling */
.event-card-footer {
  padding: 10px;
  background-color: #f9f9f9;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 12px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

/* Slideshow Styles */
.new-slideshow-container {
  position: relative;
  max-width: 70%;
  margin: 0 auto;
  overflow: hidden; /* Hides Overflowing Content */
}

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

.new-slide-container .new-slide-container{
  margin: 0;
  padding: 0;
  position: relative;
}

.new-image-container {
  position: relative; /* Won't push other elements around or be affected by them.*/
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.new-image-container img {
  width: 100%; 
  height: 80%; 
  padding: 1%;
  object-fit: cover;
  border-radius: 10px; 
  box-sizing: border-box;
}

.new-image-container .new-text{
  position: absolute;
  width: 50%;
  background: #333333;
  color: white;
  text-align:left;
  font-weight: 600;
  bottom: 25%;
  padding-left: 0;
}

/* Text overlay styles */
.new-slide-container .text {
  position: absolute; 
  bottom: 10px; 
  left: 10px;
  color: var(--background-color);
  font-size: 18px; 
  padding: 5px;
  text-align: left;
} 

/* Caption text */
.new-text {
  position: absolute; /* Won't push other elements around or be affected by them for example the image underneath this text */
  bottom: 16px;
  left: 16px;
  color: var(--background-color);
  font-weight: 2vw;
  font-size: 15px;
  padding: 8px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.new-text h2, .new-text p{
  text-align: center;
}


.new-text h2{
  padding: 0;
  color: var(--background-color);
  font-weight: 600;
}

.new-text p{
  padding: 0;
  color: var(--background-color);
  margin-top: 5px;
  font-weight: 400;
}

/* Navigation for slideshow */
.new-prev, .new-next {
  cursor: pointer;
  position: absolute; /* Won't push other elements around or be affected by them for example the image underneath this text */
  top: 28%;
  width: auto;
  margin-top: 28px;
  padding: 16px;
  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)*/
.new-prev {
  left: 0;
}

.new-next {
  right: 0;
}

/* Black background color for navigation arrows */
.new-prev:hover, .new-next:hover {
  color: var(--text-color);
}


/* Search bar in insights and recoms page */
.top-content-recomspage{
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  height: 250px;
  padding-top: 5%;
  padding-left: 20%;
}

.top-content-recomspage .nav_buttons{
  padding-left: 1%;
  padding-top: 2%;
}

.top-content-recomspage .topnav{
  width: 100%;
}

/* Style the search box */
.top-content-recomspage .topnav input[type=text] {
  width: 70%; /* Set width to 50% */
  max-width: 1200px; /* Optional: limit max width for larger screens */
  padding: 10px;
  height: 50px;
  border: 1px solid #ccc; /* Add border for better visibility */
  border-radius: 10px; /* Rounded corners */
  margin-left: 2.5%; /* Space between input and button */
  box-sizing: border-box;
}

/* Title text on homepage*/
.top-left {
  position: absolute;
  width: 30%;
  top: 30%;
}

.top-left h1, .top-left h3{
  color: var(--background-color);
  padding-left: 15%;
  padding-bottom: 0;
  padding-top: 0;
}

.top-left h3{
  font-weight: 400;
}

.top-left h1{
  text-align: left;
}

.nav_buttons-event{
  margin: 0;
  margin-left: 15px;
  display: flex;
}

.nav_buttons-event2{
  margin: 0;
  margin-left: 15px;
  display: flex;
}

.nav_buttons-event2 h2{
  margin-left: 100px;
  /* margin-right: 950px; */
}

.nav_buttons-event2 button{
  margin-left: 960px;
}

.nav-links {
  position: fixed;
  left: -100%; /* Hide off-screen */
  top: 0;
  height: 100%;
  width: 250px;
  background-color: white;
  transition: left 0.3s ease;
  z-index: 1000;
}


/* Defining styles for devices smaller than 800px wide */
@media (max-width:750px) {
  #flexnavbar {
    flex-direction: column; /* Stack the links vertically */
    display: none; /* Hide the navbar initially */
    align-items: flex-start; 
    padding: 10px;
  }

  #flexnavbar a {
    font-size: 14px;
    padding: 8px 0;
    text-align: left;
    width: 100%;
  }

  /* Organizing different sections of layout for clear and structured layout. */
  #gridcontainer {  
    grid-template-areas:
    "header header header" /*spans across three columns. */
    "nav nav nav"
    "main main main"
    "foot foot foot";
  }

  #nav_buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  #nav_buttons button{
    flex: 1 1 auto;
    min-width: 80px;
    margin: 5px;
    font-size: 12px;
    box-sizing: border-box;
  }

  .text{
    font-size: 3vw;
    padding: 5px;
  }

  .prev .next {
    font-size: 3vw;
    padding: 12px;
  }

  .parent-container {
    display: flex;
    justify-content: center;
  }
  
  .topnav {
    align-items: center; /* Center items */
    margin-top: 5%;
  }
  
  .topnav input[type=text] {
    width: 100%;
    margin: 8px 0;
  }

  /* Make the logo and navbar items stack vertically */
  header {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: var(--background-color);
    width: 100%;
    height: 60px;
    z-index: 1000;
  }

  .logo {
    width: 15%;
    margin: 0;
    margin-right: 25%;
    margin-left: 2%;
    bottom: 10px;
  }

  #flexnavbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  #flexnavbar a {
    font-size: 14px;
    padding: 8px 0;
    text-align: left;
    width: 100%;
  }

  /* Style for buttons and inputs */
  .topnav input {
    width: 80%;
    margin: 10px auto;
  }

  .top-content-recomspage .topnav input[type=text] {
    width: 90%;
    margin: 0;
    height: 40px;
  }

  .nav_buttons {
    flex-direction: column; /* Stack buttons vertically */
  }

  .nav_buttons .navigation-button2 {
    margin-bottom: 10px;
  }

  /* Adjust image sizes for mobile */
  .slideshow-container img {
    width: 100%;
  }

  /* Adjust footer text */
  footer p {
    text-align: center;
    font-size: 14px;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: 14px;
    margin: 10px 0;
    text-align: left;
    padding: 0;
    padding-left: 6%;
  }

  .index-title h2{
    padding: 0;
    padding-left: 7%;
  }

  .events-titles h2{
    margin:0;
    margin-right: 95px;
    padding: 0;
    padding-left: 6%;
  }

  .events-slide-titles h2{
    padding: 0;
    padding-left: 5%;
    padding-bottom: 2%;
  }

  .privacy-title h1{
    font-size: 18px;
  }
  .community-titles h2{
    padding: 0;
    padding-top: 5%;
    padding-left: 10%;
  }

  .nav_buttons .navigation-button2 {
    padding: 10px 20px;
  }
  
  /* Ensure other elements align correctly */
  body, main {
    text-align: left;
  }

  .nav_buttons {
    display: none; /* Hide navigation buttons in mobile view */
  }

  .nav_buttons-event {
    display: block;
    padding: 0;
    margin: 0;
    margin: 2% 0;
  }

  .nav_buttons-event h2{
    margin: 0;
  }
  
  .navigation-button2{
    margin: 0;
    margin-left: 5%;
  }

  .navigation-button2 button{
    margin: 0;
    width: 100%;
    font-size: 12px;
  }
  
  .upcoming-title {
    margin-right: auto;
    padding-bottom: 5%;
  }

  /* Styles for smaller button text */
  .nav_buttons-event a.navigation-button2 {
    font-size: 10px;
    padding: 5px 10px;
  }

  .new-slideshow-container,
  .second-slideshow-container {
    max-width: 90%;     
  }

  .new-slideshow-container{
    padding-bottom: 10%;
  }

  .new-image-container,
  .second-image-container {
    height: auto;
    aspect-ratio: auto;
  }

  .new-slideshow-container img{
    height: 120px;
  }

  .new-image-container .new-text{
    padding: 0;
    margin: 0;
    top: 70%;
    width: 70%;
    height: fit-content;
  }

  .new-image-container h2{
    font-size: 10px;
  }

  .new-image-container p{
    display: none;
  }

  .new-text,
  .second-text {
    font-size: 14px;
    padding: 5px;
  }

  .new-prev, .new-next,
  .second-prev, .second-next {
    font-size: 10px;
  }

  .new-prev, .new-next{
    margin: 0;
  }

  .slideshow-container {
    height: 20%; /* Make the slideshow taller on mobile */
  }

  .image-container .text {
    font-size: 10px; /* Adjust the font size of the overlay text */
    padding: 0;
  }

  .wrapper {
    width: 90%;
    margin: auto;
    border-radius: 5px;
    margin-bottom: 10%;
    background-color: var(--background-color);
  }
  
  .wrapper h2 {
    font-size: 18px;
    color: var(--text-color);
  }

  .form-container {
    border-radius: 5px;
  }
  
  label {
    font-weight: 600;
    padding-top: 5%;
  }
  
  /* Specific Styles for Form Submit Button */
  .submit-button {
    padding: 5px;
    margin-top: 5%;
    border-radius: 5px;
  }

  .title-logo {
    width: 100px;
    height: 100px;
    margin: 0;
    margin-left: 40px;
    margin-top: 20%;
  }

}
