/* static/plastic.css */

/* Ensure the body and html have full width */
body,
html {
    background-color: #EBECF0;
    width: 100%; /* Ensures full width */
    margin: 0;
    padding: 0;

    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content should take up remaining space */
main {
    flex: 1;
}

body,
p,
input,
select,
textarea,
button {
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.2px;
    font-size: 16px;
}

div,
p {
    color: black;
    text-shadow: 1px 1px 1px #FFF;
}

form {
    padding: 16px;
    width: 320px;
    margin: 0 auto;
}

.segment {
    padding: 32px 0;
    text-align: center;
}

button,
input {
    border: 0;
    outline: 0;
    font-size: 16px;
    border-radius: 320px;
    padding: 16px;
    background-color: #EBECF0;
    text-shadow: 1px 1px 0 #FFF;
}

label {
    display: block;
    margin-bottom: 24px;
    width: 100%;
}

input {
    margin-right: 8px;
    box-shadow: inset 2px 2px 5px #BABECC, inset -5px -5px 10px #FFF;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
}

input:focus {
    box-shadow: inset 1px 1px 2px #BABECC, inset -1px -1px 2px #FFF;
}

button {
    color: #61677C;
    font-weight: bold;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #BABECC;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #BABECC;
}

button:active {
    box-shadow: inset 1px 1px 2px #BABECC, inset -1px -1px 2px #FFF;
}

button .icon {
    margin-right: 8px;
}

button.unit {
    border-radius: 8px;
    line-height: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 8px;
    font-size: 19.2px;
}

button.unit .icon {
    margin-right: 0;
}

button.red {
    display: block;
    width: 100%;
    color: #AE1100;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.input-group label {
    margin: 0;
    flex: 1;
}

.column {
    float: left;
    margin: 10px;
    padding: 10px;
}

ul {
    list-style-type: none;
    color: black;
    padding: 0;
}

h3 {
    font-size: 1.2em;
}

.separator {
    font-weight: bold;
    color: slateblue;
    margin: 10px 0;
}

/* Banner Styles */
.banner {
    background-color: rgb(128, 128, 192); /* light charcoal blue */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure banner takes full width */
    box-sizing: border-box;
}

.banner .username {
    font-size: 18px;
    font-weight: bold;
    text-shadow: none;
    margin-left: auto; /* Pushes the name to the right */
}

/* Override form - width */
.logout-form {
    padding: 0; /* Remove padding */
    width: auto; /* Remove fixed width */
    margin: 0; /* Remove auto margin */
    display: inline; /* Ensure form is inline */
}
.banner .logout-button {
    background-color: #61677C; /* matching button color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 20px; /* Adds space between name and button */
}

.banner .logout-button:hover {
    background-color: #4A4A4A; /* slight darken on hover */
}

/* Home Button Styles */
.home-button {
    background-color: #61677C; /* matching button color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none; /* Remove underline */
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-right: 20px; /* Adds space between button and banner edge */
}

.home-button:hover {
    background-color: #4A4A4A; /* slight darken on hover */
}



/* Footer Styles */
.footer {
    background-color: rgb(128, 128, 192); /* Matches banner color */
    color: white;
    padding: 10px 20px;
    font-size: 12pt;
    text-shadow: none;
    width: auto; /* Ensures footer is not full width */
    box-sizing: border-box;
    margin: 0 auto; /* Centers the footer */
    text-align: left; /* Left justified text */
    display: block;
}


/* Media query for devices with a width up to 768px (e.g., tablets, phones) */
@media (max-width: 768px) {
    body,
    p,
    input,
    select,
    textarea,
    button {
        font-size: 14px; /* Decrease font size */
    }

    .banner {
        flex-direction: column;
        text-align: center;
    }

    .banner .username {
        margin: 10px 0;
    }

    .banner .logout-button,
    .home-button {
        margin: 10px 0;
    }

    .footer {
        font-size: 10pt; /* Decrease footer font size */
        text-align: center;
    }
}

/* Media query for devices with a width up to 480px (e.g., phones) */
@media (max-width: 480px) {
    body,
    p,
    input,
    select,
    textarea,
    button {
        font-size: 12px; /* Further decrease font size */
    }

    .banner .username {
        font-size: 16px; /* Adjust username font size */
    }

    .footer {
        font-size: 8pt; /* Further decrease footer font size */
    }
}