html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.content {
    display: flex;
    flex-direction: column;
    margin-left: 10%;
    margin-right: 25%;
    width: 80%;
}

.container {
    display: flex;
    flex-direction: row;
}

.left_panel {
    min-width: 245px;
    max-width: 245px;
    height: 100px;
}

.heading {
    color: #447d46;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
}

.section {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.88rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.line {
    border: 1px solid #447d46;
    width: 25px;
    margin-bottom: 10px;
}

.info, label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

p a {
    text-decoration: underline;
    color: black;
}

#technicalLinks a {
    font-family: 'Montserrat', sans-serif;
    color: black;
    font-size: 1.2rem;
    transition: color 0.3s;
}

#technicalLinks a:hover {
    color: #447d46;
}

#login_form {
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#login_form label {
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    font-size: 1.2rem;
}
#login_form input, #login_form select {
    font-size: 1.2rem;
    width: 80%;
    align-items: center;
    margin-bottom: 20px;
}

#login {
    margin-top: 15px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

.err {
    color: #721c24;
    font-family: 'Montserrat', sans-serif;
}

#services_buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 127px;
    width: 100%;
    box-sizing: border-box;
}

#heading_return_logout_cs {
    display: flex;
    flex-direction: row;
}

#heading_return_logout_cs h1 {
    margin-right: 100px;
}

.centered_content {
    margin: 0 300px 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.note {
    font-weight: bold;
    color: #d30b1f;
    font-family: 'Montserrat', sans-serif;
}

#email_label {
    font-family: 'Montserrat', sans-serif;
}

.heading_return {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.subheading {
    color: #447d46;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

.heading_return_as {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#as_buttons {
    display: flex;
    flex-direction: row;
    margin-bottom: 226px;
}

#as_return_button {
    margin-right: 0;
}

#heading_return_ao {
    margin: 0;
    justify-content: space-between;
    width: 100%;
}

.search_form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 40px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
	max-width: 500px;
    min-width: 250px;
    width: 45%;
}

.submit_button {
	width: 100%;
	height: 42px;
	font-size: 16px;
	font-weight: bold;
	border: none;
	border-radius: 6px;
	background-color: #447d46;
	color: white;
	cursor: pointer;
	transition: background 0.2s ease;
}

.submit_button:hover {
	background-color: #356837;
}

.search_form label, .search_form .textbox {
    margin-right: 10px;
}

.search_form label {
	margin-bottom: 6px;
}

.search_form input,
.search_form .match_options {
	margin-bottom: 12px;
}

.textbox {
	width: 100%;
	height: 40px;
	font-size: 16px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.filtercontainer {
    margin-bottom: 30px;
    border: 2px solid red;
    padding: 10px;
    border-radius: 5px;
}

.page_links_container {
    text-align: center;
    white-space: normal;
    width: 60%;
}

.page_links_container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: lighter;
}

.page_links_container a {
    font-family: 'Montserrat', sans-serif;
    color: black;
}

#county_select_form {
    display: flex;
    flex-direction: column;
}

#county_select_form input, #county_select_form select {
    margin-top: 30px;
    width: 125px;
}

#county_orders_select, #form_orders_select {
    margin-bottom: 30px;
}

#email_heading {
    margin-bottom: 0;
}

.email {
    margin-top: 0;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
}

#new_email {
    width: 300px;
}

#email_change_form {
    display: flex;
    flex-direction: column;
}

#email_change_form .submit_button {
    width: 100px;
}

.index_link {
    transition: color 0.3s;
}

.index_link:hover {
    text-decoration: none;
    color: #447d46;
}

.match_options {
	margin-right: 10px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
}

.match_label {
    font-family: 'Montserrat', sans-serif;
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
}

.match_options label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
}

.match_options input[type="radio"] {
	margin-right: 6px;
}

.search_forms {
    display: flex;
    flex-direction: row;
    gap: 2em;
}

/* Small devices (mobile) */
@media only screen and (max-width: 770px) {
    .left_panel {
        display: none;
    }
    .container {
        justify-content: center;
    }
    .content {
        margin: 0;
        align-items: center;
    }
    #services_buttons {
        justify-content: center;
    }
    #login_form {
        width: 275px;
    }
    #login {
        align-items: center;
    }
    .content h1 {
        text-align: center;
    }
    .centered_content {
        margin: 0 10px 0 10px;
    }
    .heading_return {
        flex-direction: column;
        align-items: center;
        margin: 0 10px 0 10px;
    }
    .heading_return h1 {
        text-align: center;
    }
    .heading_return_as {
        flex-direction: column;
        align-items: center;
    }
    .heading_return_as h1 {
        text-align: center;
    }
    #as_content {
        align-items: center;
    }
    #services_buttons {
        flex-direction: column;
        align-items: center;
    }
    .search_form {
        flex-direction: column;
    }
    .search_form label, .search_form .textbox {
        margin-bottom: 10px;
    }
    .email {
        font-size: 14px;
    }
    #email_change_form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #new_email {
        width: 200px;
    }
    .search_forms {
        flex-direction: column;
    }
    .search_form {
        min-width: 500px;
    }
    
}

/* Medium devices (tablets) */
@media only screen and (min-width: 771px) and (max-width: 1030px) {
    #login_form {
        width: 275px;
    }
    .centered_content {
        margin: 0 100px 0 100px;
    }
    .heading_return_as {
        flex-direction: column;
        align-items: center;
    }
    .heading_return_as h1 {
        text-align: center;
    }
    #as_content {
        align-items: center;
    }
    #services_buttons {
        flex-direction: column;
        align-items: center;
    }
    .container {
        align-items: center;
    }
    .left_panel {
        display: none;
    }
    .email {
        font-size: 18px;
    }
    .search_forms {
        flex-direction: column;
    }
    .search_form {
        min-width: 500px;
    }
}