/* =================================================================at
   1. RESET
   ================================================================ */

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
img,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
a,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
    margin: 0;
    padding: 0;
    border: 0;
}

* {
    box-sizing: border-box;
}

/* =================================================================
   3. LAYOUT & STRUCTURE
   ================================================================ */

body {
    font-family: 'Inter', Helvetica, sans-serif;
    line-height: 1.5;
    background-image: url('https://img.magnific.com/free-vector/wavy-elegant-lines-blue-background_78370-3228.jpg?semt=ais_hybrid&w=740&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header>div>div>a>img {
    width: 100%;
    max-width: 100%;
    margin: 0em;
    border-radius: 10px;
}

#welcome_image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1em 0;
    border-radius: 30px;
}

#welcome_image:not([src]),
#welcome_image[src=""] {
    min-height: 140px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(29, 93, 136, 0.35);
}






.user-panel {
    background-color: #ffffff65;
    padding: 1em;
}

.user-panel>div>span,
.user-panel>div>span>a,
.nav_bar>ul>li>a {
    color: rgb(29, 93, 136);
    text-decoration: none;
    font-family: Helvetica;

}

.user-panel>div>span>a {

    color: white;
    background-color: #2f6796c0;
    border-radius: 5px;
    padding: 0.1em;
    white-space: nowrap;
}

.nav_bar,
main {
    background-color: #ffffff65;
    margin: 1em;
    padding: 1em;
    border-radius: 10px;
}

.nav_bar>ul,
#version_log {
    list-style: none;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.664);
    padding: 1em;
    margin-left: 1em;
    margin-right: 1em;
    border-radius: 10px;
    border: 0.3em solid rgb(155, 2, 2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
}

.alert-info, .alert-success {
    background-color: #08465a83;
    padding: 1em;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 0.5em;
    border-radius: 10px;
    border: 0.3em solid #0E789B;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
}

.alert-warning {
    background-color: #ff820dc0;
    padding: 1em;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 0.5em;
    border-radius: 10px;
    border: 0.3em solid #ce6e00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;

}


th {
    background-color: #053b4d;
    border-radius: 5px;
    
}

td, th, #catalog_title {
    padding: 0.3em;
}

td > a {
    color: white;
}

table, #catalog_title {
    border: 0.2em groove #0E789B ;
    color: white;
    background-color: #0a536bd3;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


.btn, input[type="submit"] {
        color: white;
    background-color: #2f6796c0;
    border-radius: 5px;
    padding: 0.1em;
    white-space: nowrap;
    border: 0.1em solid #0E789B;
}

#catalog_title {
    margin-top: 1em;
}


#welcome_subtext {
    font-size: 1.9em;
}


#btnp {
    margin-bottom: 1em;
}

.product_thumbnail, .business_logo {
    border-radius: 10px;
    max-width: 100%;
}


@media screen and (min-width: 40rem) {

    .product_thumbnail, .business_logo {
        max-width: 20em;
    }
    .user-panel {

        display: flex;
        flex-direction: row;
        align-items: center;
    }

    header>div>div>a>img {
        max-width: 13em;
        margin-right: 2em;
    }



}


@media screen and (min-width: 54rem) {
    .user-panel {

        display: flex;
        flex-direction: row;
        align-items: center;
    }

    header>div>div>a>img {
        max-width: 13em;
        margin-right: 2em;
    }

    body {
        display: grid;
        grid-template-columns: 13em 3fr;
        grid-template-areas:
            "header menu"
            "main main"
            "footer footer";
    }

    header {
        grid-area: header;
        padding: 0.5em;

    }

    .menu {
        grid-area: menu;
    }

    .content {
        grid-area: main;
    }

    .content:has(#welcome_image) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* column-gap: 2em; */
        /* row-gap: 0.5em; */
        align-items: start;
    }

    .content:has(#welcome_image) > * {
        grid-column: 1 / -1;
    }

    .content:has(#welcome_image) > h2 {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0.2em;
    }

    .content:has(#welcome_image) > #welcome_subtext {
        grid-column: 1;
        grid-row: 2;
    }

    .content:has(#welcome_image) > #welcome_image {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    footer {
        grid-area: footer;
    }

    #main_nav_bar>ul,
    #business_admin_bar>ul, #seller_nav_bar>ul {
        display: flex;
        gap: 2em;

    }

    #dev_nav_bar>ul>li {
        margin-bottom: 0.3em;

    }

    .nav_bar>ul>li {
        background-color: rgba(29, 93, 136, 0.219);
        border-radius: 10px;
        padding: 0.2em;

    }

    .nav_bar {
        padding: 0.5em;
        margin: 0.5em;
    }

    .user-panel {
        height: 100%;
        border-radius: 10px;

    }

    header>div>div>a>img {

        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    header>div {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: stretch;
    }

    header>div>div:first-child {
        min-height: 0;
        min-width: 0;
        overflow: hidden;
    }

    .user-panel {
        flex-direction: column;

        align-items: flex-start;
    }

}



@media screen and (min-width: 84rem) {
    body {
        display: grid;
        grid-template-columns: 25em 3fr;
        grid-template-areas:
            "header menu"
            "main main"
            "footer footer";
    }
	
	header>div>div>a>img {
		padding-bottom: 0.5em;
    }
	
}