@font-face {
    font-family: 'AvantGardeDemi';
    src: url('fonts/avantgarde_demi.woff2') format('woff2'),
         url('fonts/avantgarde_demi.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: sans-serif;
    margin: 0;
    background: #f4f4f4;
    scroll-behavior: smooth;
}

.header {
    background-color: #007D46;
    color: white;
    padding: 1em;
    text-align: center;
    font-size: 1.5em;
    font-family: 'AvantGardeDemi', "Noto Sans", Arial, sans-serif;
    font-weight: 600;
}

.banner {
    background: url('images/banner.jpg') center center no-repeat;
    height: auto;
    aspect-ratio: 4 / 1; /* adjust if needed */
    background-size: contain;	
}

.logout {
    text-align: right;
    margin-bottom: 1em;
}

.content {
    max-width: 600px;
    margin: 2em auto;
    padding: 1em;
    background: rgba(121, 121, 121, 0);
    box-shadow: 0 0 10px #ccc;
    border-radius: 8px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.store-buttons img {
    height: 40px;
    width: auto;
}

.intro {
    padding: 1em;
}

form {
    margin-bottom: 2em;
}

.centered {
    text-align: center;
}

h2 {
    text-align: center;
    font-family: 'AvantGardeDemi', "Noto Sans", Arial, sans-serif;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Shared field styles */
.input-field {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 3px;
    box-shadow: rgba(181, 175, 167, 0.75) 0 1px 0 inset;
    box-sizing: border-box;
    color: #4a4a4a;
    display: inline-block;
    font: 14px / 18.2px "Noto Sans", Arial, Helvetica, sans-serif;
    margin: 8px;
    outline: none;
    padding: 10px;
    width: calc(100% - 16px);
    max-width: 100%;

    -webkit-border-radius: 3px;
    -webkit-font-smoothing: antialiased;
    -webkit-rtl-ordering: logical;
    -webkit-user-select: text;
}

/* Optional: input-specific override */
input.input-field {
    height: auto;
}

/* Optional: textarea-specific styling */
textarea.input-field {
    resize: none;
    overflow: hidden;
    min-height: 100px;
    white-space: pre-wrap;
}

input[type="password"] {
    width: 200px;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    display: block;
    margin: 1em auto;
}

.button {
    background: rgb(0, 125, 70);
    border: 1px solid rgb(0, 125, 70);
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    /*margin: 16px 0 0;*/
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    -webkit-border-radius: 4px;
    -webkit-font-smoothing: antialiased;
    -webkit-text-decoration: none solid #fff;
}

.button-red {
    background: red;
    border: 1px solid red;
    color: #fff;
    padding: 6px 12px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 10px;
}

.button-blue {
    background: #007BFF;
    border: 1px solid #007BFF;
    color: #fff;
    padding: 10px 16px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.button-blue:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.comment {
    background: #e7e7e7;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 6px;
    position: relative;
}

.comment label {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 0.9em;
    color: #333;
}

.meta {
    font-size: 0.85em;
    color: #666;
}

.error {
    color: red;
    margin-top: 1em;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1em 0;
}

.controls .spacer {
    flex: 1;
}

.controls label {
    font-size: 0.95em;
    user-select: none;
}

.centered a {
    color: #007D46;
    text-decoration: none;
    margin: 0 5px;
}
.centered a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 650px) {
    body {
        margin: 0;
        padding: 0;
    }

    .content {
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }

    .intro {
        padding: 1em;
    }

    .input-field {
        font-size: 16px;
        padding: 10px;
        margin: 8px;
        border-radius: 0;
        width: calc(100% - 16px);
    }

    .button {
        font-size: 16px;
        padding: 12px 20px;
        height: auto;
        border-radius: 4px;
        width: auto;
        max-width: 100%;
        margin: 16px auto 0;
        display: block;
    }

    .centered {
        text-align: center;
    }

    h2 {
        font-size: 1.25em;
        padding: 0 8px;
    }
}
