html /*boxmodel fix*/
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing:border-box;
    box-sizing: border-box;
    font-size: 16px; /* Sets the base font size for the document (helps with rem) */
}

*,*:after,*:before
{
    -webkit-box-sizing: inherit;
    -moz-box-sizing:inherit;
    box-sizing: inherit;
}
@font-face { /*Font number 1*/
    font-family: "tf2";
    src: url("../TF2.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face { /*Font number 2*/
    font-family: "tf2build";
    src:  url("../tf2build.ttf") format("truetype");
    font-weight: normal; 
    font-style: normal;
}


a {
    text-decoration: none; 
    color: #ffffff;
}

a:hover {
    color: #ff9800;
    transition: color 0.3s ease-in-out;
}

body {
    margin: 0;
    background-image: url('../Images/background.png');
    background-size: cover;
    background-position: center;
    font-family: "tf2",Verdana, sans-serif;
    
} 

header {
    position: sticky;
    display: flex;
    justify-content: space-between; /*makes the hamburger menu appear on the right side and not next to the img*/
    align-items: center; 
    width: 100%; /*Full screen*/
    background-color: rgb(65, 65, 65);
}

h1 {
    font-size: 4rem;
    margin-top: 0.5rem;
    font-family: "tf2build";
}

h2 {
    font-family: "tf2build";
    font-size: 3rem;
}

.hamburger { /*Courtesy of jaseep*/
    display: none;
    width: 2em;
    height: 2em;
    background-color: rgb(56, 56, 56);
    border-radius: 50%;
    margin-right: 1rem;
    z-index: 999999;
}

.hamburger div { /*Courtesy of jaseep*/
    width: 1.5em;
    height: 0.2em;
    background-color: #ffffff;
    margin: 0.3rem auto;
    transition: all 0.3s ease-in-out;
}

.logo {
    padding-left: 3rem;
    max-width: 8rem;
    transition: transform 0.5s ease-in-out;
}

.logo:hover {
    transform: scaleY(-1);
    animation: spin 1.5s linear infinite;
}

@keyframes spin { /*animation for the logo*/
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.navbtn {
    display: inline-block;
    margin: 0 1rem;
    background: rgb(56, 56, 56);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 2em;
    padding: 0.5rem 1.5rem;
    transition: transform 0.8s ease-in-out;
    text-align: center;
}

.navbtn:hover{
    transform: scale(1.1);
}

#logoutbtn {
    display: none; /*Hides the logout button on the main page, only shows up when logged in*/
}

main {
    background-color: rgba(255, 255, 255, 0.750);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000;
    text-align: center;
    width: 70%;	
    margin: 0 auto;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.Titlecard {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 2em;
    width: 90%;
    height: 25em;
    margin: 2rem 0;
    color: #ffffff;
    transition: box-shadow 0.2s ease-in-out;
    text-align: left;
    padding: 1rem;
    background-image: url('http://i.imgur.com/gJcmieg.png');
    background-size: cover;
    background-position: center;
    font-family: "tf2build";
}

.currencies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}


.money {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30%;
    background-color: rgb(56, 56, 56);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    border-radius: 2em;
    margin: 2rem;
    padding: 2rem;
}

.moneyimg {
    max-width: 80px;
    margin: 0 auto;
    background-color: #1e1e1e;
}

.RecentListings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    justify-content: center;
}


.Rlistingbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, #434343, #2e2e2e); /*makes the box look less bland*/
    border-radius: 1.5em;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 15em;
    height: 22em;
}


.Rlistingbox:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.6);
}

.Rlistingbox img {
    width: 8em;
    height: 8em;
    object-fit: contain;
    border-radius: 0.5em;
    background-color: #1e1e1e;
    padding: 0.5rem;
}

.RlistingName {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0f0f0;
}

.RlistingPrice {
    color: #cfcfcf;
}

 .itemButton {
    padding: 0.5rem 1.2rem;   
    background-color: #ff9800;
    border: none;
    border-radius: 2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    display: inline-block;
    margin: 0.25em;
    padding: 0.5em 1em;
    width: 80%;
    max-width: 10rem;
}

.Rlistingbox button:hover, .item button:hover {
    background-color: #ffb340;
}

.socials {
    margin-bottom: 2em;
    transition: 0.3s ease
}

.socialsIcon {
    max-width: 1em;
    max-height: 1em;
    filter: invert(100%);
}

.socialsIcon:hover {
    filter: invert(50%);
    transition: 0.3s ease;
}

footer {
    background-color: rgb(65, 65, 65);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.navbar {
    position: absolute;
    right: 1em;
    padding: 1rem;
    border-radius: 1em;
}



.navbar.active {
    position: absolute;
    top: 50%;
    display: flex; 
    flex-direction: column;
    margin-top: 3rem;
    gap: 0.5em;
    background-color: #333;
}

/* market.html */

.marketbody {
    background-color:rgb(46, 46, 46) ;
}

.searchbar {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 2em;
    flex-wrap: wrap;
    flex-direction: column;
}

.search input[type="text"] {
    width: 100%;
    max-width: 20em;
    padding: 0.5rem;
    border-radius: 2em;
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.items {
    display: grid;
    justify-items: center;
    gap: 2em;
    grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
    width: 90%;
}

.item {
    background-color: rgb(56, 56, 56);
    color: #ffffff;
    padding: 1rem;
    padding-bottom: 2rem;
    border-radius: 2em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
    width: 10em;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.item:hover {
    transform: translateY(-5px) scale(1.05);;
}

.item img {
    max-width: 100%;
    width: 100%;
    height: 5em;
    object-fit: contain;
    border-radius: 0.5em;
    background-color: #1e1e1e;
    padding: 0.5rem;
}

.shoppingCartIconContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 3em;
    height: 3em;
    background-color: rgb(56, 56, 56);
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.shoppingCartIconContainer:hover {
    transform: scale(1.1);
}

.shoppingCartIcon {
    width: 1.5em;
    height: 1.5em;
    object-fit: contain;
    filter: invert(100%);
}

.cartCount {
    position: absolute;
    top: -0.4em;
    right: -0.4em;
    background-color: #ff9800;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3em 0.5em;
    border-radius: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.searchbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2c;
  padding: 1rem 2rem;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1100px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  gap: 1rem;
  flex-wrap: wrap;
}

.search input {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border-radius: 1em;
  border: none;
  max-width: 250px;
  background-color: #444;
  color: #ffffff;
}

.search input::placeholder {
  color: #bbb;
}


.filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1rem;
}

.filter label {
  font-weight: bold;
}

.filter select {
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #444;
  color: #ffffff;
  border: 1px solid #666;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter select:hover {
  background-color: #555;
}
/*item.html*/


.productContainer {
    max-width: 56.5rem;
    margin: 4rem auto;
    padding: 2rem;
    background: #2c2c2c;
    border: 3px solid #944d00;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #fff;
    font-family: "tf2build", sans-serif;
}


.productContainer h1 {
    font-size: 2.5rem;
    color: #ff9900;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 0 #000;
}


.productContainer img {
    width: 100%;
    max-width: 31.5rem;
    height: auto;
    border: 2px solid #ff9900;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

#productImage:hover {
    transform: scale(1.03);
}


/*aboutUs.html*/

.aboutUsBody {
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 4em;
}

.aboutUsBody section,
.aboutUsBody aside
 {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.5em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.aboutUsBody section:hover,
.aboutUsBody aside:hover {
    transform: scale(1.02);
}

.aboutUsBody h2 {
    color: #2e2e2e;
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.aboutUsBody p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #3a3a3a;
    margin: 0.5rem 0;
}

.aboutUsBody img {
    width: 100%;
    max-width: 100%;
    border-radius: 1em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 1rem;
    transition: transform 0.3s ease-in-out;
}

.aboutUsBody img:hover {
    transform: scale(1.05);
}

aside.disclaimer, .noLogin {
    background-color: #ffe7e7;
    color: #5a1e1e;
    border: 2px solid #ffbbbb;
    font-size: 0.95rem;
    margin-top: 2rem;
    padding: 2rem;
}

.aboutUsBody .aboutUs4 img {
    height:400px;
    width: 250px;
}

/*personalStore.html*/

 .profilebox {
    width: 95%;
    margin: 0 auto;
  }

.personalStore,.addItem,.personalItems {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }


.introPS {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    margin: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1.5em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 100%;
}

.profile {
    background: linear-gradient(135deg, #6B4423 0%, #5A3A1F 100%);
    border: 2px solid #B8860B;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin: 20px 0;
    padding: 5rem;
    position: relative;
    max-width: 1200px;
}


.profile::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: 6px;
    pointer-events: none;
}


.profile h1 {
       font-family: 'tf2build', sans-serif;
    font-size: 2.5rem;
    color: #DAA520;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.profileInfo {
    display: grid;
    gap: 2rem;
    align-items: start;
    width: 100%;
    justify-items: center ;
}


.profile-pic {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 1rem;
    border: 0.1875rem solid #B8860B;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.4);
    object-fit: cover;
    transition: transform 0.3s ease;
    justify-self: center;
}

.profile-pic:hover {
    transform: scale(1.02);
}


.current-info {
    background: linear-gradient(135deg, #2F1F15, #3A2419);
    border: 1px solid #6B4423;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.current-info p {
    font-family: 'tf2build', sans-serif;
     font-size: 1rem;
    color: #D3D3D3;
    margin: 0.75rem 0;
    word-wrap: break-word;
}

.current-info strong {
    color: #DAA520;
    font-weight: 700;
}

.current-info span {
    color: #CD853F;
    font-weight: 400;
}


.profileForm {
    background: linear-gradient(135deg, #3A2419 0%, #2F1F15 100%);
    border: 2px solid #6B4423;
    border-radius: 0.5rem;
    padding: 1.2rem;
    max-width: 20rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}


.profileForm label {
    font-family: 'tf2build', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #DAA520;
    display: block;
    margin: 0.7rem 0 0.2rem 0;
    text-transform: uppercase;
}


.profileForm input[type="text"],
.profileForm textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #6B4423;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1F1F1F, #2A2A2A);
    color: #D3D3D3;
    font-family: 'tf2build', sans-serif;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    transition: border-color 0.2s ease;
}

.profileForm input[type="text"]:focus,
.profileForm textarea:focus {
    outline: none;
    border-color: #CD853F;
    background: linear-gradient(135deg, #252525, #333333);
}

.profileForm textarea {
    resize: vertical;
    min-height: 4em;
    max-height: 7.5em;
}


.profileForm button[type="submit"] {
    background: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
    border: 2px solid #B8860B;
    border-radius: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: 'tf2', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 1rem;
    width: 100%;
}

.profileForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #DAA520 0%, #F0E68C 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.profileForm button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.noLogin {
    background: linear-gradient(135deg, #704214 0%, #8B4513 100%);
    border: 2px solid #B8860B;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin: 1.2rem auto;
    max-width: 31em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.noLogin h2 {
    font-family: 'tf2', sans-serif;
    font-size: 1.6rem;
    color: #DAA520;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}

.noLogin p {
    font-family: 'tf2build', sans-serif;
    font-size: 1rem;
    color: #D3D3D3;
    margin: 0.5rem 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.noLoginbtn {
    display: inline-block;
    background: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
    border: 2px solid #B8860B;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-family: 'tf2', sans-serif;
    font-size: 1rem;
    color: #FFF;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.noLoginbtn:hover {
    background: linear-gradient(135deg, #DAA520 0%, #F0E68C 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* loading animation */
@keyframes simpleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-pic.loading {
    animation: simpleRotate 3s linear infinite;
}

.introPS:hover, .profile:hover, .profileInfo:hover, .noLoginbtn:hover {
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}

.PersonalStoreContainer {
    display: none;
}

.noLoginbtn {
    background-color: #ffe7e7;
    color: #5a1e1e;
    border: 2px solid #ffbbbb;
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
}

.noLoginbtn:hover {
    background-color: #ffbbbb;
    color: #3a1e1e;
    border: 2px solid #ff7f7f;
}


.popupResults {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  max-height: 12.5em;
  overflow-y: auto;
  margin-top: 0.3rem;
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.popupResults div {
    padding: 5px;
    cursor: pointer;
}

.popupResults div:hover {
    background-color: #f0f0f0;
}

.addItem {
  max-width: 25em;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.addItem h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #333;
}

.addItemForm {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.addItemForm label {
  font-weight: bold;
  font-size: 1rem;
}

.selectedProductId {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.6em;
    background: #f9f9f9;
    box-sizing: border-box;
}

.addItemForm input:focus,
.addItemForm textarea:focus {
  border-color: #ff9800;;
  outline: none;
  background-color: #ffffff;
}

.addItemForm textarea {
  resize: vertical;
  min-height: 5em;
}

.addItemForm button {
  background: #d58000;
  color: #ffffff;
  font-weight: bold;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 0.6em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.addItemForm button:hover {
  background-color: #d58000;;
}


.pop-upCard {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1.5em 0 0 1.5em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 40%;
    height: 100%;
    display: none; 
    overflow: hidden; /* contain child scrolling */
}

.pop-upCardContent {
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
}

.closePopupBtn {
    background: transparent;
    border: none;
    color: black;
    font-size: 2em;
    position: absolute;
    top: 1%;
    right: 5%;
    transition: 0.3s ease;
}

.pop-upCardImage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.pop-upCardImage img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.75em;
    border: 2px solid #ddd;
}

.pop-upCardImage h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
    text-align: center;
}

.pop-upCardImage p {
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem 0;
}

.removeCartBtn {
    padding: 0.6rem 1.2rem;
    background-color: #ff5722;
    border: none;
    border-radius: 0.5em;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.removeCartBtn:hover {
    background-color: #e53935;
}

/*login.php*/

.authentication p {
    background-color: rgba(56,56,56,0.8);
    border-radius: 2em;
    padding: 1rem;
}

/*Media querries*/

@media (max-width: 1200px) {
    .RecentListings {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 960px) {
    nav select {
        display: inline-block; 
    }

    .ListingImage {
        max-width: 8em;
        width: auto;
    } 

    nav a{
        width:9em;
    }

    .hamburger {
        display: block;  /* Show hamburger on small screens */
    }
    .navbar {
        display: none; /* Hide navbar on small screens */
    }
    
} 

@media (max-width: 800px) {
    .RecentListings {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .money {
        width: 40%;
    }

        .aboutUsBody {
        padding: 2rem 1rem;
    }

    .aboutUsBody h2 {
        font-size: 2rem;
    }

    .aboutUsBody p {
        font-size: 1rem;
    }
    
    .current-info,
    .profileForm {
        margin: 0 15px;
    }
}


@media (max-width: 540px) {
    .Rlistingbox {
        width: auto;
        max-width: 10em;
    }

    .ListingImage {
        max-width: 8em;
        width: auto;
    } 

    .RecentListings {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .item {
        width: 7em;
    }

    .item h3 {
        font-size: 1rem;
    }

    .money {
        width: 100%;
    }

    .introPS {
        width: 60%;
    }

    .profile, .current-info, .profileForm {
        padding: 1rem;
    }
    
    .profile h1,.personalStore h1 {
    font-size: 1.2rem;
  }

    p {
    margin: 0.5em 0;
    font-size: 0.8rem;
  }

}

@media (max-width: 400px) {
    .Rlistingbox {
        width: auto;
        max-width: 10em;
    }

    .ListingImage {
        max-width: 8em;
        width: auto;
    } 

    .RecentListings {
        display: grid;
        grid-template-columns: 1fr;
    }

    .key p, .ref p {
        font-size: 0.5rem;
    }

    .item {
        max-width: 6em;
    }
 
    h2 {
        font-size: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    .addItem {
        padding: 1rem;
        border-radius: 0.8em;
    }

    .addItemForm button {
        font-size: 1rem;
        padding: 0.9rem;
    }

    .addItemForm input,
    .addItemForm textarea {
        font-size: 0.95rem;
    }

}

@media (max-width: 320px) {
    .item {
        width: 5.5em;
    }

    .item h3 {
        font-size: 0.8rem;
    }
    .RecentListings {
    width: auto;
    max-width: 12em
    }
    
    .Rlistingbox {
        width: auto;
        max-width: 10em;
    }

    .ListingImage {
        max-width: 8em;
        width: auto;
    } 

    .RecentListings {
        display: grid;
        grid-template-columns: 1fr;
    }

    h2{
    font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .introPS, .profile, .profileInfo {
        width: 30%;
    }
}