.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px; /* Desktop padding */
    background-color: #ad013d;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Logo */
.logo img {
    width: 40px;
    height: 40px; /* Adjust as needed */
}
.logo a{
  color:white;
  font-family: Comic Sans MS;
  font-style: bold;
  text-decoration: none;
}

/* Navigation Links */
.menu a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0px;
    padding: 20px;
    font-size: 1rem;
    font-weight: bold;
}

/* Hover effect for links */
.menu a:hover {
    color: #ffbfbf;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Initially hidden on larger screens */
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    z-index: 1001; /* Ensure it's above other elements */
}
.side-menu {
    display: none; /* Hides the side menu on larger screens */
    position: fixed;
    top: 0;
    right: -50%; /* Initially hidden off the right side */
    width: 50%; /* Take half the screen width */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999; /* Above other content */
}

/* Responsive Design for Navbar */

/* Tablet View */
@media (max-width: 900px) {
    .navbar {
        padding: 20px 50px; /* Reduce padding for tablets */
    }

    .menu a {
        font-size: 1rem;
    }
}

/* Mobile View */
@media (max-width: 600px) {
    .navbar {
        padding: 20px 20px; /* Adjust padding for mobile */
    }

    /* Hide the menu links and show hamburger */
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Side Menu (Initially hidden on the right) */
    .side-menu {
        display: flex;
    }

    .side-menu a {
        color: white;
        font-size: 1rem;
        margin: 15px 0;
        text-decoration: none;
        font-weight: bold;
    }

    /* When the menu is active (open), slide it in */
    .side-menu.active {
        right: 0;
    }
}

/* Main Content Styling */
.main-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Add some space below breadcrumb */
}

.content-wrapper p {
    text-align: justify;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr 300px; /* Left, main content, right sidebar */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Left */
.sidebar-left {
    background-color: #0000ff;
    height: auto;

}

/* Sidebar Right */
.sidebar-right {
    background-color: #00ff00;
    height: auto;

}

/* Responsive Design */
@media (max-width: 1040px) {
    /* Hide sidebar-left for medium screens (768px - 1039px) */
    .sidebar-left {
        display: none;
    }

    /* Adjust the layout for screens between 768px and 1039px */
    .content-wrapper {
        grid-template-columns: 1fr 300px; /* Only main content and right sidebar */
    }
}

@media (max-width: 768px) {
    /* Hide both sidebars for screens smaller than 768px */
    .sidebar-left, .sidebar-right {
        display: none;
    }

    /* Adjust the layout for small screens */
    .content-wrapper {
        grid-template-columns: 1fr; /* Only main content */
    }
}

/* Footer */
.footer {
    background-color: #ad013d;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%; /* Ensure it covers the full width of the screen */
    margin: 0; /* Remove any default margin */
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 15px;
}

.footer-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.footer-links li a:hover {
    text-decoration: underline;
    color: #ffff00;
}

.copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #ffffff;
}

/* Responsive Design for Footer */
@media (max-width: 900px) {
    .footer-links li {
        margin: 0 10px; /* Slightly reduce margin between links */
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 600px) {
    .footer-links {
        padding: 0;
    }

    .footer-links li {
        display: block; /* Stack links vertically on mobile */
        margin: 5px 0;
    }

    footer {
        padding: 10px 0;
    }

    .copyright {
        margin-top: 5px;
        font-size: 12px; /* Smaller copyright text */
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: max-content;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0px;
    border-radius: 4px;
    margin-top: 15px;
}

.dropdown-content a {
    color: #ad013d;
    text-decoration: none;
    padding: 10px 10px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ffbfbf; /* Existing background change */
    color: #504f4f; /* Existing text color change */
    border-left: 3px solid #c5396a; /* Add a left border */
    padding-left: 12px; /* Adjust padding to account for the added border */
}

/* Toggle visibility on hover */
.dropdown:hover .dropdown-content {
    display: block;
    width: auto;
}

/* Chevron animation */
.fas.fa-chevron-down {
    margin-bottom: 5px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .fas.fa-chevron-down {
    transform: rotate(180deg);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Navbar styling */

/* Padding below navbar */
.content-wrapper {
    margin-top: 80px;
}

/* Form Container */
.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffbfbf;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Button */
button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    background-color: #ad013d;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #e04b4a;
}

/* popup */
.popup {
    display: flex; /* Required for centering */
    justify-content: center; /* Horizontal alignment */
    align-items: center; /* Vertical alignment */
    position: fixed; /* Fix to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dimmed background */
    z-index: 2000; /* Ensure it's on top */
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%; /* Adjust for responsiveness */
    position: relative;
}

/* Result Message */
.result-message {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.highlight {
    font-size: 1.5em;
    font-weight: bold;
    color: #A77BCA;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    color: black;
}

/* Responsive Styling */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    button {
        font-size: 14px;
    }
}

#result {
    color: black;
    text-align: center;
}

.input-group-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px; /* Adjust spacing as needed */
}

/* input group styling */
.input-group {
    flex: 1;
    margin-right: 10px;
}

.input-group:last-child {
    margin-right: 10;
}

/* ensuring both input fields have the same width and height */
input, select {
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* adjust the line-height for better vertical alignment */
input, select {
    line-height: 20px;
}

/* designing the calculate button */
#calculate-btn {
    width: 80%;
    max-width: 300px;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    background-color: #ad013d;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
    display: block;
    margin-top: 30px;
}

 /* change colour on hover */
#calculate-btn:hover {
    background-color: #e04b4a;
}

/* Responsive width and font-size */
@media (max-width: 600px) {
    #calculate-btn {
        width: 90%;
        font-size: 14px;
    }
}

/* Broken heart styles */
.broken-heart {
    position: fixed;
    width: 40px;
    height: 40px;
    background: url('../src/broken-heart.png') no-repeat center center / contain;
    animation: fall 5s linear infinite;
    z-index: 1000;
}

/* Falling animation */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
