/* 
Voterizer Styles
Color Palette:
- Background: white
- Main accent (demblue): #177DC1
- Secondary accent (mandarin): #F7941D
- Light gray (lightgray): #BDBEC0
- Dark gray (darkgray): #636466
- Light blue (lightblue): #EBF2F8
*/

/* Global Styles */
:root {
    --demblue: #177DC1;
    --mandarin: #F7941D;
    --lightgray: #BDBEC0;
    --darkgray: #8E9195;
    --lightblue: #EBF2F8;
    --container-width: 800px;
    --half-container-width: 380px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--demblue);
}

img {
    max-width: auto;
    height: 100%;
}

/* Button Styles */
.primary-button {
    background-color: var(--demblue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover,
.primary-button:focus {
    background-color: var(--darkgray);
}

/* Header Styles */
header {
    width: 100%;
    padding: 20px 0;
    background-color: var(--demblue);
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo {
    width: 80%;
    max-width: calc(var(--container-width) * 0.7);
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo img {
    width: 100%;
    height: auto;
}

.language-selector {
    display: flex;
    justify-content: center;
    width: 100%;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0px;
    width: 100%;
    max-width: 280px;
}

.language-button {
    background-color: transparent;
    border: none;
    color: white;
    padding: 4px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.language-button:hover {
    text-decoration: underline;
}

.language-button.active {
    font-weight: 700;
    text-decoration: underline;
}

/* Hero Section Styles */
.hero-section {
    padding: 40px 0;
    width: 100%;
}

.partner-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.partner-image {
    width: auto;
    max-height: var(--half-container-width);
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-text {
    width: 100%;
    max-width: var(--half-container-width);
    padding: 0px 10px 0px 0px;
    margin-top: -10px;
}
.partner-text h1 {
    color: var(--demblue);
    font-size: 32px;
}

.partner-text h2 {
    color: var(--demblue);
    font-size: 24px;
}

.partner-text h3 {
    color: var(--demblue);
    font-size: 18px;
    font-weight: 400;
}

.partner-text h4 {
    color: var(--darkgray);
    font-size: 18px;
    font-weight: 400;
}

.partner-text h5 {
    color: var(--darkgray);
    font-size: 16px;
    font-weight: 400;
}

.partner-text h6 {
    color: var(--darkgray);
    font-size: 14px;
    font-weight: 400;
}

.partner-text p {
    color: var(--darkgray);
}

/* State Selection Styles */
.state-selection-container {
    width: 100%;
    margin-bottom: 40px;
}

.state-selection {
    text-align: center;
    width: 100%;
    padding: 30px 0;
}

.divider {
    height: 2px;
    background-color: var(--demblue);
    width: 60%;
    margin: 0 auto;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    align-items: center;
}

select {
    padding: 12px;
    border: 1px solid var(--lightgray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--lightgray);
    width: 100%;
    max-width: 50%;
    box-shadow: 0 0 5px var(--darkgray);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E9195' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: var(--demblue);
    box-shadow: 0 0 8px var(--demblue);
}

/* County dropdown container */
#county-dropdown-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* County dropdown */
#county-dropdown {
    max-width: 50%;
}

#submit-selection {
    align-self: center;
    min-width: 200px;
    background-color: var(--mandarin);
    font-size: 20px;
    padding: 12px 24px;
}

#submit-selection:hover,
#submit-selection:focus {
    background-color: var(--darkgray);
}

/* Info Boxes Styles */
.info-boxes {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.info-box {
    width: 100%;
    max-width: var(--half-container-width);
    background-color: var(--lightblue);
    color: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    text-align: center;
}

.info-box h3 {
    color:  var(--demblue);
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 32px;
}

.info-box p {
    color:  var(--darkgray);;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 18px;
}

.info-box .primary-button {
    margin-top: auto;
    align-self: center;
    background-color:  var(--demblue);;
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.info-box .primary-button:hover,
.info-box .primary-button:focus {
    background-color: var(--lightgray);
}

/* Footer Styles */
footer {
    width: 100%;
    background-color: var(--lightgray);
    color: black;
    padding: 40px 0;
    display: flex;
    justify-content: left;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-button {
    background-color: white;
    color: var(--demblue);
    padding: 10px 40px;
    border-radius: 4px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.footer-button:hover {
    color: black;
}

.copyright {
    font-size: 16px;
    text-align: left;
    line-height: 18px;
    margin-bottom: -16px;
}

.privacy-notice {
    font-size: 16px;
    text-align: left;
    line-height: 18px;;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.social-icon:hover img {
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .partner-content {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-image,
    .partner-text {
        max-width: 100%;
    }
    
    .info-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        max-width: 100%;
    }
    
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
}
