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

html {
    font-size: 100%;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #fafafa;
}

textarea {
    resize: none;
}

.drawer-animate-in {
    animation: slide-in 0.5s forwards;
}

.drawer-animate-out {
    animation: slide-out 0.5s forwards;
}

.modal-animate-in {
    animation: slide-down 0.25s forwards;
}

.modal-animate-out {
    animation: slide-up 0.25s forwards;
}

/* Utilities */

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
}

.modal-content {
    background-color: #fafafa;
    padding: 3rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 25rem;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-text {
    margin-top: 1rem;
}

.modal-button {
    margin-top: 1rem;
    align-self: flex-end;
    padding: 0.5rem 0.8rem;
    font-family: inherit;
    border: 1px solid #1aaf5d;
    border-radius: 0.2rem;
    background-color: #1aaf5d;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
}

.modal-button:hover {
    background-color: transparent;
    color: #1aaf5d;
}

/* Header */

.app-header {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    height: 5rem;
    padding: 0 2rem;
    background-color: #fafafa;
    z-index: 10;
}

.navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-menu-button {
    position: absolute;
    font-size: 1.75rem;
    cursor: pointer;
    color: #333;
}

.navbar-title {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Drawer */

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fafafa;
    height: 100%;
    width: 20rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 10px 0px 24px -11px rgba(51, 51, 51, 0.75);
    -webkit-box-shadow: 10px 0px 24px -11px rgba(51, 51, 51, 0.75);
    -moz-box-shadow: 10px 0px 24px -11px rgba(51, 51, 51, 0.75);
}

.app-drawer-closed {
    transform: translateX(-100%);
}

.app-drawer-open {
    transform: translateX(0);
}

.app-drawer-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.app-logo {
    width: 100%;
    padding: 3rem 5rem 2rem 5rem;
}

.drawer-title {
    color: #333;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.drawer-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2rem;
}

.drawer-link-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.drawer-link-container div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
}

.drawer-icon {
    font-size: 1.5rem;
    color: #1aaf5d;
}

.drawer-link {
    text-decoration: none;
    font-size: 1rem;
    margin-left: 1.5rem;
    color: #333;
    font-weight: 700;
    transition: ease 0.5s;
}

.drawer-link:hover {
    color: rgb(90, 90, 90);
}

.drawer-loader-container {
    position: absolute;
    right: 1rem;
}

/* Auth */

.auth {
    height: 100vh;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-form {
    width: 25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-form-logo {
    width: 35%;
}

.auth-title {
    font-size: 3rem;
    margin-top: 1rem;
}

.auth-form-control {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    width: 100%;
}

.auth-label {
    margin-bottom: 0.25rem;
}

.auth-form-input {
    padding: 1rem 0.5rem;
    font-family: inherit;
    border: 1px solid #333;
    border-radius: 0.2rem;
    background-color: transparent;
}

.auth-form-input:focus {
    outline: none;
    border: 1px solid #1aaf5d;
}

.auth-button {
    border: 1px solid #1aaf5d;
    margin-top: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    background-color: #1aaf5d;
    border-radius: 0.2rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .auth-button:hover {
    background-color: transparent;
    color: #1aaf5d;
} */

/* Home */

.home {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-actions {
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
    width: 25rem;
}

.present-data {
    text-align: center;
    margin-bottom: 1.5rem;
    border: 2px solid #ffca1b;
    background-color: #fff3cd;
    color: #664d03;
    padding: 1rem 0.5rem;
    border-radius: 0.2rem;
    font-weight: bold;
}

.home-survey-button,
.home-sync-button {
    border: 1px solid #1aaf5d;
    padding: 1rem 0;
    width: 100%;
    background-color: #1aaf5d;
    border-radius: 0.2rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-survey-button {
    margin-bottom: 1.5rem;
}

/* .home-survey-button:hover,
.home-sync-button:hover {
    background-color: transparent;
    color: #1aaf5d;
} */

/* Sync Overlay */

.sync-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    z-index: 1000;
}

.sync-info {
    background-color: #fafafa;
    padding: 3rem 3rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 25rem;
}

.sync-progress {
    position: relative;
    margin: 2.5rem 0;
}

.sync-title {
    font-size: 1.25rem;
}

.sync-text {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.sync-info-text {
    margin-top: 1rem;
}

.sync-close-button {
    margin-top: 1.5rem;
    padding: 0.5rem 0.8rem;
    font-family: inherit;
    border: 1px solid #1aaf5d;
    border-radius: 0.2rem;
    background-color: #1aaf5d;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    width: 100%;
}

.sync-close-button:hover {
    background-color: transparent;
    color: #1aaf5d;
}

/* Loader */

.sync-loader {
    border: 0.25rem solid #fafafa;
    border-radius: 50%;
    border-top: 0.25rem solid #1aaf5d;
    width: 2.5rem;
    height: 2.5rem;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.loading-loader-primary {
    border: 0.15rem solid #fafafa;
    border-radius: 50%;
    border-top: 0.15rem solid #1aaf5d;
    width: 1.15rem;
    height: 1.15rem;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.loading-loader-light {
    border: 0.15rem solid #1aaf5d;
    border-radius: 50%;
    border-top: 0.15rem solid #fafafa;
    width: 1.15rem;
    height: 1.15rem;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.done-gif,
.error-gif,
.offline-img,
.online-img {
    width: 3rem;
    height: 3rem;
}

.hidden {
    display: none;
}

/* Progress Overlay */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    z-index: 3000;
}

.progress-content {
    background-color: #fafafa;
    padding: 3rem 3rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 25rem;
}

.progress-indicator {
    position: relative;
    margin: 1rem 0;
}

.progress-title {
    font-size: 1.25rem;
}

.progress-text {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.progress-start-button {
    margin-top: 1.5rem;
    padding: 0.5rem 0.8rem;
    font-family: inherit;
    border: 1px solid #1aaf5d;
    border-radius: 0.2rem;
    background-color: #1aaf5d;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    width: 100%;
}

/* Survey */
.survey {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 7rem 0 3rem;
}

.survey-form {
    display: flex;
    flex-direction: column;
    width: 25rem;
}

.survey-form-header-container {
    width: 100%;
    background-color: transparent;
    padding: 1rem 0;
    text-align: center;
    border: 2px solid #333;
    border-radius: 0.2rem;
}

.survey-form-header {
    font-size: 1.25rem;
    color: #333;
}

.survey-form-control {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
}

.survey-form-control-horizontal {
    display: flex;
    width: 100%;
    margin-top: 2rem;
    align-items: center;
    justify-content: space-between;
}

/* Specific Form Control */
#association-yes-description,
#ownership-description,
#grain-production-description,
#other-production-activity-description,
#other-building-type-description,
#other-water-source-description,
#number-of-boreholes-description,
#other-irrigation-description,
#other-power-source-description,
#other-equipment-description,
#other-equipment-needs-description,
#other-data-provider-description,
#other-majority-customer-description,
#other-vehicle-ownership-description,
#other-market-transport-description,
#other-production-value-description {
    display: none;
}

.survey-form-label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1aaf5d;
}

.survey-form-input {
    padding: 1rem 0.5rem;
    font-family: inherit;
    border: 1px solid #333;
    border-radius: 0.2rem;
    background-color: transparent;
}

.survey-form-input:focus {
    outline: none;
    border: 1px solid #1aaf5d;
}

.survey-form-error {
    position: absolute;
    left: 0;
    bottom: -1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cc0000;
}

.survey-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.survey-radio-group div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.survey-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.survey-checkbox-group div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.survey-get-gps-button {
    padding: 0.5rem 0.8rem;
    font-family: inherit;
    border: 1px solid #1aaf5d;
    border-radius: 0.2rem;
    background-color: #1aaf5d;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
}

.survey-get-gps-button:hover {
    background-color: transparent;
    color: #1aaf5d;
}

.survey-form-info-text {
    color: #fafafa;
    font-weight: 700;
    font-size: 0.75rem;
}

.survey-add-input-button {
    padding: 0.5rem 0.8rem;
    margin-top: 1rem;
    font-family: inherit;
    border: 1px solid #1aaf5d;
    border-radius: 0.2rem;
    background-color: #1aaf5d;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    align-self: flex-start;
}

.survey-add-input-button:hover {
    background-color: transparent;
    color: #1aaf5d;
}

.survey-remove-input-button {
    padding: 0.5rem 0.8rem;
    margin-top: 1rem;
    margin-left: 0.5rem;
    font-family: inherit;
    border: 1px solid #cc0000;
    border-radius: 0.2rem;
    background-color: #cc0000;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
    align-self: flex-start;
    display: none;
}

.survey-remove-input-button:hover {
    background-color: transparent;
    color: #cc0000;
}

.survey-farm-building-details,
.survey-water-details,
.survey-power-details,
.survey-equipment-details,
.survey-staff-details,
.survey-input-details {
    display: flex;
    flex-direction: column;
}

.submit-button {
    border: 1px solid #1aaf5d;
    padding: 1rem 0;
    margin-top: 2rem;
    width: 100%;
    background-color: #1aaf5d;
    border-radius: 0.2rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fafafa;
    transition: ease 0.3s;
    cursor: pointer;
}

.submit-button:hover {
    background-color: transparent;
    color: #1aaf5d;
}

/* Keyframes */

@keyframes slide-in {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slide-out {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries */

@media only screen and (max-width: 48em) {
}

@media only screen and (max-width: 31.25em) {
    /* Navbar 500px */

    .navbar-menu-button {
        font-size: 1.25rem;
    }

    .navbar-title {
        font-size: 1.25rem;
    }

    /* Drawer 500px */

    .app-drawer-close-button {
        font-size: 1.25rem;
    }

    .app-logo {
        width: 100%;
        padding: 5rem 7rem 1.5rem 7rem;
    }

    .drawer-title {
        color: #333;
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
    }

    .drawer-link-container {
        margin-bottom: 1rem;
        position: relative;
    }

    .drawer-link-container div {
        width: 1.5rem;
        height: 1.5rem;
    }

    .drawer-link {
        font-size: 0.85rem;
        margin-left: 1rem;
    }

    .drawer-icon {
        font-size: 1rem;
    }

    /* Auth 500px */

    .auth-form {
        max-width: 75%;
    }

    .auth-form-logo {
        width: 35%;
    }

    .auth-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .auth-label {
        font-size: 0.85rem;
    }

    .auth-form-input {
        padding: 0.85rem 0.3rem;
    }

    .auth-button {
        margin-top: 1.25rem;
        padding: 0.85rem 0;
        font-size: 0.85rem;
    }

    /* Home 500px */

    .home-actions {
        width: 75%;
    }

    .present-data {
        font-size: 0.85rem;
    }

    .home-survey-button,
    .home-sync-button {
        padding: 0.85rem 0;
        font-size: 0.85rem;
    }

    .home-survey-button {
        margin-bottom: 1.5rem;
    }

    /* Sync Overlay 500px */

    .sync-info {
        padding: 2rem 2rem;
        width: 75%;
    }

    .sync-progress {
        position: relative;
        margin: 2rem 0;
    }

    .sync-title {
        font-size: 1rem;
    }

    .sync-text {
        font-size: 0.85rem;
        font-weight: 700;
    }

    .sync-info-text {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .sync-close-button {
        margin-top: 1rem;
    }

    .sync-loader {
        border: 0.2rem solid #fafafa;
        border-radius: 50%;
        border-top: 0.2rem solid #1aaf5d;
        width: 2rem;
        height: 2rem;
    }

    .done-gif,
    .error-gif,
    .offline-img,
    .online-img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .offline-img,
    .online-img {
        width: 100%;
    }

    /* Modal 500px */

    .modal-content {
        padding: 2rem;
        max-width: 75%;
        align-items: center;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-text {
        margin-top: 1rem;
        font-size: 0.85rem;
        text-align: center;
    }

    .modal-button {
        margin-top: 2rem;
        width: 100%;
    }

    /* Survey 500px */

    .survey-form {
        width: 85%;
    }

    .survey-form-header {
        font-size: 1rem;
    }

    .survey-form-control {
        margin-top: 1.5rem;
    }

    .survey-form-control-horizontal {
        margin-top: 1.5rem;
    }

    .survey-form-label {
        font-size: 0.85rem;
    }

    .survey-form-input {
        padding: 0.8rem 0.35rem;
    }

    .survey-form-error {
        font-size: 0.7rem;
    }

    .survey-radio-group,
    .survey-radio-group div,
    .survey-checkbox-group,
    .survey-checkbox-group div {
        gap: 0.45rem;
    }

    .survey-form-info-text {
        font-size: 0.7rem;
    }

    .survey-radio-group label,
    .survey-checkbox-group label {
        font-size: 0.85rem;
    }

    .submit-button {
        padding: 0.85rem 0;
        font-size: 0.85rem;
        margin-top: 1.5rem;
    }
}

@media only screen and (max-width: 25em) {
    /* Navbar */

    .navbar-menu-button {
        font-size: 1rem;
    }

    .navbar-title {
        font-size: 1rem;
    }

    /* Drawer */

    .app-drawer {
        width: 18rem;
    }

    .app-drawer-close-button {
        font-size: 1rem;
    }

    .app-logo {
        width: 100%;
        padding: 4rem 6rem 1rem 6rem;
    }

    .drawer-title {
        margin-bottom: 1rem;
    }

    .drawer-link-container {
        margin-bottom: 1rem;
    }

    .drawer-link-container div {
        width: 1.5rem;
        height: 1.5rem;
    }

    .drawer-link {
        font-size: 0.85rem;
        margin-left: 1rem;
    }

    .drawer-icon {
        font-size: 1rem;
    }

    .drawer-link {
        font-size: 0.75rem;
    }

    .auth-form {
        width: 85%;
    }

    .auth-form-logo {
        width: 35%;
    }

    .auth-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .auth-label {
        font-size: 0.85rem;
    }

    .auth-form-input {
        padding: 0.85rem 0.3rem;
    }

    .auth-button {
        margin-top: 1.25rem;
        padding: 0.85rem 0;
        font-size: 0.85rem;
    }

    .home-actions {
        width: 85%;
    }

    .present-data {
        font-size: 0.75rem;
    }

    .home-survey-button,
    .home-sync-button {
        padding: 0.85rem 0;
        font-size: 0.85rem;
    }

    .home-survey-button {
        margin-bottom: 1.5rem;
    }

    /* Survey 400px */

    .survey-form {
        width: 85%;
    }
}
