html {
    font-family: Plus Jakarta Sans;
    height: 100%;
    margin: 0;
}

header {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0px;
    z-index: 10;
    /* box-shadow: inset 0px -1px 15px 1px rgb(0, 0, 0); */
    background-color: #eadcc2;
    max-height: 100px;
}


body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Plus Jakarta Sans;
    /*background-image: url("/static/img/nolan-issac-It0DCaCBr40-unsplash.jpg");
    background-repeat: repeat-y;
    background-position: center;
    background-size: cover;*/

}

.blazor-body {
    display: flex;
    flex-direction: column;
}

.user-main {
    display: flex;
    background-image: url("/static/img/nathan-dumlao-71u2fOofI-U-unsplash.jpg") !important;
    background-repeat: repeat-y;
    background-position: center;
    background-size: cover;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("/static/img/blake-wisz-GcSEjlSWzC4-unsplash.jpg");
    background-repeat: repeat-y;
    background-position: center;
    background-size: cover;
    padding-bottom: 2rem;
}

/* 
Navbar
 */

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 4rem 0 1rem;
    padding: 0 !important;
}

.logo {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 1.25rem;
}

.chat-select {
    padding: 1rem;
    width: 100%;
    position: relative;
    float: left;
}

.links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    min-width: fit-content;
}

    .links a {
        color: #453e34 !important;
        padding: 10px;
        border: 1px solid transparent;
        border-radius: 4px;
        min-width: fit-content;
    }

        .links a:hover {
            transition: 0.3s;
            border-color: #453e34;
        }

.page {
    text-decoration: none;
    font-size: large;
    font-weight: 700;
    color: black;
    cursor: pointer;
}

/* Dropdown container */
.account-dropdown {
    float: left;
    overflow: hidden;
}
    /* Dropdown button */
    .account-dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: #453e34;
        padding: 14px 20px;
        background-color: inherit;
        font-family: inherit;
        font-weight: bold;
        font-size: large;
        cursor: pointer;
    }

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #eadcc2;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    z-index: 1;
}

    /* Links inside dropdown */
    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        /* Hover effects */
        .dropdown-content a:hover {
            background-color: #ddd;
        }

/* Show dropdown on hover */
.account-dropdown:hover .dropdown-content {
    display: block;
}


/*
*Banner section
*/


.chatdropdown {
    margin: 1rem;
    padding: 0.4rem;
    width: 10rem;
    border-radius: 8px;
    border: none;
    font-family: Plus Jakarta Sans;
}

.banner-section {
    background-color: #453e34;
    /* background-color: rgba(0, 0, 0, 0.6); */
    margin: 0;
    padding: 4rem 0 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.banner-title {
    font-size: xx-large;
    width: 100%;
    text-align: center;
    color: #eadcc2;
    margin: 0;
}

.banner-paragraph {
    font-size: large;
    width: 100%;
    text-align: center;
    color: #eadcc2;
}

.search {
    font-size: larger;
    height: 50px;
    border-radius: 10px;
    /* outline: 2px solid rgba(110, 63, 0, 0.979); */
    border: none;
    padding: 1rem;
    width: 50%;
    margin: 0 auto;
    z-index: 1;
}

/*
    Article section
*/

.article-container {
    display: flex;
    
}

.article-section {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 15rem 0;
    max-width: 1800px;
}

.article-item {
    border-radius: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.219);
    /* , inset 0px 0px 15px 2px rgba(255,255,255, 0.5); */
    background-color: #eadcc2;
    padding: 0.5rem;
    word-wrap: break-word;
    max-width: 400px;
    /* width: 20%; */
    text-align: center;
    cursor: pointer;
}

    .article-item h2 {
        color: #453e34 !important;
    }

    .article-item:hover {
        /* transform: scale(1.2, 1.2);  */
        transform: translateY(-10px);
        transition: 0.3s ease-in-out;
        z-index: 5;
    }


.article-pic {
    width: 100%;
    height: auto;
}

/*
* Chatframe extra classes
*/

.chatContainer.show {
    box-shadow: none;
    margin-bottom: 40px;
    width: 50%;
    height: 100%;
    border: 1px solid lightgray;
    border-radius: 4px;
    padding: 10px;
    padding-bottom: 0;
    height: fit-content;
    align-self: center;
}

.chatframe.showChat {
    margin-top: 1rem;
    bottom: unset;
    right: unset;
    position: static;
    height: fit-content;
    width: 100%;
    justify-items: center;
}

/* 
Sign-up / Sign-In
 */

.content-container {
    display: flex;
    justify-content: center;
}

.signup-container, .signin-container {
    margin: 2rem;
    padding: 2rem;
    background-color: #eadcc2;
    color: #453e34;
    width: fit-content;
    height: fit-content;
    border-radius: 10px;
    /*position: absolute;*/
}

.text-input {
    min-width: 30rem;
    height: 2rem;
    border-radius: 6px;
    border: none;
    padding: 4px 4px 4px 8px;
    font-size: 1rem;
    font-family: Plus Jakarta Sans;
}

.product-select {
    display: flex;
    gap: 1.25rem;
    accent-color: #453e34;
    /*margin: 2rem;
    padding: 0 2rem 2rem 2rem;
    background-color: #eadcc2;
    color: #453e34;
    max-width: 20rem;
    z-index: 100;
    left: 152%;
    position: relative;
    border-radius: 10px;
    z-index: 10;*/
}

.product-select h3{
    margin-left: 5px; 
}

.submit-button {
    width: 8rem;
    height: 2.5rem;
    border: none;
    border-radius: 6px;
    background-color: #453e34;
    color: #eadcc2;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.toast-container {
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
}

.success-toast {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    width: 400px;
    height: 100px;
    position: absolute;
    bottom: 50%;
    border-radius: 10px;
    background-color: rgb(60, 117, 22);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .success-toast.show {
        opacity: 1;
    }

.coffee-img {
    width: 40px;
    margin-right: 20px;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dc3545;
    color: white;
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* 
User section 
*/

.user-container {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.user-panel {
    display: flex;
    background-color: #eadcc2;
    flex-direction: column;
    padding: 1rem;
    margin: 0 0 0 1.25rem;
    border-radius: 4px;
    color: #453e34;
    width: 28rem;
}

    .user-panel h2 {
        color: #453e34;
        padding-left: 20px;
    }

    .user-panel table {
        font-size: smaller;
    }

    .user-panel th {
        text-align: start;
    }

    .user-panel td {
        vertical-align: top;
    }

.user-header {
    display: flex;
    align-items: center;
}

.avatar-container {
    padding: 1rem;
    border: 1px dotted #453e34;
    border-radius: 4px;
    cursor: pointer;
}

.prompt-container {
    margin-top: auto;
}

.prompt-btn {
    margin: 4px 0 4px 4px;
    border: none;
    background-color: #453e34;
    color: #eadcc2;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
}

    .prompt-btn:hover {
        opacity: 0.7;
    }

.account-main{
    display: flex;
    gap: 1.25rem;
    margin: 1.25rem;
}
.user-products {
    display: flex;
    background-color: #eadcc2;
    flex-direction: column;
    padding: 1rem;
    border-radius: 4px;
    color: #453e34;
    width: 28rem;
}
.user-info {
    display: flex;
    background-color: #eadcc2;
    flex-direction: column;
    padding: 1rem;
    border-radius: 4px;
    color: #453e34;
    width: 28rem;
}
/*
* Footer
*/
footer {
    background-color: #453e34;
    min-height: 200px;
    width: 100%;
}

h2 {
    margin: 0 !important;
    text-align: center;
    color: #eadcc2;
}

.products {
    margin: 1rem;
    padding: 1rem;
}
