/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default font size for larger screens */
html {
    font-size: 16px; /* 1rem = 16px */
  }
  
  /* Scale down fonts for smaller screens */
  @media (max-width: 768px) {
    html {
      font-size: 14px; /* 1rem = 14px */
    }
  }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(3 0 20 / var(--tw-bg-opacity));
    color: #343a40;
    line-height: 1.6;
    height: 100%;
}

.main-ad {
    max-height: 250px;
    justify-content: center; /* Horizontally centers the content */
    align-items: center; /* Vertically centers the content */
    text-align: center;
}

.bottom-ad {
    position: fixed;
    max-height: 100px;
    padding: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center; /* Center the responsive banner */
    align-items: center;
    overflow: hidden;        /* Keep the bar tidy if the ad reports tall */
}

/* The ad unit spans the full width of the bottom bar on all screen sizes. */
.bottom-ad #bottom-ad {
    display: block;
    width: 100%;
}

.bottom-buffer {
    height: 20px;
}

/* Adjust the default navbar toggler icon to our custom styles */
.navbar-toggler {
    border: none;
}

/* Styles for the toggler icon */
.navbar-toggler-icon {
    width: 30px;
    height: 30px;
    background: none;
    transition: all 0.3s ease; /* Transition for smooth effect */
}

/* Transform properties for animation */
.navbar-toggler.collapsed .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-width='2' d='M5 7l20 20M5 27L25 7'/%3E%3C/svg%3E"); /* X icon */
    transform: rotate(180deg); /* Rotate for effect */
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-width='2' d='M5 7h20M5 15h20M5 23h20'/%3E%3C/svg%3E"); /* Hamburger icon */
    transform: rotate(0deg); /* Reset rotation */
}

/* Optional: Add animation on the transform */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transition: all 0.3s ease;
}


.main-content{
    position: relative;
    top: 0px;
}


/* Header styles */
header {
    padding-bottom: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

header#company-info,
header#person-info {
    top: 5rem; /* Adjust as needed */
    background: linear-gradient(135deg, #007bff, #6610f2);
}

/* Card styles */
.card {
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
}
.person-card {
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.person-card h1{
    color: #333;
}

.company-card{
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.company-card h1 {
    color: #333;
}

.overall-rating-label {
    display: block;
    text-align: center;
    font-size: 1.25rem; /* Adjust as needed */
}

.company-card p, .person-card p {
    color: #555;
}

.row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.row p {

    color: #333;
}

/* Stat card styles */
.stat-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s;
    margin: 2px;
    color: white;
}

.stat-card h5 {
    color: white;
}

.stat-card p{
    color: white;
}

/* Gradient backgrounds for stat cards */
.bg-purple { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.bg-red { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.bg-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.bg-orange { background: linear-gradient(135deg, #ff8008, #ffc837); }
.bg-teal { background: linear-gradient(135deg, #1de9b6, #1dc4e9); }
.bg-green { background: linear-gradient(135deg, #00b09b, #96c93d); }
.bg-pink { background: linear-gradient(135deg, #ff758c, #ff7eb3); }
.bg-yellow { background: linear-gradient(135deg, #f7971e, #ffd200); }
.bg-cyan { background: linear-gradient(135deg, #00f260, #0575e6); }
.bg-indigo { background: linear-gradient(135deg, #3a1c71, #d76d77); }
.bg-lime { background: linear-gradient(135deg, #a1ffce, #faffd1); }
.bg-sunset { background: linear-gradient(135deg, #ee9ca7, #ffdde1); }
.bg-navy { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.bg-burgundy { background: linear-gradient(135deg, #5614b0, #dbd65c); }
.bg-gray {background: linear-gradient(0deg, #000, #aaaaaa); }

h5 {
    margin: 0;
}

p {
    margin: 5px 0 0;
}

/* Overall rating card styles */
.overall-rating-card, .person-rating-num {
    min-width: 80px; 
    height: 80%; 
    padding: 0.5rem 1rem; 
    border-radius: 0.3rem;
    text-align: center;
    display: flex;                
    justify-content: center;      
    align-items: center;          
    color: white;
}

/* Form styles */
.form-range {
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #ddd;
}

.form-range::-webkit-slider-thumb,
.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
}

.rating {
    direction: rtl;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
}

.rating label:hover,
.rating label:hover ~ label {
    color: #f39c12;
}

.rating input:checked ~ label {
    color: #f39c12;
}

/* Additional styles */
.modal-content {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.form-label {
    font-weight: 600;
}

.form-text {
    font-size: 0.9rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.slider-labels div {
    flex: 1;
    text-align: center;
}

.slider input {
    display: none;
}

.slider label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ffc107;
}

legend {
    font-size: 1rem;
    font-weight: 500;
}

/* Custom checkbox styles */
.custom-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: left;
    margin-top: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, transform 0.2s;
    border: 2px solid transparent;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.custom-checkbox:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.custom-checkbox input[type="checkbox"]:checked + span {
    color: #fff;
    font-weight: bold;
}

.custom-checkbox input[type="checkbox"]:checked + span::before {
    content: "\2713 ";
    margin-right: 5px;
}

.custom-checkbox input[type="checkbox"]:checked + span {
    background-color: #007bff;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#backToTop {
    position: fixed;
    bottom: 80px;
    right: 10px;
    display: none; /* Hidden by default */
    z-index: 1000; /* Sit on top */
}

.btn-outline-purple {
    color: #6a0dad; /* Purple text */
    border-color: #6a0dad; /* Purple border */
}

.btn-outline-purple:hover {
    background-color: #6a0dad; /* Purple background on hover */
    color: #fff; /* White text on hover */
}

.text-purple {
    color: #b925f4;
}

.tab-wrap {
    transition: 0.3s box-shadow ease;
    border-radius: 6px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    list-style: none;
    background-color: #fff;
    margin: 40px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  }
  .tab-wrap:hover {
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
  }
  
  .tab {
    display: none;
  }
  .tab:checked:nth-of-type(1) ~ .tab__content:nth-of-type(1) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
  }
  .tab:checked:nth-of-type(2) ~ .tab__content:nth-of-type(2) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
  }
  .tab:checked:nth-of-type(3) ~ .tab__content:nth-of-type(3) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
  }
  .tab:checked:nth-of-type(4) ~ .tab__content:nth-of-type(4) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
  }
  .tab:checked:nth-of-type(5) ~ .tab__content:nth-of-type(5) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
  }
  .tab:first-of-type:not(:last-of-type) + label {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .tab:not(:first-of-type):not(:last-of-type) + label {
    border-radius: 0;
  }
  .tab:last-of-type:not(:first-of-type) + label {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .tab:checked + label {
    background-color: #fff;
    box-shadow: 0 -1px 0 #fff inset;
    cursor: default;
  }
  .tab:checked + label:hover {
    box-shadow: 0 -1px 0 #fff inset;
    background-color: #fff;
  }
  .tab + label {
    box-shadow: 0 -1px 0 #eee inset;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
    flex-grow: 3;
    text-align: center;
    background-color: #f2f2f2;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    text-align: center;
    transition: 0.3s background-color ease, 0.3s box-shadow ease;
    height: 50px;
    box-sizing: border-box;
    padding: 15px;
  }
  .tab + label:hover {
    background-color: #f9f9f9;
    box-shadow: 0 1px 0 #f4f4f4 inset;
  }
  .tab__content {
    padding: 10px 25px;
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: -1;
    opacity: 0;
    left: 0;
    transform: translateY(-3px);
    border-radius: 6px;
  }

  .thick-purple {
    border: 2px solid #000; /* Adjust thickness and color */
    border-radius: 0px;      /* Optional: Adds a slight curve to the line */
  }

  .resume-bullets {
    width: 100%; /* Full width */
    height: auto; /* Adjust height dynamically */
    padding: 10px; /* Add padding inside the code block */
    padding-top: 30px;
    text-align: left; /* Align text to the left */
    align-items: start;
    white-space: none; /* Preserve line breaks and spacing */
    overflow: auto; /* Add scrollbars if content exceeds height */
    background-color: #f5f5f5; /* Light gray background for code block style */
    color: #333; /* Darker text color for readability */
    border: 1px solid #ddd; /* Border to separate the block */
    border-radius: 4px; /* Slightly rounded corners */
    transition: border-color 0.3s ease; /* Smooth transition for border color */
  }
  .copy-button {
    font-size: 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
  }

.job-company {
    text-align: center;
}

.job-location {
    display: flex;
    flex-direction: column; /* Stack location text and arrows on separate rows */
    align-items: stretch; /* Allow arrows to align fully to their respective sides */
}

.current-location {
    font-weight: bold;
    margin-bottom: 10px; /* Add space between the location text and arrows */
    text-align: center; /* Center the location text */
}

.job-location .arrows {
    display: flex;
    
    justify-content: space-between; /* Align left and right arrows to opposite ends */
    width: 100%;
}

.job-location button {
    display: none; /* Hide arrows by default */
}

.job-location.multiple-locations button {
    display: inline-block; /* Show arrows when there are multiple locations */
    padding: 5px 10px; /* Add padding for better clickability */
    margin-top: 5px;
}


.job-location button:focus {
    outline: none; /* Remove focus outline for a cleaner look */
}


/* Optional: Adjust the alert's position */
#browserAlert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Above most Bootstrap components */
    border-radius: 0;
  }

/* For Chrome, Edge, and Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.choices {
    width: 100%;
    height: 40px;
    padding-bottom: 5px;

    vertical-align: middle;
    background: none;
    border: 1px solid #ccc; /* Optional: Add a border */
    border-radius: 0.5rem; /* Match border radius */
    background-color: white; /* Ensure background color is consistent */



}
