/* CSS to center the arrows and set their rotation origin to their centers */

#cyclist-image {
    width: 60px; /* Set the width to 50% of its original size */
    height: auto; /* Maintain the original aspect ratio */
    }
    
#circle {
position: relative;
    width: 180px; /* Set the width to 50% of its original size */
    top: -15px;
    left: -2px;
    height: auto; /* Maintain the original aspect ratio */
}


#wind-image {
    width: 45px; /* Set the width to 50% of its original size */
    height: auto; /* Maintain the original aspect ratio */
}

#windArrow,
#arrow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    height: 100%; /* Ensure it takes up the full height of its parent container */
}

#bearingArrow {
    position: absolute;
    opacity: 1;
    top: 25px;
    transform: scale(0.9); /* Scale to 90% and center horizontally */
    z-index: 1; /* Set a z-index for the bearingArrow */
}


#windArrow {
    position: absolute;
    top: -15px;
    z-index: 0; /* Set a higher z-index for the windArrow to appear above the bearingArrow */
}
    
#windArrow2 {
    position: absolute;
    top: 24px;
    transform: scale(1); /* Scale to 90% and center horizontally */
    z-index: 0; /* Set a higher z-index for the windArrow to appear above the bearingArrow */
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 1); /* The last value (0.7) controls the opacity */
    color: white; /* Text color */
    padding: 10px;
    text-align: center;
    z-index: 9999;
    }

    #accept-cookies {
    background-color: #4A89DC;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    }

.tobeat-card {
    background-color: transparent !important; 
    border: none !important; 
    border-radius: 8px !important; 
    color: #FFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; 
    }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    z-index: 998; /* Lower than the modal */
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-dialog {
    z-index: 999; /* Higher than the overlay */
    position: relative; /* Ensure it is positioned relative to the overlay */
    margin-top: 100px; /* Add margin to shift it down */
}

#legend {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line if they exceed the width */
    justify-content: center; /* Centers items horizontally in the row */
    margin-top: 10px; /* Space between chart and legend */
    font-size: 10px;
}

.legend-item {
    display: flex;
    flex-direction: column; /* Stack the color box above the label */
    align-items: center; /* Center items horizontally */
    width: 80px; /* Set a fixed width for each legend item */
    margin: 0 15px; /* Margin between legend items */
}

.color-box {
    display: inline-block;
    width: 30px; /* Width of the color box */
    height: 30px; /* Height of the color box */
    margin-bottom: 4px; /* Space between the color box and label */
}

.cookie-banner {
    position: fixed;
    bottom: 20px; /* Adjusted positioning for better spacing from the bottom */
    left: 85%;
    transform: translateX(-90%); /* Centers the banner horizontally */
    width: 90%; /* Fixed width */
    background-color: rgba(255, 255, 255); /* Slight opacity */
    color: #333; /* Text color */
    padding: 20px;
    text-align: center;
    border-radius: 12px; /* Rounded corners */
    z-index: 1000; /* Ensures it appears on top of most elements */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}



    #accept-cookies {
    background-color: #4f0ca7;
    color: white;
    border: none;
    padding: 10px 20px; /* Increased padding for a larger button */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Increased font size */
    font-weight: 600;
    cursor: pointer;
}

.cookie-link {
    color: #4A89DC; /* Link color to match the button */
    text-decoration: none; /* Remove underline */
}

.cookie-link:hover {
    text-decoration: underline; /* Add underline on hover */
    color: #3a78b8; /* Slightly darker color on hover for effect */
}

  /*Tobeat Colors*/
.bg-tobeat-0 {
    background-color: #fff; /* Adjust the rgba values and alpha as needed */
    color: #FFF !important;
  }
  
  .bg-tobeat-1 {
    background-color: #4f0ca7 !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-2 {
    background-color: #ee4730 !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-3 {
    background-color: #fb5607 !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-4 {
    background-color: #F9C80E !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-5 {
    background-color: #000 !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-6 {
    background-color: #6d4fbf !important; /* New complementary blue */
    color: #FFF !important;
  }
  
  .bg-tobeat-7 {
    background-color: #2253ff !important;
    color: #FFF !important;
  }
  
  .bg-tobeat-8 {
    background-color: #F8F8F8 !important;
    color: #f8f8f8 !important;
  }
  
  
  .bg-tobeat-9 {
    background-color: #000 !important;
    color: #FFF !important;
  }

  .bg-tobeat-10 {
    background: linear-gradient(90deg, #F8F8F8, #c6c5c5, #F8F8F8);
    color: #FFF !important;
}

.bg-tobeat-11 {
  background-color: rgba(255, 255, 255, 0.8) !important; /* 0.8 sets 80% opacity */
  color: #FFF !important;
}

  .bg-garmin-2 {
    background-color: #494848 !important;
    color: #FFF !important;
  }
  

.bg-garmin-1 {
    background-color: #007cc3 !important;
    color: #f8f8f8 !important;
  }
  
  .bg-google-1 {
    background-color: #202124 !important;
    color: #f8f8f8 !important;
  }

  .svg-container {
    height: 150px; /* Set the container's height to your desired size */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .square {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #5236a5; /* Background color (you can change this) */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .svg-container svg {
    align-self: center; /* Vertical centering within the container */
    margin: 0 auto; /* Horizontal centering within the container */
  }
  
  /* Adjust the top position of the left panel to start below the header */
.header {
  height: 60px; /* Adjust based on actual height of the header */
}

#left-panel {
  width: 200px; /* Adjust the width of the left panel */
  z-index: 1040; /* Ensure it stays on top */
  background-color: #f8f9fa; /* Light background color */
}

#left-panel a {
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  color: #484848;
  text-decoration: none;
  border: none;
  box-shadow: none; /* Removes shadow from left panel */
}

#left-panel a.active-nav {
  font-weight: bold;
  color: #4f0ca7;
}

.left-panel-logo {
  background-image: url('../images/preload-logo-dark.png'); /* Your existing logo URL */
  background-size: contain; /* Ensures the logo fits */
  background-repeat: no-repeat;
  background-position: left;
  width: 100%; /* Full width of the left panel */
  height: 28px; /* Adjust height as needed */
  margin-bottom: 30px;
}


/* Ensure the footer is always at the bottom of the page */
.footer-section {
  position: relative; /* Fixes the footer at the bottom */
  bottom: -50px; /* Anchors the footer to the bottom */
  left: 0;
  width: 100%; /* Full width */
  color: white; /* White text color */
  text-align: center; /* Centers the text */
  z-index: 1000; /* Ensures the footer is above other content */
}

.footer-section a {
  color: white; /* Ensures link is white */
  text-decoration: none; /* Removes underline from link */
}

.footer-section p {
  margin: 0px 0; /* Adjusts spacing of the text */
}
