body {
    background-image: linear-gradient(to top, #ffffff, #35bcff);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Times New Roman', Times, serif;
    height: 120vh;
    overflow-x: hidden;
}


.main-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 300px;
    background-color: #f4f8ff;
    /* Light blue header background */
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    font-size: 80px;
    color: #2c3e50;
    letter-spacing: 1px;
}

.main-title svg {
    padding-bottom: 15px;
}

.sub-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sub-title h1 {
    padding-top: 20px;
    font-weight: lighter;
    font-size: 20px;
}

.state-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 150px;
    margin-bottom: 80px;
}

.state-title h1 {
    font-size: 60px;
    font-weight: bolder;
    margin-bottom: 20px;
    border-bottom: 5px solid #ffffff;
}

.state-title h2 {
    font-size: 25px;
    font-weight: lighter;
    max-width: 800px;
}

/* Grid layout */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center;
    justify-items: center;

    margin: 3rem auto 0;
    max-width: 1500px;
    padding: 0 2rem;
    margin-bottom: 50px;
}

/* Button reset & base style */
.state-card {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.state-circle {
    background-size: cover;
    background-position: center;
    border: 15px solid #0284c7;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    box-sizing: border-box;
}

/* Text wrapper for readability over housing graphics */
.state-text-wrapper {
    padding: 8px 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    display: grid;
    width: 100%;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);


    transition: background 0.3s ease;
}

/* Text styling */
.state-label {
    color: #0f172a;
    /* Replaced fill */
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    margin-bottom: 4px;
}

.state-listing {
    color: #000000;
    font-size: 15px;
    font-weight: lighter;
    font-style: italic;
    pointer-events: none;
}

/* Interactive hover and active states */
.state-card:hover {
    transform: translateY(-8px);
}

.state-card:hover .state-circle {
    border-color: #0369a1;
    /* Replaced hover stroke */
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.state-card:hover .state-text-wrapper {
    background: rgba(255, 255, 255, 1);
    /* Becomes solid white on hover */
}

.state-card:active {
    transform: scale(0.96);
}

.state-card:focus-visible .state-circle {
    border-color: #0f172a;
    border-style: dashed;
    /* Replaced stroke-dasharray */
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

button.view-all-states {
    border-radius: 10px;
    padding: 15px 40px 15px 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 30px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: lighter;
    border: 2px solid rgba(0, 0, 0, 0.8);


    transition: all .3s ease;
}

button.view-all-states:hover {
    background-color: rgba(255, 255, 255, 1);
    font-size: 32px;
    outline: 2px solid rgba(0, 0, 0, 1);
}

.search-form {
    display: flex;
    justify-content: center;
    margin-top: 30px;

    width: 25%;
}

.search-form .search-input {
    font-family: 'Times New Roman', Times, serif;
    font-size: 17px;
    padding: 10px;
    width: 100%;
    border: 2px solid #2c3e50;
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.search-form .search-button {
    font-family: 'Times New Roman', Times, serif;
    padding: 10px 20px;
    font-size: 24px;
    border: 2px solid #2c3e50;
    background-color: #2c3e50;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    outline: none;
}