/* Define your color variables here */
:root {
  --color-dark-grey: #333333; /* Header footer left menu star icon */
  --color-white: #ffffff;  /* menu colour title filter text */
  --color-lighter-grey: #fafafa;  /*filter menu */ /* workout display which is generated*/
  --color-darkest-grey: #01E980211786;/* border workout display*/
  --color-black: rgba(0, 0, 0, 0.2);/*dropdown shadow dropdown menu*/
  --color-transparent-grey: #ffffff1a;/* dropdown hover and cancel*/
  --color-blue: #007bff;/**/
  --color-pale-blue: #008cba;/* fancy buttons screenshot and login*/
  --color-deep-blue: #002752;/* when clicking a button for login or screenshot*/
  --color-dark-pale-blue: #007bff88;  /* register button disabled*/
  --color-grey: #888; /*header for generated workout and cancel button */
  --color-dark-ash: #252525a4;  /* hover cancel button*/
  --color-deep-dark-ash: #4c4c4c; /* background cancel button*/
    /* Notification colors */
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-info: #17a2b8;
  --color-warning: #ffc107;
}
/* Colors 
#AF04E8: Purple
#01E986: Green
#03E0C1: Turquoise
#008D91: Teal
#021178: Dark Blue
#FCFCFC: White */

/* Reset some default styles */
html,
body,
h1,
p {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* pushes footer to the bottom when the page is too small */
}

/*  */

header {
  background-color: var(--color-dark-grey);
  width: 100%;
  height: 80px;
  top: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  position: fixed;
  z-index: 100;
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}


h1 {
  color: var(--color-white);
  font-size: 24px;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* START the buttons in the header */
nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-btn {
  padding: 8px;
  cursor: pointer;
  background-color: transparent;
  color: var(--color-white);
  height: 80px;
  box-sizing: border-box;
  border-left: 1px solid var(--color-white);
  border-top: transparent;
  border-bottom: transparent;
  border-right: transparent;
}

.nav-btn:hover {
  background-color: var(--color-transparent-grey);
}

#logo {

  cursor: pointer;
}

/* END of the buttons in the header */

/* START button to dropdown from the user menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 8px var(--color-black);
  border-radius: 4px;
  min-width: 200px;
  z-index: 100;
  background-color: var(--color-dark-grey);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--color-transparent-grey);
}

/* main page */
main {
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  flex-grow: 1; /* pushes footer to the bottom when the page is too small */
}

/* footer of the page */
#footer {
  background-color: var(--color-dark-grey);
  width: 100%;
  height: auto;
  bottom: 0px;
  display: flex;
  justify-content: center; /* Centered on larger screens */
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  color: var(--color-white);
}

#footer div {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping into multiple lines */
  gap: 5px;
  font-size: 14px;
}

#footer a {
  text-decoration: none;
  color: var(--color-white); /* Set the link color */
}
/* Media Query for Mobile Devices */
@media (max-width: 600px) {
  #footer {
    justify-content: flex-start; /* Align to the start (left) */
    padding: 0; /* Remove padding on smaller screens */
  }
  #footer div {
    justify-content: center; /* Space between text and icon */
    width: 100%; /* Ensure div takes full width of the footer */
    margin: 0; /* Set margins to 0 */
  }
}

/* Style the left menu moving*/
#left-menu {
  width: 210px;
  background-color: var(--color-dark-grey);
  position: fixed;
  top: 80px;
  height: 100vh; 
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, left 0.7s ease; 
}

#left-menu.move-up {
  transform: translateY(-80px); 
  bottom: 0px;
}

.menu-closed {
  left: -190px;
}

.menu-open {
  left: 0;
}

#toggle-menu {
  position: absolute;
  left: 195px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-white);
}

/* Style the menu items */
#left-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 35px;
}

#left-menu li {
  padding: 10px;
  text-align: right;
  margin-right: 10px;
}

#left-menu a {
  color: var(--color-white);
  text-decoration: none;
}

/* NOT MOVING MENU */
.static-menu {
  left: 0 !important;
}

.hide-toggle {
  display: none !important;
}

/*END Style the left menu moving*/

/* START filters on the page */
#filters {
  padding: 10px;
  border: 1px solid var(--color-darkest-grey);
  border-radius: 5px;
  background-color: var(--color-lighter-grey);
}

#filters h3 {
  margin-bottom: 15px;
  color: var(--color-dark-grey);
  font-size: 18px;
}

#filters div {
  margin-bottom: 10px;
}

#filters label {
  font-size: 14px;
  color: var(--color-dark-grey);
}

#applied-filters div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  margin: 2px;
  border: 1px solid var(--color-dark-grey);
  border-radius: 5px;
  font-size: 12px;
}

.remove-tag {
  cursor: pointer;
  color: var(--color-dark-grey);
}

.remove-tag:hover {
  color: red;
}

#type-filter,
#level-filter,
#duration-filter {
  min-height: 50px;
}

/* END filters on the page */

/* Center the main content */
#content {
  padding-top: 80px; 
  padding-left: 5px; 
  padding-right: 0px; 
  transition: margin-left 0.3s ease-in-out;
}

.content-with-menu {
 margin-left: 150px; 
 
}

/* START of the response workouts */

#workout-display {
  padding: 20px;
  transition: margin-left 0.5s ease-in-out;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--color-darkest-grey);
  border-radius: 10px;
  background-color: var(--color-lighter-grey);
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 10;
  overflow: hidden;  /* prevents image from overflowing if it's bigger than its container */
}

#workout-display h2,
h3 {
  color: var(--color-grey);
}

#workout-display ul {
  padding-left: 20px;
}

#workout-display ul li {
  line-height: 1.5;
}

#workout-display p {
  line-height: 1.5;
  color: var(--color-dark-grey);
}

/* waiting gif image */
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;  /* makes sure the div spans the entire width of its container */
  height: auto; /* maintains the original height of the image */
}

.center-content img {
  max-width: 100%;  /* makes the image responsive */
  height: auto;  /* maintains the aspect ratio of the image */
}


/* END of the response workouts */

/* START of favorite icon */
#favorite-icon {
  color: var(--color-dark-grey); /* Make the star icon grey by default */
  cursor: pointer; /* Make the cursor a pointer when hovering over the star icon */
  position: absolute; /* Absolutely position the star icon relative to #workout-display */
  top: 10px; /* Adjust as needed */
  right: 10px; /* Adjust as needed */
  font-size: 24px; /* Adjust as needed */
  padding: 2px; /* Add some space between the star and the border */
}

#favorite-icon.fas {
  color: var(--color-dark-grey); /* Make the star icon yellow when it's a favorite */
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* END of favorite icon */

#delete-icon {
  color: var(--color-dark-grey); /* Color of the trash icon */
  cursor: pointer; /* Cursor as a pointer */
  position: absolute; /* Absolutely positioned */
  top: 10px; /* Vertically aligned with the favorite icon */
  right: 40px; /* Horizontally adjusted - this will place it to the left of the favorite icon */
  font-size: 24px; /* Size of the icon */
  padding: 2px; /* Padding around the icon */
}


/* START test styles of index html show more button */

#more-content {
  position: relative;
  overflow: hidden;
  transition: max-height 1s ease-in-out;
  max-height: 800px; /* This should be larger than the actual height of the content */
}

#more-content.collapsed {
  max-height: 205px; /* Set the collapsed height */
}

#more-content.collapsed::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, white, transparent);
}

#toggle-button {
  display: block;
  text-align: center;
  margin: 10px auto;
}

/* END test styles of index html show more button */

/* Services section styles of index html */
#services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  text-align: center;
}

.service-block {
  background-color: var(--color-white);
  border-radius: 5px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
  width: 250px;
  margin: 0.5rem;
}

.service-block img {
  max-width: 100%;
  height: auto;
}

.service-block h3 {
  margin-top: 1rem;
}

.service-block:hover {
  transform: translateY(-5px);
}

.service-block-index {
  background-color: var(--color-white);
  border-radius: 0px;
  padding: 9px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
  min-width: 119px; /* Set a minimum width */
  width: 250px;
  margin: 5px;
}

.service-block-index img {
  max-width: 100%;
  height: auto;
}

.service-block-index h3 {
  margin-top: 1rem;
}

.service-block-index:hover {
  transform: translateY(-5px);
}



/* CSS media query for smaller screens */
@media only screen and (max-width: 600px) {
  .service-block-index {
    width: 20%; /* Adjust the width of the block */
  
  }

  .service-block-index img {
    width: 100%; /* Adjust the width of the image */
  
  }

  .service-block-index h3 {
    font-size: 0.8rem; /* Adjust the font size of the h3 elements */
    padding: auto;
  }
}

/* END Services section styles of index html */

/* START of buttons on my HTML */

.fancy-button {
  background-color: var(--color-pale-blue);
  border: none;
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 50px;
  margin-top: 15px;
  margin-bottom: 15px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); */
}

.fancy-button:hover {
  background-color: var(--color-dark-pale-blue);
  color: var(--color-white);
  box-shadow: 0 6px 8px var(--color-black);
}

.fancy-button:disabled {
  background-color: var(--color-dark-pale-blue); /* grayed out when disabled */
  color: var(--color-grey); /* gray text when disabled */
}

.fancy-button:not(:disabled):active {
  background-color: var(--color-deep-blue); /* even darker shade when clicked */
}

.same-size-button {
  width: 100px; /* Adjust the width as needed */
}


/* START of the read more read less button */
.fancy-button-transparent {
  background-color: transparent;
  border: none;
  color: var(--color-pale-blue);
  text-align: left;
  text-decoration: none; 
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
   padding: 10px 24px; 
  border-radius: 50px;
  position: relative;
  overflow: hidden;

}

.fancy-button-transparent:hover {
  color: var(--color-pale-blue);
 } 

.fancy-button-transparent:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-pale-blue);
  transition: width .3s;
}

.fancy-button-transparent:hover:after, .fancy-button-transparent:active:after {
  width: 100%;
}
/* /*  */
.fancy-button-transparent:disabled {
  color: var(--color-grey); /* gray text when disabled */
}

.fancy-button-transparent:not(:disabled):active, .fancy-button-transparent:hover {
  color: var(--color-pale-blue); 
} 

/* END of the read more read less button */

/* CANCEL BUTTON */

.cancel-button {
  background-color: var(--color-grey);
  border: none;
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 50px;
}

.cancel-button:hover {
  background-color: var(--color-dark-ash); /* darker shade when hovered */
}

.cancel-button:active {
  background-color: var(--color-deep-dark-ash); /* even darker shade when clicked */
}


/* START of login  */

#outer-login {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  flex-grow: 1;
  color: var(--color-dark-grey);
  /* margin-top: 100px; */
  /* Add this line */
}

#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

#login-form {
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  margin-right: auto;
  margin-left: auto;
  ;
  /* padding-right: 10%; */
  background-color: var(--color-white);

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#login-form .form-group {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 40px;
  
}

#login-form .form-control {
  width: 100%;
}

#login-form .btn {
  width: 100%;
  margin-bottom: 10px;
}

#login-form .btn-block + .btn-block {
  margin-top: 10px;
}

/* END of login */

/* START of logout message */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* END of logout message */

/* input fields login and register */
.modern-input {
  padding: 10px;
  font-size: 1em;
  border: 2px solid var(--color-darkest-grey);
  border-radius: 5px; /* Rounded corners */
  outline: none;
  transition: border-color 0.3s ease; /* For a smooth color transition */
}

.modern-input:focus {
  border-color: var(--color-blue); /* Darker border color when input is focused */
}


/* START modern look for generation workout */
.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-darkest-grey);
}

.modern-input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  box-shadow: 0px 2px 6px 0px var(--color-black);
}

.modern-checkbox {
  width: 20px;
  height: 20px;
}

/* END modern look for generation workout */

/* Base Notification CSS */
.notification {
  border-radius: 10px;
  padding: 10px;

  margin-bottom: 40px;
  color: var(--color-white);
  border: 1px solid var(--color-darkest-grey);
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  position: relative;
  box-sizing: border-box;
  text-align: center;

}

/* Success notification */
.notification.success {
  background-color: var(--color-success);
}

/* Error notification */
.notification.error {
  background-color: var(--color-error);
}

/* Info notification */
.notification.info {
  background-color: var(--color-info);
}

/* Warning notification */
.notification.warning {
  background-color: var(--color-warning);
}

.notification h2,
.notification h3 {
  color: var(--color-grey);
}

.notification p {
  line-height: 1.5;
  color: var(--color-dark-grey);
}

#scrollToTop {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 30px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--color-pale-blue); /* Set a background color */
  color: var(--color-white); /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#scrollToTop:hover {
  background-color: var(--color-deep-dark-ash); /* Add a dark-grey background on hover */
}


#successMessage {
  display: none;
  /* other styles */
}
#errorMessage {
  display: none;
  /* other styles */
}

#recaptcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height:  You can set this value depending on how much space you want for the reCAPTCHA */ 
}
