html {
    color-scheme: only light;
}

body {
    margin: 0;
    min-height: 100vh;
    background-image: url(bg3.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

nav {
    width: 100%;
    min-height: 80px;
    background-color: rgb(255, 145, 0);
    border-style: none;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.logo{
    padding-left: 20px;
}

.nav-links{
    display: flex;
    list-style: none;
    gap: 2rem;
    padding-right: 20px;
    margin: 0;
}

.nav-links li a{
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-family: 'Black Ops One', sans-serif;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    margin-right: 20px;
}

.nav-links li a:hover{
    color: rgb(0, 0, 0);
    text-shadow: 0 0 10px rgb(248, 223, 176);
}

.login-button{
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-family: 'Black Ops One', sans-serif;
    background-color: rgba(255, 145, 0, 0);
    border-style: none;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    margin-right: 20px;
}

.login-button:hover {
    color: rgb(0, 0, 0);
    text-shadow: 0 0 10px rgb(248, 223, 176);
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 30px;
    font-family: 'Black Ops One', sans-serif;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

button.hamburger:hover {
    color: rgb(0, 0, 0);
    text-shadow: 0 0 10px rgb(248, 223, 176);
}

@media screen and (max-width: 768px) {

    .hamburger {
        display: block;
        text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5) !important;
        padding-right: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        max-width: 90vw;

        background-color: rgb(241, 137, 0) !important;

        flex-direction: column;
        align-items: center;

        padding: 20px 0;
        gap: 20px;
        margin: 0;

        border-radius: 0 0 10px 10px;
        z-index: 10;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 18px;
        margin-right: 0;
    }

    .logo {
        font-size: 27px;
        padding-left: 12px;
    }
}

nav:has(.nav-links.active) {
    border-radius: 10px 10px 0 10px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 80px;
}

.profile-container h1{
    font-family: 'Black Ops One', sans-serif;
    font-size: 32px;
    font-weight: none;
    color: white;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-card {
    background-color: rgba(100, 76, 41, 0.671);
    border-style: none;
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    margin: 30px auto;
    color: white;
    font-family: 'Black Ops One', sans-serif;
}

.profile-card h2 {
    font-family: 'Black Ops One', sans-serif;
}

.profile-card p {
    font-size: 16px;
}

#logout-button {
    background-color: rgb(182, 20, 20);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Black Ops One', sans-serif;
}

#logout-button:hover {
    background-color: rgb(158, 19, 19);
    text-shadow: 0 0 10px rgb(253, 132, 132);
    color: rgb(0, 0, 0);
    cursor: pointer;
}

#save-trade-url {
    background-color: rgb(255, 145, 0);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    font-family: 'Black Ops One', sans-serif;
}

#save-trade-url:hover {
    background-color: rgb(241, 137, 0);
    text-shadow: 0 0 10px rgb(248, 223, 176);
    color: black;
}

#trade-url-input {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-family: 'Black Ops One', sans-serif;
}

#trade-url-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

#save-trade-url {
    max-width: 100%;
}

@media screen and (max-width: 480px) {

    .profile-container {
        margin-top: 35px;
        padding: 0 10px;
    }

    .profile-container h1 {
        font-size: 27px;
    }

    .profile-card {
        padding: 20px;
    }

    body {
        background-attachment: scroll;
    }
}

.marketplace {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background-image: url(P1Background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.marketplace-header a{
    background-color: #ff9100;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Black Ops One', sans-serif;
}

.view-listing-button{
    display: inline-block;
    background-color: #ff9100;
    color: white;
    padding: 9px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Black Ops One', sans-serif;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.view-listing-button:hover {
    background-color: #f18900;
    text-shadow: 0 0 10px rgb(248, 223, 176);
    color: black;
}

#listing-description {
    font-family: 'Black Ops One', sans-serif;
    color: rgb(0, 0, 0);
    font-size: 18px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    margin-left: 2px;
    resize: none;
    width: 240px;
    height: 100px;
}

#listing-description-label{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

#listing-price {
    font-family: 'Black Ops One', sans-serif;
    color: rgb(0, 0, 0);
    font-size: 14px;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: none;
}

#listing-price-label{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

#publish-listing {
    background-color: #ff9100;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Black Ops One', sans-serif;
    border: none;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 2rem;
    margin-top: 20px;
    margin-bottom: 25px;
}

#publish-listing:hover {
    background-color: #f18900;
    text-shadow: 0 0 10px rgb(248, 223, 176);
    color: black;
    cursor: pointer;
}

#listing-type-label{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.marketplace-header h1 {
    color: white;
    font-family: 'Black Ops One', sans-serif;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.marketplace h1{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 32px;
    font-weight: normal;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.marketplace h2{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 32px;
    font-weight: normal;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.marketplace p{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.skin-name {
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: normal;
}

.skin-float {
    color: rgb(255, 145, 0);
    font-size: 14px;
    text-align: center;
    margin: 8px 0;
}

.select-button{
    background-color: #ff9100;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    font-family: 'Black Ops One', sans-serif;
    border: none;
    border-radius: 5px;
}

.select-button:hover {
    background-color: #f18900;
    text-shadow: 0 0 10px rgb(248, 223, 176);
    color: black;
    cursor: pointer;
}

.sell-button {
    background-color: #ff9100;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Black Ops One', sans-serif;
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

#listing-type {
    padding: 5px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-family: 'Black Ops One', sans-serif;
}

#price-countainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sell-button:hover {
    text-shadow: 0 0 10px rgb(248, 223, 176);
    background-color: #f18900;
    color: black;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 20px;
    align-items: start;
    justify-content: start;
}

.listing-card {
    background-color: rgba(100, 76, 41, 0.671);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}

.listing-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.listing-card h3 {
    font-size: 17px;
}

.listing-card a {
    display: inline-block;
    background-color: #ff9100;
    color: white;
    padding: 9px 15px;
    border-radius: 5px;
    text-decoration: none;
}

@media screen and (max-width: 600px) {
    .marketplace {
        padding: 15px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .listing-card {
        padding: 10px;
    }

    .listing-card img {
        height: 110px;
    }
}

/* Myyntilomakkeen kenttien asettelu */
#listing-type-label,
#listing-price-label,
#listing-description-label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

/* Kentät keskelle */
#listing-type,
#listing-price,
#listing-description {
    display: block;
    margin: 0 auto 20px auto;
}

/* Hintakentän ympärillä oleva säiliö */
#price-countainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}











/* View Listing Page */

.view-listing-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 35px;
    background-color: rgba(100, 76, 41, 0.671);
    border-radius: 12px;
    color: white;
    box-sizing: border-box;
}

.view-listing-image {
    flex: 1;
    text-align: center;
}

.view-listing-image img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
}

.view-listing-info {
    flex: 1;
    font-family: 'Black Ops One', sans-serif;
    font-weight: normal;
}

.view-listing-info h1 {
    font-size: 30px;
    font-weight: normal;
}

.view-listing-info p {
    font-size: 17px;
    font-weight: normal;
}

.view-listing-info a {
    color: rgb(255, 145, 0);
    font-weight: normal;
}

.view-listing-description {
    margin-top: 30px;
    font-weight: normal;
}

.listing-price {
    color: rgb(255, 145, 0);
    font-size: 28px;
}

.listing-action-button {
    background-color: rgb(255, 145, 0);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-family: 'Black Ops One', sans-serif;
    font-size: 20px;
    cursor: pointer;
}

.listing-action-button:hover {
    background-color: rgb(241, 137, 0);
    color: black;
}


@media screen and (max-width: 700px) {

    .view-listing-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin: 25px auto;
    }

    .view-listing-image img {
        max-width: 280px;
    }

    .view-listing-info {
        width: 100%;
    }

    .view-listing-info h1 {
        font-size: 24px;
    }

}

.back-button {
    background: none;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Black Ops One', sans-serif;
    font-size: 30px;
    text-decoration: none;
    margin-left: 20px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);

}

.back-button:hover {
    color: black;
    text-shadow: 0 0 10px rgb(248, 223, 176);
}

body {
    padding-bottom: 40px;
}













.search-container {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

#skin-search {
    width: 100%;
    max-width: 450px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    background: #092a50de;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Black Ops One', sans-serif;
    font-weight: normal;
}

#skin-search:focus {
    border-color: #00aaff;
}

#skin-search::placeholder {
    color: #888;
}

.no-listings-message{
    font-family: 'Black Ops One', sans-serif;
    color: white;
    font-size: 18px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

