/*
    ?? Core Industrial Palette

    Use Case	        Color	        Hex Code	Notes
    Primary Gray	    Gunmetal	    #2C2F33	    Dark, gritty base — good for backgrounds
    Accent Metal	    Steel	        #7F8C8D	    Neutral, soft contrast against dark tones
    Highlight	        Safety Yellow	#F1C40F	    Draws attention, evokes caution/safety
    Action Buttons	    Burnt Orange	#E67E22	    Industrial, warm, great for CTAs
    Danger/Alerts	    Warning Red	    #C0392B	    Use sparingly for errors or urgent alerts
    Secondary Blue	    Deep Space	    #2980B9	    Adds a cool tech tone for links/UI elements
    Wireframe White	    Light Gray	    #ECF0F1	    Clean, readable contrast against darks
*/


a {
    /*color: #36454f;*/
    color: #fdfdfd;
}

body {
    /*background-color: #A2ABB5;*/
    background-color: #2C2F33;
    z-index: 0;
    font-family: 'Oxanium', Verdana;
    overflow-y: auto; /* This enables scrolling */
}

button {
    /*background-color: ghostwhite;*/
    background-color: #E67E22;
    position: relative;
    border-radius: 40px;
    font: 16px 'Goldman', Verdana;
    height: 50px;
    width: auto;
    min-width: 100px;
    margin: 5px;
    padding: 10px 10px;
    align-items: center;
    cursor: pointer;
}

h1 {
    font-family: 'Goldman', Verdana;
    font-size: 48px;
    color: #F1C40F;
    /*color: #357960;*/
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 25px;
    margin-bottom: 25px;
}

h3 {
    font-size: 18px;
    font-family: 'Goldman', Verdana;
    display: block;
    text-align: center;
    width: 95%;
    margin: 0 5px;
    padding-top: 10px;
}

h4 {
    font-size: 16px;
    font-weight: normal;
}

input {
    border-radius: 10px;
    border: 0px hidden;
    height: 30px;
    width: 290px;
    margin: 5px;
}

p {
    font-family: 'Oxanium';
    font-size: 14px;
    margin-left: 3px;
}

/* CLASS FIELDS */

.authentication {
    position: absolute;
    top: 20px;
    right: 100px;
    transition: background-color .3s, box-shadow .3s;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 100px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    color: #757575;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;
}

.delete-listing-btn {
    position: absolute;
    bottom: 5px;
    left: 5px;
    height: 25px;
    width: 40px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    padding: 0;
}

.item-listing-card {
    /*
        background-color: #357960;
    */
    background-color: #7F8C8D;
    /*color: #36454f;*/
    color: #fdfdfd;
    position: relative;
    box-sizing: border-box;
    margin-bottom: 20px;
    width: 325px;
    height: 400px;
    border: 8px double var(--black);
    border-radius: 15px;
    margin-top: 5px;
    text-align: left;
    font-size: 1.2rem;
    font-family: 'Oxanium', Verdana;
    z-index: 1;
}

.log-in-out {
    position: absolute;
    top: 20px;
    right: 20px;
}

.mark-as-sold-btn {
    position: absolute;
    bottom: 35px;
    left: 5px;
    height: 25px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    padding: 0;
}

.new-listing-search-wrapper {
    position: relative;
    top: 5px;
}

.sold-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 5rem;
    font-weight: 900;
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: #F1C40F;
}

/* ID FIELDS */


#item-descr-div {
    display: block;
    width: 90%;
    margin-left: 10px;
}

#item-listing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#item-location, #item-prc-div, #item-addl-info, #item-total-div, #item-qty-div {
    display: flex;
    gap: 5px;
    align-items: flex-end;
}

#item-location h4, #item-location p, #item-prc-div h4, #item-prc-div p,
#item-addl-info h4, #item-addl-info p, #item-total-div h4, #item-total-div p,
#item-qty-div h4, #item-qty-div p {
    margin: 0;
    margin-bottom: 5px;
    margin-left: 10px;
}

#item-search {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px auto;
}

#listing-user-name {
    font: bold 14px 'Oxanium', Roboto, Verdana;
    text-align: right;
    position: absolute;
    bottom: 5px;
    right: 10px;
}

#log-in-container {
    color: white;
    display: flex;
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #353A47;
    width: 300px;
    min-height: 300px;
    border: 8px double var(--black);
    border-radius: 15px;
    text-align: left;
    font-size: 1.2rem;
    font-family: 'Roboto', Verdana;
    padding: 10px;
    flex-direction: column;
    gap: 3px;
    z-index: 10;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
}

#new-item-location-div, #new-item-prc-div, #new-item-qty-div, #new-item-total-div {
    display: flex;
    gap: 5px;
    align-items: flex-end;
}

#new-item-location-div h4, #new-item-prc-div h4, #new-item-qty-div h4, #new-item-total-div h4, 
#new-item-location-divp, #new-item-prc-div p, #new-item-qty-div p, #new-item-total-div p {
    margin: 0;
    margin-bottom: 5px;
    margin-left: 10px;
}

#new-listing-btn {
    position: absolute;
    top: 142px;
    right: 20px;
}

#new-listing-search-input, #item-search-input {
    margin-left: 10px;
    height: 40px;
    width: 300px;
}

#new-listing-container {
    color: white;
    display: flex;
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2980B9 /* #353A47 */;
    width: 450px;
    min-width: 300px;
    min-height: 300px;
    border: 8px double var(--black);
    border-radius: 15px;
    text-align: left;
    font-size: 1.2rem;
    font-family: 'Roboto', Verdana;
    padding: 10px;
    flex-direction: column;
    gap: 3px;
    z-index: 100;
}

#new-submit-btn {
    text-align: center;
    margin: 10px auto;
    gap: 10px;
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    align-items: center;
}

#new-user-description {
    height: 100px;
    width: 400px;
}

#search-dropdown {
    cursor: pointer;
    background-color: #676767;
    color: seashell;
    position: absolute;
    z-index: 2;
}

#sign-in-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

#sign-up-container {
    color: white;
    display: flex;
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2980B9;
    width: 300px;
    min-height: 300px;
    border: 8px double var(--black);
    border-radius: 15px;
    text-align: left;
    font-size: 1.2rem;
    font-family: 'Roboto', Verdana;
    padding: 10px;
    flex-direction: column;
    gap: 3px;
    z-index: 100;
}

#sign-up-container p {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
}

#useful-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0px 20px;
    margin: 0 auto;
    font: normal 18px 'Goldman', Verdana;
}

#user-name-input {
    margin-left: 2px;
}

@media (max-width: 400px) {
    .item-listing-card {
        width: 100%; /* Stack the cards on smaller screens */
    }
}