@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Mate+SC&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

#background {
    margin: 0;
    padding: 0;
    background-color: rgb(100, 97, 97);
    background-image: url("./images/black_and_gold_bg.jpg");
    background-size: contain;
    background-repeat: repeat;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}

#header { 
    background-color: black;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.homepage-button {
    margin: 10px;
    font-size: 30px;
    -webkit-appearance: none;
    -moz-appearance: none; 
    appearance: none;
    background-color: transparent;
    border: 0;
    color: white;
}

.homepage-button:hover {
    text-decoration: underline;
    color: lightgray;
}

#image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

#image-wrapper-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75%;
    margin: 0;
    flex-wrap: wrap;
    flex-direction: row;
}


.about-image {
    width: 200px;
    height: 200px;
    margin: 40px;
}

.image-box {
    background-color: transparent;
    width: 300px;
    height: 350px;
    display: flex;
    text-align: center;
    font-feature-settings: "med2";
    font-size: larger;
    flex-direction: column;
}

#contentBox {
    width: 80%;
    background-color: #222;
    color: white;
    border: 5px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px;
    position: relative;
    top: 100px;
    margin-bottom: 100px;
}

#homeWrapper {
    top: 100px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#tournamentsWrapper {
    top: 100px;
    position: relative;
    margin-bottom: 100px;
}

#itemsWrapper { 
    top: 100px;
    position: relative;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#communityWrapper {
    top: 100px;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#discordWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 500px;
    height: 100px;
    background-color: #5165f6;
    cursor: pointer;
    position: relative;
}

#youtubeWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

#tournamentCountdownWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#tournamentCountdownLabel {
    color: white;
    font-size: 48px;
    margin: 0;
}

#tournamentCountdownContent {
    color: white;
    font-size: 48px;
}

#tournamentBox {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    background-color: #222;
    border: 5px solid black;
    width: 80vw;
    padding: 30px;
    justify-content: flex-start;
    align-items: center;
}

.tournamentItemWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px;
}

.tournamentName {
    color: white;
    font-size: 36px;
    text-align: center;
    width: 100%;
    margin: 0;
}

.tournamentDate {
    color: white;
    font-size: 24px;
    text-align: center;
    width: 100%;
}

.youtubeItemWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 320px;
    margin: 20px;
    border: 5px solid black;
    background-color: white;
    cursor: pointer;
    position: relative;
    padding: 10px;
}

.youtubeImage {
    width: 100px;
    height: auto;
}

.youtubeLabel {
    font-size: 24px;
    width: 100%;
    line-height: 100%;
    text-align: center;
}

#discordImage {
    width: 100px;
    height: 100px;
}

#discordLabel {
    height: 100px;
    background-color: #5165f6;
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 100px;
    width: 100%;
}

#discordLink {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.youtubeLink {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#homeTitle {
    font-size: 100px;
    text-align: center;
    color: white;
}

#homeDescription {
    font-size: 32px;
    text-align: center;
    text-shadow: 0 0 20px black, 0 0 20px black, 0 0 20px black, 0 0 20px black, 0 0 20px black, 0 0 20px black;
    color: white;
}

#contentWrapper {
    position: absolute;
    top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 100px;
}

#staffHeader {
    font-size: 50px;
}

#staffWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.staffItemWrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 310px;
    border: 3px solid black;
    background-image: linear-gradient(to top right, gold, white);
    margin: 10px;
}

.staffLabels {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: black;
    width: 100%;
    font-size: 18px;
}

.staffPicture {
    width: 100px;
    height: 100px;
}

#itemDisplayWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #222;
    border: 5px solid black;
    padding: 20px;
    width: 80%;
}

.itemWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgb(151, 118, 40);
    padding: 10px;
    border: 3px solid rgb(8, 8, 8);
    color: white;
    width: 150px;
    margin: 20px;
}

.itemImage {
    width: 100px;
    height: auto;
}

.itemLabel {
    margin: 10px 0;
}

.itemType {
    margin: 0 0 10px 0;
}

.valueWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 5px 0;
}

.valueLabel {
    font-size: 16px;
    text-align: left;
    margin: 0;
}

.valueField {
    font-size: 16px;
    text-align: right;
    margin: 0;
}

#itemFeatureWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

#itemSearchBar {
    font-size: 32px;
    width: 60%;
    margin: 30px;
}

#itemSearchOptionsWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.filterTypeButton {
    font-size: 24px;
    margin: 0 10px;
}

#filterDropdownWrapper {
    margin: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#filterDropdownLabel {
    font-size: 24px;
    color: white;
}

#filterDropdown {
    font-size: 24px;
    margin-left: 8px;
}

/* Leaderboard Styling */
#leaderboardWrapper {
    margin-top: 60px;
    background-color: #222;
    border: 4px solid black;
    border-radius: 8px;
    padding: 20px 40px;
    color: white;
    text-align: center;
    width: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#leaderboardTitle {
    font-size: 48px;
    margin-bottom: 20px;
    color: gold;
    text-shadow: 0 0 10px black, 0 0 10px black;
}

#leaderboardList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboardItem {
    font-size: 28px;
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid gold;
}



.trade-container {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 20px;
            padding: 20px;
            margin: 20px;
            background: rgba(2, 1, 1, 0.629);
            border-radius: 20px;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
        }

        .side {
            width: 48%;

            background: rgba(0, 0, 0, 0.7);
            padding: 15px;
            border-radius: 15px;
            box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
        }

        .total {
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 16px;
            color: #ffdd57;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.3);
            padding: 8px;
            border-radius: 10px;
        }

        .slot-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            align-items: center;
        }

        .slot {
            width: 100%;
            aspect-ratio: 1/1;
            background: rgba(52, 69, 59, 0);
            border: 2px solid #888;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 12px;
            position: relative;
            transition: border 0.3s;
        }

        .itemInSlot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itemInSlot .itemImage {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover, depending on your preference */
    pointer-events: none; /* prevents accidental drag issues */
}

        .slot:hover {
            border-color: #ffdd57;
        }

        .slot.selected {
            border-color: #ffd700;
        }

        .slot img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }

        .plus-sign {
            font-size: 32px;
            color: #999;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            /* Default: mobile portrait */
            gap: 20px;
            padding: 0 30px 30px 30px;
            box-sizing: border-box;
        }

        .card {
            display: flex;
            flex-direction: column;
            text-align: center;
            padding: 10px;
            width: 100%;
            border-radius: 15px;
            overflow: hidden;
            background: linear-gradient(to bottom, #c559d3, #a3e0f6);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            border: 3px solid #444;
            position: relative;
            transition: transform 0.3s;
            height: auto;
            /* allow content to define height */
            min-height: 430px;
            /* enough space for mobile */
        }


#tradeCalculatorWrapper {
    width: 90%;
    position: sticky;
    top: 0;

}