/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #ffffff;
    color: #333;
    font-size: 1rem;
}

html, body {
    height: 100%;
}

.main {
    flex: 1; /* This makes the .main div take up the remaining space */
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1rem;
    background-color: #ffffff;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 2rem;
}

.resume-scanner {
    font-size: 1.3rem;
    color: #333;
}

/* Centering the navbar items */
.navbar {
    display: flex;
    gap: 3rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 0.2rem solid transparent;
}

.navbar a:hover {
    color: #636AE8;
    border-bottom: 0.13rem solid #636AE8;
}

/* Main Container */
.main-container {
    background-color: #f7f8fa;
    padding: 2rem;
    margin: .2rem auto;
    width: 100%;
    max-width: 100%;
    min-height: 100px; /* Set a minimum height */
    border-radius: 8px;
    text-align: center; /* Center align text within the container */
}

/* Headline Styling */
.headline {
    font-size: 2rem;
    color: #636AE8;
    margin-bottom: 1rem; /* Updated spacing */

}

/* Content Container Styling (Text and Image Side-by-Side) */
.content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    /* text-align: left; */
    padding: 0 5%;
    max-width: 1300px; /* Set maximum width */
    margin: 0 auto; /* Center horizontally */
}



/* Content (Paragraph) Styling */
.content {
    flex: 1;
    padding: 2% 5%; /* Adds space inside the content area */
}

.description {
    font-size: 1rem;
    color: #333;
    line-height: 2.2;
    text-align: left; /* Center align text in the description */
    
}

/* Image Container Styling */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container_coverletter{
    flex: 1;
    display: flex;
    justify-content: center;

}

.side-image {
    max-width: 100%;
    height: auto;
    width: 400px;
    border-radius: 8px;
}

/* Evaluation Text Styling */


.evaluation-text {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 7%; /* Optional padding for spacing inside */
    max-width: 1300px; /* Set maximum width */
    margin: 0 auto; /* Center horizontally */
}


/* Upload Instructions */
.upload-instructions {
    text-align: center; /* Center the text */
    font-size: 0.9rem;  /* Set a larger font size for emphasis */
    margin-top: 2rem;   /* Space above the text */
    padding: 0 7%;  /* Padding for left and right */
}

/* Upload Section */
.upload-section {
    display: flex;            /* Use flexbox for alignment */
    align-items: center;     /* Center items vertically */
    justify-content: center;  /* Center items horizontally */
    margin-top: 1rem;       /* Space above the section */
    padding: 0 8.5rem;      /* Padding for left and right */
}

/* Upload Text Styling */
.upload-text {
    font-size: 0.8rem;        /* Font size for the upload text */
    color: #333;            /* Color for the text */
    margin-right: 1rem;     /* Space between text and button */
}

/* Upload Button Styling */
.upload-button {
    padding: 0.3rem 2rem;            /* Padding for the upload button */
    font-size: 0.6rem;                /* Font size for the button */
    cursor: pointer;                  /* Pointer cursor on hover */
    border: 1px solid #636AE8;       /* Border color */
    border-radius: 4px;              /* Rounded corners */
    background-color: #636ae8;       /* Background color for the button */
    color: white;                     /* Text color for the button */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

.upload-button:hover {
    background-color: #4f5bc0;       /* Darker shade on hover */
}

/* Input Group Styling */
.input-group {
    margin-top: 20px;
    width: 100%; /* Ensures input group fills the container */
    display: flex;
    flex-direction: column;
    align-items: center;
    Padding: 0 7%;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group textarea {
    width: 100%; /* Set width to 100% to fill the container */
    max-width: 850px; /* Optional: maximum width for larger screens */
    height: 150px; /* Set default height to 150px */
    padding: 10px; /* Padding for the textarea */
    border: 1px solid #a7abfc; ; /* Light gray border */
    border-radius: 5px; /* Slightly rounded corners */
    margin-bottom: 15px; /* Spacing between textarea fields */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    resize: vertical; /* Allow vertical resizing only */
}

/* Compare Section */
.compare-section {
    text-align: center; /* Center align the button */
}

/* Compare Button Styling */
.compare-button {
    padding: 0.3rem 2rem;            /* Padding for the compare button */
    font-size: 0.8rem;                /* Font size for the button */
    cursor: pointer;                  /* Pointer cursor on hover */
    border: 1px solid #636AE8;       /* Border color */
    border-radius: 4px;              /* Rounded corners */
    background-color: #636AE8;       /* Background color for the button */
    color: white;                     /* Text color for the button */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

.compare-button:hover {
    background-color: #4f5bc0;       /* Darker shade on hover */
}

/*Cover letter - main page */

.btn {
    background-color: #FF9034; /* Button color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 0; /* Remove padding to control size with width and height */
    font-size: 10px; /* Adjusted font size */
    cursor: pointer; /* Cursor changes to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
    width: 400px; /* Set width */
    height: 25px; /* Set height */
    display: block; /* Change to block to center align */
    margin: 20px auto; /* Center the button */
}

.btn:hover {
    background-color: #e6822b; /* Darker shade on hover */
}

/* Results Styling */
/* Outer wrapper to provide padding outside of box shadow */
.results-wrapper {
    padding: 1rem 5%;                 /* Adds 5% padding outside the .results box */
    display: flex;
    justify-content: center;      /* Centers the inner .results box */
   
}

/* Inner results box with box shadow and other styles */
.results {
    background: white;          /* Light gray background */
    border-radius: 4px;           /* Rounded corners */
    box-shadow: 0 0 2px #636AE8;  /* Subtle shadow */
    font-size: 14px;              /* Font size for results */
    max-width: 850px;             /* Maximum width for results box */
    width: 100%;                  /* Ensures it doesn't exceed max-width */
    padding: 1.5% 5%;               /* Padding inside the results box */
    box-sizing: border-box;       /* Ensures padding doesn’t affect width */
    text-align: center;
    
}


/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column; /* Stack items on smaller screens */
        align-items: center; /* Center items */
    }

}


/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #636AE8;
}

/* Mobile Navigation Styling */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center; /* Center items horizontally */
    }
    
    .navbar.active {
        display: flex; /* Show when active */
    }

    /* Show mobile menu button on smaller screens */
    .mobile-menu-button {
        display: inline;
    }

    
}



/* Footer Styling */
.footer {
    background-color: #000; /* Black background color */
    color: #fff; /* White text color */
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}




/* Blog Page Styles */
.blog-page-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background-color: #f7f8fa; /* Soft background for readability */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.blog-page-container_sub {
    max-width: 850px;
    width: 100%;
    text-align: left;
}

.blog-page-container h1{
   font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;

}


.blog-page-container h2 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.blog-page-container p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.blog-page-container ul {
    padding-left: 1.5rem;
    list-style: disc;
    color: #333;
}

.blog-page-container li {
    margin-bottom: 0.5rem;
}

.blog-page-container .subsection-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 2rem;
    color: #444;
}

/*cover letter CSS*/

.coverletter_generator-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 7%; /* Optional padding for spacing inside */
    max-width: 1300px; /* Set maximum width */
    margin: 0 auto; /* Center horizontally */
    font-weight: bold;
}


.image-container_coverletter{
    flex: 1;
    display: flex;
    justify-content: center;

}


/* Compare Section */
.coverletter-section {
    text-align: center; /* Center align the button */
}

/* Compare Button Styling */
.coverletter-button {
    padding: 0.5rem 2rem;            /* Padding for the compare button */
    font-size: 0.8rem;                /* Font size for the button */
    cursor: pointer;                  /* Pointer cursor on hover */
    border: 1px solid #636AE8;       /* Border color */
    border-radius: 4px;              /* Rounded corners */
    background-color: #636AE8;       /* Background color for the button */
    color: white;                     /* Text color for the button */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

.coverletter-button:hover {
    background-color: #4f5bc0;       /* Darker shade on hover */
}


.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Styling for individual sections */
.company-name-section,
.job-title-section {
    text-align: center;
    
}

.company-name-section label,
.job-title-section label {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    
}

.company-name-section input,
.job-title-section input {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    border: 1px solid #a7abfc; 
    border-radius: 4px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop view: Align name and job title side-by-side */
@media (min-width: 768px) {
    .input-container {
        flex-direction: row;
        justify-content: center;
        gap: 2rem; /* Space between the inputs */
    }

    .company-name-section,
    .job-title-section {
        flex: 1; /* Allows both sections to take up equal space */
        max-width: 300px; /* Optional max-width for each input section */
    }
}




/* about Page Styles */
.about-page-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background-color: #f7f8fa; /* Soft background for readability */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.about-page-container_sub {
    max-width: 850px;
    width: 100%;
    text-align: center;
}

.about-page-container h1{
   font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;

}


.about-page-container h2 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.about-page-container p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-page-container ul {
    padding-left: 1.5rem;
    list-style: disc;
    color: #333;
}

.about-page-container li {
    margin-bottom: 0.5rem;
}

.about-page-container .subsection-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 2rem;
    color: #444;
}


.large-image {
    max-width: 850px;   /* Ensures the image won't be wider than 850px */
    width: 100%;        /* Ensures the image scales down responsively */
    height: auto;       /* Maintains the aspect ratio */
}



/* Cookies Notification Popup */
.cookies-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 250px;
    background-color: rgba(42, 41, 41, 0.8); /* Dark background */
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(95, 94, 94, 0.3);
    font-size: 12px; /* Small font */
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookies-popup h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.cookies-popup p {
    margin: 0 0 10px 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: white;
}


.btn-cookie {
    background-color: #636AE8;;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
}

.btn-cookie:hover {
    background-color: #4f5bc0; ;
}

.summary-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.percentage-bar {
    background-color: #4caf50; /* Green color for percentage */
    height: 1.25rem; /* Height of the bar (20px) */
    position: relative; /* For positioning text inside */
    width: 0%; /* Default width (this will be updated dynamically) */
    display: flex; /* Use flexbox to vertically center the text */
    justify-content: center; /* Horizontally center the text */
    align-items: center; /* Vertically center the text */
}

.percentage-container {
    background-color: #e0e0e0; /* Background for percentage bar */
    border-radius: 0.3125rem; /* Rounded corners (5px) */
    overflow: hidden; /* Hide overflow */
    width: 100%; /* Full width */
    margin-bottom: 0.625rem; /* Space below percentage container (10px) */
}

.percentage-text {
    position: absolute; /* Absolute positioning inside the bar */
    top: 50%; /* Position from the top */
    left: 50%; /* Position from the left */
    transform: translate(-50%, -50%); /* Center the text both horizontally and vertically */
    color: black; /* Text color */
    font-weight: bold; /* Bold text */
    font-size: 0.75rem; /* Font size for the text (12px) */
}


/* testing the resul area with CSS*/

.divider {
    border: 0;
    height: 1px;
    background-color: #adb5bd;
    margin: 10px 0;
}

/* Icon on result */

.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.success {
    background: #e6f4ea;
    color: #1e8e3e;
}


.error {
    background: #fce8e6;
    color: #d93025;
}
