:root {
    --pureWhite: rgba(255, 255, 255, 0.98);
    --gopRed: #e9141d;
    --lightBackground: #ffece9;
    --shadeVariation: #130000;
    --shadeVariatio2: #ffd9d3;
    --shadeVariation3: #fc8a7d;
    --shadeVariation4: #ff545f;
    --flagBlue: #002147;
    --tintVariation: #ec242d;
    --textPrimary: #030000;
    --textSecondary: #ffece9;

    /* Carousel frosted Background */
    --carouselFWO: rgba(255, 255, 2555, 0.3);

}

html, body {
    font-family: Libre franklin;
    color: var(--textPrimary);
    scroll-behavior: smooth;
    background: rgba(245, 245, 245, 1);
}

body {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin-block-start: 0;
    margin-block-end: 0;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
    color: inherit !important;
}

#navBar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--pureWhite);
    opacity: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

#navMenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

#menuToggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#navBar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

#navBar img {
    height: 40px;
    width: auto;
    margin-left: 20px;
    padding: 2px;
    align-items: center;
}

#navBar li:first-child {
    margin-left: auto;
}

#navBar li {
    margin-left: 20px;
    padding: 10px 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;;
}

#navBar li a {
    font-family: Libre Franklin;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--textPrimary);
}

@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    #navMenu {
        width: 100vw; /* Full viewport width */
    }

    #navMenu li {
        width: 100%; /* Full width of the viewport */
        padding: 0;
        margin: 0;
    }

    #navMenu li a {
        display: block; /* Makes the anchor element a block element */
        width: 100%; /* Full width of the parent list item */
        padding: 2rem; /* Adjust padding as desired */
        text-align: center;
        font-size: 18px;
        cursor: pointer;
    }

    #navMenu li a:hover {
        background: var(--shadeVariation4);
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    /* Basic styling for the menu container */
    #menuToggle {
        display: flex;
        align-items: center; /* Center vertically */
        cursor: pointer; /* Change cursor to a pointer when hovering */
    }

    /* Styling for the hamburger icon */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px; /* Width of the hamburger icon */
        height: 30px; /* Height of the hamburger icon */
        margin-right: 10px; /* Space between the icon and the text */
    }

    /* Styling for the bars */
    .hamburger-icon span {
        width: 100%;
        height: 2px; /* Thickness of each bar */
        background: var(--textPrimary); /* Color of the bars */
        border-radius: 2px; /* Optional: rounded edges */
        transition: all 0.3s; /* Smooth transition for animations */
    }

    /* Styling for the MENU text */
    .menu-text {
        font-family: Libre Franklin;
        font-size: 13.5px;
        font-style: normal;
        font-weight: 600;
        line-height: 115%;
        letter-spacing: 1px;
        text-decoration: none;
        color: var(--textPrimary);
        margin-right: 5px;
    }

    .menu-text:hover {
        font-size: 14px;
    }

    /* Animation for the active state */
    #menuToggle.active .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translateY(3px);
        position: relative;
        top: 8px;
    }

    #menuToggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0; /* Hide the middle bar */
    }

    #menuToggle.active .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translateY(-3px);
        position: relative;
        top: -8px;
    }

    #navMenu {
        position: absolute;
        top: 50px; /* Place below the fixed nav bar */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--lightBackground);
        flex-direction: column;
        transition: max-height 0.3s ease-in-out;
    }

    #navMenu.active {
        max-height: 75vh; /* Adjust as needed */
        opacity: 90% !important;
        overflow: visible;
    }

    #navMenu li {
        width: 100%;
        text-align: right !important;
        border-bottom: 1px solid var(--textPrimary);
    }

    #navBar li:first-child {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .fuckYou {
        height: 20vh;
        font-size: 40px !important;
        background-size: cover, auto 400% !important;
        background-position: right top, right -100px top -50px !important;
    }
}


footer {
    height: auto;
    background-color: rgba(39, 39, 39, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: var(--textSecondary);
    padding: 1rem;
}

.footerBreak {
    width: calc(100% - 75%);
    height: 1px;
    border-radius: 100%;
    background-color: white;
}

.footer-links, .socials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto; 
    margin-bottom: 0;
}
.footerLinks  {
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-family: Libre Franklin;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}
.footer-links a {
    font-family: Libre Franklin;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.social-media span {
    display: none;
}

.social-media a {
    margin: 0 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; 
    list-style: none; 
    margin: 1rem auto;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links a, .social-media a, .x-link {
    color: var(--textSecondary);
    text-decoration: none;
}

.footer-links a:hover, .social-media a:hover {
    color: var(--textPrimary);
}

.copyright {
    text-align: center;
    margin-top: 1rem;
    height: auto;
}

.copyright p {
    font-family: Libre Franklin;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    letter-spacing: 1px;
}

.fuckYou {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    height: 15vh;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px white;
    text-transform: uppercase;

    background-image: 
        linear-gradient(to right, rgba(0, 33, 71, 1), rgba(0, 33, 71, 1) 75%, rgba(0, 33, 71, 0.9) 85%, rgba(0, 33, 71, 0) 100%), 
        url('./../assets/Untitled.PNG');
    background-size: cover, auto 250%;
    background-position: right, calc(100% + 100px) top; 
    background-repeat: no-repeat;
    border-bottom-left-radius: 100px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block;
    margin: 0; /* Overrides any unwanted spacing */
}

.government-type {
    font-size: 16px;
    margin: 1rem;
}

.government-type h1 {
    font-feature-settings: "clig" off, "liga" off;
    font-family: Libre Franklin;
    font-size: 24px;
    line-height: 115%;
    font-weight: 400;
    text-decoration: none;
}

.gov-break1 {
    width: calc(100% - 65%);
    height: 1px;
    border-radius: 100%;
    background-color: var(--textPrimary);
    margin: .5rem auto;
}

.government-type h1 {
    font-size: 28px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.gov-break2 {
    width: calc(100% - 60%);
    height: 1px;
    border-radius: 100%;
    background-color: var(--textPrimary);
    margin: .5rem auto;
}

.candidate-card {
    background: var(--pureWhite);
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%; 
    margin: 0;
    padding: 0;
    padding-bottom: 1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
}

.candidate-card:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.candidate-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.candidate-img {
    width: 100%; /* Takes full width of the card */
    max-height: 200px; /* Set consistent max height */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.candidate-img-top {
    object-position: top;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.candidate-img-middle {
    object-position: center;
    object-fit: cover;
    height: 100%;
    width: 100%;
}


.candidate-info {
    width: 100%; /* Ensures text fits within card width */
    text-align: center;
    flex-grow: 1;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.candidate-info a {
    text-decoration: none;
    color: inherit;
}

.candidate-info p {
    font-size: 14px;
    line-height: 1.5;
}

.email {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-family: Libre Franklin;
    line-height: 125%;
    font-weight: 400;
    letter-spacing: .25px;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--tintVariation), var(--shadeVariation4));
    background-size: cover;
    background-blend-mode: overlay;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .email:hover {
    transform: translateY(1px);
    box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.3);
  }
  
  .email:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

.candidate-info h3 {
    color: var(--textPrimary);
    font-family: Libre-Franklin;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%;
    letter-spacing: 1px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0;
    padding-top: 5px;
}

.candidate-info h5 {
    color: var(--textPrimary);
    font-family: Libre Franklin;
    font-size: 14px;
    font-weight: 400;
    line-height: 115%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    height: 50%;
}

.break {
    margin: 1rem;
}

/* Remove default link styling */
.candidate-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* .candidate-card and child elements retain their original styling */
.candidate-card {
    position: relative;
    /* other styles */
}

.website {
    background: linear-gradient(135deg, var(--tintVariation), var(--shadeVariation4));
    width: 100%;
    padding: 0rem;
    color: var(--textPrimary);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
}

.website:hover {
    background: linear-gradient(
        to right,
        var(--pureWhite) 0%,
        var(--pureWhite) 90%,
        var(--shadeVariation4) 91%,
        var(--shadeVariation4) 100%
    );
    transform: translateY(1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.website:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.candidate-card:hover .website {
    background: linear-gradient(
        to right,
        var(--pureWhite) 0%,
        var(--pureWhite) 85%,
        var(--shadeVariation4) 85%,
        var(--shadeVariation4) 100%
    );
    transform: translateY(1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.candidate-card:hover .website p {
    color: var(--gopRed);
}

.candidate-card:hover .website p:first-of-type {
    opacity: 0;
}

.candidate-card:hover .website p:last-of-type {
    opacity: 1;
}

.website p {
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
    line-height: 125%;
    font-family: Libre Franklin;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    letter-spacing: .25px;
}

.website p:first-of-type {
    opacity: 1;
}

.website p:last-of-type {
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
}

.website:hover p:first-of-type {
    opacity: 0;
}

.website:hover p:last-of-type {
    opacity: 1;
}

@media screen and (min-width: 550px) {
    .government-type h1 {
        font-size: 40px;
    }

    .candidate-info h3 {
        font-size: 20px;
    }

    .candidate-info h5 {
        font-size: 16px;
    }

    .website p {
        font-size: 14px;
    }

    .email {
        font-size: 14px;
    }
}

main {
    min-height: 62vh;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#searchInput {
    width: 100%;
    align-self: center;
    padding: 8px;
    margin: 20px auto;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.no-crop-img-div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px;
}
.no-crop {
    position: absolute;
    background-image: url(../assets/dianePlattsCI.jpeg);
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
    overflow: hidden;
}

.no-crop-img {
    position: relative;
    object-fit: contain;
}