:root {
    --primary-text-color: #99ccff;
    --view-bk-color: rgba(13, 15, 23, 0.6);
    --field-bk-color: rgba(81, 114, 152, 0.5);
    --container-bk-color: #2c3e50;
    --lightm-text-color: black;
}

header {
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
}

body {
    background-image:
            linear-gradient(15deg, #4c8abc 15%, #21313e 65%);
            linear-gradient(15deg, #4c8abc 25%, #21313e 95%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: var(--primary-text-color);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

div.imgpreview {
    padding-left: 10px;
    color: var(--primary-text-color);
}

h1, h2 {
    color: #99CCFF;
}

#h2itemid {
    font-size: medium;
}

hr {
    background-color: rgb(153, 204, 255);
}

label {
    color: rgba(153, 204, 255, 1.0);
}

#uacstatus {
    padding: 8px;
    margin-top: 20px;
    position: relative;
}

div.topbar {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(7px);
    height: auto;
    padding: 11px;
    position: relative;
    width: 100%;
    align-content: first;
}

img.sideicon {
    position: relative;
    cursor: pointer;
    width: 16px;
    height: auto;
    padding: 0px;
    margin-right: 10px;
}

.logo {
    position: relative;
    color: #dedede;
    font-weight: bold;
    font-size: 15pt;
}

img.toplogo {
    width: 128px;
}

button.register {
    float: right;
}

@keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}

#sidemenu {
    animation: fadein 1s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    position: fixed;
    left: 0;
    top: 47px;
    margin-left: 0px;
    width: 15%;
    max-height: 90%;
    overflow: auto;
    font-size: 12px;
    z-index: 103;
}

#statusmessage {
    padding: 10px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    text-align: center;
    color: #99ccff;
}

#mainviewmessage {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    text-align: center;
}

button.cardbutton {
    position: absolute;
    display: flex;
    right: 0;
    bottom: 0;
    width: auto;
}

#minibar {
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    padding: 7px;
    width: 30%;
    height: auto;
    left: 50%;
    transform: translate(-50%, 0);
    margin-bottom: 0px;
    bottom: 0;
    position: fixed;
}

button.minibarclose {
    float: right;
    margin-top: 1%;
    padding: 0px;
    width: 15px;
    height: 15px;
    font-size: 10pt;
    display: inline;
}

#replytext {
    background-color: rgba(255, 255,255, 0.6);
    display: block;
    width: 80%;
    height: 80px;
    overflow: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
}

a.sidebutton {
    background-color: #080b11;
    text-decoration: none;
    color: #dedede;
}

a.sidebutton:visited {
    color: #dedede;
}

p {
    text-align: center;
}

#mainview {
    background-color: var(--view-bk-color);
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    width: auto;
    color: var(--primary-text-color);
    font-family: 'Roboto', sans-serif;
}

#sidemenu {
    display: none;
    position: fixed;
    color: var(--primary-text-color);
    left: 0;
    top: 43px;
    margin-left: 0px;
    width: 20%;
    font-family: 'Roboto', sans-serif;
}

#sidebutton {
    cursor: pointer;
    width: auto;
    padding: 10px;
}

#sidebutton:hover {
    opacity: 0.5;
}

div.profileview {
    width: auto;
    margin-top: 5%;
}

#submitview {
    background-color: var(--view-bk-color);
    margin-top: 120px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    width: 30%;
    border-radius: 13px;
}

.message { /* The textarea */
    background-color: var(--container-bk-color);
    padding: 10px;
    border: none;
    margin-top: 10px;
    width:100%;
    color: var(--primary-text-color);
    box-sizing:border-box;
    font-size: large;
    border-radius: 15px;
}

textarea.post { /* The textarea */
    background-color: var(--container-bk-color);
    padding: 10px;
    border: none;
    margin-top: 10px;
    width:100%;
    color: var(--primary-text-color);
    box-sizing:border-box;
    font-size: large;
    border-radius: 15px;
}

div.sidebar {
    display: inline-block;
}

hr {
    height: 1px;
    border: none;
    border-top: 1px solid #cdcdcd;
}

.viewcard {
    background-color: var(--container-bk-color);
    margin-top: 10px;
    width: 60%;
    min-height: 200px;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

.resultcard {
    position: relative;
    background-color: var(--container-bk-color);
    margin-left: 10px;
    margin-top: 10px;
    width: 60%;
    min-height: 200px;
    cursor: pointer;
    margin-right: auto;
    padding: 10px;
}

img {
    width: inherit;
    height: auto;
}

.centeredform {
    margin-left: auto;
    margin-right: auto;
}

img.rightsideicon {
    position: absolute;
    cursor: pointer;
    width: 16px;
    height: auto;
    top: 15px;
    right: 10px;
    padding: 0px;
}

#resulttext {
    padding: 10px;
}

.cardheading {
    text-align: left;
}

#centeredheading {
    margin-left: auto;
    margin-right: auto;
    width: 7em;
}

.menuitem {
    padding: 11px;
    color: #FFFFFF;
    border-right: 1px solid white;
    background-color: var(--container-bk-color);
}

button.gridmenubt {
    margin-bottom: 0px;
    margin-top: 10px;
    margin-left: 1px;
}

input[type=text], input[type=number], input[type=password], input[type=file] {
    padding: 10px;
    border: none;
    margin-top: 10px;
    background-color: var(--field-bk-color);
    color: var(--primary-text-color);
    width:100%;
    box-sizing:border-box;
    font-size: large;
    -webkit-border-radius: 0px;
    border-radius: 10px;
}

input[type=file]::file-selector-button {
    float: right;
    padding: 10px;
    color: #d1e5ff;
    font-weight: bold;
    background-color: #4343a8;
    border: none;
}

input[type=checkbox] {
    background-color: rgba(14, 18, 37, 0.7);
    margin-bottom: 25px;
}

input[type=text]:hover, input[type=password]:hover, input[type=number]:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: large;
}

select {
    padding: 10px;
    border: none;
    height: 50px;
    margin-top: 10px;
    background-color: rgba(42, 52, 101, 0.7);
    width: 100%;
    box-sizing:border-box;
    font-size: large;
    border-radius: 10px;
}

div.top_menu {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1px;
    border-top: 1px solid rgba(153, 204, 255, 0.1);
    position: fixed;
    top: 42px;
    left: 0;
    width: 100%;
    z-index: 101;
}

a.toplink {
    font-weight: bold;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--primary-text-color);
    text-align: center;
    padding: 5px;
    border-left: 1px solid rgba(153, 204, 255, 0.1);
}

a.toplink:hover {
    background-color: rgba(48, 71, 122, 0.6);
}

button {
    cursor: pointer;
    padding: 11px;
    font-size: small;
    background-color: #1d5e87;
    border: none;
    text-transform: uppercase;
    color: #FFFFFF;
    font-weight: bold;
}

div.searchview {
    background-color: rgba(13, 15, 23, 0.6);
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    width: 70%;
    height: 80px;
    border-radius: 10px;
}

.btcardcontainer {
    display: grid;
    grid-template-areas: "button button";
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    place-items: center;
    /* background-color: rgba(255, 255, 255, 0.6); */
    height: auto;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 1px;
}

.kmbtgridcontainer {
    display: grid;
    justify-content: right;
    height: auto;
    position: relative;
    bottom: 0;
    margin-top: 150px;
    text-align: right;
    justify-items: end;
    margin-right: 0px;
}

div.kmbtgridcontainer_menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.kmbutton_nc {
    position: relative;
    float: right;
    right: 0;
    width: 98%;
    padding: 10px;
    height: auto;
    color: #d1e5ff;
    font-weight: bold;
    background-color: #4343a8;
    margin-bottom: 0;
}

.kmbutton_nc_alt {
    position: relative;
    float: right;
    right: 0;
    width: 98%;
    padding: 10px;
    height: auto;
    color: #d1e5ff;
    font-weight: bold;
    background-color: #7f8fb1;
    margin-bottom: 0;
}

.kmbutton_nc_altwarn {
    position: relative;
    float: right;
    right: 0;
    width: 98%;
    padding: 10px;
    height: auto;
    color: #ffdfdf;
    font-weight: bold;
    background-color: rgb(255, 34, 49);
    margin-bottom: 0;
}

.kmbutton {
    position: relative;
    right: 0;
    width: auto;
    bottom: 0;
    padding: 10px;
    height: auto;
    color: #ffffff;
    font-weight: bold;
    background-color: #6666ff;
}

.kmbutton:hover {
    background-color: #8a8afa;
}

button:hover {
    opacity: 0.5;
}

/* Assistive bar */

#assbar {
    right: 0;
    bottom: 0;
    margin-bottom: 0px;
    padding-left: 5px;
    width: 95px;
    height: 52px;
    position: fixed;
    /* background-color: rgba(25, 14, 0, 0.8); */
}

#footerbutton {
    background-color: gray;
    padding: 3px;
    margin-left: 2px;
    margin-right: 5px;
    border: none;
    width: 40px;
    height: 35px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 8pt;
    color: #FFFFFF;
}

.bigletter {
    font-size: 15pt;
}

@media screen and (max-width: 1600px) {
    #uacstatus {
        margin-top: 5px;
    }
}

/* ---------- 1280 pixel screens and under ---------- */

@media screen and (max-width: 1280px) {
    header {
        width: 100%;
        left: 0;
        top: 0;
        position: fixed;
        font-family: 'Roboto', sans-serif;
    }

    div.topbar {
        height: auto;
        padding: 11px;
    }

    body {
        background-repeat: no-repeat;
    }

    .btcardcontainer {
        margin-top: -12px;
    }

    .logo {
        color: #dedede;
        font-size: 17pt;
        font-weight: bold;
    }

    a.sidebutton {
        text-decoration: none;
        color: #dedede;
    }
    a.sidebutton:visited {
        color: #dedede;
    }

    p {
        text-align: center;
    }

    p.foodname {
        color: #000000;
    }

    #mainview {
        margin-top: 60px;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        display: block;
        color: #0059b3;
    }

    #uacstatus {
        margin-top: 50px;
    }

    #submitview {
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        color: #0059b3;
    }
    /* DIV container for search results */
    #resultview {
        background-color: #ffffff;
        margin-top: 20px;
        padding-bottom: 20px;
        width: auto;
        color: #0059b3;
        box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.3);
        font-family: 'Roboto', sans-serif;
    }

    div.detailwindow {
        width: 600px;
        height: auto;
        background-color: #0000ff;
        margin-left: auto;
        margin-right: auto;
    }

    #sidemenu {
        display: none;
        position: fixed;
        color: #dedede;
        left: 0;
        top: 44px;
        margin-left: 0px;
        width: 60%;
        font-family: 'Roboto', sans-serif;
    }

    #rightsidemenu {
        display: none;
        position: fixed;
        right: 0;
        top: 44px;
        margin-right: 0px;
        width: 40%;
        font-family: 'Roboto', sans-serif;
    }

    #sidebutton {
        cursor: pointer;
        width: auto;
        padding: 17px;
        font-size: 16pt;
        font-family: 'Roboto', sans-serif;
    }

    #sidebutton:hover {
        opacity: 0.5;
    }

    /*Search result */

    .resultcard {
        background-color: rgba(255, 255, 255, 0.7);
        margin-left: 1.5%;
        margin-top: 8px;
        width: 95%;
        height: auto;
        /* box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.3); */
    }

    img {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: auto;
    }

    img.sideicon {
        cursor: pointer;
        width: 18px;
        height: auto;
        padding: 0px;
        margin-right: 10px;
    }

    #centeredheading {
        margin-left: auto;
        margin-right: auto;
        width: 6em;
    }

    .menuitem {
        padding: 11px;
        color: #FFFFFF;
        border-right: 1px solid white;
        background-color: #4c4c4c;
    }

    /* All text fields */

    input[type=text], input[type=number] {
        padding: 10px;
        width: 100%;
        margin-top: 10px;
        font-family: 'Roboto', sans-serif;
        font-size: large;
    }

    input[type=text]:hover, input[type=number]:hover {
        border: none;
        font-size: large;

    }

    button {
        cursor: pointer;
        padding: 11px;
        font-size: small;
        background-color: #1d5e87;
        border: none;
        text-transform: uppercase;
        color: #FFFFFF;
        font-weight: bold;
    }

    button:hover {
        opacity: 0.5;
    }
}

@media screen and (max-width: 640px) {
    #sidemenu {
        width: 80%;
    }

    .resultcard {
        width: 90%;
    }

    #uacstatus {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .resultcard {
         width: 100%;
         margin-left: auto;
         padding-bottom: 40px;
    }
}
